No you would have to add it, something like,
static setValue(xid, valueTime) {
return client.restRequest({
method: 'PUT',
path: '/rest/v1/point-values/' + encodeURIComponent(xid),
data: {
"dataType": "NUMERIC",
"value": valueTime.value,
"timestamp": valueTime.time,
"annotation": "annotation" in valueTime ? valueTime.annotation : null
}
}).then(response => {
return response.data;
});
}
setValue(valueTime) {
return this.constructor.setValue(this.xid, valueTime);
}
Which should work for numeric points. You would have to do something more clever to make this fully general purpose as currently the DataPoint object doesn't know its data type.
The node library is definitely not a finished product and anything you create is certainly encouraged to be shared.