@bitbar/cloud-api-client 1.4.18 → 1.5.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/dist/api/APIAdminResource.d.ts +0 -9
- package/dist/api/APIResourceAccount.d.ts +2 -1
- package/dist/api/APIResourceRunCommon.d.ts +0 -6
- package/dist/api/admin.d.ts +0 -4
- package/dist/api/models/Account.d.ts +0 -1
- package/dist/api/models/AccountPreference.d.ts +1 -0
- package/dist/api/models/AccountService.d.ts +0 -8
- package/dist/api/models/Activity.d.ts +1 -0
- package/dist/api/models/AdminDeviceSession.d.ts +2 -3
- package/dist/api/models/AdminOverview.d.ts +10 -4
- package/dist/api/models/AdminTestRun.d.ts +0 -1
- package/dist/api/models/BillingPeriod.d.ts +2 -0
- package/dist/api/models/Cluster.d.ts +7 -0
- package/dist/api/models/Connection.d.ts +0 -1
- package/dist/api/models/Device.d.ts +17 -0
- package/dist/api/models/DeviceProblem.d.ts +1 -0
- package/dist/api/models/DeviceSession.d.ts +2 -6
- package/dist/api/models/Maintenance.d.ts +2 -6
- package/dist/api/models/Notification.d.ts +1 -7
- package/dist/api/models/Project.d.ts +2 -3
- package/dist/api/models/Screenshot.d.ts +0 -7
- package/dist/api/models/Service.d.ts +1 -5
- package/dist/api/models/TestCaseRun.d.ts +1 -0
- package/dist/api/models/TestRun.d.ts +10 -12
- package/dist/api/models/User.d.ts +1 -7
- package/dist/api/models/UserDeviceTimeSummary.d.ts +0 -1
- package/dist/bitbar-cloud-api-client.js +25 -124
- 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/models.d.ts +0 -3
- package/package.json +1 -1
- package/dist/api/APIAdminListNotificationPlans.d.ts +0 -11
- package/dist/api/APIAdminResourceNotificationPlan.d.ts +0 -13
- package/dist/api/models/AdminError.d.ts +0 -39
- package/dist/api/models/CountryVatRate.d.ts +0 -7
- package/dist/api/models/NotificationPlan.d.ts +0 -20
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/* @bitbar/cloud-api-client v1.
|
|
1
|
+
/* @bitbar/cloud-api-client v1.5.0 | 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.
|
|
8
|
+
var version = "1.5.0";
|
|
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,9 @@
|
|
|
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
|
+
}
|
|
1540
1478
|
}
|
|
1541
1479
|
|
|
1542
1480
|
class APIResourceBroker extends APIResource {
|
|
@@ -1970,12 +1908,6 @@
|
|
|
1970
1908
|
PaymentMethod["PROMOTION"] = "PROMOTION";
|
|
1971
1909
|
PaymentMethod["AWS"] = "AWS";
|
|
1972
1910
|
})(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
1911
|
exports.DeactivateReason = void 0;
|
|
1980
1912
|
(function (DeactivateReason) {
|
|
1981
1913
|
DeactivateReason["INITIAL_FAILURE"] = "INITIAL_FAILURE";
|
|
@@ -2005,42 +1937,6 @@
|
|
|
2005
1937
|
DeviceState["ONLINE_TESTING"] = "ONLINE_TESTING";
|
|
2006
1938
|
})(exports.DeviceState || (exports.DeviceState = {}));
|
|
2007
1939
|
|
|
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
1940
|
exports.FrameworkType = void 0;
|
|
2045
1941
|
(function (FrameworkType) {
|
|
2046
1942
|
FrameworkType["AUTOMATIC"] = "AUTOMATIC";
|
|
@@ -2070,6 +1966,12 @@
|
|
|
2070
1966
|
ClusterState["QUIET_DOWN"] = "QUIET_DOWN";
|
|
2071
1967
|
ClusterState["MAINTENANCE"] = "MAINTENANCE";
|
|
2072
1968
|
})(exports.ClusterState || (exports.ClusterState = {}));
|
|
1969
|
+
exports.ClusterType = void 0;
|
|
1970
|
+
(function (ClusterType) {
|
|
1971
|
+
ClusterType["BARE_METAL"] = "BARE_METAL";
|
|
1972
|
+
ClusterType["EC2"] = "EC2";
|
|
1973
|
+
ClusterType["VM"] = "VM";
|
|
1974
|
+
})(exports.ClusterType || (exports.ClusterType = {}));
|
|
2073
1975
|
|
|
2074
1976
|
exports.DeviceGroupOrigin = void 0;
|
|
2075
1977
|
(function (DeviceGroupOrigin) {
|
|
@@ -2092,6 +1994,20 @@
|
|
|
2092
1994
|
SupportedCreators["ROBOT"] = "ROBOT";
|
|
2093
1995
|
SupportedCreators["AUTOMATIC"] = "AUTOMATIC";
|
|
2094
1996
|
})(exports.SupportedCreators || (exports.SupportedCreators = {}));
|
|
1997
|
+
exports.PoolSize = void 0;
|
|
1998
|
+
(function (PoolSize) {
|
|
1999
|
+
PoolSize["XL"] = "XL";
|
|
2000
|
+
PoolSize["L"] = "L";
|
|
2001
|
+
PoolSize["M"] = "M";
|
|
2002
|
+
PoolSize["S"] = "S";
|
|
2003
|
+
})(exports.PoolSize || (exports.PoolSize = {}));
|
|
2004
|
+
exports.Code = void 0;
|
|
2005
|
+
(function (Code) {
|
|
2006
|
+
Code["HIGH"] = "HIGH";
|
|
2007
|
+
Code["MODERATE"] = "MODERATE";
|
|
2008
|
+
Code["LOW"] = "LOW";
|
|
2009
|
+
Code["NONE"] = "NONE";
|
|
2010
|
+
})(exports.Code || (exports.Code = {}));
|
|
2095
2011
|
exports.LockReason = void 0;
|
|
2096
2012
|
(function (LockReason) {
|
|
2097
2013
|
LockReason["TESTING"] = "TESTING";
|
|
@@ -2131,10 +2047,8 @@
|
|
|
2131
2047
|
exports.DeviceSessionType = void 0;
|
|
2132
2048
|
(function (DeviceSessionType) {
|
|
2133
2049
|
DeviceSessionType["AUTOMATIC"] = "AUTOMATIC";
|
|
2134
|
-
DeviceSessionType["MANUAL"] = "MANUAL";
|
|
2135
2050
|
DeviceSessionType["MANUAL_APP"] = "MANUAL_APP";
|
|
2136
2051
|
DeviceSessionType["MANUAL_WEB"] = "MANUAL_WEB";
|
|
2137
|
-
DeviceSessionType["REMOTE"] = "REMOTE";
|
|
2138
2052
|
})(exports.DeviceSessionType || (exports.DeviceSessionType = {}));
|
|
2139
2053
|
exports.RetryState = void 0;
|
|
2140
2054
|
(function (RetryState) {
|
|
@@ -2188,13 +2102,6 @@
|
|
|
2188
2102
|
LicenseStatus["CLOSED"] = "CLOSED";
|
|
2189
2103
|
})(exports.LicenseStatus || (exports.LicenseStatus = {}));
|
|
2190
2104
|
|
|
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
2105
|
exports.NotificationChannel = void 0;
|
|
2199
2106
|
(function (NotificationChannel) {
|
|
2200
2107
|
NotificationChannel["SLACK"] = "SLACK";
|
|
@@ -2207,14 +2114,8 @@
|
|
|
2207
2114
|
NotificationScope["TEST_RUN"] = "TEST_RUN";
|
|
2208
2115
|
NotificationScope["TEST_RUN_FAILURE"] = "TEST_RUN_FAILURE";
|
|
2209
2116
|
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
2117
|
NotificationScope["SYSTEM"] = "SYSTEM";
|
|
2215
2118
|
NotificationScope["CHECK"] = "CHECK";
|
|
2216
|
-
NotificationScope["PLAN_LIMIT_REACHED"] = "PLAN_LIMIT_REACHED";
|
|
2217
|
-
NotificationScope["PLAN_INVOICE"] = "PLAN_INVOICE";
|
|
2218
2119
|
})(exports.NotificationScope || (exports.NotificationScope = {}));
|
|
2219
2120
|
|
|
2220
2121
|
exports.ArchivingStrategy = void 0;
|