@bitbar/cloud-api-client 1.1.3 → 1.1.5
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/APIResourceAccount.d.ts +11 -0
- package/dist/api/APIResourceBillingPeriod.d.ts +2 -2
- package/dist/api/APIResourceUser.d.ts +1 -9
- package/dist/api/APIUserResourceAccount.d.ts +0 -3
- package/dist/api/lists.d.ts +0 -2
- package/dist/api/models/User.d.ts +1 -0
- package/dist/bitbar-cloud-api-client.js +38 -51
- 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 +1 -1
- package/dist/api/APIListDeviceTime.d.ts +0 -11
|
@@ -6,14 +6,25 @@ import { AccountPreferences } from './models/AccountPreference';
|
|
|
6
6
|
import { CollectionBasicQueryParams, NoQueryParams, SimpleCollectionResponse } from './models/HTTP';
|
|
7
7
|
import { User, UserData } from './models/User';
|
|
8
8
|
import { APIList } from './APIList';
|
|
9
|
+
import { BillingPeriod, BillingPeriodQueryParams } from './models/BillingPeriod';
|
|
10
|
+
import { APIResourceBillingPeriod } from './APIResourceBillingPeriod';
|
|
11
|
+
import { AccountServicePayment } from './models/AccountServicePayment';
|
|
12
|
+
import { UserDeviceTimeSummary } from './models/UserDeviceTimeSummary';
|
|
13
|
+
import { DeviceTimeSummaryQueryParams } from './models/Device';
|
|
14
|
+
import { DeviceTimeQueryParams, UserDeviceTime } from './models/UserDeviceTime';
|
|
9
15
|
export declare class APIResourceAccount extends APIResource<Account> {
|
|
10
16
|
constructor(parent: API, id: number);
|
|
11
17
|
concurrencyStatus(): APIResource<AccountConcurrencyStatusMap, NoQueryParams, void>;
|
|
18
|
+
deviceTime(): APIList<UserDeviceTime, DeviceTimeQueryParams, void>;
|
|
19
|
+
deviceTimeSummary(): APIList<UserDeviceTimeSummary, DeviceTimeSummaryQueryParams, void>;
|
|
12
20
|
preferences(): APIResource<AccountPreferences, NoQueryParams, SimpleCollectionResponse<AccountPreferences>>;
|
|
13
21
|
users(): APIList<User, CollectionBasicQueryParams, UserData>;
|
|
14
22
|
removeUser(id: number): APIResource<User, NoQueryParams, void>;
|
|
15
23
|
disableUser(id: number): APIResource<User, NoQueryParams, void>;
|
|
16
24
|
enableUser(id: number): APIResource<User, NoQueryParams, void>;
|
|
17
25
|
resendActivation(id: number): APIResource<User, NoQueryParams, void>;
|
|
26
|
+
billingPeriods(): APIList<BillingPeriod, CollectionBasicQueryParams, void>;
|
|
27
|
+
billingPeriod(id: number): APIResourceBillingPeriod;
|
|
28
|
+
serviceBillingPeriod(id: number): APIResource<AccountServicePayment, BillingPeriodQueryParams, void>;
|
|
18
29
|
}
|
|
19
30
|
export default APIResourceAccount;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { APIResource } from './APIResource';
|
|
2
|
-
import { APIResourceUser } from './APIResourceUser';
|
|
3
2
|
import { BillingPeriod } from './models/BillingPeriod';
|
|
4
3
|
import { NoData, NoQueryParams } from './models/HTTP';
|
|
4
|
+
import { APIResourceAccount } from './APIResourceAccount';
|
|
5
5
|
export declare class APIResourceBillingPeriod extends APIResource<BillingPeriod, NoQueryParams, NoData> {
|
|
6
|
-
constructor(parent:
|
|
6
|
+
constructor(parent: APIResourceAccount, id: number);
|
|
7
7
|
receipt(): APIResource<void, NoQueryParams, void>;
|
|
8
8
|
}
|
|
9
9
|
export default APIResourceBillingPeriod;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { API } from '../API';
|
|
2
2
|
import { APIList } from './APIList';
|
|
3
|
-
import { APIListDeviceTime } from './APIListDeviceTime';
|
|
4
3
|
import { APIListFiles } from './APIListFiles';
|
|
5
4
|
import { APIListNotifications } from './APIListNotifications';
|
|
6
5
|
import { APIListRuns } from './APIListRuns';
|
|
@@ -8,7 +7,6 @@ import { APIListServices } from './APIListServices';
|
|
|
8
7
|
import { APIListSmartbearTunnels } from './APIListSmartbearTunnels';
|
|
9
8
|
import { APIResource } from './APIResource';
|
|
10
9
|
import { APIResourceAccessGroup } from './APIResourceAccessGroup';
|
|
11
|
-
import { APIResourceBillingPeriod } from './APIResourceBillingPeriod';
|
|
12
10
|
import { APIResourceDeviceGroup } from './APIResourceDeviceGroup';
|
|
13
11
|
import { APIResourceDeviceSessionStandalone } from './APIResourceDeviceSessionStandalone';
|
|
14
12
|
import { APIResourceFile } from './APIResourceFile';
|
|
@@ -16,7 +14,6 @@ import { APIResourceNotification } from './APIResourceNotification';
|
|
|
16
14
|
import { APIResourceProject } from './APIResourceProject';
|
|
17
15
|
import { APIUserResourceAccount } from './APIUserResourceAccount';
|
|
18
16
|
import { AccessGroup, AccessGroupsData } from './models/AccessGroup';
|
|
19
|
-
import { BillingPeriod } from './models/BillingPeriod';
|
|
20
17
|
import { DeviceGroup, DeviceGroupData, DeviceGroupIdsData, DeviceGroupWithPublicParams } from './models/DeviceGroup';
|
|
21
18
|
import { DeviceStatistics } from './models/DeviceStatistics';
|
|
22
19
|
import { DeviceUsage } from './models/DeviceUsage';
|
|
@@ -24,21 +21,16 @@ import { Framework } from './models/Framework';
|
|
|
24
21
|
import { Project, UserProjectData, UserProjectQueryParams } from './models/Project';
|
|
25
22
|
import { Service } from './models/Service';
|
|
26
23
|
import { User } from './models/User';
|
|
27
|
-
import { UserDeviceTimeSummary } from './models/UserDeviceTimeSummary';
|
|
28
24
|
import { UiPreferencesData, UserPreference } from './models/UserPreference';
|
|
29
25
|
import { StatisticQueryParams, UserStatistics } from './models/UserStatistics';
|
|
30
26
|
import { DeviceSession, DeviceSessionData, DeviceSessionQueryParams } from './models/DeviceSession';
|
|
31
27
|
import { CollectionBasicQueryParams, NoQueryParams } from './models/HTTP';
|
|
32
|
-
import { DeviceStatisticQueryParam,
|
|
28
|
+
import { DeviceStatisticQueryParam, DeviceUsageQueryParams } from './models/Device';
|
|
33
29
|
export declare class APIResourceUser extends APIResource<User> {
|
|
34
30
|
constructor(parent: API, id: number | 'me');
|
|
35
31
|
account(): APIUserResourceAccount;
|
|
36
|
-
deviceTime(): APIListDeviceTime;
|
|
37
|
-
deviceTimeSummary(): APIList<UserDeviceTimeSummary, DeviceTimeSummaryQueryParams, void>;
|
|
38
32
|
services(): APIListServices;
|
|
39
33
|
service(id: number): APIResource<Service, NoQueryParams, void>;
|
|
40
|
-
billingPeriods(): APIList<BillingPeriod, CollectionBasicQueryParams, void>;
|
|
41
|
-
billingPeriod(id: number): APIResourceBillingPeriod;
|
|
42
34
|
deviceGroups(): APIList<DeviceGroup, DeviceGroupWithPublicParams, DeviceGroupIdsData | Omit<DeviceGroupData, "displayName">>;
|
|
43
35
|
deviceGroup(id: number): APIResourceDeviceGroup;
|
|
44
36
|
deviceSessions(): APIList<DeviceSession, DeviceSessionQueryParams, DeviceSessionData>;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { APIResource } from './APIResource';
|
|
2
2
|
import { APIResourceUser } from './APIResourceUser';
|
|
3
3
|
import { Account } from './models/Account';
|
|
4
|
-
import { AccountServicePayment } from './models/AccountServicePayment';
|
|
5
|
-
import { BillingPeriodQueryParams } from './models/BillingPeriod';
|
|
6
4
|
import { NoQueryParams } from './models/HTTP';
|
|
7
5
|
import { VisualTestAccess } from './models/VisualTest';
|
|
8
6
|
export declare class APIUserResourceAccount extends APIResource<Account> {
|
|
9
7
|
constructor(parent: APIResourceUser);
|
|
10
|
-
serviceBillingPeriod(id: number): APIResource<AccountServicePayment, BillingPeriodQueryParams, void>;
|
|
11
8
|
visualTestAccess(): APIResource<VisualTestAccess, NoQueryParams, VisualTestAccess>;
|
|
12
9
|
}
|
|
13
10
|
export default APIUserResourceAccount;
|
package/dist/api/lists.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { APIList as OriginAPIList } from './APIList';
|
|
2
2
|
import { APIListCleanupConfigurations as OriginAPIListCleanupConfigurations } from './APIListCleanupConfigurations';
|
|
3
3
|
import { APIListDevices as OriginAPIListDevices } from './APIListDevices';
|
|
4
|
-
import { APIListDeviceTime as OriginAPIListDeviceTime } from './APIListDeviceTime';
|
|
5
4
|
import { APIListFiles as OriginAPIListFiles } from './APIListFiles';
|
|
6
5
|
import { APIListNotifications as OriginAPIListNotifications } from './APIListNotifications';
|
|
7
6
|
import { APIListProperties as OriginAPIListProperties } from './APIListProperties';
|
|
@@ -12,7 +11,6 @@ import { APIListUsers as OriginAPIListUsers } from './APIListUsers';
|
|
|
12
11
|
export declare type APIList = InstanceType<typeof OriginAPIList>;
|
|
13
12
|
export declare type APIListCleanupConfigurations = InstanceType<typeof OriginAPIListCleanupConfigurations>;
|
|
14
13
|
export declare type APIListDevices = InstanceType<typeof OriginAPIListDevices>;
|
|
15
|
-
export declare type APIListDeviceTime = InstanceType<typeof OriginAPIListDeviceTime>;
|
|
16
14
|
export declare type APIListFiles = InstanceType<typeof OriginAPIListFiles>;
|
|
17
15
|
export declare type APIListNotifications = InstanceType<typeof OriginAPIListNotifications>;
|
|
18
16
|
export declare type APIListProperties = InstanceType<typeof OriginAPIListProperties>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @bitbar/cloud-api-client v1.1.
|
|
1
|
+
/* @bitbar/cloud-api-client v1.1.5 | Copyright 2024 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('axios'), require('@bitbar/finka'), require('qs'), require('node-abort-controller')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'axios', '@bitbar/finka', 'qs', 'node-abort-controller'], factory) :
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
11
11
|
var finka__default = /*#__PURE__*/_interopDefaultLegacy(finka);
|
|
12
12
|
|
|
13
|
-
var version = "1.1.
|
|
13
|
+
var version = "1.1.5";
|
|
14
14
|
|
|
15
15
|
/******************************************************************************
|
|
16
16
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1442,6 +1442,21 @@
|
|
|
1442
1442
|
}
|
|
1443
1443
|
}
|
|
1444
1444
|
|
|
1445
|
+
class APIResourceBillingPeriod extends APIResource {
|
|
1446
|
+
constructor(parent, id) {
|
|
1447
|
+
if (id == null) {
|
|
1448
|
+
throw new Error('Resource ID cannot be null!');
|
|
1449
|
+
}
|
|
1450
|
+
super(parent);
|
|
1451
|
+
this.push('billing-periods', id);
|
|
1452
|
+
}
|
|
1453
|
+
receipt() {
|
|
1454
|
+
return new APIResource(this).push('receipt').setRequestConfig({
|
|
1455
|
+
responseType: 'arraybuffer'
|
|
1456
|
+
});
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1445
1460
|
class APIResourceAccount extends APIResource {
|
|
1446
1461
|
constructor(parent, id) {
|
|
1447
1462
|
if (id == null) {
|
|
@@ -1453,6 +1468,12 @@
|
|
|
1453
1468
|
concurrencyStatus() {
|
|
1454
1469
|
return new APIResource(this).push('concurrency-status');
|
|
1455
1470
|
}
|
|
1471
|
+
deviceTime() {
|
|
1472
|
+
return new APIList(this).push('device-time');
|
|
1473
|
+
}
|
|
1474
|
+
deviceTimeSummary() {
|
|
1475
|
+
return new APIList(this).push('device-time-summary');
|
|
1476
|
+
}
|
|
1456
1477
|
preferences() {
|
|
1457
1478
|
return new APIResource(this).push('preferences');
|
|
1458
1479
|
}
|
|
@@ -1471,6 +1492,21 @@
|
|
|
1471
1492
|
resendActivation(id) {
|
|
1472
1493
|
return new APIResource(this).push('users', id, 'resend-activation').post();
|
|
1473
1494
|
}
|
|
1495
|
+
billingPeriods() {
|
|
1496
|
+
return new APIList(this).push('billing-periods');
|
|
1497
|
+
}
|
|
1498
|
+
billingPeriod(id) {
|
|
1499
|
+
return new APIResourceBillingPeriod(this, id);
|
|
1500
|
+
}
|
|
1501
|
+
serviceBillingPeriod(id) {
|
|
1502
|
+
if (id == null) {
|
|
1503
|
+
throw new Error('Resource ID cannot be null!');
|
|
1504
|
+
}
|
|
1505
|
+
const billingPeriod = new APIResource(this);
|
|
1506
|
+
billingPeriod.last += '-services';
|
|
1507
|
+
billingPeriod.push(id, 'billing-period');
|
|
1508
|
+
return billingPeriod;
|
|
1509
|
+
}
|
|
1474
1510
|
}
|
|
1475
1511
|
|
|
1476
1512
|
class APIResourceBroker extends APIResource {
|
|
@@ -1515,19 +1551,6 @@
|
|
|
1515
1551
|
}
|
|
1516
1552
|
}
|
|
1517
1553
|
|
|
1518
|
-
class APIListDeviceTime extends APIList {
|
|
1519
|
-
constructor(parent) {
|
|
1520
|
-
super(parent);
|
|
1521
|
-
this.push('device-time');
|
|
1522
|
-
}
|
|
1523
|
-
reserved() {
|
|
1524
|
-
return new APIEntity(this).push('reserved');
|
|
1525
|
-
}
|
|
1526
|
-
used() {
|
|
1527
|
-
return new APIEntity(this).push('used');
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
|
|
1531
1554
|
class APIListFiles extends APIList {
|
|
1532
1555
|
constructor(parent) {
|
|
1533
1556
|
super(parent);
|
|
@@ -1602,21 +1625,6 @@
|
|
|
1602
1625
|
}
|
|
1603
1626
|
}
|
|
1604
1627
|
|
|
1605
|
-
class APIResourceBillingPeriod extends APIResource {
|
|
1606
|
-
constructor(parent, id) {
|
|
1607
|
-
if (id == null) {
|
|
1608
|
-
throw new Error('Resource ID cannot be null!');
|
|
1609
|
-
}
|
|
1610
|
-
super(parent);
|
|
1611
|
-
this.push('billing-periods', id);
|
|
1612
|
-
}
|
|
1613
|
-
receipt() {
|
|
1614
|
-
return new APIResource(this).push('receipt').setRequestConfig({
|
|
1615
|
-
responseType: 'arraybuffer'
|
|
1616
|
-
});
|
|
1617
|
-
}
|
|
1618
|
-
}
|
|
1619
|
-
|
|
1620
1628
|
class APIResourceNotification extends APIResource {
|
|
1621
1629
|
constructor(parent, id) {
|
|
1622
1630
|
if (id == null) {
|
|
@@ -1635,15 +1643,6 @@
|
|
|
1635
1643
|
super(parent);
|
|
1636
1644
|
this.push('account');
|
|
1637
1645
|
}
|
|
1638
|
-
serviceBillingPeriod(id) {
|
|
1639
|
-
if (id == null) {
|
|
1640
|
-
throw new Error('Resource ID cannot be null!');
|
|
1641
|
-
}
|
|
1642
|
-
const a = new APIResource(this);
|
|
1643
|
-
a.last += '-services';
|
|
1644
|
-
a.push(id, 'billing-period');
|
|
1645
|
-
return a;
|
|
1646
|
-
}
|
|
1647
1646
|
visualTestAccess() {
|
|
1648
1647
|
return new APIResource(this).push('visualtest', 'access');
|
|
1649
1648
|
}
|
|
@@ -1668,12 +1667,6 @@
|
|
|
1668
1667
|
account() {
|
|
1669
1668
|
return new APIUserResourceAccount(this);
|
|
1670
1669
|
}
|
|
1671
|
-
deviceTime() {
|
|
1672
|
-
return new APIListDeviceTime(this);
|
|
1673
|
-
}
|
|
1674
|
-
deviceTimeSummary() {
|
|
1675
|
-
return new APIList(this).push('device-time-summary');
|
|
1676
|
-
}
|
|
1677
1670
|
services() {
|
|
1678
1671
|
return new APIListServices(this);
|
|
1679
1672
|
}
|
|
@@ -1683,12 +1676,6 @@
|
|
|
1683
1676
|
}
|
|
1684
1677
|
return new APIResource(this).push('services', id);
|
|
1685
1678
|
}
|
|
1686
|
-
billingPeriods() {
|
|
1687
|
-
return new APIList(this).push('billing-periods');
|
|
1688
|
-
}
|
|
1689
|
-
billingPeriod(id) {
|
|
1690
|
-
return new APIResourceBillingPeriod(this, id);
|
|
1691
|
-
}
|
|
1692
1679
|
deviceGroups() {
|
|
1693
1680
|
return new APIList(this).push('device-groups');
|
|
1694
1681
|
}
|