@bitbar/cloud-api-client 1.3.8 → 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.
Files changed (84) hide show
  1. package/.nvmrc +1 -0
  2. package/README.md +2 -2
  3. package/dist/ApiConfig.d.ts +1 -1
  4. package/dist/api/APIListFiles.d.ts +2 -1
  5. package/dist/api/admin.d.ts +22 -22
  6. package/dist/api/index.d.ts +1 -1
  7. package/dist/api/lists.d.ts +10 -10
  8. package/dist/api/models/AccessGroup.d.ts +3 -3
  9. package/dist/api/models/Account.d.ts +3 -3
  10. package/dist/api/models/AccountConcurrencyStatusMap.d.ts +2 -2
  11. package/dist/api/models/AccountPreference.d.ts +2 -2
  12. package/dist/api/models/AccountService.d.ts +3 -3
  13. package/dist/api/models/AccountServicePayment.d.ts +1 -1
  14. package/dist/api/models/Activity.d.ts +1 -1
  15. package/dist/api/models/AdminDevice.d.ts +3 -3
  16. package/dist/api/models/AdminDeviceSession.d.ts +2 -2
  17. package/dist/api/models/AdminDeviceSessionStatistics.d.ts +1 -1
  18. package/dist/api/models/AdminDeviceType.d.ts +2 -2
  19. package/dist/api/models/AdminEmail.d.ts +1 -1
  20. package/dist/api/models/AdminError.d.ts +1 -1
  21. package/dist/api/models/AdminFrameworkStatistics.d.ts +1 -1
  22. package/dist/api/models/AdminOverview.d.ts +1 -1
  23. package/dist/api/models/AdminTestRun.d.ts +1 -1
  24. package/dist/api/models/Administrator.d.ts +1 -1
  25. package/dist/api/models/BillingPeriod.d.ts +2 -2
  26. package/dist/api/models/Broker.d.ts +1 -1
  27. package/dist/api/models/Browser.d.ts +3 -3
  28. package/dist/api/models/CleanupConfiguration.d.ts +1 -1
  29. package/dist/api/models/Cluster.d.ts +2 -2
  30. package/dist/api/models/Connection.d.ts +2 -2
  31. package/dist/api/models/CountryVatRate.d.ts +2 -2
  32. package/dist/api/models/DesktopBrowserCapabilities.d.ts +3 -3
  33. package/dist/api/models/Device.d.ts +6 -6
  34. package/dist/api/models/DeviceFilter.d.ts +3 -3
  35. package/dist/api/models/DeviceGroup.d.ts +2 -2
  36. package/dist/api/models/DeviceModel.d.ts +2 -2
  37. package/dist/api/models/DeviceModelCriterion.d.ts +2 -2
  38. package/dist/api/models/DeviceModelPool.d.ts +2 -2
  39. package/dist/api/models/DeviceProblem.d.ts +2 -2
  40. package/dist/api/models/DeviceSession.d.ts +8 -8
  41. package/dist/api/models/DeviceSessionDataAvailability.d.ts +1 -1
  42. package/dist/api/models/DeviceStatistics.d.ts +1 -1
  43. package/dist/api/models/DeviceStatus.d.ts +1 -1
  44. package/dist/api/models/DeviceTimeCountSessionReportEntry.d.ts +1 -1
  45. package/dist/api/models/DeviceTimeStepTimeReportEntry.d.ts +1 -1
  46. package/dist/api/models/DeviceUsage.d.ts +1 -1
  47. package/dist/api/models/Enum.d.ts +1 -1
  48. package/dist/api/models/Framework.d.ts +4 -4
  49. package/dist/api/models/HTTP.d.ts +7 -7
  50. package/dist/api/models/LabelGroup.d.ts +2 -2
  51. package/dist/api/models/License.d.ts +14 -14
  52. package/dist/api/models/Maintenance.d.ts +2 -2
  53. package/dist/api/models/Message.d.ts +1 -1
  54. package/dist/api/models/Notification.d.ts +2 -2
  55. package/dist/api/models/NotificationPlan.d.ts +3 -3
  56. package/dist/api/models/Project.d.ts +2 -2
  57. package/dist/api/models/ProjectJobConfig.d.ts +1 -1
  58. package/dist/api/models/Property.d.ts +2 -2
  59. package/dist/api/models/Role.d.ts +2 -2
  60. package/dist/api/models/Screenshot.d.ts +2 -2
  61. package/dist/api/models/Service.d.ts +2 -2
  62. package/dist/api/models/Settings.d.ts +4 -4
  63. package/dist/api/models/SharedResource.d.ts +1 -1
  64. package/dist/api/models/SmartbearTunnel.d.ts +1 -1
  65. package/dist/api/models/Tag.d.ts +2 -2
  66. package/dist/api/models/TestCaseRun.d.ts +2 -2
  67. package/dist/api/models/TestRun.d.ts +2 -2
  68. package/dist/api/models/TestRunDataAvailability.d.ts +1 -1
  69. package/dist/api/models/User.d.ts +6 -6
  70. package/dist/api/models/UserDeviceTime.d.ts +2 -2
  71. package/dist/api/models/UserDeviceTimeSummary.d.ts +1 -1
  72. package/dist/api/models/UserFile.d.ts +7 -7
  73. package/dist/api/models/UserPreference.d.ts +2 -2
  74. package/dist/api/models/UserStatistics.d.ts +1 -1
  75. package/dist/api/models/VisualTest.d.ts +2 -2
  76. package/dist/api/resources.d.ts +21 -21
  77. package/dist/bitbar-cloud-api-client.js +22 -21
  78. package/dist/bitbar-cloud-api-client.js.map +1 -1
  79. package/dist/bitbar-cloud-api-client.min.js +3 -3
  80. package/dist/bitbar-cloud-api-client.min.js.map +1 -1
  81. package/eslint.config.mjs +50 -0
  82. package/package.json +31 -23
  83. package/typedoc.json +32 -0
  84. package/lockfile-exists.js +0 -9
@@ -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 declare type APIResource = InstanceType<typeof OriginAPIResource>;
23
- export declare type APIResourceAccessGroup = InstanceType<typeof OriginAPIResourceAccessGroup>;
24
- export declare type APIResourceAccount = InstanceType<typeof OriginAPIResourceAccount>;
25
- export declare type APIResourceAccountService = InstanceType<typeof OriginAPIResourceAccountService>;
26
- export declare type APIResourceBillingPeriod = InstanceType<typeof OriginAPIResourceBillingPeriod>;
27
- export declare type APIResourceBroker = InstanceType<typeof OriginAPIResourceBroker>;
28
- export declare type APIResourceChannel = InstanceType<typeof OriginAPIResourceChannel>;
29
- export declare type APIResourceCleanupConfiguration = InstanceType<typeof OriginAPIResourceCleanupConfiguration>;
30
- export declare type APIResourceDevice = InstanceType<typeof OriginAPIResourceDevice>;
31
- export declare type APIResourceDeviceGroup = InstanceType<typeof OriginAPIResourceDeviceGroup>;
32
- export declare type APIResourceDeviceSession = InstanceType<typeof OriginAPIResourceDeviceSession>;
33
- export declare type APIResourceDeviceSessionCommon = InstanceType<typeof OriginAPIResourceDeviceSessionCommon>;
34
- export declare type APIResourceDeviceSessionStandalone = InstanceType<typeof OriginAPIResourceDeviceSessionStandalone>;
35
- export declare type APIResourceFile = InstanceType<typeof OriginAPIResourceFile>;
36
- export declare type APIResourceLabelGroup = InstanceType<typeof OriginAPIResourceLabelGroup>;
37
- export declare type APIResourceNotification = InstanceType<typeof OriginAPIResourceNotification>;
38
- export declare type APIResourceProject = InstanceType<typeof OriginAPIResourceProject>;
39
- export declare type APIResourceRun = InstanceType<typeof OriginAPIResourceRun>;
40
- export declare type APIResourceRunCommon = InstanceType<typeof OriginAPIResourceRunCommon>;
41
- export declare type APIResourceUser = InstanceType<typeof OriginAPIResourceUser>;
42
- export declare type APIResourceUserSession = InstanceType<typeof OriginAPIResourceUserSession>;
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.3.8 | Copyright 2025 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
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
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
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.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
- finka__default["default"]();
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
- axios__default["default"].defaults.headers.common['User-Agent'] = `Bitbar Cloud API Client for JavaScript v${version}`;
1795
+ axios.defaults.headers.common['User-Agent'] = `Bitbar Cloud API Client for JavaScript v${version}`;
1795
1796
  }
1796
- axios__default["default"].defaults.maxContentLength = 1073741824;
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 = axios__default["default"].create(this.axiosConfig);
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["default"] = CloudAPIClient;
2312
+ exports.default = CloudAPIClient;
2312
2313
 
2313
2314
  Object.defineProperty(exports, '__esModule', { value: true });
2314
2315