Skip to content

Commit e571a8b

Browse files
committed
Feat: using device templates on Tina api
1 parent 7ba810e commit e571a8b

File tree

1 file changed

+1
-36
lines changed

1 file changed

+1
-36
lines changed

lib/Services/cayenne.js

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -476,14 +476,6 @@ class Cayenne {
476476
return this.auth.send(this.service, 'GET', url);
477477
}
478478

479-
/**
480-
* Count device types
481-
*/
482-
countDeviceTypes() {
483-
const url = `${this.url}/things/types/count`;
484-
return this.auth.send(this.service, 'GET', url);
485-
}
486-
487479
/**
488480
* Gets a device's meta data by device type id
489481
* @param {String} deviceTypeId
@@ -509,16 +501,6 @@ class Cayenne {
509501
: false
510502
});
511503
}
512-
513-
/**
514-
* Count a device's meta data by device type id
515-
* @param {String} deviceTypeId
516-
*/
517-
countDeviceTypeMeta(deviceTypeId) {
518-
const url = `${this.url}/things/types/${deviceTypeId}/meta/count`;
519-
return this.auth.send(this.service, 'GET', url);
520-
}
521-
522504
/**
523505
* Gets a device's meta data by device type id
524506
* @param {String} deviceTypeId
@@ -556,14 +538,6 @@ class Cayenne {
556538
return this.auth.send(this.service, 'GET', url);
557539
}
558540

559-
/**
560-
* Count a device's channel meta by device type id
561-
* @param {String} deviceTypeId
562-
*/
563-
countDeviceTypeChannels(deviceTypeId) {
564-
const url = `${this.url}/things/types/${deviceTypeId}/channels/count`;
565-
return this.auth.send(this.service, 'GET', url);
566-
}
567541

568542
/**
569543
* Get a device type's uses
@@ -574,15 +548,6 @@ class Cayenne {
574548
return this.auth.send(this.service, 'GET', url);
575549
}
576550

577-
/**
578-
* Count a device type's uses
579-
* @param {String} deviceTypeId
580-
*/
581-
countDeviceTypeUses(deviceTypeId) {
582-
const url = `${this.url}/things/types/${deviceTypeId}/uses/count`;
583-
return this.auth.send(this.service, 'GET', url);
584-
}
585-
586551
/**
587552
* Creates a new device type
588553
* @param {Object} payload
@@ -725,7 +690,7 @@ class Cayenne {
725690
* @param {String} [payload.ipso]
726691
*/
727692
updateDeviceTypeUse(deviceTypeId, useId, payload) {
728-
const url = `${this.url}/things/types/${deviceTypeId}/meta/${useId}`;
693+
const url = `${this.url}/things/types/${deviceTypeId}/uses/${useId}`;
729694
return this.auth.send(this.service, 'PUT', url, { payload });
730695
}
731696

0 commit comments

Comments
 (0)