@bitbar/cloud-api-client 0.56.0 → 1.0.2
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.d.ts +55 -29
- package/dist/ApiConfig.d.ts +3 -3
- package/dist/CloudAPIClient.d.ts +3 -3
- package/dist/Filter.d.ts +3 -3
- package/dist/FilterBuilder.d.ts +19 -20
- package/dist/api/APIAdminListDevices.d.ts +8 -8
- package/dist/api/APIAdminListNotificationPlans.d.ts +9 -5
- package/dist/api/APIAdminListRuns.d.ts +12 -5
- package/dist/api/APIAdminListServices.d.ts +9 -10
- package/dist/api/APIAdminListStatistics.d.ts +8 -5
- package/dist/api/APIAdminResource.d.ts +97 -67
- package/dist/api/APIAdminResourceAccount.d.ts +6 -3
- package/dist/api/APIAdminResourceAccountService.d.ts +8 -5
- package/dist/api/APIAdminResourceCluster.d.ts +9 -5
- package/dist/api/APIAdminResourceDevice.d.ts +14 -9
- package/dist/api/APIAdminResourceDeviceModel.d.ts +9 -5
- package/dist/api/APIAdminResourceDeviceSession.d.ts +3 -3
- package/dist/api/APIAdminResourceDeviceSessionStandalone.d.ts +4 -10
- package/dist/api/APIAdminResourceDeviceTime.d.ts +10 -6
- package/dist/api/APIAdminResourceFramework.d.ts +11 -6
- package/dist/api/APIAdminResourceLicense.d.ts +10 -7
- package/dist/api/APIAdminResourceNotificationPlan.d.ts +11 -7
- package/dist/api/APIAdminResourceRun.d.ts +3 -4
- package/dist/api/APIAdminResourceRunStandalone.d.ts +10 -11
- package/dist/api/APIAdminResourceService.d.ts +7 -7
- package/dist/api/APIAdminResourceUser.d.ts +15 -9
- package/dist/api/APIAdminResourceUserAccount.d.ts +13 -8
- package/dist/api/APIEntity.d.ts +21 -18
- package/dist/api/APIList.d.ts +9 -11
- package/dist/api/APIListCleanupConfigurations.d.ts +9 -5
- package/dist/api/APIListDeviceTime.d.ts +9 -5
- package/dist/api/APIListDevices.d.ts +11 -10
- package/dist/api/APIListFiles.d.ts +8 -7
- package/dist/api/APIListNotifications.d.ts +11 -5
- package/dist/api/APIListProperties.d.ts +8 -4
- package/dist/api/APIListRuns.d.ts +8 -5
- package/dist/api/APIListServices.d.ts +14 -7
- package/dist/api/APIListSmartbearTunnels.d.ts +8 -3
- package/dist/api/APIListUsers.d.ts +15 -9
- package/dist/api/APIResource.d.ts +3 -2
- package/dist/api/APIResourceAccessGroup.d.ts +14 -8
- package/dist/api/APIResourceAccount.d.ts +10 -5
- package/dist/api/APIResourceAccountService.d.ts +9 -4
- package/dist/api/APIResourceAdditionalUser.d.ts +7 -4
- package/dist/api/APIResourceBillingPeriod.d.ts +7 -4
- package/dist/api/APIResourceBroker.d.ts +8 -5
- package/dist/api/APIResourceChannel.d.ts +8 -0
- package/dist/api/APIResourceCleanupConfiguration.d.ts +7 -5
- package/dist/api/APIResourceDevice.d.ts +10 -5
- package/dist/api/APIResourceDeviceGroup.d.ts +16 -9
- package/dist/api/APIResourceDeviceSession.d.ts +7 -6
- package/dist/api/APIResourceDeviceSessionCommon.d.ts +22 -14
- package/dist/api/APIResourceDeviceSessionStandalone.d.ts +15 -10
- package/dist/api/APIResourceFile.d.ts +16 -7
- package/dist/api/APIResourceLabelGroup.d.ts +10 -6
- package/dist/api/APIResourceNotification.d.ts +8 -4
- package/dist/api/APIResourceProject.d.ts +15 -12
- package/dist/api/APIResourceRun.d.ts +3 -3
- package/dist/api/APIResourceRunCommon.d.ts +28 -17
- package/dist/api/APIResourceUser.d.ts +53 -40
- package/dist/api/APIResourceUserSession.d.ts +10 -7
- package/dist/api/APIUserResourceAccount.d.ts +13 -7
- package/dist/api/class/FilesQueryParams.d.ts +4 -0
- package/dist/api/class/Images.filter.d.ts +2 -0
- package/dist/api/class/InputFileset.d.ts +11 -6
- package/dist/api/class/NonMedia.filter.d.ts +2 -0
- package/dist/api/class/OutputFileset.d.ts +19 -12
- package/dist/api/decorators/NonRequestable.d.ts +8 -0
- package/dist/api/factory/postAdminDeviceSessionChangeBillable.d.ts +4 -3
- package/dist/api/factory/postDeviceRunIds.d.ts +4 -3
- package/dist/api/interface/DeviceSession.d.ts +6 -5
- package/dist/api/interface/DeviceSessionBase.d.ts +4 -4
- package/dist/api/interface/DeviceSessionCommon.d.ts +15 -11
- package/dist/api/interface/DeviceSessionStandalone.d.ts +9 -7
- package/dist/api/models/AccessGroup.d.ts +14 -0
- package/dist/api/models/Account.d.ts +7 -0
- package/dist/api/models/AccountConcurrencyStatusMap.d.ts +4 -0
- package/dist/api/models/AccountPreference.d.ts +4 -0
- package/dist/api/models/AccountService.d.ts +66 -0
- package/dist/api/models/AccountServicePayment.d.ts +11 -0
- package/dist/api/models/Activity.d.ts +13 -0
- package/dist/api/models/AdminDevice.d.ts +50 -0
- package/dist/api/models/AdminDeviceSession.d.ts +36 -0
- package/dist/api/models/AdminDeviceSessionStatistics.d.ts +22 -0
- package/dist/api/models/AdminDeviceType.d.ts +12 -0
- package/dist/api/models/AdminEmail.d.ts +9 -0
- package/dist/api/models/AdminError.d.ts +39 -0
- package/dist/api/models/AdminFrameworkStatistics.d.ts +24 -0
- package/dist/api/models/AdminOverview.d.ts +10 -0
- package/dist/api/models/AdminTestRun.d.ts +31 -0
- package/dist/api/models/BillingPeriod.d.ts +40 -0
- package/dist/api/models/Broker.d.ts +10 -0
- package/dist/api/models/Browser.d.ts +15 -0
- package/dist/api/models/CleanupConfiguration.d.ts +5 -0
- package/dist/api/models/Cluster.d.ts +32 -0
- package/dist/api/models/Connection.d.ts +15 -0
- package/dist/api/models/CountryVatRate.d.ts +7 -0
- package/dist/api/models/DesktopBrowserCapabilities.d.ts +19 -0
- package/dist/api/models/Device.d.ts +108 -0
- package/dist/api/models/DeviceFilter.d.ts +17 -0
- package/dist/api/models/DeviceGroup.d.ts +26 -0
- package/dist/api/models/DeviceModel.d.ts +23 -0
- package/dist/api/models/DeviceModelCriterion.d.ts +19 -0
- package/dist/api/models/DeviceModelPool.d.ts +19 -0
- package/dist/api/models/DeviceProblem.d.ts +23 -0
- package/dist/api/models/DeviceSession.d.ts +137 -0
- package/dist/api/models/DeviceSessionDataAvailability.d.ts +9 -0
- package/dist/api/models/DeviceStatistics.d.ts +15 -0
- package/dist/api/models/DeviceStatus.d.ts +30 -0
- package/dist/api/models/DeviceTimeCountSessionReportEntry.d.ts +12 -0
- package/dist/api/models/DeviceTimeStepTimeReportEntry.d.ts +12 -0
- package/dist/api/models/DeviceUsage.d.ts +7 -0
- package/dist/api/models/Enum.d.ts +10 -0
- package/dist/api/models/Framework.d.ts +37 -0
- package/dist/api/models/HTTP.d.ts +33 -0
- package/dist/api/models/LabelGroup.d.ts +7 -0
- package/dist/api/models/License.d.ts +74 -0
- package/dist/api/models/Maintenance.d.ts +13 -0
- package/dist/api/models/Message.d.ts +3 -0
- package/dist/api/models/Notification.d.ts +34 -0
- package/dist/api/models/NotificationPlan.d.ts +20 -0
- package/dist/api/models/Project.d.ts +31 -0
- package/dist/api/models/ProjectJobConfig.d.ts +9 -0
- package/dist/api/models/Property.d.ts +17 -0
- package/dist/api/models/Role.d.ts +15 -0
- package/dist/api/models/Screenshot.d.ts +22 -0
- package/dist/api/models/Service.d.ts +61 -0
- package/dist/api/models/Settings.d.ts +6 -0
- package/dist/api/models/SharedResource.d.ts +16 -0
- package/dist/api/models/SmartbearTunnel.d.ts +20 -0
- package/dist/api/models/Tag.d.ts +16 -0
- package/dist/api/models/TestCaseRun.d.ts +40 -0
- package/dist/api/models/TestRun.d.ts +132 -0
- package/dist/api/models/TestRunDataAvailability.d.ts +10 -0
- package/dist/api/models/User.d.ts +75 -0
- package/dist/api/models/UserDeviceTime.d.ts +21 -0
- package/dist/api/models/UserDeviceTimeSummary.d.ts +14 -0
- package/dist/api/models/UserFile.d.ts +65 -0
- package/dist/api/models/UserPreference.d.ts +11 -0
- package/dist/api/models/UserStatistics.d.ts +14 -0
- package/dist/api/models/VatRate.d.ts +4 -0
- package/dist/bitbar-cloud-api-client.js +1064 -1009
- package/dist/bitbar-cloud-api-client.js.map +1 -1
- package/dist/bitbar-cloud-api-client.min.js +17 -2
- package/dist/bitbar-cloud-api-client.min.js.map +1 -1
- package/package.json +30 -26
- package/.nycrc +0 -14
- package/Jenkinsfile.sonar +0 -53
- package/dist/api/APIAdminResourceProject.d.ts +0 -6
- package/dist/api/APIListPurchased.d.ts +0 -5
- package/dist/api/APIListStatistics.d.ts +0 -6
- package/dist/api/APIResourceBuild.d.ts +0 -8
- package/dist/api/APIResourceJob.d.ts +0 -9
- package/sonar-project.properties +0 -17
- package/tsconfig.test.json +0 -20
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import APIResource from '../APIResource';
|
|
2
|
-
import InputFileset from '../class/InputFileset';
|
|
3
|
-
import OutputFileset from '../class/OutputFileset';
|
|
4
|
-
interface DeviceSessionBase extends APIResource {
|
|
1
|
+
import { APIResource } from '../APIResource';
|
|
2
|
+
import { InputFileset } from '../class/InputFileset';
|
|
3
|
+
import { OutputFileset } from '../class/OutputFileset';
|
|
4
|
+
export interface DeviceSessionBase extends APIResource {
|
|
5
5
|
input(): InputFileset;
|
|
6
6
|
output(): OutputFileset;
|
|
7
7
|
}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import APIList from '../APIList';
|
|
2
|
-
import APIResource from '../APIResource';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { APIList } from '../APIList';
|
|
2
|
+
import { APIResource } from '../APIResource';
|
|
3
|
+
import { DeviceSessionCommand, DeviceSessionStep, SessionQueryParams } from '../models/DeviceSession';
|
|
4
|
+
import { NoData, NoQueryParams } from '../models/HTTP';
|
|
5
|
+
import { Screenshot } from '../models/Screenshot';
|
|
6
|
+
import { TestCaseRun } from '../models/TestCaseRun';
|
|
7
|
+
import { DeviceSessionBase } from './DeviceSessionBase';
|
|
8
|
+
export interface DeviceSessionCommon extends DeviceSessionBase {
|
|
9
|
+
commands(): APIList<DeviceSessionCommand>;
|
|
10
|
+
screenshots(): APIList<Screenshot>;
|
|
11
|
+
screenshot(id: number): APIResource<Screenshot>;
|
|
12
|
+
steps(): APIList<DeviceSessionStep>;
|
|
13
|
+
step(id: number | 'current'): APIResource<DeviceSessionStep, NoQueryParams, NoData>;
|
|
14
|
+
currentStep(): APIResource<DeviceSessionStep, NoQueryParams, NoData>;
|
|
15
|
+
testCaseRuns(): APIList<TestCaseRun, SessionQueryParams | NoQueryParams, NoData>;
|
|
12
16
|
}
|
|
13
17
|
export default DeviceSessionCommon;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import APIList from '../APIList';
|
|
2
|
-
import APIResource from '../APIResource';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { APIList } from '../APIList';
|
|
2
|
+
import { APIResource } from '../APIResource';
|
|
3
|
+
import { DeviceSession, DeviceSessionConnection } from '../models/DeviceSession';
|
|
4
|
+
import { NoData, NoQueryParams } from '../models/HTTP';
|
|
5
|
+
import { DeviceSessionBase } from './DeviceSessionBase';
|
|
6
|
+
export interface DeviceSessionStandalone extends DeviceSessionBase {
|
|
7
|
+
connections(): APIList<DeviceSessionConnection>;
|
|
8
|
+
connection(id: number): APIResource<DeviceSessionConnection, NoQueryParams, NoData>;
|
|
9
|
+
release(): APIResource<DeviceSession, NoQueryParams, NoData>;
|
|
8
10
|
}
|
|
9
11
|
export default DeviceSessionStandalone;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum AccessGroupScope {
|
|
2
|
+
USER = "USER",
|
|
3
|
+
ACCOUNT = "ACCOUNT",
|
|
4
|
+
GLOBAL = "GLOBAL"
|
|
5
|
+
}
|
|
6
|
+
export declare type AccessGroup = {
|
|
7
|
+
id: number;
|
|
8
|
+
name: string;
|
|
9
|
+
scope: AccessGroupScope;
|
|
10
|
+
userEmail: string;
|
|
11
|
+
userId: number;
|
|
12
|
+
};
|
|
13
|
+
export declare type AccessGroupData = Pick<AccessGroup, 'name' | 'scope' | 'userId'>;
|
|
14
|
+
export declare type AccessGroupsData = Omit<AccessGroupData, 'userId'>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ServiceUnit } from './Service';
|
|
2
|
+
export declare enum PaymentStatus {
|
|
3
|
+
SUCCEEDED = "SUCCEEDED",
|
|
4
|
+
FAILED = "FAILED",
|
|
5
|
+
REDIRECTED = "REDIRECTED"
|
|
6
|
+
}
|
|
7
|
+
export declare enum PaymentMethod {
|
|
8
|
+
PAYPAL = "PAYPAL",
|
|
9
|
+
BRAINTREE = "BRAINTREE",
|
|
10
|
+
STRIPE = "STRIPE",
|
|
11
|
+
INVOICE = "INVOICE",
|
|
12
|
+
PROMOTION = "PROMOTION",
|
|
13
|
+
AWS = "AWS"
|
|
14
|
+
}
|
|
15
|
+
export declare enum ChargeType {
|
|
16
|
+
USAGE_MOBILE = "USAGE_MOBILE",
|
|
17
|
+
CONCURRENCY_MOBILE = "CONCURRENCY_MOBILE",
|
|
18
|
+
CONCURRENCY_DESKTOP = "CONCURRENCY_DESKTOP"
|
|
19
|
+
}
|
|
20
|
+
export declare enum DeactivateReason {
|
|
21
|
+
INITIAL_FAILURE = "INITIAL_FAILURE",
|
|
22
|
+
SCA_FAILURE = "SCA_FAILURE",
|
|
23
|
+
CHARGE_FAILURE = "CHARGE_FAILURE",
|
|
24
|
+
CANCEL = "CANCEL",
|
|
25
|
+
SUSPENDED = "SUSPENDED",
|
|
26
|
+
ANOTHER_PURCHASE = "ANOTHER_PURCHASE"
|
|
27
|
+
}
|
|
28
|
+
export declare type ServicePaymentStatus = {
|
|
29
|
+
accountService: AccountService;
|
|
30
|
+
message: string;
|
|
31
|
+
redirectUrl: string;
|
|
32
|
+
status: PaymentStatus;
|
|
33
|
+
};
|
|
34
|
+
export declare type AccountService = {
|
|
35
|
+
accountId: number;
|
|
36
|
+
activatedById: number;
|
|
37
|
+
activatedByName: string;
|
|
38
|
+
active: boolean;
|
|
39
|
+
autoRenew: boolean;
|
|
40
|
+
braintreeId: string;
|
|
41
|
+
chargeType: ChargeType;
|
|
42
|
+
createTime: number;
|
|
43
|
+
deactivateReason: DeactivateReason;
|
|
44
|
+
deactivatedById: number;
|
|
45
|
+
deactivatedByName: string;
|
|
46
|
+
endTime: number;
|
|
47
|
+
finished: boolean;
|
|
48
|
+
id: number;
|
|
49
|
+
lastPaymentTime: number;
|
|
50
|
+
paymentMethod: PaymentMethod;
|
|
51
|
+
price: number;
|
|
52
|
+
serviceCount: number;
|
|
53
|
+
serviceId: number;
|
|
54
|
+
serviceName: string;
|
|
55
|
+
startTime: number;
|
|
56
|
+
subscriptionManagementURL: string;
|
|
57
|
+
total: number;
|
|
58
|
+
unit: ServiceUnit;
|
|
59
|
+
unitCount: number;
|
|
60
|
+
userEmail: string;
|
|
61
|
+
userId: number;
|
|
62
|
+
vatRate: number;
|
|
63
|
+
};
|
|
64
|
+
export declare type AccountServiceData = Pick<AccountService, 'endTime' | 'serviceId'> & {
|
|
65
|
+
count: number;
|
|
66
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Method } from 'axios';
|
|
2
|
+
export declare type Activity = {
|
|
3
|
+
body: string;
|
|
4
|
+
createTime: number;
|
|
5
|
+
deprecatedResource: boolean;
|
|
6
|
+
httpMethod: Uppercase<Method>;
|
|
7
|
+
id: number;
|
|
8
|
+
parameters: string;
|
|
9
|
+
uri: string;
|
|
10
|
+
userAgent: string;
|
|
11
|
+
userEmail: string;
|
|
12
|
+
userId: number;
|
|
13
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { DevicesQueryParams, Platform, SoftwareVersion } from './Device';
|
|
2
|
+
import { OsType } from './Enum';
|
|
3
|
+
import { CollectionQueryParams } from './HTTP';
|
|
4
|
+
export declare enum InitStep {
|
|
5
|
+
SKIP = "SKIP",
|
|
6
|
+
REBOOT = "REBOOT",
|
|
7
|
+
REBOOT_WITH_UNLOCK = "REBOOT_WITH_UNLOCK",
|
|
8
|
+
UNLOCK_ONLY = "UNLOCK_ONLY"
|
|
9
|
+
}
|
|
10
|
+
export declare enum DeviceState {
|
|
11
|
+
OFFLINE_CLEANING = "OFFLINE_CLEANING",
|
|
12
|
+
OFFLINE_DIRTY = "OFFLINE_DIRTY",
|
|
13
|
+
OFFLINE_FREE = "OFFLINE_FREE",
|
|
14
|
+
OFFLINE_TESTING = "OFFLINE_TESTING",
|
|
15
|
+
ONLINE_CLEANING = "ONLINE_CLEANING",
|
|
16
|
+
ONLINE_DIRTY = "ONLINE_DIRTY",
|
|
17
|
+
ONLINE_FREE = "ONLINE_FREE",
|
|
18
|
+
ONLINE_TESTING = "ONLINE_TESTING"
|
|
19
|
+
}
|
|
20
|
+
export declare type AdminDevice = {
|
|
21
|
+
accountId: number;
|
|
22
|
+
cluster: unknown;
|
|
23
|
+
deviceModelId: number;
|
|
24
|
+
deviceModelName: string;
|
|
25
|
+
enabled: boolean;
|
|
26
|
+
fingerprint: string;
|
|
27
|
+
id: number;
|
|
28
|
+
initStep: InitStep;
|
|
29
|
+
ipAddress: string;
|
|
30
|
+
lastOnlineTime: number;
|
|
31
|
+
location: string;
|
|
32
|
+
locked: boolean;
|
|
33
|
+
mainUserEmail: string;
|
|
34
|
+
manufacturer: string;
|
|
35
|
+
name: string;
|
|
36
|
+
osType: OsType;
|
|
37
|
+
platform: Platform;
|
|
38
|
+
serialId: string;
|
|
39
|
+
softwareVersion: SoftwareVersion;
|
|
40
|
+
state: DeviceState;
|
|
41
|
+
stateChangeTime: number;
|
|
42
|
+
stateTime: number;
|
|
43
|
+
testTimeLimit: number;
|
|
44
|
+
unlockGesture: string;
|
|
45
|
+
};
|
|
46
|
+
export declare type AdminDevicesQueryParams = Pick<DevicesQueryParams, 'withDisabled'> & CollectionQueryParams;
|
|
47
|
+
export declare type AdminDeviceData = Pick<AdminDevice, 'accountId' | 'enabled' | 'initStep' | 'ipAddress' | 'name' | 'serialId' | 'testTimeLimit' | 'unlockGesture'> & {
|
|
48
|
+
apiLevel: number;
|
|
49
|
+
releaseVersion: string;
|
|
50
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DeviceSessionState, DeviceSessionStepType } from './DeviceSession';
|
|
2
|
+
export declare type AdminDeviceSession = {
|
|
3
|
+
billable: boolean;
|
|
4
|
+
createTime: number;
|
|
5
|
+
currentStepType: DeviceSessionStepType;
|
|
6
|
+
deviceTime: number;
|
|
7
|
+
endTime: number;
|
|
8
|
+
errorMessage: string;
|
|
9
|
+
id: number;
|
|
10
|
+
priority: number;
|
|
11
|
+
projectId: number;
|
|
12
|
+
projectName: string;
|
|
13
|
+
retriedFailReason: string;
|
|
14
|
+
startTime: number;
|
|
15
|
+
startedByDisplayName: string;
|
|
16
|
+
state: DeviceSessionState;
|
|
17
|
+
testRunId: number;
|
|
18
|
+
testRunName: string;
|
|
19
|
+
};
|
|
20
|
+
export declare type AdminInteractiveDeviceSession = {
|
|
21
|
+
billable: boolean;
|
|
22
|
+
createTime: number;
|
|
23
|
+
deviceId: number;
|
|
24
|
+
deviceModelId: number;
|
|
25
|
+
deviceModelName: string;
|
|
26
|
+
deviceName: string;
|
|
27
|
+
deviceTime: number;
|
|
28
|
+
duration: number;
|
|
29
|
+
endTime: number;
|
|
30
|
+
errorMessage: string;
|
|
31
|
+
id: number;
|
|
32
|
+
startTime: number;
|
|
33
|
+
state: DeviceSessionState;
|
|
34
|
+
userEmail: string;
|
|
35
|
+
userId: number;
|
|
36
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CollectionQueryParams } from './HTTP';
|
|
2
|
+
export declare type AdminDeviceSessionStatistics = {
|
|
3
|
+
abortedDeviceCount: number;
|
|
4
|
+
avgDeviceSessionDeviceTime: number;
|
|
5
|
+
avgDeviceSessionDuration: number;
|
|
6
|
+
avgDeviceSessionSuccessRatio: number;
|
|
7
|
+
errorsDeviceCount: number;
|
|
8
|
+
excludedDeviceCount: number;
|
|
9
|
+
finishedDeviceCount: number;
|
|
10
|
+
id: number;
|
|
11
|
+
maxDeviceSessionDuration: number;
|
|
12
|
+
minDeviceSessionDuration: number;
|
|
13
|
+
runningDeviceCount: number;
|
|
14
|
+
succeededDeviceCount: number;
|
|
15
|
+
timeoutedDeviceCount: number;
|
|
16
|
+
totalDeviceCount: number;
|
|
17
|
+
waitingDeviceCount: number;
|
|
18
|
+
warningDeviceCount: number;
|
|
19
|
+
};
|
|
20
|
+
export interface AdminStatisticsParams extends CollectionQueryParams {
|
|
21
|
+
days: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare type AdminDeviceType = {
|
|
2
|
+
frameExtraWidth: number;
|
|
3
|
+
id: number;
|
|
4
|
+
imageHeight: number;
|
|
5
|
+
imageLeft: number;
|
|
6
|
+
imagePrefix: string;
|
|
7
|
+
imageTop: number;
|
|
8
|
+
imageWidth: number;
|
|
9
|
+
};
|
|
10
|
+
export declare type DeviceTypeData = Omit<AdminDeviceType, 'id'> & {
|
|
11
|
+
deviceTypeId: number;
|
|
12
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare enum AdminErrorType {
|
|
2
|
+
ABORT_REQUEST = "ABORT_REQUEST",
|
|
3
|
+
ADB_COMMAND_REJECTED = "ADB_COMMAND_REJECTED",
|
|
4
|
+
ADB_SHELL_COMMAND_FAILED = "ADB_SHELL_COMMAND_FAILED",
|
|
5
|
+
APP_LOCK_NOT_INSTALLED = "APP_LOCK_NOT_INSTALLED",
|
|
6
|
+
DEVICE_OFFLINE = "DEVICE_OFFLINE",
|
|
7
|
+
DEVICE_OUTPUT_NULL = "DEVICE_OUTPUT_NULL",
|
|
8
|
+
GAMEBENCH_ERROR = "GAMEBENCH_ERROR",
|
|
9
|
+
GAMEBENCH_NOT_SUPPORTED = "GAMEBENCH_NOT_SUPPORTED",
|
|
10
|
+
GRANT_FAILED = "GRANT_FAILED",
|
|
11
|
+
INSTALL_FAILED = "INSTALL_FAILED",
|
|
12
|
+
INTERACTIVE_SETUP_FAILED = "INTERACTIVE_SETUP_FAILED",
|
|
13
|
+
INTERNAL_INSTALL_FAILED = "INTERNAL_INSTALL_FAILED",
|
|
14
|
+
INVALID_TEST_SESSION_FILE = "INVALID_TEST_SESSION_FILE",
|
|
15
|
+
LOCK_EXPIRED = "LOCK_EXPIRED",
|
|
16
|
+
LOCK_TIMEOUT = "LOCK_TIMEOUT",
|
|
17
|
+
NO_NETWORK_CONNECTION = "NO_NETWORK_CONNECTION",
|
|
18
|
+
OTHER = "OTHER",
|
|
19
|
+
REBOOTING_TIMEOUT = "REBOOTING_TIMEOUT",
|
|
20
|
+
REPACKAGING = "REPACKAGING",
|
|
21
|
+
RESULTS_PREPARING = "RESULTS_PREPARING",
|
|
22
|
+
RESULTS_PROCESSING = "RESULTS_PROCESSING",
|
|
23
|
+
RESULTS_SENDING = "RESULTS_SENDING",
|
|
24
|
+
STEP_TIMEOUT = "STEP_TIMEOUT",
|
|
25
|
+
SYSTEM_FAILURE = "SYSTEM_FAILURE",
|
|
26
|
+
TEST_RUN_FAILED = "TEST_RUN_FAILED",
|
|
27
|
+
TEST_RUN_INTERRUPTED = "TEST_RUN_INTERRUPTED",
|
|
28
|
+
TEST_RUN_TIMEOUT = "TEST_RUN_TIMEOUT",
|
|
29
|
+
TEST_RUN_WARNED = "TEST_RUN_WARNED",
|
|
30
|
+
TEST_TIMEOUT = "TEST_TIMEOUT",
|
|
31
|
+
VNC_CONNECTION_SETUP_FAILED = "VNC_CONNECTION_SETUP_FAILED",
|
|
32
|
+
XCRUN_INSTRUMENTS_COMMAND_FAILED = "XCRUN_INSTRUMENTS_COMMAND_FAILED",
|
|
33
|
+
XCRUN_INSTRUMENTS_JS_ERROR = "XCRUN_INSTRUMENTS_JS_ERROR"
|
|
34
|
+
}
|
|
35
|
+
export declare type AdminError = {
|
|
36
|
+
id: number;
|
|
37
|
+
quantity: number;
|
|
38
|
+
type: AdminErrorType;
|
|
39
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DeviceSessionState } from './DeviceSession';
|
|
2
|
+
import { OsType } from './Enum';
|
|
3
|
+
export declare enum FrameworkType {
|
|
4
|
+
AUTOMATIC = "AUTOMATIC",
|
|
5
|
+
MANUAL_APP = "MANUAL_APP",
|
|
6
|
+
MANUAL_WEB = "MANUAL_WEB",
|
|
7
|
+
REMOTE = "REMOTE"
|
|
8
|
+
}
|
|
9
|
+
export declare type AdminFrameworkStatistics = {
|
|
10
|
+
cloudName: string;
|
|
11
|
+
count: number;
|
|
12
|
+
day: number;
|
|
13
|
+
deviceModelId: number;
|
|
14
|
+
deviceModelName: string;
|
|
15
|
+
frameworkId: number;
|
|
16
|
+
frameworkName: string;
|
|
17
|
+
id: number;
|
|
18
|
+
osType: OsType;
|
|
19
|
+
releaseVersion: string;
|
|
20
|
+
state: DeviceSessionState;
|
|
21
|
+
type: FrameworkType;
|
|
22
|
+
userEmail: string;
|
|
23
|
+
userId: number;
|
|
24
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare type AdminOverview = {
|
|
2
|
+
activeUsersCount: number;
|
|
3
|
+
id: number;
|
|
4
|
+
inspectorSessionsCount: number;
|
|
5
|
+
remoteSessionsCount: number;
|
|
6
|
+
runningDeviceModelsCount: number;
|
|
7
|
+
runningTestRunsCount: number;
|
|
8
|
+
waitingDeviceModelsCount: number;
|
|
9
|
+
waitingTestRunsCount: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { QueryParams } from './HTTP';
|
|
2
|
+
import { TestScheduler, TestState } from './TestRun';
|
|
3
|
+
export declare type AdminTestRun = {
|
|
4
|
+
appCrawlerRun: boolean;
|
|
5
|
+
createTime: number;
|
|
6
|
+
duration: number;
|
|
7
|
+
endTime: number;
|
|
8
|
+
frameworkId: number;
|
|
9
|
+
frameworkName: string;
|
|
10
|
+
id: number;
|
|
11
|
+
message: string;
|
|
12
|
+
priority: number;
|
|
13
|
+
projectId: number;
|
|
14
|
+
projectName: string;
|
|
15
|
+
scheduler: TestScheduler;
|
|
16
|
+
startTime: number;
|
|
17
|
+
startedById: number;
|
|
18
|
+
state: TestState;
|
|
19
|
+
successRatio: number;
|
|
20
|
+
};
|
|
21
|
+
export interface RunsConfigParams extends QueryParams {
|
|
22
|
+
includeDeviceGroups: boolean;
|
|
23
|
+
includeDevices: boolean;
|
|
24
|
+
includeFrameworks: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface RunChangeBillableParams extends QueryParams {
|
|
27
|
+
billable: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface RunChangePriorityParams extends QueryParams {
|
|
30
|
+
priority: boolean;
|
|
31
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { PaymentMethod } from './AccountService';
|
|
2
|
+
import { DeviceSessionType } from './DeviceSession';
|
|
3
|
+
import { OsType } from './Enum';
|
|
4
|
+
import { QueryParams } from './HTTP';
|
|
5
|
+
export declare enum BillingType {
|
|
6
|
+
BUY = "BUY",
|
|
7
|
+
CHARGE = "CHARGE",
|
|
8
|
+
CANCEL = "CANCEL"
|
|
9
|
+
}
|
|
10
|
+
export declare type BillingPeriod = {
|
|
11
|
+
accountServiceId: number;
|
|
12
|
+
additionalHours: number;
|
|
13
|
+
additionalHoursPrice: number;
|
|
14
|
+
apiBillingPeriodType: BillingType;
|
|
15
|
+
createTime: number;
|
|
16
|
+
endBillingPeriod: number;
|
|
17
|
+
id: number;
|
|
18
|
+
lastPaymentDate: number;
|
|
19
|
+
mail: string;
|
|
20
|
+
paid: boolean;
|
|
21
|
+
paymentMethod: PaymentMethod;
|
|
22
|
+
plan: string;
|
|
23
|
+
servicePrice: number;
|
|
24
|
+
startBillingPeriod: number;
|
|
25
|
+
subscriptionEnd: number;
|
|
26
|
+
subscriptionStart: number;
|
|
27
|
+
totalPrice: number;
|
|
28
|
+
usages: Array<BillingPeriodUsage>;
|
|
29
|
+
userId: number;
|
|
30
|
+
};
|
|
31
|
+
export declare type BillingPeriodUsage = {
|
|
32
|
+
billableSeconds: number;
|
|
33
|
+
id: number;
|
|
34
|
+
nonBillableSeconds: number;
|
|
35
|
+
osType: OsType;
|
|
36
|
+
type: DeviceSessionType;
|
|
37
|
+
};
|
|
38
|
+
export interface BillingPeriodQueryParams extends QueryParams {
|
|
39
|
+
onDate: number;
|
|
40
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OsType } from './Enum';
|
|
2
|
+
export declare type Browser = {
|
|
3
|
+
architecture: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
id: number;
|
|
6
|
+
install: boolean;
|
|
7
|
+
installUrl: string;
|
|
8
|
+
name: string;
|
|
9
|
+
osType: OsType;
|
|
10
|
+
version: string;
|
|
11
|
+
};
|
|
12
|
+
export declare type BrowserData = Omit<Browser, 'id' | 'install'>;
|
|
13
|
+
export declare type DeviceBrowserData = {
|
|
14
|
+
browserIds: Array<number>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DeviceCleanupConfiguration } from './Device';
|
|
2
|
+
export declare type CleanupConfigurationData = Pick<DeviceCleanupConfiguration, 'content' | 'discriminator' | 'enabled' | 'osType'>;
|
|
3
|
+
export interface SpecificCleanupConfigurationQueryParams {
|
|
4
|
+
serialId: string;
|
|
5
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AdminDevice } from './AdminDevice';
|
|
2
|
+
import { CollectionResponse, QueryParams } from './HTTP';
|
|
3
|
+
export declare type Cluster = {
|
|
4
|
+
devices: CollectionResponse<AdminDevice>;
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
id: number;
|
|
7
|
+
ipAddress: string;
|
|
8
|
+
jenkinsUrl: string;
|
|
9
|
+
location: string;
|
|
10
|
+
name: string;
|
|
11
|
+
pluginVersion: string;
|
|
12
|
+
region: string;
|
|
13
|
+
state: ClusterState;
|
|
14
|
+
stateChangeTime: number;
|
|
15
|
+
stateTime: number;
|
|
16
|
+
url: string;
|
|
17
|
+
};
|
|
18
|
+
export declare enum ClusterState {
|
|
19
|
+
'OFFLINE' = 0,
|
|
20
|
+
ONLINE = "ONLINE",
|
|
21
|
+
RESTARTING = "RESTARTING",
|
|
22
|
+
QUIET_DOWN = "QUIET_DOWN",
|
|
23
|
+
MAINTENANCE = "MAINTENANCE"
|
|
24
|
+
}
|
|
25
|
+
export interface ClusterParams extends QueryParams {
|
|
26
|
+
withDevices: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare type ClusterData = Pick<Cluster, 'enabled' | 'url'> & {
|
|
29
|
+
quietDown: boolean;
|
|
30
|
+
restart: boolean;
|
|
31
|
+
turnMaintenance: boolean;
|
|
32
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare type Connection = {
|
|
2
|
+
createTime: number;
|
|
3
|
+
deviceSessionId: number;
|
|
4
|
+
endTime: number;
|
|
5
|
+
externalId: string;
|
|
6
|
+
host: string;
|
|
7
|
+
id: number;
|
|
8
|
+
password: string;
|
|
9
|
+
path: string;
|
|
10
|
+
port: number;
|
|
11
|
+
type: string;
|
|
12
|
+
url: string;
|
|
13
|
+
urlSchema: string;
|
|
14
|
+
};
|
|
15
|
+
export declare type ConnectionData = Pick<Connection, 'host' | 'port' | 'type' | 'password'>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare type DesktopBrowserCapabilities = {
|
|
2
|
+
id: number;
|
|
3
|
+
platforms: Array<any>;
|
|
4
|
+
};
|
|
5
|
+
export declare type DesktopPlatform = {
|
|
6
|
+
browsers: Array<DesktopBrowser>;
|
|
7
|
+
id: number;
|
|
8
|
+
name: string;
|
|
9
|
+
resolutions: Array<string>;
|
|
10
|
+
value: string;
|
|
11
|
+
version: string;
|
|
12
|
+
};
|
|
13
|
+
export declare type DesktopBrowser = {
|
|
14
|
+
displayName: string;
|
|
15
|
+
id: number;
|
|
16
|
+
name: string;
|
|
17
|
+
value: string;
|
|
18
|
+
version: Array<string>;
|
|
19
|
+
};
|