@bitbar/cloud-api-client 1.1.7 → 1.1.8
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.
|
@@ -4,6 +4,7 @@ import { APIAdminListNotificationPlans } from './APIAdminListNotificationPlans';
|
|
|
4
4
|
import { APIAdminListRuns } from './APIAdminListRuns';
|
|
5
5
|
import { APIAdminListServices } from './APIAdminListServices';
|
|
6
6
|
import { APIAdminListStatistics } from './APIAdminListStatistics';
|
|
7
|
+
import APIAdminResourceAccount from './APIAdminResourceAccount';
|
|
7
8
|
import { APIAdminResourceAccountService } from './APIAdminResourceAccountService';
|
|
8
9
|
import { APIAdminResourceCluster } from './APIAdminResourceCluster';
|
|
9
10
|
import { APIAdminResourceDevice } from './APIAdminResourceDevice';
|
|
@@ -58,7 +59,7 @@ export declare class APIAdminResource extends APIResource {
|
|
|
58
59
|
accessGroups(): APIList<AccessGroup, CollectionQueryParams, AccessGroupData>;
|
|
59
60
|
accessGroup(id: number): APIResourceAccessGroup;
|
|
60
61
|
accounts(): APIList<Account, CollectionQueryParams, any>;
|
|
61
|
-
account(id: number):
|
|
62
|
+
account(id: number): APIAdminResourceAccount;
|
|
62
63
|
accountServices(): APIList<AccountService, CollectionQueryParams, any>;
|
|
63
64
|
accountService(id: number): APIAdminResourceAccountService;
|
|
64
65
|
activities(): APIList<Activity, CollectionQueryParams, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @bitbar/cloud-api-client v1.1.
|
|
1
|
+
/* @bitbar/cloud-api-client v1.1.8 | 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.8";
|
|
14
14
|
|
|
15
15
|
/******************************************************************************
|
|
16
16
|
Copyright (c) Microsoft Corporation.
|
|
@@ -526,6 +526,22 @@
|
|
|
526
526
|
NonRequestable
|
|
527
527
|
], APIAdminListStatistics);
|
|
528
528
|
|
|
529
|
+
class APIAdminResourceAccount extends APIResource {
|
|
530
|
+
constructor(parent, id) {
|
|
531
|
+
if (id == null) {
|
|
532
|
+
throw new Error('Resource ID cannot be null!');
|
|
533
|
+
}
|
|
534
|
+
super(parent);
|
|
535
|
+
this.push('admin', 'accounts', id);
|
|
536
|
+
}
|
|
537
|
+
roles() {
|
|
538
|
+
return new APIList(this).push('roles');
|
|
539
|
+
}
|
|
540
|
+
role(id) {
|
|
541
|
+
return new APIResource(this).push('roles', id);
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
|
|
529
545
|
class APIAdminResourceAccountService extends APIResource {
|
|
530
546
|
constructor(parent, id) {
|
|
531
547
|
if (id == null) {
|
|
@@ -1161,7 +1177,7 @@
|
|
|
1161
1177
|
if (id == null) {
|
|
1162
1178
|
throw new Error('Resource ID cannot be null!');
|
|
1163
1179
|
}
|
|
1164
|
-
return new
|
|
1180
|
+
return new APIAdminResourceAccount(this, id);
|
|
1165
1181
|
}
|
|
1166
1182
|
accountServices() {
|
|
1167
1183
|
return new APIList(this).push('admin', 'account-services');
|