@bitbar/cloud-api-client 0.55.0 → 1.0.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.
Files changed (157) hide show
  1. package/dist/API.d.ts +66 -38
  2. package/dist/ApiConfig.d.ts +10 -10
  3. package/dist/CloudAPIClient.d.ts +7 -7
  4. package/dist/Filter.d.ts +7 -7
  5. package/dist/FilterBuilder.d.ts +24 -25
  6. package/dist/api/APIAdminListDevices.d.ts +12 -12
  7. package/dist/api/APIAdminListNotificationPlans.d.ts +11 -7
  8. package/dist/api/APIAdminListRuns.d.ts +14 -7
  9. package/dist/api/APIAdminListServices.d.ts +11 -12
  10. package/dist/api/APIAdminListStatistics.d.ts +10 -7
  11. package/dist/api/APIAdminResource.d.ts +121 -91
  12. package/dist/api/APIAdminResourceAccount.d.ts +8 -5
  13. package/dist/api/APIAdminResourceAccountService.d.ts +10 -7
  14. package/dist/api/APIAdminResourceCluster.d.ts +11 -7
  15. package/dist/api/APIAdminResourceDevice.d.ts +16 -11
  16. package/dist/api/APIAdminResourceDeviceModel.d.ts +11 -7
  17. package/dist/api/APIAdminResourceDeviceSession.d.ts +5 -5
  18. package/dist/api/APIAdminResourceDeviceSessionStandalone.d.ts +6 -12
  19. package/dist/api/APIAdminResourceDeviceTime.d.ts +12 -8
  20. package/dist/api/APIAdminResourceFramework.d.ts +13 -8
  21. package/dist/api/APIAdminResourceLicense.d.ts +12 -9
  22. package/dist/api/APIAdminResourceNotificationPlan.d.ts +13 -9
  23. package/dist/api/APIAdminResourceProject.d.ts +7 -6
  24. package/dist/api/APIAdminResourceRun.d.ts +8 -7
  25. package/dist/api/APIAdminResourceRunStandalone.d.ts +12 -13
  26. package/dist/api/APIAdminResourceService.d.ts +9 -9
  27. package/dist/api/APIAdminResourceUser.d.ts +18 -12
  28. package/dist/api/APIAdminResourceUserAccount.d.ts +15 -10
  29. package/dist/api/APIEntity.d.ts +35 -32
  30. package/dist/api/APIList.d.ts +22 -24
  31. package/dist/api/APIListCleanupConfigurations.d.ts +11 -7
  32. package/dist/api/APIListDeviceTime.d.ts +11 -7
  33. package/dist/api/APIListDevices.d.ts +13 -12
  34. package/dist/api/APIListFiles.d.ts +11 -10
  35. package/dist/api/APIListNotifications.d.ts +13 -7
  36. package/dist/api/APIListProperties.d.ts +10 -6
  37. package/dist/api/APIListRuns.d.ts +10 -7
  38. package/dist/api/APIListServices.d.ts +16 -9
  39. package/dist/api/APIListSmartbearTunnels.d.ts +11 -6
  40. package/dist/api/APIListUsers.d.ts +17 -11
  41. package/dist/api/APIResource.d.ts +6 -5
  42. package/dist/api/APIResourceAccessGroup.d.ts +16 -10
  43. package/dist/api/APIResourceAccount.d.ts +12 -7
  44. package/dist/api/APIResourceAccountService.d.ts +11 -6
  45. package/dist/api/APIResourceAdditionalUser.d.ts +9 -6
  46. package/dist/api/APIResourceBillingPeriod.d.ts +9 -6
  47. package/dist/api/APIResourceBroker.d.ts +10 -0
  48. package/dist/api/APIResourceChannel.d.ts +8 -0
  49. package/dist/api/APIResourceCleanupConfiguration.d.ts +9 -7
  50. package/dist/api/APIResourceDevice.d.ts +12 -7
  51. package/dist/api/APIResourceDeviceGroup.d.ts +18 -11
  52. package/dist/api/APIResourceDeviceSession.d.ts +9 -8
  53. package/dist/api/APIResourceDeviceSessionCommon.d.ts +26 -18
  54. package/dist/api/APIResourceDeviceSessionStandalone.d.ts +19 -14
  55. package/dist/api/APIResourceFile.d.ts +17 -9
  56. package/dist/api/APIResourceLabelGroup.d.ts +12 -8
  57. package/dist/api/APIResourceNotification.d.ts +10 -6
  58. package/dist/api/APIResourceProject.d.ts +15 -15
  59. package/dist/api/APIResourceRun.d.ts +6 -6
  60. package/dist/api/APIResourceRunCommon.d.ts +29 -19
  61. package/dist/api/APIResourceUser.d.ts +69 -56
  62. package/dist/api/APIResourceUserSession.d.ts +12 -9
  63. package/dist/api/APIUserResourceAccount.d.ts +16 -10
  64. package/dist/api/class/FilesQueryParams.d.ts +4 -0
  65. package/dist/api/class/Images.filter.d.ts +2 -0
  66. package/dist/api/class/InputFileset.d.ts +13 -8
  67. package/dist/api/class/NonMedia.filter.d.ts +2 -0
  68. package/dist/api/class/OutputFileset.d.ts +21 -14
  69. package/dist/api/decorators/NonRequestable.d.ts +8 -0
  70. package/dist/api/factory/postAdminDeviceSessionChangeBillable.d.ts +5 -4
  71. package/dist/api/factory/postDeviceRunIds.d.ts +5 -4
  72. package/dist/api/interface/DeviceSession.d.ts +8 -7
  73. package/dist/api/interface/DeviceSessionBase.d.ts +8 -8
  74. package/dist/api/interface/DeviceSessionCommon.d.ts +17 -13
  75. package/dist/api/interface/DeviceSessionStandalone.d.ts +11 -9
  76. package/dist/api/models/AccessGroup.d.ts +14 -0
  77. package/dist/api/models/Account.d.ts +7 -0
  78. package/dist/api/models/AccountConcurrencyStatusMap.d.ts +4 -0
  79. package/dist/api/models/AccountPreference.d.ts +4 -0
  80. package/dist/api/models/AccountService.d.ts +66 -0
  81. package/dist/api/models/AccountServicePayment.d.ts +11 -0
  82. package/dist/api/models/Activity.d.ts +13 -0
  83. package/dist/api/models/AdminDevice.d.ts +50 -0
  84. package/dist/api/models/AdminDeviceSession.d.ts +36 -0
  85. package/dist/api/models/AdminDeviceSessionStatistics.d.ts +22 -0
  86. package/dist/api/models/AdminDeviceType.d.ts +12 -0
  87. package/dist/api/models/AdminEmail.d.ts +9 -0
  88. package/dist/api/models/AdminError.d.ts +39 -0
  89. package/dist/api/models/AdminFrameworkStatistics.d.ts +24 -0
  90. package/dist/api/models/AdminOverview.d.ts +10 -0
  91. package/dist/api/models/AdminTestRun.d.ts +31 -0
  92. package/dist/api/models/BillingPeriod.d.ts +40 -0
  93. package/dist/api/models/Broker.d.ts +10 -0
  94. package/dist/api/models/Browser.d.ts +15 -0
  95. package/dist/api/models/CleanupConfiguration.d.ts +5 -0
  96. package/dist/api/models/Cluster.d.ts +32 -0
  97. package/dist/api/models/Connection.d.ts +15 -0
  98. package/dist/api/models/CountryVatRate.d.ts +7 -0
  99. package/dist/api/models/DesktopBrowserCapabilities.d.ts +19 -0
  100. package/dist/api/models/Device.d.ts +108 -0
  101. package/dist/api/models/DeviceFilter.d.ts +17 -0
  102. package/dist/api/models/DeviceGroup.d.ts +30 -0
  103. package/dist/api/models/DeviceModel.d.ts +23 -0
  104. package/dist/api/models/DeviceModelCriterion.d.ts +19 -0
  105. package/dist/api/models/DeviceModelPool.d.ts +19 -0
  106. package/dist/api/models/DeviceProblem.d.ts +23 -0
  107. package/dist/api/models/DeviceSession.d.ts +137 -0
  108. package/dist/api/models/DeviceSessionDataAvailability.d.ts +9 -0
  109. package/dist/api/models/DeviceStatistics.d.ts +15 -0
  110. package/dist/api/models/DeviceStatus.d.ts +30 -0
  111. package/dist/api/models/DeviceTimeCountSessionReportEntry.d.ts +12 -0
  112. package/dist/api/models/DeviceTimeStepTimeReportEntry.d.ts +12 -0
  113. package/dist/api/models/DeviceUsage.d.ts +7 -0
  114. package/dist/api/models/Enum.d.ts +10 -0
  115. package/dist/api/models/Framework.d.ts +37 -0
  116. package/dist/api/models/HTTP.d.ts +33 -0
  117. package/dist/api/models/LabelGroup.d.ts +7 -0
  118. package/dist/api/models/License.d.ts +74 -0
  119. package/dist/api/models/Maintenance.d.ts +13 -0
  120. package/dist/api/models/Message.d.ts +3 -0
  121. package/dist/api/models/Notification.d.ts +34 -0
  122. package/dist/api/models/NotificationPlan.d.ts +20 -0
  123. package/dist/api/models/Project.d.ts +31 -0
  124. package/dist/api/models/ProjectJobConfig.d.ts +9 -0
  125. package/dist/api/models/Property.d.ts +17 -0
  126. package/dist/api/models/Role.d.ts +15 -0
  127. package/dist/api/models/Screenshot.d.ts +22 -0
  128. package/dist/api/models/Service.d.ts +61 -0
  129. package/dist/api/models/Settings.d.ts +6 -0
  130. package/dist/api/models/SharedResource.d.ts +11 -0
  131. package/dist/api/models/SmartbearTunnel.d.ts +20 -0
  132. package/dist/api/models/Tag.d.ts +16 -0
  133. package/dist/api/models/TestCaseRun.d.ts +40 -0
  134. package/dist/api/models/TestRun.d.ts +132 -0
  135. package/dist/api/models/TestRunDataAvailability.d.ts +10 -0
  136. package/dist/api/models/User.d.ts +75 -0
  137. package/dist/api/models/UserDeviceTime.d.ts +21 -0
  138. package/dist/api/models/UserDeviceTimeSummary.d.ts +14 -0
  139. package/dist/api/models/UserFile.d.ts +65 -0
  140. package/dist/api/models/UserPreference.d.ts +11 -0
  141. package/dist/api/models/UserStatistics.d.ts +14 -0
  142. package/dist/api/models/VatRate.d.ts +4 -0
  143. package/dist/bitbar-cloud-api-client.js +1787 -1732
  144. package/dist/bitbar-cloud-api-client.js.map +1 -1
  145. package/dist/bitbar-cloud-api-client.min.js +17 -2
  146. package/dist/bitbar-cloud-api-client.min.js.map +1 -1
  147. package/dist/finka.d.ts +2 -2
  148. package/dist/index.d.ts +2 -2
  149. package/package.json +32 -28
  150. package/.nycrc +0 -14
  151. package/Jenkinsfile.sonar +0 -53
  152. package/dist/api/APIListPurchased.d.ts +0 -5
  153. package/dist/api/APIListStatistics.d.ts +0 -6
  154. package/dist/api/APIResourceBuild.d.ts +0 -8
  155. package/dist/api/APIResourceJob.d.ts +0 -9
  156. package/sonar-project.properties +0 -17
  157. package/tsconfig.test.json +0 -20
@@ -0,0 +1,30 @@
1
+ import { DeviceState } from './AdminDevice';
2
+ export declare type DeviceStatus = {
3
+ alarmOn: boolean;
4
+ aslOn: boolean;
5
+ batteryLevel: number;
6
+ bluetoothOn: boolean;
7
+ clusterId: number;
8
+ clusterName: string;
9
+ deviceId: number;
10
+ deviceName: string;
11
+ deviceTime: number;
12
+ deviceTimeZone: string;
13
+ emailAccount: string;
14
+ externalStorage: number;
15
+ flashOn: boolean;
16
+ id: number;
17
+ internalStorage: number;
18
+ internetAccess: boolean;
19
+ locationServiceOn: boolean;
20
+ mockLocationOn: boolean;
21
+ monitoringOn: boolean;
22
+ screenLocked: boolean;
23
+ sdcardPresent: boolean;
24
+ ssid: string;
25
+ state: DeviceState;
26
+ tdsVersion: string;
27
+ testExecuting: boolean;
28
+ tetheringOn: boolean;
29
+ updateTime: number;
30
+ };
@@ -0,0 +1,12 @@
1
+ import { OsType } from './Enum';
2
+ export declare type DeviceTimeCountSessionReportEntry = {
3
+ countDeviceSessions: number;
4
+ countTestRuns: number;
5
+ day: number;
6
+ deviceModelName: string;
7
+ deviceTime: number;
8
+ id: number;
9
+ osType: OsType;
10
+ projectName: string;
11
+ userEmail: string;
12
+ };
@@ -0,0 +1,12 @@
1
+ import { OsType } from './Enum';
2
+ export declare type DeviceTimeStepTimeReportEntry = {
3
+ day: number;
4
+ deviceModelName: string;
5
+ deviceTime: number;
6
+ id: number;
7
+ osType: OsType;
8
+ preparationTime: number;
9
+ projectName: string;
10
+ userEmail: string;
11
+ waitingTime: number;
12
+ };
@@ -0,0 +1,7 @@
1
+ import { Device } from './Device';
2
+ export declare type DeviceUsage = {
3
+ device: Device;
4
+ failedDeviceSessions: number;
5
+ id: number;
6
+ totalDeviceSessions: number;
7
+ };
@@ -0,0 +1,10 @@
1
+ export declare enum OsType {
2
+ IOS = "IOS",
3
+ ANDROID = "ANDROID",
4
+ DESKTOP = "DESKTOP",
5
+ UNDEFINED = "UNDEFINED"
6
+ }
7
+ export declare type Enum = {
8
+ id: number;
9
+ value: string;
10
+ };
@@ -0,0 +1,37 @@
1
+ import { OsType } from './Enum';
2
+ import { UserFile } from './UserFile';
3
+ export declare type Framework = {
4
+ accountId: number;
5
+ canRunFromUI: boolean;
6
+ createTime: number;
7
+ description: string;
8
+ documentationUrl: string;
9
+ forProjects: boolean;
10
+ icon: string;
11
+ id: number;
12
+ labelId: number;
13
+ labelName: string;
14
+ mainUserEmail: string;
15
+ name: string;
16
+ osType: OsType;
17
+ requiredAppExtensions: string;
18
+ requiredTestExtensions: string;
19
+ requiredTestFileTags: string;
20
+ retryable: boolean;
21
+ sampleApp: UserFile;
22
+ sampleTest: UserFile;
23
+ secured: boolean;
24
+ skipOlderSdk: boolean;
25
+ skipQueue: boolean;
26
+ type: string;
27
+ };
28
+ export declare type FrameworkData = Omit<Framework, 'createTime' | 'id' | 'labelName' | 'mainUserEmail' | 'sampleApp' | 'sampleTest'> & {
29
+ addLabelToDevices: boolean;
30
+ roleIds: Array<number>;
31
+ sampleAppId: number;
32
+ sampleTestId: number;
33
+ };
34
+ export declare type FrameworkEditData = Omit<FrameworkData, 'accountId' | 'id' | 'secured'>;
35
+ export declare type FrameworkConfigData = {
36
+ content: string;
37
+ };
@@ -0,0 +1,33 @@
1
+ import { Method } from 'axios';
2
+ export declare const ALLOWED_HTTP_METHODS: Array<Method>;
3
+ export declare type QueryParam = string | number | boolean;
4
+ export declare type QueryParams = Record<string, QueryParam | Array<QueryParam>>;
5
+ export declare enum APIOrder {
6
+ asc = "a",
7
+ desc = "d"
8
+ }
9
+ export interface CollectionQueryParams extends QueryParams {
10
+ filter: string;
11
+ limit: number;
12
+ offset: number;
13
+ sort: string;
14
+ search: string;
15
+ }
16
+ export declare type CollectionBasicQueryParams = Omit<CollectionQueryParams, 'search'>;
17
+ export declare type NoQueryParams = {
18
+ [key in any]: never;
19
+ };
20
+ export declare type CollectionResponse<T> = {
21
+ data: Array<T>;
22
+ empty: boolean;
23
+ id: number;
24
+ limit: number;
25
+ next: string;
26
+ offset: number;
27
+ previous: string;
28
+ search: string;
29
+ sort: string;
30
+ total: number;
31
+ };
32
+ export declare type SimpleCollectionResponse<T> = Pick<CollectionResponse<T>, 'data' | 'id'>;
33
+ export declare type NoData = void;
@@ -0,0 +1,7 @@
1
+ import { DeviceProperty } from './Device';
2
+ export declare type LabelGroup = {
3
+ displayName: string;
4
+ id: number;
5
+ name: string;
6
+ };
7
+ export declare type LabelData = Pick<DeviceProperty, 'displayName' | 'name'>;
@@ -0,0 +1,74 @@
1
+ export declare enum LicenseStatus {
2
+ ACTIVE = "ACTIVE",
3
+ EXPIRED = "EXPIRED",
4
+ INACTIVE = "INACTIVE",
5
+ CLOSED = "CLOSED"
6
+ }
7
+ export declare type BaseLicense = {
8
+ enabled: boolean;
9
+ };
10
+ export declare type FeatureLicense = {
11
+ deviceLimit: number;
12
+ deviceLimited: boolean;
13
+ projectLimit: number;
14
+ projectLimited: boolean;
15
+ };
16
+ export declare type AndroidLicense = BaseLicense & FeatureLicense & {
17
+ cts: CTSLicense;
18
+ uiAutomator: UIAutomatorLicense;
19
+ };
20
+ export declare type BuildLicense = BaseLicense & {
21
+ limit: number;
22
+ limited: boolean;
23
+ };
24
+ export declare type DesktopLicense = BaseLicense & FeatureLicense;
25
+ export declare type GlobalLicense = FeatureLicense;
26
+ export declare type InspectorLicense = BaseLicense;
27
+ export declare type IOSLicense = BaseLicense & FeatureLicense;
28
+ export declare type RecorderLicense = BaseLicense & {
29
+ limit: number;
30
+ limited: boolean;
31
+ };
32
+ export declare type ServerLicense = BaseLicense & {
33
+ androidEnabled: boolean;
34
+ iosEnabled: boolean;
35
+ };
36
+ export declare type CTSLicense = BaseLicense;
37
+ export declare type UIAutomatorLicense = BaseLicense;
38
+ export declare type License = {
39
+ activateTime: number;
40
+ android: AndroidLicense;
41
+ build: BuildLicense;
42
+ closeTime: number;
43
+ desktop: DesktopLicense;
44
+ expireTime: number;
45
+ global: GlobalLicense;
46
+ id: number;
47
+ inspector: InspectorLicense;
48
+ ios: IOSLicense;
49
+ privateInstance: boolean;
50
+ recorder: RecorderLicense;
51
+ server: ServerLicense;
52
+ status: LicenseStatus;
53
+ userEmail: string;
54
+ userId: number;
55
+ };
56
+ export declare type LicenseData = Pick<License, 'privateInstance' | 'userId'> & {
57
+ androidDeviceLimit: number;
58
+ androidEnabled: boolean;
59
+ androidProjectLimit: number;
60
+ buildEnabled: boolean;
61
+ buildLimit: number;
62
+ desktopDeviceLimit: number;
63
+ desktopEnabled: boolean;
64
+ desktopProjectLimit: number;
65
+ globalDeviceLimit: number;
66
+ globalProjectLimit: number;
67
+ inspectorEnabled: boolean;
68
+ iosDeviceLimit: number;
69
+ iosEnabled: boolean;
70
+ iosProjectLimit: number;
71
+ privateInstance: boolean;
72
+ unit: string;
73
+ unitCount: number;
74
+ };
@@ -0,0 +1,13 @@
1
+ export declare type Maintenance = {
2
+ enabled: boolean;
3
+ id: number;
4
+ };
5
+ export declare enum MaintenanceType {
6
+ BARE_METAL = "BARE_METAL",
7
+ EC2 = "EC2",
8
+ VM = "VM"
9
+ }
10
+ export declare type MaintenanceData = {
11
+ enabled: boolean;
12
+ type: MaintenanceType;
13
+ };
@@ -0,0 +1,3 @@
1
+ export declare type Message = {
2
+ message: string;
3
+ };
@@ -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,9 @@
1
+ export declare type ProjectJobConfig = {
2
+ content: string;
3
+ frameworkId: number;
4
+ global: boolean;
5
+ id: number;
6
+ lastModificationTime: number;
7
+ lastModifiedBy: string;
8
+ version: number;
9
+ };
@@ -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,11 @@
1
+ export declare enum SharedResourceType {
2
+ DEVICE_GROUP = "DEVICE_GROUP",
3
+ FILE = "FILE",
4
+ PROJECT = "PROJECT"
5
+ }
6
+ export declare type SharedResource = {
7
+ id: number;
8
+ name: string;
9
+ resourceId: number;
10
+ type: SharedResourceType;
11
+ };
@@ -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
+ };