import DocumentRepository from 'pvbid-sdk/src/repositories/DocumentRepository.js'
DocumentRepository
Extends:
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
async create(bidId: *, documentObject: *): * |
|
public |
async delete(bidId: *, documentId: *): * |
|
public |
async findById(bidId: *, documentId: *): * |
|
public |
async get(bidId: *, params: *): * |
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 constructor() source
Creates an instance of BaseRepository.
Override:
BaseRepository#constructorPublic Members
Public Methods
public async create(bidId: *, documentObject: *): * source
Persists a new entity
Override:
BaseRepository#createParams:
Name | Type | Attribute | Description |
bidId | * | ||
documentObject | * |
Return:
* |
public async delete(bidId: *, documentId: *): * source
Deletes a single entity by its id
Override:
BaseRepository#deleteParams:
Name | Type | Attribute | Description |
bidId | * | ||
documentId | * |
Return:
* |
public async findById(bidId: *, documentId: *): * source
Retrieves a single domain object by its id.
Override:
BaseRepository#findByIdParams:
Name | Type | Attribute | Description |
bidId | * | ||
documentId | * |
Return:
* |
public async get(bidId: *, params: *): * source
Retrieves an array of results for the endpoint
Override:
BaseRepository#getParams:
Name | Type | Attribute | Description |
bidId | * | ||
params | * |
Return:
* |