@bitbar/cloud-api-client 1.3.8 → 1.4.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/.nvmrc +1 -0
- package/README.md +2 -2
- package/dist/ApiConfig.d.ts +1 -1
- package/dist/api/APIListFiles.d.ts +1 -1
- package/dist/api/admin.d.ts +22 -22
- package/dist/api/index.d.ts +1 -1
- package/dist/api/lists.d.ts +10 -10
- package/dist/api/models/AccessGroup.d.ts +3 -3
- package/dist/api/models/Account.d.ts +3 -3
- package/dist/api/models/AccountConcurrencyStatusMap.d.ts +2 -2
- package/dist/api/models/AccountPreference.d.ts +2 -2
- package/dist/api/models/AccountService.d.ts +3 -3
- package/dist/api/models/AccountServicePayment.d.ts +1 -1
- package/dist/api/models/Activity.d.ts +1 -1
- package/dist/api/models/AdminDevice.d.ts +3 -3
- package/dist/api/models/AdminDeviceSession.d.ts +2 -2
- package/dist/api/models/AdminDeviceSessionStatistics.d.ts +1 -1
- package/dist/api/models/AdminDeviceType.d.ts +2 -2
- package/dist/api/models/AdminEmail.d.ts +1 -1
- package/dist/api/models/AdminError.d.ts +1 -1
- package/dist/api/models/AdminFrameworkStatistics.d.ts +1 -1
- package/dist/api/models/AdminOverview.d.ts +1 -1
- package/dist/api/models/AdminTestRun.d.ts +1 -1
- package/dist/api/models/Administrator.d.ts +1 -1
- package/dist/api/models/BillingPeriod.d.ts +2 -2
- package/dist/api/models/Broker.d.ts +1 -1
- package/dist/api/models/Browser.d.ts +3 -3
- package/dist/api/models/CleanupConfiguration.d.ts +1 -1
- package/dist/api/models/Cluster.d.ts +2 -2
- package/dist/api/models/Connection.d.ts +2 -2
- package/dist/api/models/CountryVatRate.d.ts +2 -2
- package/dist/api/models/DesktopBrowserCapabilities.d.ts +3 -3
- package/dist/api/models/Device.d.ts +6 -6
- package/dist/api/models/DeviceFilter.d.ts +3 -3
- package/dist/api/models/DeviceGroup.d.ts +2 -2
- package/dist/api/models/DeviceModel.d.ts +2 -2
- package/dist/api/models/DeviceModelCriterion.d.ts +2 -2
- package/dist/api/models/DeviceModelPool.d.ts +2 -2
- package/dist/api/models/DeviceProblem.d.ts +2 -2
- package/dist/api/models/DeviceSession.d.ts +8 -8
- package/dist/api/models/DeviceSessionDataAvailability.d.ts +1 -1
- package/dist/api/models/DeviceStatistics.d.ts +1 -1
- package/dist/api/models/DeviceStatus.d.ts +1 -1
- package/dist/api/models/DeviceTimeCountSessionReportEntry.d.ts +1 -1
- package/dist/api/models/DeviceTimeStepTimeReportEntry.d.ts +1 -1
- package/dist/api/models/DeviceUsage.d.ts +1 -1
- package/dist/api/models/Enum.d.ts +1 -1
- package/dist/api/models/Framework.d.ts +4 -4
- package/dist/api/models/HTTP.d.ts +7 -7
- package/dist/api/models/LabelGroup.d.ts +2 -2
- package/dist/api/models/License.d.ts +14 -14
- package/dist/api/models/Maintenance.d.ts +2 -2
- package/dist/api/models/Message.d.ts +1 -1
- package/dist/api/models/Notification.d.ts +2 -2
- package/dist/api/models/NotificationPlan.d.ts +3 -3
- package/dist/api/models/Project.d.ts +2 -2
- package/dist/api/models/ProjectJobConfig.d.ts +1 -1
- package/dist/api/models/Property.d.ts +2 -2
- package/dist/api/models/Role.d.ts +2 -2
- package/dist/api/models/Screenshot.d.ts +2 -2
- package/dist/api/models/Service.d.ts +2 -2
- package/dist/api/models/Settings.d.ts +4 -4
- package/dist/api/models/SharedResource.d.ts +1 -1
- package/dist/api/models/SmartbearTunnel.d.ts +1 -1
- package/dist/api/models/Tag.d.ts +2 -2
- package/dist/api/models/TestCaseRun.d.ts +2 -2
- package/dist/api/models/TestRun.d.ts +2 -2
- package/dist/api/models/TestRunDataAvailability.d.ts +1 -1
- package/dist/api/models/User.d.ts +6 -6
- package/dist/api/models/UserDeviceTime.d.ts +2 -2
- package/dist/api/models/UserDeviceTimeSummary.d.ts +1 -1
- package/dist/api/models/UserFile.d.ts +7 -7
- package/dist/api/models/UserPreference.d.ts +2 -2
- package/dist/api/models/UserStatistics.d.ts +1 -1
- package/dist/api/models/VisualTest.d.ts +2 -2
- package/dist/api/resources.d.ts +21 -21
- package/dist/bitbar-cloud-api-client.js +23 -20
- package/dist/bitbar-cloud-api-client.js.map +1 -1
- package/dist/bitbar-cloud-api-client.min.js +3 -3
- package/dist/bitbar-cloud-api-client.min.js.map +1 -1
- package/eslint.config.mjs +50 -0
- package/package.json +34 -29
- package/typedoc.json +32 -0
- package/lockfile-exists.js +0 -9
package/dist/api/resources.d.ts
CHANGED
|
@@ -19,24 +19,24 @@ import { APIResourceRun as OriginAPIResourceRun } from './APIResourceRun';
|
|
|
19
19
|
import { APIResourceRunCommon as OriginAPIResourceRunCommon } from './APIResourceRunCommon';
|
|
20
20
|
import { APIResourceUser as OriginAPIResourceUser } from './APIResourceUser';
|
|
21
21
|
import { APIResourceUserSession as OriginAPIResourceUserSession } from './APIResourceUserSession';
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
export
|
|
36
|
-
export
|
|
37
|
-
export
|
|
38
|
-
export
|
|
39
|
-
export
|
|
40
|
-
export
|
|
41
|
-
export
|
|
42
|
-
export
|
|
22
|
+
export type APIResource = InstanceType<typeof OriginAPIResource>;
|
|
23
|
+
export type APIResourceAccessGroup = InstanceType<typeof OriginAPIResourceAccessGroup>;
|
|
24
|
+
export type APIResourceAccount = InstanceType<typeof OriginAPIResourceAccount>;
|
|
25
|
+
export type APIResourceAccountService = InstanceType<typeof OriginAPIResourceAccountService>;
|
|
26
|
+
export type APIResourceBillingPeriod = InstanceType<typeof OriginAPIResourceBillingPeriod>;
|
|
27
|
+
export type APIResourceBroker = InstanceType<typeof OriginAPIResourceBroker>;
|
|
28
|
+
export type APIResourceChannel = InstanceType<typeof OriginAPIResourceChannel>;
|
|
29
|
+
export type APIResourceCleanupConfiguration = InstanceType<typeof OriginAPIResourceCleanupConfiguration>;
|
|
30
|
+
export type APIResourceDevice = InstanceType<typeof OriginAPIResourceDevice>;
|
|
31
|
+
export type APIResourceDeviceGroup = InstanceType<typeof OriginAPIResourceDeviceGroup>;
|
|
32
|
+
export type APIResourceDeviceSession = InstanceType<typeof OriginAPIResourceDeviceSession>;
|
|
33
|
+
export type APIResourceDeviceSessionCommon = InstanceType<typeof OriginAPIResourceDeviceSessionCommon>;
|
|
34
|
+
export type APIResourceDeviceSessionStandalone = InstanceType<typeof OriginAPIResourceDeviceSessionStandalone>;
|
|
35
|
+
export type APIResourceFile = InstanceType<typeof OriginAPIResourceFile>;
|
|
36
|
+
export type APIResourceLabelGroup = InstanceType<typeof OriginAPIResourceLabelGroup>;
|
|
37
|
+
export type APIResourceNotification = InstanceType<typeof OriginAPIResourceNotification>;
|
|
38
|
+
export type APIResourceProject = InstanceType<typeof OriginAPIResourceProject>;
|
|
39
|
+
export type APIResourceRun = InstanceType<typeof OriginAPIResourceRun>;
|
|
40
|
+
export type APIResourceRunCommon = InstanceType<typeof OriginAPIResourceRunCommon>;
|
|
41
|
+
export type APIResourceUser = InstanceType<typeof OriginAPIResourceUser>;
|
|
42
|
+
export type APIResourceUserSession = InstanceType<typeof OriginAPIResourceUserSession>;
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
/* @bitbar/cloud-api-client v1.
|
|
1
|
+
/* @bitbar/cloud-api-client v1.4.1 | Copyright 2025 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
|
|
2
2
|
(function (global, factory) {
|
|
3
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('
|
|
4
|
-
typeof define === 'function' && define.amd ? define(['exports', '
|
|
5
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["bitbar-cloud-api-client"] = {}, global
|
|
6
|
-
})(this, (function (exports,
|
|
3
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@bitbar/finka'), require('qs'), require('node-abort-controller')) :
|
|
4
|
+
typeof define === 'function' && define.amd ? define(['exports', '@bitbar/finka', 'qs', 'node-abort-controller'], factory) :
|
|
5
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["bitbar-cloud-api-client"] = {}, global["@bitbar/finka"], global.qs, global["node-abort-controller"]));
|
|
6
|
+
})(this, (function (exports, finka, qs, nodeAbortController) { 'use strict';
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
11
|
-
var finka__default = /*#__PURE__*/_interopDefaultLegacy(finka);
|
|
12
|
-
|
|
13
|
-
var version = "1.3.8";
|
|
8
|
+
var version = "1.4.1";
|
|
14
9
|
|
|
15
10
|
/******************************************************************************
|
|
16
11
|
Copyright (c) Microsoft Corporation.
|
|
@@ -26,13 +21,20 @@
|
|
|
26
21
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
27
22
|
PERFORMANCE OF THIS SOFTWARE.
|
|
28
23
|
***************************************************************************** */
|
|
24
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
25
|
+
|
|
29
26
|
|
|
30
27
|
function __decorate(decorators, target, key, desc) {
|
|
31
28
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
32
29
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
33
30
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
34
31
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
35
|
-
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
35
|
+
var e = new Error(message);
|
|
36
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
37
|
+
};
|
|
36
38
|
|
|
37
39
|
class Filter {
|
|
38
40
|
constructor(name, value, operand) {
|
|
@@ -42,7 +44,7 @@
|
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
|
|
45
|
-
|
|
47
|
+
finka();
|
|
46
48
|
|
|
47
49
|
class FilterBuilder {
|
|
48
50
|
constructor() {
|
|
@@ -1790,11 +1792,15 @@
|
|
|
1790
1792
|
}
|
|
1791
1793
|
}
|
|
1792
1794
|
|
|
1795
|
+
const axios = require('axios').default;
|
|
1793
1796
|
if (globalThis.isNodeJs) {
|
|
1794
|
-
|
|
1797
|
+
axios.defaults.headers.common['User-Agent'] = `Bitbar Cloud API Client for JavaScript v${version}`;
|
|
1795
1798
|
}
|
|
1796
|
-
|
|
1799
|
+
axios.defaults.maxContentLength = 1073741824;
|
|
1797
1800
|
class API {
|
|
1801
|
+
get baseUrl() {
|
|
1802
|
+
return this.axiosConfig.baseURL;
|
|
1803
|
+
}
|
|
1798
1804
|
constructor(config) {
|
|
1799
1805
|
this.config = config;
|
|
1800
1806
|
this.axiosConfig = {};
|
|
@@ -1828,10 +1834,7 @@
|
|
|
1828
1834
|
};
|
|
1829
1835
|
}
|
|
1830
1836
|
this.axiosConfig.withCredentials = config.withCredentials == null ? false : config.withCredentials;
|
|
1831
|
-
this.axios =
|
|
1832
|
-
}
|
|
1833
|
-
get baseUrl() {
|
|
1834
|
-
return this.axiosConfig.baseURL;
|
|
1837
|
+
this.axios = axios.create(this.axiosConfig);
|
|
1835
1838
|
}
|
|
1836
1839
|
account(id) {
|
|
1837
1840
|
return new APIResourceAccount(this, id);
|
|
@@ -2308,7 +2311,7 @@
|
|
|
2308
2311
|
exports.FilterBuilder = FilterBuilder;
|
|
2309
2312
|
exports.IMAGE_FILES_FILTER = IMAGE_FILES_FILTER;
|
|
2310
2313
|
exports.NON_MEDIA_FILES_FILTER = NON_MEDIA_FILES_FILTER;
|
|
2311
|
-
exports
|
|
2314
|
+
exports.default = CloudAPIClient;
|
|
2312
2315
|
|
|
2313
2316
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2314
2317
|
|