@bitbar/cloud-api-client 1.0.16 → 1.0.17
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/APIEntity.d.ts +1 -0
- package/dist/api/APIResource.d.ts +0 -1
- package/dist/api/APIResourceUser.d.ts +2 -2
- package/dist/api/models/DeviceGroup.d.ts +4 -1
- package/dist/api/models/UserStatistics.d.ts +2 -0
- package/dist/bitbar-cloud-api-client.js +6 -6
- 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/dist/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/api/APIEntity.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare class APIEntity<RESPONSE = any, QUERY_PARAMS extends QueryParams
|
|
|
23
23
|
method(name: Method): this;
|
|
24
24
|
get(): this;
|
|
25
25
|
post(): this;
|
|
26
|
+
delete(): this;
|
|
26
27
|
params<T extends keyof QUERY_PARAMS = keyof QUERY_PARAMS>(params: Pick<QUERY_PARAMS, T>): this;
|
|
27
28
|
getParams(): Partial<QUERY_PARAMS>;
|
|
28
29
|
removeParam(key: keyof QUERY_PARAMS): this;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { APIEntity } from './APIEntity';
|
|
2
2
|
import { QueryParams } from './models/HTTP';
|
|
3
3
|
export declare class APIResource<RESPONSE = any, QUERY_PARAMS extends QueryParams | void = QueryParams, DATA = QUERY_PARAMS> extends APIEntity<RESPONSE, QUERY_PARAMS, DATA> {
|
|
4
|
-
delete(): this;
|
|
5
4
|
}
|
|
6
5
|
export default APIResource;
|
|
@@ -17,7 +17,7 @@ import { APIResourceProject } from './APIResourceProject';
|
|
|
17
17
|
import { APIUserResourceAccount } from './APIUserResourceAccount';
|
|
18
18
|
import { AccessGroup, AccessGroupsData } from './models/AccessGroup';
|
|
19
19
|
import { BillingPeriod } from './models/BillingPeriod';
|
|
20
|
-
import { DeviceGroup, DeviceGroupIdsData, DeviceGroupWithPublicParams } from './models/DeviceGroup';
|
|
20
|
+
import { DeviceGroup, DeviceGroupData, DeviceGroupIdsData, DeviceGroupWithPublicParams } from './models/DeviceGroup';
|
|
21
21
|
import { DeviceStatistics } from './models/DeviceStatistics';
|
|
22
22
|
import { DeviceUsage } from './models/DeviceUsage';
|
|
23
23
|
import { Framework } from './models/Framework';
|
|
@@ -39,7 +39,7 @@ export declare class APIResourceUser extends APIResource {
|
|
|
39
39
|
service(id: number): APIResource<Service, NoQueryParams, void>;
|
|
40
40
|
billingPeriods(): APIList<BillingPeriod, CollectionBasicQueryParams, void>;
|
|
41
41
|
billingPeriod(id: number): APIResourceBillingPeriod;
|
|
42
|
-
deviceGroups(): APIList<DeviceGroup, DeviceGroupWithPublicParams, DeviceGroupIdsData
|
|
42
|
+
deviceGroups(): APIList<DeviceGroup, DeviceGroupWithPublicParams, DeviceGroupIdsData | Omit<DeviceGroupData, "displayName">>;
|
|
43
43
|
deviceGroup(id: number): APIResourceDeviceGroup;
|
|
44
44
|
deviceSessions(): APIList<DeviceSession, DeviceSessionQueryParams, DeviceSessionData>;
|
|
45
45
|
deviceSession(id: number): APIResourceDeviceSessionStandalone;
|
|
@@ -23,4 +23,7 @@ export interface DeviceGroupParams extends CollectionBasicQueryParams {
|
|
|
23
23
|
export interface DeviceGroupWithPublicParams extends CollectionBasicQueryParams {
|
|
24
24
|
withPublic: boolean;
|
|
25
25
|
}
|
|
26
|
-
export declare type DeviceGroupData = Pick<DeviceGroup, 'displayName' | 'name' | 'osType'
|
|
26
|
+
export declare type DeviceGroupData = Pick<DeviceGroup, 'displayName' | 'name' | 'osType'> | {
|
|
27
|
+
deviceIds?: Array<number>;
|
|
28
|
+
selectorIds?: Array<number>;
|
|
29
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @bitbar/cloud-api-client v1.0.
|
|
1
|
+
/* @bitbar/cloud-api-client v1.0.17 | Copyright 2023 (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.0.
|
|
13
|
+
var version = "1.0.17";
|
|
14
14
|
|
|
15
15
|
/******************************************************************************
|
|
16
16
|
Copyright (c) Microsoft Corporation.
|
|
@@ -245,6 +245,9 @@
|
|
|
245
245
|
post() {
|
|
246
246
|
return this.method('POST');
|
|
247
247
|
}
|
|
248
|
+
delete() {
|
|
249
|
+
return this.method('DELETE');
|
|
250
|
+
}
|
|
248
251
|
params(params) {
|
|
249
252
|
this.setRequestConfig({ params });
|
|
250
253
|
return this;
|
|
@@ -391,9 +394,6 @@
|
|
|
391
394
|
}
|
|
392
395
|
|
|
393
396
|
class APIResource extends APIEntity {
|
|
394
|
-
delete() {
|
|
395
|
-
return this.method('DELETE');
|
|
396
|
-
}
|
|
397
397
|
}
|
|
398
398
|
|
|
399
399
|
class APIListCleanupConfigurations extends APIList {
|
|
@@ -1429,7 +1429,7 @@
|
|
|
1429
1429
|
class APIListUsers extends APIList {
|
|
1430
1430
|
constructor(parent) {
|
|
1431
1431
|
super(parent);
|
|
1432
|
-
this.ALLOWED_HTTP_METHODS = ['POST'];
|
|
1432
|
+
this.ALLOWED_HTTP_METHODS = ['GET', 'POST'];
|
|
1433
1433
|
this.push('users');
|
|
1434
1434
|
}
|
|
1435
1435
|
activate() {
|