@bitbar/cloud-api-client 1.3.7 → 1.4.0
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 +2 -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 +22 -21
- 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 +31 -23
- 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.0 | 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('axios'), require('@bitbar/finka'), require('qs'), require('node-abort-controller')) :
|
|
4
|
-
typeof define === 'function' && define.amd ? define(['exports', 'axios', '@bitbar/finka', 'qs', 'node-abort-controller'], factory) :
|
|
5
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["bitbar-cloud-api-client"] = {}, global.axios, global["@bitbar/finka"], global.qs, global["node-abort-controller"]));
|
|
6
|
-
})(this, (function (exports, axios, finka, qs, nodeAbortController) { 'use strict';
|
|
3
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('axios'), require('@bitbar/finka'), require('qs'), require('node-abort-controller'), require('form-data')) :
|
|
4
|
+
typeof define === 'function' && define.amd ? define(['exports', 'axios', '@bitbar/finka', 'qs', 'node-abort-controller', 'form-data'], factory) :
|
|
5
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["bitbar-cloud-api-client"] = {}, global.axios, global["@bitbar/finka"], global.qs, global["node-abort-controller"], global["form-data"]));
|
|
6
|
+
})(this, (function (exports, axios, finka, qs, nodeAbortController, FormData) { '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.6";
|
|
8
|
+
var version = "1.4.0";
|
|
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() {
|
|
@@ -1597,7 +1599,6 @@
|
|
|
1597
1599
|
}
|
|
1598
1600
|
nodeUpload(file) {
|
|
1599
1601
|
const fs = require('fs');
|
|
1600
|
-
const FormData = require('form-data');
|
|
1601
1602
|
const form = new FormData();
|
|
1602
1603
|
form.append('file', fs.createReadStream(file.dir + '/' + file.filename), {
|
|
1603
1604
|
filename: file.filename
|
|
@@ -1791,10 +1792,13 @@
|
|
|
1791
1792
|
}
|
|
1792
1793
|
|
|
1793
1794
|
if (globalThis.isNodeJs) {
|
|
1794
|
-
|
|
1795
|
+
axios.defaults.headers.common['User-Agent'] = `Bitbar Cloud API Client for JavaScript v${version}`;
|
|
1795
1796
|
}
|
|
1796
|
-
|
|
1797
|
+
axios.defaults.maxContentLength = 1073741824;
|
|
1797
1798
|
class API {
|
|
1799
|
+
get baseUrl() {
|
|
1800
|
+
return this.axiosConfig.baseURL;
|
|
1801
|
+
}
|
|
1798
1802
|
constructor(config) {
|
|
1799
1803
|
this.config = config;
|
|
1800
1804
|
this.axiosConfig = {};
|
|
@@ -1828,10 +1832,7 @@
|
|
|
1828
1832
|
};
|
|
1829
1833
|
}
|
|
1830
1834
|
this.axiosConfig.withCredentials = config.withCredentials == null ? false : config.withCredentials;
|
|
1831
|
-
this.axios =
|
|
1832
|
-
}
|
|
1833
|
-
get baseUrl() {
|
|
1834
|
-
return this.axiosConfig.baseURL;
|
|
1835
|
+
this.axios = axios.create(this.axiosConfig);
|
|
1835
1836
|
}
|
|
1836
1837
|
account(id) {
|
|
1837
1838
|
return new APIResourceAccount(this, id);
|
|
@@ -2308,7 +2309,7 @@
|
|
|
2308
2309
|
exports.FilterBuilder = FilterBuilder;
|
|
2309
2310
|
exports.IMAGE_FILES_FILTER = IMAGE_FILES_FILTER;
|
|
2310
2311
|
exports.NON_MEDIA_FILES_FILTER = NON_MEDIA_FILES_FILTER;
|
|
2311
|
-
exports
|
|
2312
|
+
exports.default = CloudAPIClient;
|
|
2312
2313
|
|
|
2313
2314
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2314
2315
|
|