Methods
create(siteId, createData) → {Promise.<DehydratorModel>}
Create a Dehydrator [POST /lab/sites/{siteId}/dehydrators]
Parameters
-
siteId
numberThe Site ID
-
createData
DehydratorController.CreateDataThe Dehydrator Create Data
Returns
-
Promise.<DehydratorModel>
Source
delete(siteId, id) → {Promise.<boolean>}
Delete a Dehydrator [DELETE /lab/sites/{siteId}/dehydrators/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Dehydrator ID
Returns
-
Promise.<boolean>
Source
getAll(siteId, queryParametersopt) → {Promise.<Array.<DehydratorModel>>}
List all Dehydrators [GET /lab/sites/{siteId}/dehydrators]
Parameters
-
siteId
numberThe Site ID
-
queryParameters
DehydratorController.GetAllQueryParameters<optional>
The Optional Query Parameters
Returns
-
Promise.<Array.<DehydratorModel>>
Source
getOne(siteId, id) → {Promise.<DehydratorModel>}
Retrieve a Dehydrator [GET /lab/sites/{siteId}/dehydrators/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Dehydrator ID
Returns
-
Promise.<DehydratorModel>
Source
update(siteId, id, updateData) → {Promise.<DehydratorModel>}
Update a Dehydrator [PATCH /lab/sites/{siteId}/dehydrators/{id}]
Parameters
-
siteId
numberThe Site ID
-
id
stringThe Dehydrator ID
-
updateData
DehydratorController.UpdateDataThe Dehydrator Update Data
Returns
-
Promise.<DehydratorModel>
Source
Type Definitions
CreateData
The Create Data for a Dehydrator
Type
-
Object
Properties
-
rtuId
number<optional>
<nullable>
The RTU this Dehydrator belongs to
-
name
stringThe Name of this Dehydrator
-
points
ObjectThe Points used by this Dehydrator
-
labId
stringThe Lab that owns this Dehydrator
Source
GetAllQueryParameters
The Optional Query Parameters for the getAll Function
Type
-
Object
Properties
-
rtuId
number<optional>
<nullable>
The RTU this Dehydrator belongs to
-
name
string<optional>
The Name of this Dehydrator
-
labId
string<optional>
The Lab that owns this Dehydrator
Source
UpdateData
The Update Data for a Dehydrator
Type
-
Object
Properties
-
name
string<optional>
The Name of this Dehydrator
-
points
Object<optional>
The Points used by this Dehydrator
-
labId
string<optional>
The Lab that owns this Dehydrator