@@ -507,14 +507,6 @@ class Cayenne extends Request {
507
507
return this . send ( 'GET' , path ) ;
508
508
}
509
509
510
- /**
511
- * Count device types
512
- */
513
- countDeviceTypes ( ) {
514
- const url = `/things/types/count` ;
515
- return this . send ( 'GET' , url ) ;
516
- }
517
-
518
510
/**
519
511
* Gets a device's meta data by device type id
520
512
* @param {string } deviceTypeId
@@ -536,16 +528,6 @@ class Cayenne extends Request {
536
528
: false
537
529
} ) ;
538
530
}
539
-
540
- /**
541
- * Count a device's meta data by device type id
542
- * @param {String } deviceTypeId
543
- */
544
- countDeviceTypeMeta ( deviceTypeId ) {
545
- const url = `/things/types/${ deviceTypeId } /meta/count` ;
546
- return this . send ( 'GET' , url ) ;
547
- }
548
-
549
531
/**
550
532
* Gets a device's meta data by device type id
551
533
* @param {string } deviceTypeId
@@ -582,15 +564,6 @@ class Cayenne extends Request {
582
564
return this . send ( 'GET' , path ) ;
583
565
}
584
566
585
- /**
586
- * Count a device's channel meta by device type id
587
- * @param {String } deviceTypeId
588
- */
589
- countDeviceTypeChannels ( deviceTypeId ) {
590
- const url = `/things/types/${ deviceTypeId } /channels/count` ;
591
- return this . send ( 'GET' , url ) ;
592
- }
593
-
594
567
/**
595
568
* Get a device type's uses
596
569
* @param {string } deviceTypeId
@@ -600,15 +573,6 @@ class Cayenne extends Request {
600
573
return this . send ( 'GET' , path ) ;
601
574
}
602
575
603
- /**
604
- * Count a device type's uses
605
- * @param {String } deviceTypeId
606
- */
607
- countDeviceTypeUses ( deviceTypeId ) {
608
- const url = `/things/types/${ deviceTypeId } /uses/count` ;
609
- return this . send ( 'GET' , url ) ;
610
- }
611
-
612
576
/**
613
577
* Creates a new device type
614
578
* @param {Object } payload
@@ -747,7 +711,7 @@ class Cayenne extends Request {
747
711
* @param {String } [payload.ipso]
748
712
*/
749
713
updateDeviceTypeUse ( deviceTypeId , useId , payload ) {
750
- const url = `/things/types/${ deviceTypeId } /meta /${ useId } ` ;
714
+ const url = `${ this . url } /things/types/${ deviceTypeId } /uses /${ useId } ` ;
751
715
return this . send ( 'PUT' , url , { payload } ) ;
752
716
}
753
717
@@ -756,7 +720,7 @@ class Cayenne extends Request {
756
720
* @param {String } useId
757
721
*/
758
722
deleteDeviceTypeUse ( deviceTypeId , useId ) {
759
- const url = `/things/types/${ deviceTypeId } /channels /${ useId } ` ;
723
+ const url = `/things/types/${ deviceTypeId } /uses /${ useId } ` ;
760
724
return this . send ( 'DELETE' , url ) ;
761
725
}
762
726
0 commit comments