@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,6 +1,5 @@
|
|
|
1
1
|
import { API } from '../API';
|
|
2
2
|
import { APIAdminListDevices } from './APIAdminListDevices';
|
|
3
|
-
import { APIAdminListNotificationPlans } from './APIAdminListNotificationPlans';
|
|
4
3
|
import { APIAdminListRuns } from './APIAdminListRuns';
|
|
5
4
|
import { APIAdminListServices } from './APIAdminListServices';
|
|
6
5
|
import { APIAdminListStatistics } from './APIAdminListStatistics';
|
|
@@ -13,7 +12,6 @@ import { APIAdminResourceDeviceSessionStandalone } from './APIAdminResourceDevic
|
|
|
13
12
|
import { APIAdminResourceDeviceTime } from './APIAdminResourceDeviceTime';
|
|
14
13
|
import { APIAdminResourceFramework } from './APIAdminResourceFramework';
|
|
15
14
|
import { APIAdminResourceLicense } from './APIAdminResourceLicense';
|
|
16
|
-
import { APIAdminResourceNotificationPlan } from './APIAdminResourceNotificationPlan';
|
|
17
15
|
import { APIAdminResourceRunStandalone } from './APIAdminResourceRunStandalone';
|
|
18
16
|
import { APIAdminResourceService } from './APIAdminResourceService';
|
|
19
17
|
import { APIAdminResourceUser } from './APIAdminResourceUser';
|
|
@@ -30,12 +28,10 @@ import { Activity } from './models/Activity';
|
|
|
30
28
|
import { AdminDeviceSession, AdminInteractiveDeviceSession } from './models/AdminDeviceSession';
|
|
31
29
|
import { AdminDeviceType, DeviceTypeData } from './models/AdminDeviceType';
|
|
32
30
|
import { AdminEmail } from './models/AdminEmail';
|
|
33
|
-
import { AdminError } from './models/AdminError';
|
|
34
31
|
import { Administrator } from './models/Administrator';
|
|
35
32
|
import { AdminOverview } from './models/AdminOverview';
|
|
36
33
|
import { BillingPeriod } from './models/BillingPeriod';
|
|
37
34
|
import { Browser, BrowserData } from './models/Browser';
|
|
38
|
-
import { CountryVatRate, CountryVatRateData } from './models/CountryVatRate';
|
|
39
35
|
import { DeviceModelCriterion, DeviceModelCriterionData } from './models/DeviceModelCriterion';
|
|
40
36
|
import { DeviceModelPool, DeviceModelPoolData } from './models/DeviceModelPool';
|
|
41
37
|
import { Framework, FrameworkData } from './models/Framework';
|
|
@@ -70,8 +66,6 @@ export declare class APIAdminResource extends APIResource {
|
|
|
70
66
|
browser(id: number): APIResource<Browser, NoQueryParams, BrowserData>;
|
|
71
67
|
clusters(): APIList<Cluster, CollectionQueryParams, any>;
|
|
72
68
|
cluster(id: number): APIAdminResourceCluster;
|
|
73
|
-
countryVatRates(): APIList<CountryVatRate, CollectionQueryParams, CountryVatRateData>;
|
|
74
|
-
countryVatRate(id: number): APIResource<CountryVatRate, NoQueryParams, Omit<CountryVatRate, "country">>;
|
|
75
69
|
devices(): APIAdminListDevices;
|
|
76
70
|
device(id: number): APIAdminResourceDevice;
|
|
77
71
|
devicesForModel(id: number): APIAdminListDevices;
|
|
@@ -91,7 +85,6 @@ export declare class APIAdminResource extends APIResource {
|
|
|
91
85
|
deviceGroup(id: number): APIResourceDeviceGroup;
|
|
92
86
|
emails(): APIList<AdminEmail, CollectionQueryParams, any>;
|
|
93
87
|
resendEmail(id: number): APIResource<AdminEmail, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
|
|
94
|
-
errors(): APIList<AdminError, CollectionQueryParams, any>;
|
|
95
88
|
files(): APIList<UserFile, UserFileParams, UserFileData>;
|
|
96
89
|
file(id: number): APIResourceFile;
|
|
97
90
|
frameworks<T = Framework, U extends CollectionQueryParams = CollectionQueryParams, W = FrameworkData>(): APIList<T, U, W>;
|
|
@@ -101,8 +94,6 @@ export declare class APIAdminResource extends APIResource {
|
|
|
101
94
|
licenses(): APIList<License, CollectionQueryParams, LicenseData>;
|
|
102
95
|
license(id: number): APIAdminResourceLicense;
|
|
103
96
|
maintenance(): APIResource<Maintenance, NoQueryParams, MaintenanceData>;
|
|
104
|
-
notificationPlans(): APIAdminListNotificationPlans;
|
|
105
|
-
notificationPlan(id: number): APIAdminResourceNotificationPlan;
|
|
106
97
|
overview(): APIResource<AdminOverview, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
|
|
107
98
|
pools(): APIList<DeviceModelPool, CollectionQueryParams, any>;
|
|
108
99
|
pool(id: number): APIResource<DeviceModelPool, NoQueryParams, DeviceModelPoolData>;
|
|
@@ -5,7 +5,7 @@ import { APIResourceBillingPeriod } from './APIResourceBillingPeriod';
|
|
|
5
5
|
import { Account, AccountData } from './models/Account';
|
|
6
6
|
import { AccountConcurrencyStatusMap } from './models/AccountConcurrencyStatusMap';
|
|
7
7
|
import { AccountPreferences } from './models/AccountPreference';
|
|
8
|
-
import { AccountService } from './models/AccountService';
|
|
8
|
+
import { AccountService, ServicePaymentStatus } from './models/AccountService';
|
|
9
9
|
import { AccountServicePayment } from './models/AccountServicePayment';
|
|
10
10
|
import { BillingPeriod, BillingPeriodQueryParams } from './models/BillingPeriod';
|
|
11
11
|
import { DeviceTimeSummaryQueryParams } from './models/Device';
|
|
@@ -31,5 +31,6 @@ export declare class APIResourceAccount extends APIResource<Account, QueryParams
|
|
|
31
31
|
visualTestAccess(): APIResource<VisualTestAccess, NoQueryParams, VisualTestAccess>;
|
|
32
32
|
accountServices(): APIList<AccountService, import("./models/HTTP").CollectionQueryParams, any>;
|
|
33
33
|
accountService(id: number): APIList<AccountService, import("./models/HTTP").CollectionQueryParams, any>;
|
|
34
|
+
services(): APIResource<ServicePaymentStatus, QueryParams, QueryParams>;
|
|
34
35
|
}
|
|
35
36
|
export default APIResourceAccount;
|
|
@@ -5,8 +5,6 @@ import { APIResource } from './APIResource';
|
|
|
5
5
|
import { AdminTestRun } from './models/AdminTestRun';
|
|
6
6
|
import { DeviceSession, DeviceSessionStep, TestRunDeviceSessionQueryParams } from './models/DeviceSession';
|
|
7
7
|
import { CollectionBasicQueryParams, NoQueryParams } from './models/HTTP';
|
|
8
|
-
import { Screenshot, ScreenshotExtended, ScreenshotQueryParams } from './models/Screenshot';
|
|
9
|
-
import { Tag, TagsData, TagsQueryParams, TaqQueryParams, TestRunTagsData } from './models/Tag';
|
|
10
8
|
import { RunData, RunQueryParam, TestRun, TestRunData } from './models/TestRun';
|
|
11
9
|
import { TestRunDataAvailability, TestRunDataAvailabilityQueryParams } from './models/TestRunDataAvailability';
|
|
12
10
|
import { UserFile } from './models/UserFile';
|
|
@@ -20,11 +18,7 @@ export declare class APIResourceRunCommon extends APIResource<TestRun, RunQueryP
|
|
|
20
18
|
logsZip(ids?: Array<number>): APIResource<UserFile, import("./models/UserFile").BuildLogsData, import("./models/UserFile").BuildLogsData>;
|
|
21
19
|
performanceZip(ids?: Array<number>): APIResource<UserFile, import("./models/UserFile").BuildLogsData, import("./models/UserFile").BuildLogsData>;
|
|
22
20
|
retry(ids?: Array<number>): APIResource<TestRun, import("./models/UserFile").BuildLogsData, import("./models/UserFile").BuildLogsData>;
|
|
23
|
-
screenshotNames(): APIList<Screenshot, NoQueryParams, void>;
|
|
24
|
-
screenshots(): APIList<ScreenshotExtended, ScreenshotQueryParams, void>;
|
|
25
21
|
screenshotsZip(ids?: Array<number>): APIResource<UserFile, import("./models/UserFile").BuildLogsData, import("./models/UserFile").BuildLogsData>;
|
|
26
22
|
steps(): APIList<DeviceSessionStep, CollectionBasicQueryParams, void>;
|
|
27
|
-
tags(): APIList<Tag, CollectionBasicQueryParams | TagsQueryParams, TestRunTagsData | TagsData>;
|
|
28
|
-
tag(id: number): APIResource<Tag, TaqQueryParams, void>;
|
|
29
23
|
}
|
|
30
24
|
export default APIResourceRunCommon;
|
package/dist/api/admin.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { APIAdminListDevices as OriginAPIAdminListDevices } from './APIAdminListDevices';
|
|
2
|
-
import { APIAdminListNotificationPlans as OriginAPIAdminListNotificationPlans } from './APIAdminListNotificationPlans';
|
|
3
2
|
import { APIAdminListRuns as OriginAPIAdminListRuns } from './APIAdminListRuns';
|
|
4
3
|
import { APIAdminListServices as OriginAPIAdminListServices } from './APIAdminListServices';
|
|
5
4
|
import { APIAdminListStatistics as OriginAPIAdminListStatistics } from './APIAdminListStatistics';
|
|
@@ -14,14 +13,12 @@ import { APIAdminResourceDeviceSessionStandalone as OriginAPIAdminResourceDevice
|
|
|
14
13
|
import { APIAdminResourceDeviceTime as OriginAPIAdminResourceDeviceTime } from './APIAdminResourceDeviceTime';
|
|
15
14
|
import { APIAdminResourceFramework as OriginAPIAdminResourceFramework } from './APIAdminResourceFramework';
|
|
16
15
|
import { APIAdminResourceLicense as OriginAPIAdminResourceLicense } from './APIAdminResourceLicense';
|
|
17
|
-
import { APIAdminResourceNotificationPlan as OriginAPIAdminResourceNotificationPlan } from './APIAdminResourceNotificationPlan';
|
|
18
16
|
import { APIAdminResourceRun as OriginAPIAdminResourceRun } from './APIAdminResourceRun';
|
|
19
17
|
import { APIAdminResourceRunStandalone as OriginAPIAdminResourceRunStandalone } from './APIAdminResourceRunStandalone';
|
|
20
18
|
import { APIAdminResourceService as OriginAPIAdminResourceService } from './APIAdminResourceService';
|
|
21
19
|
import { APIAdminResourceUser as OriginAPIAdminResourceUser } from './APIAdminResourceUser';
|
|
22
20
|
import { APIAdminResourceUserAccount as OriginAPIAdminResourceUserAccount } from './APIAdminResourceUserAccount';
|
|
23
21
|
export type APIAdminListDevices = InstanceType<typeof OriginAPIAdminListDevices>;
|
|
24
|
-
export type APIAdminListNotificationPlans = InstanceType<typeof OriginAPIAdminListNotificationPlans>;
|
|
25
22
|
export type APIAdminListRuns = InstanceType<typeof OriginAPIAdminListRuns>;
|
|
26
23
|
export type APIAdminListServices = InstanceType<typeof OriginAPIAdminListServices>;
|
|
27
24
|
export type APIAdminListStatistics = InstanceType<typeof OriginAPIAdminListStatistics>;
|
|
@@ -36,7 +33,6 @@ export type APIAdminResourceDeviceSessionStandalone = InstanceType<typeof Origin
|
|
|
36
33
|
export type APIAdminResourceDeviceTime = InstanceType<typeof OriginAPIAdminResourceDeviceTime>;
|
|
37
34
|
export type APIAdminResourceFramework = InstanceType<typeof OriginAPIAdminResourceFramework>;
|
|
38
35
|
export type APIAdminResourceLicense = InstanceType<typeof OriginAPIAdminResourceLicense>;
|
|
39
|
-
export type APIAdminResourceNotificationPlan = InstanceType<typeof OriginAPIAdminResourceNotificationPlan>;
|
|
40
36
|
export type APIAdminResourceRun = InstanceType<typeof OriginAPIAdminResourceRun>;
|
|
41
37
|
export type APIAdminResourceRunStandalone = InstanceType<typeof OriginAPIAdminResourceRunStandalone>;
|
|
42
38
|
export type APIAdminResourceService = InstanceType<typeof OriginAPIAdminResourceService>;
|
|
@@ -12,11 +12,6 @@ export declare enum PaymentMethod {
|
|
|
12
12
|
PROMOTION = "PROMOTION",
|
|
13
13
|
AWS = "AWS"
|
|
14
14
|
}
|
|
15
|
-
export declare enum ChargeType {
|
|
16
|
-
USAGE_MOBILE = "USAGE_MOBILE",
|
|
17
|
-
CONCURRENCY_MOBILE = "CONCURRENCY_MOBILE",
|
|
18
|
-
CONCURRENCY_DESKTOP = "CONCURRENCY_DESKTOP"
|
|
19
|
-
}
|
|
20
15
|
export declare enum DeactivateReason {
|
|
21
16
|
INITIAL_FAILURE = "INITIAL_FAILURE",
|
|
22
17
|
SCA_FAILURE = "SCA_FAILURE",
|
|
@@ -38,7 +33,6 @@ export type AccountService = {
|
|
|
38
33
|
activatedByName: string;
|
|
39
34
|
active: boolean;
|
|
40
35
|
braintreeId: string;
|
|
41
|
-
chargeType: ChargeType;
|
|
42
36
|
createTime: number;
|
|
43
37
|
deactivateReason: DeactivateReason;
|
|
44
38
|
deactivatedById: number;
|
|
@@ -55,10 +49,8 @@ export type AccountService = {
|
|
|
55
49
|
slmLicenseId: string;
|
|
56
50
|
startTime: number;
|
|
57
51
|
subscriptionManagementURL: string;
|
|
58
|
-
total: number;
|
|
59
52
|
unit: ServiceUnit;
|
|
60
53
|
unitCount: number;
|
|
61
|
-
userId: number;
|
|
62
54
|
vatRate: number;
|
|
63
55
|
};
|
|
64
56
|
export type AccountServiceData = Pick<AccountService, 'endTime' | 'serviceId' | 'slmLicenseId'> & {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { DeviceSessionState, DeviceSessionStepType } from './DeviceSession';
|
|
1
|
+
import { DeviceSessionState, DeviceSessionStepType, DeviceSessionType } from './DeviceSession';
|
|
2
2
|
export type AdminDeviceSession = {
|
|
3
|
-
billable: boolean;
|
|
4
3
|
createTime: number;
|
|
5
4
|
currentStepType: DeviceSessionStepType;
|
|
6
5
|
duration: number;
|
|
@@ -18,7 +17,6 @@ export type AdminDeviceSession = {
|
|
|
18
17
|
testRunName: string;
|
|
19
18
|
};
|
|
20
19
|
export type AdminInteractiveDeviceSession = {
|
|
21
|
-
billable: boolean;
|
|
22
20
|
createTime: number;
|
|
23
21
|
deviceId: number;
|
|
24
22
|
deviceModelId: number;
|
|
@@ -30,6 +28,7 @@ export type AdminInteractiveDeviceSession = {
|
|
|
30
28
|
id: number;
|
|
31
29
|
startTime: number;
|
|
32
30
|
state: DeviceSessionState;
|
|
31
|
+
type: DeviceSessionType;
|
|
33
32
|
userEmail: string;
|
|
34
33
|
userId: number;
|
|
35
34
|
};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
export type AdminOverview = {
|
|
2
2
|
activeUsersCount: number;
|
|
3
3
|
id: number;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
offlineClusterCount: number;
|
|
5
|
+
offlineDeviceCount: number;
|
|
6
|
+
offlineDeviceModelCount: number;
|
|
7
|
+
runningInspectorSessionsCount: number;
|
|
7
8
|
runningTestRunsCount: number;
|
|
8
|
-
|
|
9
|
+
totalClusterCount: number;
|
|
10
|
+
totalDeviceCount: number;
|
|
11
|
+
totalDeviceModelCount: number;
|
|
12
|
+
totalInspectorSessionsCount: number;
|
|
13
|
+
totalTestRunCount: number;
|
|
14
|
+
totalUserCount: number;
|
|
9
15
|
waitingTestRunsCount: number;
|
|
10
16
|
};
|
|
@@ -6,6 +6,7 @@ export type Cluster = {
|
|
|
6
6
|
id: number;
|
|
7
7
|
ipAddress: string;
|
|
8
8
|
jenkinsUrl: string;
|
|
9
|
+
jenkinsVersion: string;
|
|
9
10
|
location: string;
|
|
10
11
|
name: string;
|
|
11
12
|
pluginVersion: string;
|
|
@@ -13,6 +14,7 @@ export type Cluster = {
|
|
|
13
14
|
state: ClusterState;
|
|
14
15
|
stateChangeTime: number;
|
|
15
16
|
stateTime: number;
|
|
17
|
+
type: ClusterType;
|
|
16
18
|
url: string;
|
|
17
19
|
};
|
|
18
20
|
export declare enum ClusterState {
|
|
@@ -22,6 +24,11 @@ export declare enum ClusterState {
|
|
|
22
24
|
QUIET_DOWN = "QUIET_DOWN",
|
|
23
25
|
MAINTENANCE = "MAINTENANCE"
|
|
24
26
|
}
|
|
27
|
+
export declare enum ClusterType {
|
|
28
|
+
BARE_METAL = "BARE_METAL",
|
|
29
|
+
EC2 = "EC2",
|
|
30
|
+
VM = "VM"
|
|
31
|
+
}
|
|
25
32
|
export interface ClusterParams extends QueryParams {
|
|
26
33
|
withDevices: boolean;
|
|
27
34
|
}
|
|
@@ -20,6 +20,22 @@ export declare enum SupportedCreators {
|
|
|
20
20
|
ROBOT = "ROBOT",
|
|
21
21
|
AUTOMATIC = "AUTOMATIC"
|
|
22
22
|
}
|
|
23
|
+
export declare enum PoolSize {
|
|
24
|
+
XL = "XL",
|
|
25
|
+
L = "L",
|
|
26
|
+
M = "M",
|
|
27
|
+
S = "S"
|
|
28
|
+
}
|
|
29
|
+
export declare enum Code {
|
|
30
|
+
HIGH = "HIGH",
|
|
31
|
+
MODERATE = "MODERATE",
|
|
32
|
+
LOW = "LOW",
|
|
33
|
+
NONE = "NONE"
|
|
34
|
+
}
|
|
35
|
+
export type DeviceAvailability = {
|
|
36
|
+
poolSize: PoolSize;
|
|
37
|
+
code: Code;
|
|
38
|
+
};
|
|
23
39
|
export type DeviceProperty = {
|
|
24
40
|
displayName: string;
|
|
25
41
|
id: number;
|
|
@@ -42,6 +58,7 @@ export type Device = {
|
|
|
42
58
|
accountId: number;
|
|
43
59
|
accountName: string;
|
|
44
60
|
available: boolean;
|
|
61
|
+
availability: DeviceAvailability;
|
|
45
62
|
browsers: CollectionResponse<Browser>;
|
|
46
63
|
creditsPrice: number;
|
|
47
64
|
deviceGroupOrigin: DeviceGroupOrigin;
|
|
@@ -6,10 +6,8 @@ export type TunnelSettings = {
|
|
|
6
6
|
};
|
|
7
7
|
export declare enum DeviceSessionType {
|
|
8
8
|
AUTOMATIC = "AUTOMATIC",
|
|
9
|
-
MANUAL = "MANUAL",
|
|
10
9
|
MANUAL_APP = "MANUAL_APP",
|
|
11
|
-
MANUAL_WEB = "MANUAL_WEB"
|
|
12
|
-
REMOTE = "REMOTE"
|
|
10
|
+
MANUAL_WEB = "MANUAL_WEB"
|
|
13
11
|
}
|
|
14
12
|
export declare enum RetryState {
|
|
15
13
|
NONE = "NONE",
|
|
@@ -50,7 +48,6 @@ export type DeviceSession = {
|
|
|
50
48
|
accountId: number;
|
|
51
49
|
autoRetriesLeftCount: number;
|
|
52
50
|
biometricInstrumentation: boolean;
|
|
53
|
-
billable: boolean;
|
|
54
51
|
config: DeviceSessionConfig;
|
|
55
52
|
createTime: number;
|
|
56
53
|
clientSideId: string;
|
|
@@ -68,7 +65,6 @@ export type DeviceSession = {
|
|
|
68
65
|
projectId: number;
|
|
69
66
|
projectName: string;
|
|
70
67
|
retryState: RetryState;
|
|
71
|
-
rowIndex: number;
|
|
72
68
|
startTime: number;
|
|
73
69
|
state: DeviceSessionState;
|
|
74
70
|
successRatio: number;
|
|
@@ -81,6 +77,7 @@ export type DeviceSession = {
|
|
|
81
77
|
testRunName: string;
|
|
82
78
|
timeLimit: number;
|
|
83
79
|
type: DeviceSessionType;
|
|
80
|
+
uiLink: string;
|
|
84
81
|
userEmail: string;
|
|
85
82
|
userId: number;
|
|
86
83
|
};
|
|
@@ -114,7 +111,6 @@ export type DeviceSessionConnection = {
|
|
|
114
111
|
path: string;
|
|
115
112
|
port: number;
|
|
116
113
|
type: string;
|
|
117
|
-
url: string;
|
|
118
114
|
urlSchema: string;
|
|
119
115
|
};
|
|
120
116
|
export type DeviceSessionData = Omit<DeviceSessionConfig, 'adbVersion' | 'id' | 'tunnelSettings' | 'type'> & {
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
+
import { ClusterType } from './Cluster';
|
|
1
2
|
export type Maintenance = {
|
|
2
3
|
enabled: boolean;
|
|
3
4
|
id: number;
|
|
4
5
|
};
|
|
5
|
-
export declare enum MaintenanceType {
|
|
6
|
-
BARE_METAL = "BARE_METAL",
|
|
7
|
-
EC2 = "EC2",
|
|
8
|
-
VM = "VM"
|
|
9
|
-
}
|
|
10
6
|
export type MaintenanceData = {
|
|
11
7
|
enabled: boolean;
|
|
12
|
-
type:
|
|
8
|
+
type: ClusterType;
|
|
13
9
|
};
|
|
@@ -9,14 +9,8 @@ export declare enum NotificationScope {
|
|
|
9
9
|
TEST_RUN = "TEST_RUN",
|
|
10
10
|
TEST_RUN_FAILURE = "TEST_RUN_FAILURE",
|
|
11
11
|
TEST_RUN_SUCCEEDED = "TEST_RUN_SUCCEEDED",
|
|
12
|
-
MAINTENANCE = "MAINTENANCE",
|
|
13
|
-
MAINTENANCE_RELEASE = "MAINTENANCE_RELEASE",
|
|
14
|
-
CUSTOM = "CUSTOM",
|
|
15
|
-
NEWS = "NEWS",
|
|
16
12
|
SYSTEM = "SYSTEM",
|
|
17
|
-
CHECK = "CHECK"
|
|
18
|
-
PLAN_LIMIT_REACHED = "PLAN_LIMIT_REACHED",
|
|
19
|
-
PLAN_INVOICE = "PLAN_INVOICE"
|
|
13
|
+
CHECK = "CHECK"
|
|
20
14
|
}
|
|
21
15
|
export type Notification = {
|
|
22
16
|
channel: NotificationChannel;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OsType } from './Enum';
|
|
2
|
-
import { TestRunsQueryParams } from './TestRun';
|
|
2
|
+
import { TestRunConfig, TestRunsQueryParams } from './TestRun';
|
|
3
3
|
export declare enum ArchivingStrategy {
|
|
4
4
|
NEVER = "NEVER",
|
|
5
5
|
DAYS = "DAYS",
|
|
@@ -18,10 +18,9 @@ export type Project = {
|
|
|
18
18
|
readOnly: boolean;
|
|
19
19
|
rowIndex: number;
|
|
20
20
|
shared: boolean;
|
|
21
|
-
sharedByEmail: string;
|
|
22
|
-
sharedById: number;
|
|
23
21
|
sharedWithCaller: boolean;
|
|
24
22
|
successRatio: number;
|
|
23
|
+
testRunConfig: TestRunConfig;
|
|
25
24
|
userEmail: string;
|
|
26
25
|
userId: number;
|
|
27
26
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Device } from './Device';
|
|
2
1
|
import { CollectionBasicQueryParams } from './HTTP';
|
|
3
2
|
export declare enum ScreenshotType {
|
|
4
3
|
LANDSCAPE = "LANDSCAPE",
|
|
@@ -11,12 +10,6 @@ export type Screenshot = {
|
|
|
11
10
|
takeTimestamp: number;
|
|
12
11
|
type: ScreenshotType;
|
|
13
12
|
};
|
|
14
|
-
export type ScreenshotExtended = Screenshot & {
|
|
15
|
-
device: Device;
|
|
16
|
-
deviceRunId: number;
|
|
17
|
-
projectId: number;
|
|
18
|
-
testRunId: number;
|
|
19
|
-
};
|
|
20
13
|
export interface ScreenshotQueryParams extends CollectionBasicQueryParams {
|
|
21
14
|
name: string;
|
|
22
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PaymentMethod } from './AccountService';
|
|
2
2
|
import { CollectionQueryParams } from './HTTP';
|
|
3
3
|
import { Role } from './Role';
|
|
4
4
|
export type Service = {
|
|
@@ -6,7 +6,6 @@ export type Service = {
|
|
|
6
6
|
activated: boolean;
|
|
7
7
|
archiveTime: number;
|
|
8
8
|
centPrice: number;
|
|
9
|
-
chargeType: ChargeType;
|
|
10
9
|
commonId: string;
|
|
11
10
|
customPlan: boolean;
|
|
12
11
|
defaultConcurrences: Array<number>;
|
|
@@ -14,9 +13,7 @@ export type Service = {
|
|
|
14
13
|
externalId: string;
|
|
15
14
|
features: string;
|
|
16
15
|
id: number;
|
|
17
|
-
includedHours: number;
|
|
18
16
|
name: string;
|
|
19
|
-
pricePerHour: number;
|
|
20
17
|
priceString: string;
|
|
21
18
|
roles: Array<Role>;
|
|
22
19
|
unit: ServiceUnit;
|
|
@@ -39,7 +36,6 @@ export type ServiceActivateData = {
|
|
|
39
36
|
};
|
|
40
37
|
export interface ServiceData {
|
|
41
38
|
address?: string;
|
|
42
|
-
braintreeNonce?: string;
|
|
43
39
|
cardNumber?: string;
|
|
44
40
|
city?: string;
|
|
45
41
|
count?: number;
|
|
@@ -2,8 +2,8 @@ import { Device } from './Device';
|
|
|
2
2
|
import { TunnelSettings } from './DeviceSession';
|
|
3
3
|
import { OsType } from './Enum';
|
|
4
4
|
import { CollectionBasicQueryParams, QueryParams } from './HTTP';
|
|
5
|
-
import { Tag } from './Tag';
|
|
6
5
|
import { UserFile } from './UserFile';
|
|
6
|
+
import { DeviceGroup } from './DeviceGroup';
|
|
7
7
|
export declare enum LimitationType {
|
|
8
8
|
PACKAGE = "PACKAGE",
|
|
9
9
|
CLASS = "CLASS"
|
|
@@ -21,7 +21,6 @@ export declare enum TestState {
|
|
|
21
21
|
}
|
|
22
22
|
export type TestRun = {
|
|
23
23
|
abortedDeviceCount: number;
|
|
24
|
-
billable: boolean;
|
|
25
24
|
config: TestRunConfig;
|
|
26
25
|
createTime: number;
|
|
27
26
|
deviceCount: number;
|
|
@@ -50,10 +49,8 @@ export type TestRun = {
|
|
|
50
49
|
succeededDeviceCount: number;
|
|
51
50
|
successRatio: number;
|
|
52
51
|
successfulTestCaseCount: number;
|
|
53
|
-
tags: Array<Tag>;
|
|
54
52
|
testCaseCount: number;
|
|
55
53
|
timeoutedDeviceCount: number;
|
|
56
|
-
totalDeviceCount: number;
|
|
57
54
|
uiLink: string;
|
|
58
55
|
userId: number;
|
|
59
56
|
waitingDeviceCount: number;
|
|
@@ -71,10 +68,10 @@ export type TestRunConfigFile = {
|
|
|
71
68
|
id: number;
|
|
72
69
|
};
|
|
73
70
|
export type TestRunParameter = {
|
|
74
|
-
name
|
|
71
|
+
name?: string;
|
|
75
72
|
key: string;
|
|
76
73
|
value: string;
|
|
77
|
-
label
|
|
74
|
+
label?: string;
|
|
78
75
|
};
|
|
79
76
|
export type TRCDefaultSettings = {
|
|
80
77
|
deviceLanguageCode: string;
|
|
@@ -90,31 +87,32 @@ export type TRCDefaultSettings = {
|
|
|
90
87
|
timeout: string;
|
|
91
88
|
projectName: string;
|
|
92
89
|
testRunName: string;
|
|
93
|
-
testRunParameters
|
|
90
|
+
testRunParameters?: TestRunParameter[];
|
|
94
91
|
biometricInstrumentation: boolean;
|
|
95
92
|
};
|
|
96
93
|
export type TestRunConfig = TRCDefaultSettings & {
|
|
97
94
|
appCrawlerRun: boolean;
|
|
98
95
|
appiumBrokerAddress: string;
|
|
96
|
+
appiumBrokerQueueName: string;
|
|
99
97
|
applicationPassword: string;
|
|
100
98
|
applicationUsername: string;
|
|
101
|
-
availableDeviceGroups:
|
|
99
|
+
availableDeviceGroups: DeviceGroup[];
|
|
102
100
|
availableDevices: Array<Device>;
|
|
103
101
|
availableFrameworks: any;
|
|
104
102
|
availableOsTypes: Array<OsType>;
|
|
105
103
|
clientSideTestConfig: any;
|
|
106
104
|
computedDevices: Array<number>;
|
|
107
105
|
creditsPrice: number;
|
|
108
|
-
deviceGroupId
|
|
106
|
+
deviceGroupId?: number;
|
|
109
107
|
deviceIds: any;
|
|
110
108
|
deviceNamePattern: string;
|
|
111
109
|
files: Array<TestRunConfigFile> | null;
|
|
112
110
|
frameworkId: number;
|
|
113
111
|
id: number;
|
|
114
112
|
loadedPrevious: boolean;
|
|
115
|
-
example: true;
|
|
116
113
|
maxAutoRetriesCount: number;
|
|
117
114
|
maxTestTimeout: any;
|
|
115
|
+
maxWaitTime: number;
|
|
118
116
|
osType: OsType;
|
|
119
117
|
projectId: number;
|
|
120
118
|
resignFiles: boolean;
|
|
@@ -142,11 +140,11 @@ export interface RunQueryParam extends QueryParams {
|
|
|
142
140
|
export interface TestRunsData {
|
|
143
141
|
configuration: TestRunConfig;
|
|
144
142
|
}
|
|
145
|
-
export
|
|
143
|
+
export type TestRunsIncludes = {
|
|
146
144
|
includeDeviceGroups: boolean;
|
|
147
145
|
includeDevices: boolean;
|
|
148
146
|
includeFrameworks: boolean;
|
|
149
|
-
}
|
|
147
|
+
};
|
|
150
148
|
export type RunsConfigParams = TestRunsIncludes & QueryParams;
|
|
151
149
|
export type TestRunsConfigData = TestRunsIncludes & TestRunsData;
|
|
152
150
|
export interface TestRunsQueryParams extends CollectionBasicQueryParams {
|
|
@@ -9,7 +9,6 @@ export type User = {
|
|
|
9
9
|
accountId: number;
|
|
10
10
|
accountName: string;
|
|
11
11
|
userAccountName: string;
|
|
12
|
-
accountOwners: Array<User>;
|
|
13
12
|
accountServiceIds: Array<number>;
|
|
14
13
|
address: string;
|
|
15
14
|
apiKey: string;
|
|
@@ -36,7 +35,6 @@ export type User = {
|
|
|
36
35
|
state: string;
|
|
37
36
|
status: UserStatus;
|
|
38
37
|
timeZone: string;
|
|
39
|
-
vatId: string;
|
|
40
38
|
};
|
|
41
39
|
export type UserData = Pick<User, 'email'>;
|
|
42
40
|
export interface UserParams extends CollectionQueryParams {
|
|
@@ -61,11 +59,7 @@ export type UserPasswordData = {
|
|
|
61
59
|
};
|
|
62
60
|
export type UserActivateData = {
|
|
63
61
|
zip: string;
|
|
64
|
-
} & UserPasswordData & Pick<User, 'address' | 'city' | 'country' | 'email' | 'firstName' | 'lastName' | 'organization' | 'phone' | 'state'
|
|
62
|
+
} & UserPasswordData & Pick<User, 'address' | 'city' | 'country' | 'email' | 'firstName' | 'lastName' | 'organization' | 'phone' | 'state'>;
|
|
65
63
|
export interface UserRecoveryQueryParams extends QueryParams {
|
|
66
64
|
recoveryKey: string;
|
|
67
65
|
}
|
|
68
|
-
export interface ValidateVatQueryParams extends QueryParams {
|
|
69
|
-
countryCode: string;
|
|
70
|
-
vatId: string;
|
|
71
|
-
}
|