@bitbar/cloud-api-client 0.54.1 → 0.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,6 +20,7 @@ import APIAdminResourceNotificationPlan from "./APIAdminResourceNotificationPlan
20
20
  import APIAdminResourceService from "./APIAdminResourceService";
21
21
  import APIAdminListServices from "./APIAdminListServices";
22
22
  import APIAdminListStatistics from "./APIAdminListStatistics";
23
+ import APIAdminResourceDeviceModel from "./APIAdminResourceDeviceModel";
23
24
  declare class APIAdminResource extends APIResource {
24
25
  constructor(parent: object);
25
26
  accessGroups(): APIList;
@@ -42,7 +43,7 @@ declare class APIAdminResource extends APIResource {
42
43
  devicesForModel(id: number): APIAdminListDevices;
43
44
  deviceStatuses(): APIList;
44
45
  deviceModels(): APIList;
45
- deviceModel(id: number): APIResource;
46
+ deviceModel(id: number): APIAdminResourceDeviceModel;
46
47
  deviceProblems(): APIList;
47
48
  deviceModelCriterias(): APIList;
48
49
  deviceModelCriteria(id: number): APIResource;
@@ -0,0 +1,7 @@
1
+ import APIResource from './APIResource';
2
+ import APIList from './APIList';
3
+ declare class APIAdminResourceDeviceModel extends APIResource {
4
+ constructor(parent: object, id: number);
5
+ browsers(): APIList;
6
+ }
7
+ export default APIAdminResourceDeviceModel;
@@ -1,4 +1,4 @@
1
- /* @bitbar/cloud-api-client v0.54.0 | Copyright 2021 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
1
+ /* @bitbar/cloud-api-client v0.55.0 | Copyright 2021 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@bitbar/finka'), require('axios'), require('qs')) :
4
4
  typeof define === 'function' && define.amd ? define(['@bitbar/finka', 'axios', 'qs'], factory) :
@@ -11,7 +11,7 @@
11
11
 
12
12
  finka();
13
13
 
14
- var version = "0.54.0";
14
+ var version = "0.55.0";
15
15
 
16
16
  var ALLOWED_HTTP_METHODS;
17
17
  (function (ALLOWED_HTTP_METHODS) {
@@ -1490,6 +1490,19 @@
1490
1490
  }
1491
1491
  }
1492
1492
 
1493
+ class APIAdminResourceDeviceModel extends APIResource {
1494
+ constructor(parent, id) {
1495
+ if (id == null) {
1496
+ throw new Error('Resource ID cannot be null!');
1497
+ }
1498
+ super(parent);
1499
+ this.push('device-models', id);
1500
+ }
1501
+ browsers() {
1502
+ return new APIList(this).push('browsers');
1503
+ }
1504
+ }
1505
+
1493
1506
  class APIAdminResource extends APIResource {
1494
1507
  constructor(parent) {
1495
1508
  super(parent);
@@ -1574,10 +1587,7 @@
1574
1587
  return new APIList(this).push('admin', 'device-models');
1575
1588
  }
1576
1589
  deviceModel(id) {
1577
- if (id == null) {
1578
- throw new Error('Resource ID cannot be null!');
1579
- }
1580
- return new APIResource(this).push('admin', 'device-models', id);
1590
+ return new APIAdminResourceDeviceModel(this, id);
1581
1591
  }
1582
1592
  deviceProblems() {
1583
1593
  return new APIList(this).push('admin', 'device-problems');