@bitbar/cloud-api-client 1.4.19 → 1.5.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.
Files changed (37) hide show
  1. package/dist/api/APIAdminResource.d.ts +0 -9
  2. package/dist/api/APIResourceAccount.d.ts +5 -2
  3. package/dist/api/APIResourceRunCommon.d.ts +0 -6
  4. package/dist/api/admin.d.ts +0 -4
  5. package/dist/api/models/Account.d.ts +17 -1
  6. package/dist/api/models/AccountPreference.d.ts +1 -0
  7. package/dist/api/models/AccountService.d.ts +0 -8
  8. package/dist/api/models/Activity.d.ts +1 -0
  9. package/dist/api/models/AdminDeviceSession.d.ts +2 -3
  10. package/dist/api/models/AdminOverview.d.ts +10 -4
  11. package/dist/api/models/AdminTestRun.d.ts +0 -1
  12. package/dist/api/models/BillingPeriod.d.ts +2 -0
  13. package/dist/api/models/Cluster.d.ts +7 -0
  14. package/dist/api/models/Connection.d.ts +0 -1
  15. package/dist/api/models/Device.d.ts +17 -0
  16. package/dist/api/models/DeviceProblem.d.ts +1 -0
  17. package/dist/api/models/DeviceSession.d.ts +2 -6
  18. package/dist/api/models/Maintenance.d.ts +2 -6
  19. package/dist/api/models/Notification.d.ts +1 -7
  20. package/dist/api/models/Project.d.ts +2 -3
  21. package/dist/api/models/Screenshot.d.ts +0 -7
  22. package/dist/api/models/Service.d.ts +1 -5
  23. package/dist/api/models/TestCaseRun.d.ts +1 -0
  24. package/dist/api/models/TestRun.d.ts +2 -5
  25. package/dist/api/models/User.d.ts +1 -7
  26. package/dist/api/models/UserDeviceTimeSummary.d.ts +0 -1
  27. package/dist/bitbar-cloud-api-client.js +38 -124
  28. package/dist/bitbar-cloud-api-client.js.map +1 -1
  29. package/dist/bitbar-cloud-api-client.min.js +2 -2
  30. package/dist/bitbar-cloud-api-client.min.js.map +1 -1
  31. package/dist/models.d.ts +0 -3
  32. package/package.json +1 -1
  33. package/dist/api/APIAdminListNotificationPlans.d.ts +0 -11
  34. package/dist/api/APIAdminResourceNotificationPlan.d.ts +0 -13
  35. package/dist/api/models/AdminError.d.ts +0 -39
  36. package/dist/api/models/CountryVatRate.d.ts +0 -7
  37. package/dist/api/models/NotificationPlan.d.ts +0 -20
@@ -1,11 +1,11 @@
1
- /* @bitbar/cloud-api-client v1.4.19 | Copyright 2025 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
1
+ /* @bitbar/cloud-api-client v1.5.1 | Copyright 2025 (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('@bitbar/finka'), require('qs'), require('node-abort-controller')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', '@bitbar/finka', 'qs', 'node-abort-controller'], factory) :
5
5
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["bitbar-cloud-api-client"] = {}, global["@bitbar/finka"], global.qs, global["node-abort-controller"]));
6
6
  })(this, (function (exports, finka, qs, nodeAbortController) { 'use strict';
7
7
 
8
- var version = "1.4.19";
8
+ var version = "1.5.1";
9
9
 
10
10
  /******************************************************************************
11
11
  Copyright (c) Microsoft Corporation.
@@ -439,19 +439,6 @@
439
439
  }
440
440
  }
441
441
 
442
- class APIAdminListNotificationPlans extends APIList {
443
- constructor(parent) {
444
- super(parent);
445
- this.push('admin', 'notification-plans');
446
- }
447
- channels() {
448
- return new APIList(this).push('channels');
449
- }
450
- scopes() {
451
- return new APIList(this).push('scopes');
452
- }
453
- }
454
-
455
442
  class APIAdminListRuns extends APIList {
456
443
  constructor(parent) {
457
444
  super(parent);
@@ -810,25 +797,6 @@
810
797
  }
811
798
  }
812
799
 
813
- class APIAdminResourceNotificationPlan extends APIResource {
814
- constructor(parent, id) {
815
- if (id == null) {
816
- throw new Error('Resource ID cannot be null!');
817
- }
818
- super(parent);
819
- this.push('admin', 'notification-plans', id);
820
- }
821
- check() {
822
- return new APIList(this).push('check');
823
- }
824
- test() {
825
- return new APIResource(this).push('test');
826
- }
827
- execute() {
828
- return new APIResource(this).push('execute');
829
- }
830
- }
831
-
832
800
  function postDeviceRunIds(parent, name, ids) {
833
801
  const a = new APIResource(parent).push(name);
834
802
  if (ids != null) {
@@ -1111,27 +1079,12 @@
1111
1079
  timeout: 0
1112
1080
  });
1113
1081
  }
1114
- screenshotNames() {
1115
- return new APIList(this).push('screenshot-names');
1116
- }
1117
- screenshots() {
1118
- return new APIList(this).push('screenshots');
1119
- }
1120
1082
  screenshotsZip(ids) {
1121
1083
  return postDeviceRunIds(this, 'screenshots.zip', ids);
1122
1084
  }
1123
1085
  steps() {
1124
1086
  return new APIList(this).push('steps');
1125
1087
  }
1126
- tags() {
1127
- return new APIList(this).push('tags');
1128
- }
1129
- tag(id) {
1130
- if (id == null) {
1131
- throw new Error('Resource ID cannot be null!');
1132
- }
1133
- return new APIResource(this).push('tags', id);
1134
- }
1135
1088
  }
1136
1089
 
1137
1090
  class APIResourceRun extends APIResourceRunCommon {
@@ -1217,15 +1170,6 @@
1217
1170
  cluster(id) {
1218
1171
  return new APIAdminResourceCluster(this, id);
1219
1172
  }
1220
- countryVatRates() {
1221
- return new APIList(this).push('admin', 'country-vat-rates');
1222
- }
1223
- countryVatRate(id) {
1224
- if (id == null) {
1225
- throw new Error('Resource ID cannot be null!');
1226
- }
1227
- return new APIResource(this).push('admin', 'country-vat-rates', id);
1228
- }
1229
1173
  devices() {
1230
1174
  return new APIAdminListDevices(this);
1231
1175
  }
@@ -1296,9 +1240,6 @@
1296
1240
  }
1297
1241
  return new APIResource(this).push('admin', 'emails', id, 'resend').post();
1298
1242
  }
1299
- errors() {
1300
- return new APIList(this).push('admin', 'errors');
1301
- }
1302
1243
  files() {
1303
1244
  return new APIList(this).push('files');
1304
1245
  }
@@ -1328,12 +1269,6 @@
1328
1269
  maintenance() {
1329
1270
  return new APIResource(this).push('admin', 'maintenance');
1330
1271
  }
1331
- notificationPlans() {
1332
- return new APIAdminListNotificationPlans(this);
1333
- }
1334
- notificationPlan(id) {
1335
- return new APIAdminResourceNotificationPlan(this, id);
1336
- }
1337
1272
  overview() {
1338
1273
  return new APIResource(this).push('admin', 'overview');
1339
1274
  }
@@ -1537,6 +1472,15 @@
1537
1472
  accountService(id) {
1538
1473
  return new APIList(this).push('account-services', id);
1539
1474
  }
1475
+ services() {
1476
+ return new APIResource(this).push('services');
1477
+ }
1478
+ usageDetails() {
1479
+ return new APIList(this).push('usage-details');
1480
+ }
1481
+ usageDetailsSummary() {
1482
+ return new APIResource(this).push('usage-details-summary');
1483
+ }
1540
1484
  }
1541
1485
 
1542
1486
  class APIResourceBroker extends APIResource {
@@ -1937,6 +1881,13 @@
1937
1881
  AccessGroupScope["GLOBAL"] = "GLOBAL";
1938
1882
  })(exports.AccessGroupScope || (exports.AccessGroupScope = {}));
1939
1883
 
1884
+ exports.SessionUsageType = void 0;
1885
+ (function (SessionUsageType) {
1886
+ SessionUsageType["AUTOMATIC"] = "automatic";
1887
+ SessionUsageType["MANUAL"] = "manual";
1888
+ SessionUsageType["DEDICATED_AUTOMATIC"] = "dedicated_automatic";
1889
+ SessionUsageType["DEDICATED_MANUAL"] = "dedicated_manual";
1890
+ })(exports.SessionUsageType || (exports.SessionUsageType = {}));
1940
1891
  exports.UtilizationType = void 0;
1941
1892
  (function (UtilizationType) {
1942
1893
  UtilizationType["ALL"] = "all";
@@ -1970,12 +1921,6 @@
1970
1921
  PaymentMethod["PROMOTION"] = "PROMOTION";
1971
1922
  PaymentMethod["AWS"] = "AWS";
1972
1923
  })(exports.PaymentMethod || (exports.PaymentMethod = {}));
1973
- exports.ChargeType = void 0;
1974
- (function (ChargeType) {
1975
- ChargeType["USAGE_MOBILE"] = "USAGE_MOBILE";
1976
- ChargeType["CONCURRENCY_MOBILE"] = "CONCURRENCY_MOBILE";
1977
- ChargeType["CONCURRENCY_DESKTOP"] = "CONCURRENCY_DESKTOP";
1978
- })(exports.ChargeType || (exports.ChargeType = {}));
1979
1924
  exports.DeactivateReason = void 0;
1980
1925
  (function (DeactivateReason) {
1981
1926
  DeactivateReason["INITIAL_FAILURE"] = "INITIAL_FAILURE";
@@ -2005,42 +1950,6 @@
2005
1950
  DeviceState["ONLINE_TESTING"] = "ONLINE_TESTING";
2006
1951
  })(exports.DeviceState || (exports.DeviceState = {}));
2007
1952
 
2008
- exports.AdminErrorType = void 0;
2009
- (function (AdminErrorType) {
2010
- AdminErrorType["ABORT_REQUEST"] = "ABORT_REQUEST";
2011
- AdminErrorType["ADB_COMMAND_REJECTED"] = "ADB_COMMAND_REJECTED";
2012
- AdminErrorType["ADB_SHELL_COMMAND_FAILED"] = "ADB_SHELL_COMMAND_FAILED";
2013
- AdminErrorType["APP_LOCK_NOT_INSTALLED"] = "APP_LOCK_NOT_INSTALLED";
2014
- AdminErrorType["DEVICE_OFFLINE"] = "DEVICE_OFFLINE";
2015
- AdminErrorType["DEVICE_OUTPUT_NULL"] = "DEVICE_OUTPUT_NULL";
2016
- AdminErrorType["GAMEBENCH_ERROR"] = "GAMEBENCH_ERROR";
2017
- AdminErrorType["GAMEBENCH_NOT_SUPPORTED"] = "GAMEBENCH_NOT_SUPPORTED";
2018
- AdminErrorType["GRANT_FAILED"] = "GRANT_FAILED";
2019
- AdminErrorType["INSTALL_FAILED"] = "INSTALL_FAILED";
2020
- AdminErrorType["INTERACTIVE_SETUP_FAILED"] = "INTERACTIVE_SETUP_FAILED";
2021
- AdminErrorType["INTERNAL_INSTALL_FAILED"] = "INTERNAL_INSTALL_FAILED";
2022
- AdminErrorType["INVALID_TEST_SESSION_FILE"] = "INVALID_TEST_SESSION_FILE";
2023
- AdminErrorType["LOCK_EXPIRED"] = "LOCK_EXPIRED";
2024
- AdminErrorType["LOCK_TIMEOUT"] = "LOCK_TIMEOUT";
2025
- AdminErrorType["NO_NETWORK_CONNECTION"] = "NO_NETWORK_CONNECTION";
2026
- AdminErrorType["OTHER"] = "OTHER";
2027
- AdminErrorType["REBOOTING_TIMEOUT"] = "REBOOTING_TIMEOUT";
2028
- AdminErrorType["REPACKAGING"] = "REPACKAGING";
2029
- AdminErrorType["RESULTS_PREPARING"] = "RESULTS_PREPARING";
2030
- AdminErrorType["RESULTS_PROCESSING"] = "RESULTS_PROCESSING";
2031
- AdminErrorType["RESULTS_SENDING"] = "RESULTS_SENDING";
2032
- AdminErrorType["STEP_TIMEOUT"] = "STEP_TIMEOUT";
2033
- AdminErrorType["SYSTEM_FAILURE"] = "SYSTEM_FAILURE";
2034
- AdminErrorType["TEST_RUN_FAILED"] = "TEST_RUN_FAILED";
2035
- AdminErrorType["TEST_RUN_INTERRUPTED"] = "TEST_RUN_INTERRUPTED";
2036
- AdminErrorType["TEST_RUN_TIMEOUT"] = "TEST_RUN_TIMEOUT";
2037
- AdminErrorType["TEST_RUN_WARNED"] = "TEST_RUN_WARNED";
2038
- AdminErrorType["TEST_TIMEOUT"] = "TEST_TIMEOUT";
2039
- AdminErrorType["VNC_CONNECTION_SETUP_FAILED"] = "VNC_CONNECTION_SETUP_FAILED";
2040
- AdminErrorType["XCRUN_INSTRUMENTS_COMMAND_FAILED"] = "XCRUN_INSTRUMENTS_COMMAND_FAILED";
2041
- AdminErrorType["XCRUN_INSTRUMENTS_JS_ERROR"] = "XCRUN_INSTRUMENTS_JS_ERROR";
2042
- })(exports.AdminErrorType || (exports.AdminErrorType = {}));
2043
-
2044
1953
  exports.FrameworkType = void 0;
2045
1954
  (function (FrameworkType) {
2046
1955
  FrameworkType["AUTOMATIC"] = "AUTOMATIC";
@@ -2070,6 +1979,12 @@
2070
1979
  ClusterState["QUIET_DOWN"] = "QUIET_DOWN";
2071
1980
  ClusterState["MAINTENANCE"] = "MAINTENANCE";
2072
1981
  })(exports.ClusterState || (exports.ClusterState = {}));
1982
+ exports.ClusterType = void 0;
1983
+ (function (ClusterType) {
1984
+ ClusterType["BARE_METAL"] = "BARE_METAL";
1985
+ ClusterType["EC2"] = "EC2";
1986
+ ClusterType["VM"] = "VM";
1987
+ })(exports.ClusterType || (exports.ClusterType = {}));
2073
1988
 
2074
1989
  exports.DeviceGroupOrigin = void 0;
2075
1990
  (function (DeviceGroupOrigin) {
@@ -2092,6 +2007,20 @@
2092
2007
  SupportedCreators["ROBOT"] = "ROBOT";
2093
2008
  SupportedCreators["AUTOMATIC"] = "AUTOMATIC";
2094
2009
  })(exports.SupportedCreators || (exports.SupportedCreators = {}));
2010
+ exports.PoolSize = void 0;
2011
+ (function (PoolSize) {
2012
+ PoolSize["XL"] = "XL";
2013
+ PoolSize["L"] = "L";
2014
+ PoolSize["M"] = "M";
2015
+ PoolSize["S"] = "S";
2016
+ })(exports.PoolSize || (exports.PoolSize = {}));
2017
+ exports.Code = void 0;
2018
+ (function (Code) {
2019
+ Code["HIGH"] = "HIGH";
2020
+ Code["MODERATE"] = "MODERATE";
2021
+ Code["LOW"] = "LOW";
2022
+ Code["NONE"] = "NONE";
2023
+ })(exports.Code || (exports.Code = {}));
2095
2024
  exports.LockReason = void 0;
2096
2025
  (function (LockReason) {
2097
2026
  LockReason["TESTING"] = "TESTING";
@@ -2131,10 +2060,8 @@
2131
2060
  exports.DeviceSessionType = void 0;
2132
2061
  (function (DeviceSessionType) {
2133
2062
  DeviceSessionType["AUTOMATIC"] = "AUTOMATIC";
2134
- DeviceSessionType["MANUAL"] = "MANUAL";
2135
2063
  DeviceSessionType["MANUAL_APP"] = "MANUAL_APP";
2136
2064
  DeviceSessionType["MANUAL_WEB"] = "MANUAL_WEB";
2137
- DeviceSessionType["REMOTE"] = "REMOTE";
2138
2065
  })(exports.DeviceSessionType || (exports.DeviceSessionType = {}));
2139
2066
  exports.RetryState = void 0;
2140
2067
  (function (RetryState) {
@@ -2188,13 +2115,6 @@
2188
2115
  LicenseStatus["CLOSED"] = "CLOSED";
2189
2116
  })(exports.LicenseStatus || (exports.LicenseStatus = {}));
2190
2117
 
2191
- exports.MaintenanceType = void 0;
2192
- (function (MaintenanceType) {
2193
- MaintenanceType["BARE_METAL"] = "BARE_METAL";
2194
- MaintenanceType["EC2"] = "EC2";
2195
- MaintenanceType["VM"] = "VM";
2196
- })(exports.MaintenanceType || (exports.MaintenanceType = {}));
2197
-
2198
2118
  exports.NotificationChannel = void 0;
2199
2119
  (function (NotificationChannel) {
2200
2120
  NotificationChannel["SLACK"] = "SLACK";
@@ -2207,14 +2127,8 @@
2207
2127
  NotificationScope["TEST_RUN"] = "TEST_RUN";
2208
2128
  NotificationScope["TEST_RUN_FAILURE"] = "TEST_RUN_FAILURE";
2209
2129
  NotificationScope["TEST_RUN_SUCCEEDED"] = "TEST_RUN_SUCCEEDED";
2210
- NotificationScope["MAINTENANCE"] = "MAINTENANCE";
2211
- NotificationScope["MAINTENANCE_RELEASE"] = "MAINTENANCE_RELEASE";
2212
- NotificationScope["CUSTOM"] = "CUSTOM";
2213
- NotificationScope["NEWS"] = "NEWS";
2214
2130
  NotificationScope["SYSTEM"] = "SYSTEM";
2215
2131
  NotificationScope["CHECK"] = "CHECK";
2216
- NotificationScope["PLAN_LIMIT_REACHED"] = "PLAN_LIMIT_REACHED";
2217
- NotificationScope["PLAN_INVOICE"] = "PLAN_INVOICE";
2218
2132
  })(exports.NotificationScope || (exports.NotificationScope = {}));
2219
2133
 
2220
2134
  exports.ArchivingStrategy = void 0;