Observable that fires whenever an Entity is removed
Observable that fires whenever an Entity is saved
Gets all the items for an entity type. If all the items are cached, no backend call shall be performed (as in the case the the Entity is configured with loadAll: true
and has already fetched data).
Calls a backend API, which is defined by an ApiCallType.
The class which defines the ApiCallType. Should be decorated with @ApiCall and extend ApiCallModel.
Any data required to be sent to the backend in the API call
General options for the call
An Observable of the api call's result data type
Underlying method for query. Different in that it accepts an EntityBackendConfig, to configure the call.
Clears all or specific ApiCallType caches
Optional ApiCallType class or array of classes. if omitted, all ApiCallType caches will be cleared. otherwise, only the caches of the specified ApiCallType(s) will be cleared.
Creates an instance of a model - given an Entity/ValueObject class and data, creates a root model, with full model tree, meaning - all sub-models are modeled as well. Sub-models that require being fetched from backend will be fetched.
The raw JSON data for creating the item, as it arrives from backend.
Gets an item by ID from backend and returns an Observable with the model
Returns the configuration for the specified Entity/ValueObject class, if the specified class is indeed one of those.
Gets an item that's related to another item, as defined in a relationship.
Returns a RelationshipRepository for the specified relationship class.
Class that has a @EntityRelationship decorator
Returns the Repository for the specified class. If no Repository can be found, returns null.
A class, should have a decorator of either @Entity or @ValueObject.
Gets an entity value by its ID. The value has to be defined in the Entity's values property
Fetches multiple item data from backend
The Entity class for which to fetch data
object with configuration for the backend API, such as page, page size, order, or any custom data required
General options for the query.
An Observable of DataSet
Query items in a relationship - fetches multiple items that relate to a specified item.
Reset the config object back to default
Set the config object, merged with the default config object
Generated using TypeDoc
Observable that fires whenever there is an error in Paris. Relevant both to errors parsing data and to HTTP errors