@@ -476,14 +476,6 @@ class Cayenne {
476
476
return this . auth . send ( this . service , 'GET' , url ) ;
477
477
}
478
478
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
-
487
479
/**
488
480
* Gets a device's meta data by device type id
489
481
* @param {String } deviceTypeId
@@ -509,16 +501,6 @@ class Cayenne {
509
501
: false
510
502
} ) ;
511
503
}
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
-
522
504
/**
523
505
* Gets a device's meta data by device type id
524
506
* @param {String } deviceTypeId
@@ -556,14 +538,6 @@ class Cayenne {
556
538
return this . auth . send ( this . service , 'GET' , url ) ;
557
539
}
558
540
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
- }
567
541
568
542
/**
569
543
* Get a device type's uses
@@ -574,15 +548,6 @@ class Cayenne {
574
548
return this . auth . send ( this . service , 'GET' , url ) ;
575
549
}
576
550
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
-
586
551
/**
587
552
* Creates a new device type
588
553
* @param {Object } payload
@@ -725,7 +690,7 @@ class Cayenne {
725
690
* @param {String } [payload.ipso]
726
691
*/
727
692
updateDeviceTypeUse ( deviceTypeId , useId , payload ) {
728
- const url = `${ this . url } /things/types/${ deviceTypeId } /meta /${ useId } ` ;
693
+ const url = `${ this . url } /things/types/${ deviceTypeId } /uses /${ useId } ` ;
729
694
return this . auth . send ( this . service , 'PUT' , url , { payload } ) ;
730
695
}
731
696
0 commit comments