DataSourceClient

Authenticated client for DataSource related requests to Lucid.

Extended by


Constructors

new DataSourceClient()

new DataSourceClient(
   urls, 
   updateToken, 
   fetchMethod): DataSourceClient

Parameters

ParameterTypeDefault value
urlsobjectundefined
urls.apistringundefined
urls.mainstringundefined
updateTokenstringundefined
fetchMethodGlobalFetchTypeglobalFetch

Returns

DataSourceClient


Methods

update()

update(request): Promise<void>

Create or update a datasource. If you create a new collection it must be fully specified in terms of schema and
and items. If it's just an update then the schema can be omitted (if unchanged) and items that already exist can
be partial.

Parameters

ParameterType
requestDataSourceRequest

Returns

Promise<void>