The managed type of this factory
Methods that are added to object instances This property is an alias for this factory type prototype
methods
Push message will be used to send a push notification to a set of devices
Returns true if the devices is already registered, otherwise false.
Loads the instance for the given id, or null if the id does not exists.
A Promise that will be fulfilled when the asynchronous operation completes.
The id to query
Optional options: { The load options
Optional depth?: number | booleanThe object depth which will be loaded. Depth 0 loads only this object,
true loads the objects by reachability.
Optional local?: booleanIndicates whether the local copy (from the entity manager) of an object should be returned if it exists. This value might be stale.
Optional refresh?: booleanIndicates whether the object should be revalidated (cache bypass).
Optional doneCallback: anyCalled when the operation succeed.
Optional failCallback: anyCalled when the operation failed.
Creates a new partial update for this class
A partial update builder for the given entity id
The id to partial update
Optional partialUpdate: JsonAn initial partial update to execute
Uses the info from the given PushMessage message to send an push notification.
to send an push notification.
Optional doneCallback: anyCalled when the operation succeed.
Optional failCallback: anyCalled when the operation failed.
Register a new device with the given device token and OS.
The registered device
The OS of the device (IOS/Android)
The FCM device token, APNS device token or WebPush subscription
Optional doneCallback: anyCalled when the operation succeed.
Optional failCallback: anyCalled when the operation failed.
Register a new device with the given device token and OS.
The registered device
The OS of the device (IOS/Android)
The FCM device token, APNS device token or WebPush subscription
An optional device entity to set custom field values
Optional doneCallback: anyCalled when the operation succeed.
Optional failCallback: anyCalled when the operation failed.
Static createCreates a new ManagedFactory for the given type
The metadata of type T
The entity manager instance
Static Protected createCreates a new Factory for the given type
A new object factory to created instances of T
Generated using TypeDoc
The owning EntityManager where this factory belongs to