@bitbar/cloud-api-client 0.53.0 → 0.55.1
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.
- package/dist/api/APIAdminResource.d.ts +6 -3
- package/dist/api/APIAdminResourceDeviceModel.d.ts +7 -0
- package/dist/api/APIAdminResourceDeviceSession.d.ts +1 -2
- package/dist/bitbar-cloud-api-client.js +29 -10
- package/dist/bitbar-cloud-api-client.js.map +1 -1
- package/dist/bitbar-cloud-api-client.min.js +2 -2
- package/dist/bitbar-cloud-api-client.min.js.map +1 -1
- package/package.json +9 -9
|
@@ -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;
|
|
@@ -31,8 +32,8 @@ declare class APIAdminResource extends APIResource {
|
|
|
31
32
|
activities(): APIList;
|
|
32
33
|
billingPeriods(): APIList;
|
|
33
34
|
billingPeriod(id: number): APIResource;
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
browsers(): APIList;
|
|
36
|
+
browser(id: number): APIResource;
|
|
36
37
|
clusters(): APIList;
|
|
37
38
|
cluster(id: number): APIAdminResourceCluster;
|
|
38
39
|
countryVatRates(): 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):
|
|
46
|
+
deviceModel(id: number): APIAdminResourceDeviceModel;
|
|
46
47
|
deviceProblems(): APIList;
|
|
47
48
|
deviceModelCriterias(): APIList;
|
|
48
49
|
deviceModelCriteria(id: number): APIResource;
|
|
@@ -70,6 +71,8 @@ declare class APIAdminResource extends APIResource {
|
|
|
70
71
|
notificationPlans(): APIAdminListNotificationPlans;
|
|
71
72
|
notificationPlan(id: number): APIAdminResourceNotificationPlan;
|
|
72
73
|
overview(): APIResource;
|
|
74
|
+
pools(): APIList;
|
|
75
|
+
pool(id: number): APIResource;
|
|
73
76
|
projects(): APIList;
|
|
74
77
|
project(id: number): APIResourceProject;
|
|
75
78
|
roles(): APIList;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import APIResource from './APIResource';
|
|
2
1
|
import APIResourceDeviceSessionCommon from './APIResourceDeviceSessionCommon';
|
|
3
2
|
declare class APIAdminResourceDeviceSession extends APIResourceDeviceSessionCommon {
|
|
4
|
-
changeBillable(billable: boolean): APIResource;
|
|
3
|
+
changeBillable(billable: boolean): import("./APIResource").default;
|
|
5
4
|
}
|
|
6
5
|
export default APIAdminResourceDeviceSession;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @bitbar/cloud-api-client v0.
|
|
1
|
+
/* @bitbar/cloud-api-client v0.55.1 | 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.
|
|
14
|
+
var version = "0.55.1";
|
|
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('admin', '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);
|
|
@@ -1527,11 +1540,14 @@
|
|
|
1527
1540
|
}
|
|
1528
1541
|
return new APIResource(this).push('admin', 'billing-periods', id);
|
|
1529
1542
|
}
|
|
1530
|
-
|
|
1531
|
-
return new APIList(this).push('admin', '
|
|
1543
|
+
browsers() {
|
|
1544
|
+
return new APIList(this).push('admin', 'browsers');
|
|
1532
1545
|
}
|
|
1533
|
-
|
|
1534
|
-
|
|
1546
|
+
browser(id) {
|
|
1547
|
+
if (id == null) {
|
|
1548
|
+
throw new Error('Resource ID cannot be null!');
|
|
1549
|
+
}
|
|
1550
|
+
return new APIResource(this).push('admin', 'browsers', id);
|
|
1535
1551
|
}
|
|
1536
1552
|
clusters() {
|
|
1537
1553
|
return new APIList(this).push('clusters');
|
|
@@ -1571,10 +1587,7 @@
|
|
|
1571
1587
|
return new APIList(this).push('admin', 'device-models');
|
|
1572
1588
|
}
|
|
1573
1589
|
deviceModel(id) {
|
|
1574
|
-
|
|
1575
|
-
throw new Error('Resource ID cannot be null!');
|
|
1576
|
-
}
|
|
1577
|
-
return new APIResource(this).push('admin', 'device-models', id);
|
|
1590
|
+
return new APIAdminResourceDeviceModel(this, id);
|
|
1578
1591
|
}
|
|
1579
1592
|
deviceProblems() {
|
|
1580
1593
|
return new APIList(this).push('admin', 'device-problems');
|
|
@@ -1665,6 +1678,12 @@
|
|
|
1665
1678
|
overview() {
|
|
1666
1679
|
return new APIResource(this).push('admin', 'overview');
|
|
1667
1680
|
}
|
|
1681
|
+
pools() {
|
|
1682
|
+
return new APIList(this).push('admin', 'pools');
|
|
1683
|
+
}
|
|
1684
|
+
pool(id) {
|
|
1685
|
+
return new APIResource(this).push('admin', 'pools', id);
|
|
1686
|
+
}
|
|
1668
1687
|
projects() {
|
|
1669
1688
|
return new APIList(this).push('projects');
|
|
1670
1689
|
}
|