foundation-comms.datasource
Home > @genesislcap/foundation-comms > Datasource
Datasource interface
Datasource interface.
Signature:
export interface Datasource extends DatasourceMetadata
Extends: DatasourceMetadata
Remarks
The public interface available on the injected store fragment.
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
Returns the datasource parameters that are only relevant for the data server. | |||
|
boolean |
Indicates whether the datasource has been initialized. | ||
|
boolean |
Indicates whether the datasource is read-only. TODO: Should have is prefix | ||
|
Returns the request-only parameters for the datasource. | |||
|
The type of resource the datasource represents. | |||
|
Partial<DatasourceStatus> | |||
|
SocketObservable<FilteredDataServerResult | RequestServerResult> |
A stream of data from the datasource. |
Methods
|
Method |
Description |
|---|---|
|
(Optional) Adds the specified dataview to the datasource. | |
|
(Optional) Clears the filter with the specified name from the datasource. | |
|
(Optional) Creates a new item in the datasource with the specified data. | |
|
(Optional) Handles the specified data and returns it. | |
|
(Optional) Deletes an item with the given ID from the datasource. | |
|
Destroys the datasource. | |
|
(Optional) Removes the specified dataview from the datasource. | |
|
(Optional) Fetches metadata for the specified resource name. | |
|
Initializes the datasource with the given options and fetches metadata if specified. | |
|
(Optional) Sets a filter on the datasource with the specified name, value, and type. | |
|
Takes a snapshot of the data in the datasource. | |
|
Takes a filtered snapshot of the data in the datasource. | |
|
Starts the data stream for the datasource. | |
|
(Optional) Updates the data in the datasource with the specified data. | |
|
(Optional) Updates an item in the datasource with the given ID and data. | |
|
Updates the load more (how many times user manually requested more data) count for the datasource. | |
|
Indicates whether the resourceName is valid or not. |