Constructor Summary
Public Constructor | ||
public |
constructor(endpoint: string, singleMap: string, multiMap: string) Creates an instance of BaseRepository. |
Member Summary
Public Members | ||
public |
params: {} |
Method Summary
Public Methods | ||
public |
Creates a single entity and invalidates the cached data |
|
public |
Deletes resource and removes resource from cache. |
|
public |
Retrieves a single domain object by its id. |
|
public |
Retrieves an array of results for the endpoint |
|
public |
Saves resource and stores response to cache by resource id. |
Inherited Summary
From class BaseRepository | ||
public |
endpoint: * |
|
public |
http: * |
|
public |
httpConfig: * |
|
public |
map: {"single": *, "multi": *} |
|
public |
metaData: * |
|
public |
params: {} |
|
public |
Persists a new entity |
|
public |
Deletes a single entity by its id |
|
public |
Retrieves a single domain object by its id. |
|
public |
Retrieves an array of results for the endpoint |
|
public |
Persists an update to the entity |
Public Constructors
Public Members
Public Methods
public async create(entity: BidEntity): Promise<BidEntity> source
Creates a single entity and invalidates the cached data
Override:
BaseRepository#createParams:
Name | Type | Attribute | Description |
entity | BidEntity | bid entity data object |
public async delete(id: number): Promise<object> source
Deletes resource and removes resource from cache.
Override:
BaseRepository#deleteParams:
Name | Type | Attribute | Description |
id | number | The id of the resource to delete |
public async findById(id: int, forceReload: boolean): * source
Retrieves a single domain object by its id.
Override:
BaseRepository#findByIdParams:
Name | Type | Attribute | Description |
id | int | The id of the entity to retrieve. |
|
forceReload | boolean | Flags repository to force reload skipping cached data. |
Return:
* |
public async get(params: object, forceReload: boolean): * source
Retrieves an array of results for the endpoint
Override:
BaseRepository#getReturn:
* |