Classes

CollectionDocumentTuple
CollectionDocumentTuples
FirestormMetadata

Metadatas linked to a type that holds information:

  • on how to convert it to and from firestore.
  • the fields remapped
  • the conversions of complex fields
  • the subcollections
  • the fields ignored
FirestormMetadataStore

Class containing all the metadatas stored in firestorm

ToOneRelationship

Interfaces

FirestoreDate
IFirestormModel

Minimal requirements for a firestorm model

IMandatoryFirestormModel

Requirements for a firestorm model that is referenced

RelationshipMetadata

Relationship metadata

ToManyRelationshipMetadata

To-many relationship metadatas

ToOneRelationshipMetadata

To-one relationship metadatas

Type

Newable function of T

Type Aliases

DocumentToModelConverter

Type of a conversion function from a firestore document data object to a FirestormModel

DocumentToModelFieldConverter

Type of a conversion function from a firestore document data object to a FirestormModel

FirestoreDocument

Type for a firestore document

FirestoreDocumentField
FirestoreFieldBaseType
FirestormModel

Alias of IFirestormModel

IdModelDictionary

Dictionary of id and model corresponding to this id

MandatoryFirestormModel
ModelToDocumentConverter

Type of a conversion function from a FirestormModel to a firestore document data object

ModelToDocumentFieldConverter

Type of a conversion function from a FirestormModel to a firestore document data object

RelationshipKind

Kind of relationship

RelationshipLocation

Where to find the referenced document

  • 'sibling': looks for the collection next to the collection related to this
  • 'root:' looks for the collection starting from the root
  • IParentCollectionOptions[]: creates the path to the parent collection
TransactionFnc

Type for functions passed to firebase's runTransaction

Variables

TRANSACTION_MAX_OPERATION_PER_DOCUMENT

The limit of modifications on a document per transaction

Type

Describes a function that can generate an object

Functions

buildPath
hasFieldOfType
isFirestoreDate
isIn
isToManyRelationshipMetadata
isToOneRelationshipMetadata
logError
logInfo
logWarn
pascalToSnakeCase
resolveId
resolveInstance
stringSingularToPlural
toSegments