@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
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { QueryParams } from './HTTP';
|
|
2
|
+
export declare enum NotificationChannel {
|
|
3
|
+
SLACK = "SLACK",
|
|
4
|
+
EMAIL = "EMAIL",
|
|
5
|
+
WEBHOOK = "WEBHOOK"
|
|
6
|
+
}
|
|
7
|
+
export declare enum NotificationScope {
|
|
8
|
+
ALL = "ALL",
|
|
9
|
+
TEST_RUN = "TEST_RUN",
|
|
10
|
+
TEST_RUN_FAILURE = "TEST_RUN_FAILURE",
|
|
11
|
+
TEST_RUN_SUCCEEDED = "TEST_RUN_SUCCEEDED",
|
|
12
|
+
MAINTENANCE = "MAINTENANCE",
|
|
13
|
+
MAINTENANCE_RELEASE = "MAINTENANCE_RELEASE",
|
|
14
|
+
CUSTOM = "CUSTOM",
|
|
15
|
+
NEWS = "NEWS",
|
|
16
|
+
SYSTEM = "SYSTEM",
|
|
17
|
+
CHECK = "CHECK",
|
|
18
|
+
PLAN_LIMIT_REACHED = "PLAN_LIMIT_REACHED",
|
|
19
|
+
PLAN_INVOICE = "PLAN_INVOICE"
|
|
20
|
+
}
|
|
21
|
+
export declare type Notification = {
|
|
22
|
+
channel: NotificationChannel;
|
|
23
|
+
destination: string;
|
|
24
|
+
id: number;
|
|
25
|
+
projectId?: number;
|
|
26
|
+
projectName?: string;
|
|
27
|
+
scope: NotificationScope;
|
|
28
|
+
userEmail: string;
|
|
29
|
+
userId: number;
|
|
30
|
+
};
|
|
31
|
+
export interface NotificationData extends QueryParams {
|
|
32
|
+
scope: NotificationScope;
|
|
33
|
+
}
|
|
34
|
+
export declare type NotificationsData = Pick<Notification, 'channel' | 'destination' | 'projectId' | 'scope'>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NotificationChannel, NotificationScope } from './Notification';
|
|
2
|
+
export declare type NotificationPlan = {
|
|
3
|
+
channel: NotificationChannel;
|
|
4
|
+
contentTemplate: string;
|
|
5
|
+
createTime: number;
|
|
6
|
+
handlerEmail: string;
|
|
7
|
+
handlerId: number;
|
|
8
|
+
id: number;
|
|
9
|
+
name: string;
|
|
10
|
+
scope: NotificationScope;
|
|
11
|
+
sentTime: number;
|
|
12
|
+
subjectTemplate: string;
|
|
13
|
+
updateTime: number;
|
|
14
|
+
};
|
|
15
|
+
export declare type NotificationPlanData = Pick<NotificationPlan, 'channel' | 'name'> & {
|
|
16
|
+
notificationContent: string;
|
|
17
|
+
notificationSubject: string;
|
|
18
|
+
scope: NotificationScope;
|
|
19
|
+
};
|
|
20
|
+
export declare type NotificationPlanEditData = Omit<NotificationPlanData, 'channel'>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OsType } from './Enum';
|
|
2
|
+
import { TestRunsQueryParams } from './TestRun';
|
|
3
|
+
export declare enum ArchivingStrategy {
|
|
4
|
+
NEVER = "NEVER",
|
|
5
|
+
DAYS = "DAYS",
|
|
6
|
+
RUNS = "RUNS"
|
|
7
|
+
}
|
|
8
|
+
export declare type Project = {
|
|
9
|
+
archiveTime: number;
|
|
10
|
+
archivingItemCount: number;
|
|
11
|
+
archivingStrategy: ArchivingStrategy;
|
|
12
|
+
common: boolean;
|
|
13
|
+
createTime: number;
|
|
14
|
+
description: string;
|
|
15
|
+
id: number;
|
|
16
|
+
name: string;
|
|
17
|
+
osType: OsType;
|
|
18
|
+
readOnly: boolean;
|
|
19
|
+
rowIndex: number;
|
|
20
|
+
shared: boolean;
|
|
21
|
+
sharedByEmail: string;
|
|
22
|
+
sharedById: number;
|
|
23
|
+
sharedWithCaller: boolean;
|
|
24
|
+
successRatio: number;
|
|
25
|
+
userEmail: string;
|
|
26
|
+
userId: number;
|
|
27
|
+
};
|
|
28
|
+
export declare type UserProjectData = Pick<Project, 'name'>;
|
|
29
|
+
export interface UserProjectQueryParams extends TestRunsQueryParams {
|
|
30
|
+
showStatistics: boolean;
|
|
31
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CollectionQueryParams } from './HTTP';
|
|
2
|
+
export declare type Property = {
|
|
3
|
+
description: string;
|
|
4
|
+
fromTime: number;
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
toTime: number;
|
|
8
|
+
updateTime: number;
|
|
9
|
+
updatedByDisplayName: string;
|
|
10
|
+
updatedById: number;
|
|
11
|
+
value: string;
|
|
12
|
+
};
|
|
13
|
+
export declare type PropertyData = Pick<Property, 'description' | 'fromTime' | 'name' | 'toTime' | 'value'>;
|
|
14
|
+
export interface AppBansQueryParams extends CollectionQueryParams {
|
|
15
|
+
testRunId: number;
|
|
16
|
+
}
|
|
17
|
+
export declare type AppBansData = AppBansQueryParams;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CollectionQueryParams } from './HTTP';
|
|
2
|
+
export declare type Role = {
|
|
3
|
+
addedByEmail: string;
|
|
4
|
+
expireTime: number;
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
value: number;
|
|
8
|
+
valueCalculated: boolean;
|
|
9
|
+
};
|
|
10
|
+
export interface RoleParams extends CollectionQueryParams {
|
|
11
|
+
withoutPriorities: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare type RoleData = Pick<Role, 'expireTime' | 'value'> & {
|
|
14
|
+
roleId: number;
|
|
15
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Device } from './Device';
|
|
2
|
+
import { CollectionBasicQueryParams } from './HTTP';
|
|
3
|
+
export declare enum ScreenshotType {
|
|
4
|
+
LANDSCAPE = "LANDSCAPE",
|
|
5
|
+
PORTRAIT = "PORTRAIT"
|
|
6
|
+
}
|
|
7
|
+
export declare type Screenshot = {
|
|
8
|
+
fail: boolean;
|
|
9
|
+
id: number;
|
|
10
|
+
originalName: string;
|
|
11
|
+
takeTimestamp: number;
|
|
12
|
+
type: ScreenshotType;
|
|
13
|
+
};
|
|
14
|
+
export declare type ScreenshotExtended = Screenshot & {
|
|
15
|
+
device: Device;
|
|
16
|
+
deviceRunId: number;
|
|
17
|
+
projectId: number;
|
|
18
|
+
testRunId: number;
|
|
19
|
+
};
|
|
20
|
+
export interface ScreenshotQueryParams extends CollectionBasicQueryParams {
|
|
21
|
+
name: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ChargeType, PaymentMethod } from './AccountService';
|
|
2
|
+
import { CollectionQueryParams } from './HTTP';
|
|
3
|
+
import { Role } from './Role';
|
|
4
|
+
export declare type Service = {
|
|
5
|
+
activateTime: number;
|
|
6
|
+
activated: boolean;
|
|
7
|
+
archiveTime: number;
|
|
8
|
+
autoRenew: boolean;
|
|
9
|
+
centPrice: number;
|
|
10
|
+
chargeType: ChargeType;
|
|
11
|
+
commonId: string;
|
|
12
|
+
customPlan: boolean;
|
|
13
|
+
defaultConcurrences: Array<number>;
|
|
14
|
+
description: string;
|
|
15
|
+
externalId: string;
|
|
16
|
+
features: string;
|
|
17
|
+
id: number;
|
|
18
|
+
includedHours: number;
|
|
19
|
+
name: string;
|
|
20
|
+
pricePerHour: number;
|
|
21
|
+
priceString: string;
|
|
22
|
+
roles: Array<Role>;
|
|
23
|
+
unit: ServiceUnit;
|
|
24
|
+
};
|
|
25
|
+
export declare enum ServiceUnit {
|
|
26
|
+
DAY = "DAY",
|
|
27
|
+
HOUR = "HOUR",
|
|
28
|
+
MONTH = "MONTH",
|
|
29
|
+
PROJECT = "PROJECT",
|
|
30
|
+
RUN = "RUN",
|
|
31
|
+
YEAR = "YEAR"
|
|
32
|
+
}
|
|
33
|
+
export interface AdminServicesParams extends CollectionQueryParams {
|
|
34
|
+
activeOnly: boolean;
|
|
35
|
+
inUse: boolean;
|
|
36
|
+
notArchive: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare type ServiceActivateData = {
|
|
39
|
+
activateTime: number;
|
|
40
|
+
};
|
|
41
|
+
export interface ServiceData {
|
|
42
|
+
address?: string;
|
|
43
|
+
braintreeNonce?: string;
|
|
44
|
+
cardNumber?: string;
|
|
45
|
+
city?: string;
|
|
46
|
+
count?: number;
|
|
47
|
+
country?: string;
|
|
48
|
+
cvv?: string;
|
|
49
|
+
email?: string;
|
|
50
|
+
expirationDate?: string;
|
|
51
|
+
firstName?: string;
|
|
52
|
+
lastName?: string;
|
|
53
|
+
organization?: string;
|
|
54
|
+
paymentMethod: PaymentMethod;
|
|
55
|
+
phone?: string;
|
|
56
|
+
serviceId: number;
|
|
57
|
+
state?: string;
|
|
58
|
+
stripeToken?: string;
|
|
59
|
+
vatId?: string;
|
|
60
|
+
zip?: string;
|
|
61
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare type SimpleSetting = Record<string, string | number | boolean>;
|
|
2
|
+
export declare type NestedSetting = Record<string, SimpleSetting>;
|
|
3
|
+
export declare type Settings = SimpleSetting | NestedSetting | Record<string, NestedSetting>;
|
|
4
|
+
export declare type SettingsParams = {
|
|
5
|
+
withVulnerableData: boolean;
|
|
6
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { QueryParams } from './HTTP';
|
|
2
|
+
export declare enum SharedResourceType {
|
|
3
|
+
DEVICE_GROUP = "DEVICE_GROUP",
|
|
4
|
+
FILE = "FILE",
|
|
5
|
+
PROJECT = "PROJECT"
|
|
6
|
+
}
|
|
7
|
+
export declare type SharedResource = {
|
|
8
|
+
id: number;
|
|
9
|
+
name: string;
|
|
10
|
+
resourceId: number;
|
|
11
|
+
type: SharedResourceType;
|
|
12
|
+
};
|
|
13
|
+
export interface ShareData extends QueryParams {
|
|
14
|
+
accessGroupId: number;
|
|
15
|
+
email: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CollectionQueryParams } from './HTTP';
|
|
2
|
+
export declare type SmartbearTunnel = {
|
|
3
|
+
acceptAllCerts: boolean;
|
|
4
|
+
active: boolean;
|
|
5
|
+
bypassPublicHosts: boolean;
|
|
6
|
+
createdAt: number;
|
|
7
|
+
domain: string;
|
|
8
|
+
externalId: string;
|
|
9
|
+
id: number;
|
|
10
|
+
proxyIp: string;
|
|
11
|
+
proxyPort: string;
|
|
12
|
+
state: string;
|
|
13
|
+
staticServerDirectory: string;
|
|
14
|
+
tunnelSource: string;
|
|
15
|
+
tunnelType: string;
|
|
16
|
+
user: string;
|
|
17
|
+
};
|
|
18
|
+
export interface TunnelQueryParams extends CollectionQueryParams {
|
|
19
|
+
active: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CollectionBasicQueryParams, QueryParams } from './HTTP';
|
|
2
|
+
export declare type Tag = {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
export interface TestRunTagsData {
|
|
7
|
+
projectId: number;
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
export declare type TagsData = Pick<TestRunTagsData, 'name'>;
|
|
11
|
+
export interface TagsQueryParams extends CollectionBasicQueryParams {
|
|
12
|
+
projectId: number;
|
|
13
|
+
}
|
|
14
|
+
export interface TaqQueryParams extends QueryParams {
|
|
15
|
+
projectId: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CollectionResponse } from './HTTP';
|
|
2
|
+
export declare enum TestResult {
|
|
3
|
+
PASSED = "PASSED",
|
|
4
|
+
FAILED = "FAILED",
|
|
5
|
+
SKIPPED = "SKIPPED",
|
|
6
|
+
NOT_AVAILABLE = "NOT_AVAILABLE"
|
|
7
|
+
}
|
|
8
|
+
export declare enum TestStepType {
|
|
9
|
+
ASSERTION = "ASSERTION",
|
|
10
|
+
CLICK = "CLICK",
|
|
11
|
+
CONFIG = "CONFIG",
|
|
12
|
+
DRAG = "DRAG",
|
|
13
|
+
INPUT = "INPUT",
|
|
14
|
+
NAVIGATION = "NAVIGATION",
|
|
15
|
+
OTHER = "OTHER",
|
|
16
|
+
SCROLL = "SCROLL",
|
|
17
|
+
UTIL = "UTIL",
|
|
18
|
+
WAIT = "WAIT"
|
|
19
|
+
}
|
|
20
|
+
export declare type TestCaseRun = {
|
|
21
|
+
className: string;
|
|
22
|
+
createTime: number;
|
|
23
|
+
duration: number;
|
|
24
|
+
errorMessage: string;
|
|
25
|
+
id: number;
|
|
26
|
+
methodName: string;
|
|
27
|
+
result: TestResult;
|
|
28
|
+
stacktrace: string;
|
|
29
|
+
steps: CollectionResponse<TestCaseRunStep>;
|
|
30
|
+
suiteName: string;
|
|
31
|
+
};
|
|
32
|
+
export declare type TestCaseRunStep = {
|
|
33
|
+
description: string;
|
|
34
|
+
duration: number;
|
|
35
|
+
errorMessage: string;
|
|
36
|
+
fromActivity: string;
|
|
37
|
+
id: number;
|
|
38
|
+
screenshots: any;
|
|
39
|
+
type: TestStepType;
|
|
40
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { Device } from './Device';
|
|
2
|
+
import { TunnelSettings } from './DeviceSession';
|
|
3
|
+
import { OsType } from './Enum';
|
|
4
|
+
import { CollectionBasicQueryParams, QueryParams } from './HTTP';
|
|
5
|
+
import { Tag } from './Tag';
|
|
6
|
+
export declare enum LimitationType {
|
|
7
|
+
PACKAGE = "PACKAGE",
|
|
8
|
+
CLASS = "CLASS"
|
|
9
|
+
}
|
|
10
|
+
export declare enum TestScheduler {
|
|
11
|
+
PARALLEL = "PARALLEL",
|
|
12
|
+
SERIAL = "SERIAL",
|
|
13
|
+
SINGLE = "SINGLE",
|
|
14
|
+
ALL_INSTANCES = "ALL_INSTANCES"
|
|
15
|
+
}
|
|
16
|
+
export declare enum TestState {
|
|
17
|
+
WAITING = "WAITING",
|
|
18
|
+
RUNNING = "RUNNING",
|
|
19
|
+
FINISHED = "FINISHED"
|
|
20
|
+
}
|
|
21
|
+
export declare type TestRun = {
|
|
22
|
+
abortedDeviceCount: number;
|
|
23
|
+
billable: boolean;
|
|
24
|
+
config: TestRunConfig;
|
|
25
|
+
createTime: number;
|
|
26
|
+
deviceCount: number;
|
|
27
|
+
displayName: string;
|
|
28
|
+
errorsDeviceCount: number;
|
|
29
|
+
excludedDeviceCount: number;
|
|
30
|
+
executedTestCaseCount: number;
|
|
31
|
+
executionRatio: number;
|
|
32
|
+
failedTestCaseCount: number;
|
|
33
|
+
finishedDeviceCount: number;
|
|
34
|
+
frameworkId: number;
|
|
35
|
+
frameworkName: string;
|
|
36
|
+
id: number;
|
|
37
|
+
logsFileId: number;
|
|
38
|
+
message: string;
|
|
39
|
+
'number': number;
|
|
40
|
+
projectId: number;
|
|
41
|
+
projectName: string;
|
|
42
|
+
rowIndex: number;
|
|
43
|
+
runningDeviceCount: number;
|
|
44
|
+
screenshotsFileId: number;
|
|
45
|
+
startTime: number;
|
|
46
|
+
startedByDisplayName: string;
|
|
47
|
+
startedById: number;
|
|
48
|
+
state: TestState;
|
|
49
|
+
succeededDeviceCount: number;
|
|
50
|
+
successRatio: number;
|
|
51
|
+
successfulTestCaseCount: number;
|
|
52
|
+
tags: Array<Tag>;
|
|
53
|
+
testCaseCount: number;
|
|
54
|
+
timeoutedDeviceCount: number;
|
|
55
|
+
totalDeviceCount: number;
|
|
56
|
+
uiLink: string;
|
|
57
|
+
userId: number;
|
|
58
|
+
waitingDeviceCount: number;
|
|
59
|
+
warningDeviceCount: number;
|
|
60
|
+
};
|
|
61
|
+
export declare type TestRunConfig = {
|
|
62
|
+
appCrawlerRun: boolean;
|
|
63
|
+
appiumBrokerAddress: string;
|
|
64
|
+
applicationPassword: string;
|
|
65
|
+
applicationUsername: string;
|
|
66
|
+
availableDeviceGroups: any;
|
|
67
|
+
availableDevices: Array<Device>;
|
|
68
|
+
availableFrameworks: any;
|
|
69
|
+
availableOsTypes: Array<OsType>;
|
|
70
|
+
clientSideTestConfig: any;
|
|
71
|
+
computedDevices: Array<number>;
|
|
72
|
+
creditsPrice: number;
|
|
73
|
+
deviceGroupId: number;
|
|
74
|
+
deviceIds: any;
|
|
75
|
+
deviceLanguageCode: string;
|
|
76
|
+
deviceNamePattern: string;
|
|
77
|
+
disableResigning: boolean;
|
|
78
|
+
files: any;
|
|
79
|
+
frameworkId: number;
|
|
80
|
+
hookURL: string;
|
|
81
|
+
id: number;
|
|
82
|
+
instrumentationRunner: string;
|
|
83
|
+
limitationType: LimitationType;
|
|
84
|
+
limitationValue: string;
|
|
85
|
+
loadedPrevious: boolean;
|
|
86
|
+
example: true;
|
|
87
|
+
maxAutoRetriesCount: number;
|
|
88
|
+
maxTestTimeout: any;
|
|
89
|
+
osType: OsType;
|
|
90
|
+
projectId: number;
|
|
91
|
+
projectName: string;
|
|
92
|
+
resignFiles: boolean;
|
|
93
|
+
runAvailable: boolean;
|
|
94
|
+
scheduler: TestScheduler;
|
|
95
|
+
screenshotDir: string;
|
|
96
|
+
status: string;
|
|
97
|
+
statusCode: number;
|
|
98
|
+
testRunId: number;
|
|
99
|
+
testRunName: string;
|
|
100
|
+
testRunNameGrouping: string;
|
|
101
|
+
testRunParameters: any;
|
|
102
|
+
timeout: number;
|
|
103
|
+
tunnelSettings: TunnelSettings;
|
|
104
|
+
useSamples: boolean;
|
|
105
|
+
usedDeviceGroupId: number;
|
|
106
|
+
usedDeviceGroupName: string;
|
|
107
|
+
videoRecordingEnabled: boolean;
|
|
108
|
+
withAnnotation: string;
|
|
109
|
+
withoutAnnotation: string;
|
|
110
|
+
};
|
|
111
|
+
export interface TestRunData extends QueryParams {
|
|
112
|
+
displayName: string;
|
|
113
|
+
}
|
|
114
|
+
export interface RunData extends TestRunData {
|
|
115
|
+
projectId: number;
|
|
116
|
+
}
|
|
117
|
+
export interface RunQueryParam extends QueryParams {
|
|
118
|
+
projectId: number;
|
|
119
|
+
}
|
|
120
|
+
export interface TestRunsData {
|
|
121
|
+
configuration: TestRunConfig;
|
|
122
|
+
}
|
|
123
|
+
export interface TestRunsConfigData extends TestRunsData {
|
|
124
|
+
includeDeviceGroups: boolean;
|
|
125
|
+
includeDevices: boolean;
|
|
126
|
+
includeFrameworks: boolean;
|
|
127
|
+
}
|
|
128
|
+
export interface TestRunsQueryParams extends CollectionBasicQueryParams {
|
|
129
|
+
forWholeAccount: boolean;
|
|
130
|
+
skipCommonProject: boolean;
|
|
131
|
+
skipShared: boolean;
|
|
132
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DeviceSessionDataAvailability } from './DeviceSessionDataAvailability';
|
|
2
|
+
import { QueryParams } from './HTTP';
|
|
3
|
+
export declare type TestRunDataAvailability = {
|
|
4
|
+
deviceRunDataAvailabilities: DeviceSessionDataAvailability;
|
|
5
|
+
id: number;
|
|
6
|
+
testRunId: number;
|
|
7
|
+
};
|
|
8
|
+
export interface TestRunDataAvailabilityQueryParams extends QueryParams {
|
|
9
|
+
userId: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { CollectionQueryParams, QueryParams } from './HTTP';
|
|
2
|
+
import { Role } from './Role';
|
|
3
|
+
export declare enum MfaStatus {
|
|
4
|
+
VERIFICATION_NEED = "VERIFICATION_NEED",
|
|
5
|
+
DISABLED = "DISABLED",
|
|
6
|
+
ENABLED = "ENABLED"
|
|
7
|
+
}
|
|
8
|
+
export declare enum UserStatus {
|
|
9
|
+
INACTIVE = "INACTIVE",
|
|
10
|
+
DISABLED = "DISABLED",
|
|
11
|
+
ENABLED = "ENABLED"
|
|
12
|
+
}
|
|
13
|
+
export declare type User = {
|
|
14
|
+
accountId: number;
|
|
15
|
+
accountOwners: Array<User>;
|
|
16
|
+
accountServiceIds: Array<number>;
|
|
17
|
+
address: string;
|
|
18
|
+
apiKey: string;
|
|
19
|
+
city: string;
|
|
20
|
+
code: string;
|
|
21
|
+
country: string;
|
|
22
|
+
createTime: number;
|
|
23
|
+
createdByEmail: string;
|
|
24
|
+
createdById: number;
|
|
25
|
+
deleteTime: number;
|
|
26
|
+
email: string;
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
firstName: string;
|
|
29
|
+
id: number;
|
|
30
|
+
isMainUser: boolean;
|
|
31
|
+
lastLaunchedTestTime: number;
|
|
32
|
+
lastLoginTime: number;
|
|
33
|
+
lastName: string;
|
|
34
|
+
mainUserEmail: string;
|
|
35
|
+
mainUserId: number;
|
|
36
|
+
mfaQRCodeUrl: string;
|
|
37
|
+
mfaStatus: MfaStatus;
|
|
38
|
+
organization: string;
|
|
39
|
+
phone: string;
|
|
40
|
+
registrationIP: string;
|
|
41
|
+
roles: Array<Role>;
|
|
42
|
+
serviceIds: Array<number>;
|
|
43
|
+
state: string;
|
|
44
|
+
status: UserStatus;
|
|
45
|
+
timeZone: string;
|
|
46
|
+
vatId: string;
|
|
47
|
+
};
|
|
48
|
+
export declare type UserData = Pick<User, 'email'>;
|
|
49
|
+
export interface UserParams extends CollectionQueryParams {
|
|
50
|
+
WITH_ADDRESS: boolean;
|
|
51
|
+
WITH_USER_INFO: boolean;
|
|
52
|
+
onlyMainUsers: boolean;
|
|
53
|
+
onlyWithDisabledServices: boolean;
|
|
54
|
+
withRole: string;
|
|
55
|
+
withRoles: boolean;
|
|
56
|
+
}
|
|
57
|
+
export declare type UserUpdateAccount = Pick<User, 'accountId'>;
|
|
58
|
+
export interface LoginData {
|
|
59
|
+
username: string;
|
|
60
|
+
password: string;
|
|
61
|
+
}
|
|
62
|
+
export declare type UserPasswordData = {
|
|
63
|
+
key: string;
|
|
64
|
+
password: string;
|
|
65
|
+
};
|
|
66
|
+
export declare type UserActivateData = {
|
|
67
|
+
zip: string;
|
|
68
|
+
} & UserPasswordData & Pick<User, 'address' | 'city' | 'country' | 'email' | 'firstName' | 'lastName' | 'organization' | 'phone' | 'state' | 'vatId'>;
|
|
69
|
+
export interface UserRecoveryQueryParams extends QueryParams {
|
|
70
|
+
recoveryKey: string;
|
|
71
|
+
}
|
|
72
|
+
export interface ValidateVatQueryParams extends QueryParams {
|
|
73
|
+
countryCode: string;
|
|
74
|
+
vatId: string;
|
|
75
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DeviceSessionType } from './DeviceSession';
|
|
2
|
+
import { CollectionQueryParams } from './HTTP';
|
|
3
|
+
export declare type UserDeviceTime = BasicDeviceTime & {
|
|
4
|
+
billableTime: number;
|
|
5
|
+
createTime: number;
|
|
6
|
+
endTime: number;
|
|
7
|
+
freeTime: number;
|
|
8
|
+
type: DeviceSessionType;
|
|
9
|
+
userId: number;
|
|
10
|
+
userName: string;
|
|
11
|
+
};
|
|
12
|
+
export declare type BasicDeviceTime = {
|
|
13
|
+
deviceTime: number;
|
|
14
|
+
id: number;
|
|
15
|
+
};
|
|
16
|
+
export interface DeviceTimeParams extends CollectionQueryParams {
|
|
17
|
+
forWholeAccount: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface DeviceTimeQueryParams extends CollectionQueryParams {
|
|
20
|
+
forWholeAccount: boolean;
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CollectionQueryParams } from './HTTP';
|
|
2
|
+
export declare type UserDeviceTimeSummary = {
|
|
3
|
+
automaticDeviceTime: number;
|
|
4
|
+
freeDeviceTime: number;
|
|
5
|
+
id: number;
|
|
6
|
+
inspectorDeviceTime: number;
|
|
7
|
+
periodEnd: number;
|
|
8
|
+
periodStart: number;
|
|
9
|
+
remoteDeviceTime: number;
|
|
10
|
+
totalDeviceTime: number;
|
|
11
|
+
};
|
|
12
|
+
export interface DeviceTimeSummaryParams extends CollectionQueryParams {
|
|
13
|
+
forWholeAccount: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { CollectionQueryParams, QueryParams } from './HTTP';
|
|
2
|
+
export declare enum FileDirection {
|
|
3
|
+
INPUT = "INPUT",
|
|
4
|
+
OUTPUT = "OUTPUT"
|
|
5
|
+
}
|
|
6
|
+
export declare enum FileInputType {
|
|
7
|
+
APPLICATION = "APPLICATION",
|
|
8
|
+
TEST = "TEST",
|
|
9
|
+
DATA = "DATA"
|
|
10
|
+
}
|
|
11
|
+
export declare enum FileState {
|
|
12
|
+
PREPARING = "PREPARING",
|
|
13
|
+
READY = "READY"
|
|
14
|
+
}
|
|
15
|
+
export declare type FileProperty = {
|
|
16
|
+
id: number;
|
|
17
|
+
key: string;
|
|
18
|
+
value: string;
|
|
19
|
+
};
|
|
20
|
+
export declare type UserFileTag = {
|
|
21
|
+
id: number;
|
|
22
|
+
name: string;
|
|
23
|
+
};
|
|
24
|
+
export declare type UserFile = {
|
|
25
|
+
createTime: number;
|
|
26
|
+
directUrl: string;
|
|
27
|
+
direction: FileDirection;
|
|
28
|
+
duplicate: boolean;
|
|
29
|
+
fileProperties: Array<FileProperty>;
|
|
30
|
+
iconDirectUrl: string;
|
|
31
|
+
id: number;
|
|
32
|
+
inputType: FileInputType;
|
|
33
|
+
mimetype: string;
|
|
34
|
+
name: string;
|
|
35
|
+
shared: boolean;
|
|
36
|
+
size: number;
|
|
37
|
+
state: FileState;
|
|
38
|
+
userEmail: string;
|
|
39
|
+
userId: number;
|
|
40
|
+
};
|
|
41
|
+
export interface UserFileParams extends CollectionQueryParams {
|
|
42
|
+
tag: Array<string>;
|
|
43
|
+
}
|
|
44
|
+
export declare type UserFileData = {
|
|
45
|
+
file: FormData;
|
|
46
|
+
global: boolean;
|
|
47
|
+
};
|
|
48
|
+
export declare type BuildLogsData = {
|
|
49
|
+
deviceRunIds: Array<number>;
|
|
50
|
+
projectId: number;
|
|
51
|
+
userId: number;
|
|
52
|
+
};
|
|
53
|
+
export declare type BuildLogsParams = BuildLogsData;
|
|
54
|
+
export interface FileSizeData extends QueryParams {
|
|
55
|
+
height: number;
|
|
56
|
+
width: number;
|
|
57
|
+
}
|
|
58
|
+
export declare type UploadObj = {
|
|
59
|
+
dir: string;
|
|
60
|
+
filename: string;
|
|
61
|
+
};
|
|
62
|
+
export interface FileData {
|
|
63
|
+
file: Blob;
|
|
64
|
+
global: boolean;
|
|
65
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { QueryParams } from './HTTP';
|
|
2
|
+
export declare type UserPreference = {
|
|
3
|
+
defaultHttpSessionMaxInactiveInterval: number;
|
|
4
|
+
defaultTestTimeout: number;
|
|
5
|
+
httpSessionMaxInactiveInterval: number;
|
|
6
|
+
id: number;
|
|
7
|
+
testTimeout: number;
|
|
8
|
+
};
|
|
9
|
+
export interface UiPreferencesData extends QueryParams {
|
|
10
|
+
data: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { QueryParams } from './HTTP';
|
|
2
|
+
export declare type UserStatistics = {
|
|
3
|
+
devicesUsed: number;
|
|
4
|
+
id: number;
|
|
5
|
+
overallTestCaseSuccessRatio: number;
|
|
6
|
+
runningTestRuns: number;
|
|
7
|
+
totalTestRuns: number;
|
|
8
|
+
};
|
|
9
|
+
export interface StatisticQueryParams extends QueryParams {
|
|
10
|
+
forWholeAccount: boolean;
|
|
11
|
+
skipCommonProject: boolean;
|
|
12
|
+
skipShared: boolean;
|
|
13
|
+
startTime: number;
|
|
14
|
+
}
|