@bitbar/cloud-api-client 0.56.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 (155) hide show
  1. package/dist/API.d.ts +55 -29
  2. package/dist/ApiConfig.d.ts +3 -3
  3. package/dist/CloudAPIClient.d.ts +3 -3
  4. package/dist/Filter.d.ts +3 -3
  5. package/dist/FilterBuilder.d.ts +19 -20
  6. package/dist/api/APIAdminListDevices.d.ts +8 -8
  7. package/dist/api/APIAdminListNotificationPlans.d.ts +9 -5
  8. package/dist/api/APIAdminListRuns.d.ts +12 -5
  9. package/dist/api/APIAdminListServices.d.ts +9 -10
  10. package/dist/api/APIAdminListStatistics.d.ts +8 -5
  11. package/dist/api/APIAdminResource.d.ts +97 -67
  12. package/dist/api/APIAdminResourceAccount.d.ts +6 -3
  13. package/dist/api/APIAdminResourceAccountService.d.ts +8 -5
  14. package/dist/api/APIAdminResourceCluster.d.ts +9 -5
  15. package/dist/api/APIAdminResourceDevice.d.ts +14 -9
  16. package/dist/api/APIAdminResourceDeviceModel.d.ts +9 -5
  17. package/dist/api/APIAdminResourceDeviceSession.d.ts +3 -3
  18. package/dist/api/APIAdminResourceDeviceSessionStandalone.d.ts +4 -10
  19. package/dist/api/APIAdminResourceDeviceTime.d.ts +10 -6
  20. package/dist/api/APIAdminResourceFramework.d.ts +11 -6
  21. package/dist/api/APIAdminResourceLicense.d.ts +10 -7
  22. package/dist/api/APIAdminResourceNotificationPlan.d.ts +11 -7
  23. package/dist/api/APIAdminResourceProject.d.ts +5 -4
  24. package/dist/api/APIAdminResourceRun.d.ts +5 -4
  25. package/dist/api/APIAdminResourceRunStandalone.d.ts +10 -11
  26. package/dist/api/APIAdminResourceService.d.ts +7 -7
  27. package/dist/api/APIAdminResourceUser.d.ts +15 -9
  28. package/dist/api/APIAdminResourceUserAccount.d.ts +13 -8
  29. package/dist/api/APIEntity.d.ts +21 -18
  30. package/dist/api/APIList.d.ts +9 -11
  31. package/dist/api/APIListCleanupConfigurations.d.ts +9 -5
  32. package/dist/api/APIListDeviceTime.d.ts +9 -5
  33. package/dist/api/APIListDevices.d.ts +11 -10
  34. package/dist/api/APIListFiles.d.ts +8 -7
  35. package/dist/api/APIListNotifications.d.ts +11 -5
  36. package/dist/api/APIListProperties.d.ts +8 -4
  37. package/dist/api/APIListRuns.d.ts +8 -5
  38. package/dist/api/APIListServices.d.ts +14 -7
  39. package/dist/api/APIListSmartbearTunnels.d.ts +8 -3
  40. package/dist/api/APIListUsers.d.ts +15 -9
  41. package/dist/api/APIResource.d.ts +3 -2
  42. package/dist/api/APIResourceAccessGroup.d.ts +14 -8
  43. package/dist/api/APIResourceAccount.d.ts +10 -5
  44. package/dist/api/APIResourceAccountService.d.ts +9 -4
  45. package/dist/api/APIResourceAdditionalUser.d.ts +7 -4
  46. package/dist/api/APIResourceBillingPeriod.d.ts +7 -4
  47. package/dist/api/APIResourceBroker.d.ts +8 -5
  48. package/dist/api/APIResourceChannel.d.ts +8 -0
  49. package/dist/api/APIResourceCleanupConfiguration.d.ts +7 -5
  50. package/dist/api/APIResourceDevice.d.ts +10 -5
  51. package/dist/api/APIResourceDeviceGroup.d.ts +16 -9
  52. package/dist/api/APIResourceDeviceSession.d.ts +7 -6
  53. package/dist/api/APIResourceDeviceSessionCommon.d.ts +22 -14
  54. package/dist/api/APIResourceDeviceSessionStandalone.d.ts +15 -10
  55. package/dist/api/APIResourceFile.d.ts +15 -7
  56. package/dist/api/APIResourceLabelGroup.d.ts +10 -6
  57. package/dist/api/APIResourceNotification.d.ts +8 -4
  58. package/dist/api/APIResourceProject.d.ts +12 -12
  59. package/dist/api/APIResourceRun.d.ts +3 -3
  60. package/dist/api/APIResourceRunCommon.d.ts +27 -17
  61. package/dist/api/APIResourceUser.d.ts +53 -40
  62. package/dist/api/APIResourceUserSession.d.ts +10 -7
  63. package/dist/api/APIUserResourceAccount.d.ts +13 -7
  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 +11 -6
  67. package/dist/api/class/NonMedia.filter.d.ts +2 -0
  68. package/dist/api/class/OutputFileset.d.ts +19 -12
  69. package/dist/api/decorators/NonRequestable.d.ts +8 -0
  70. package/dist/api/factory/postAdminDeviceSessionChangeBillable.d.ts +4 -3
  71. package/dist/api/factory/postDeviceRunIds.d.ts +4 -3
  72. package/dist/api/interface/DeviceSession.d.ts +6 -5
  73. package/dist/api/interface/DeviceSessionBase.d.ts +4 -4
  74. package/dist/api/interface/DeviceSessionCommon.d.ts +15 -11
  75. package/dist/api/interface/DeviceSessionStandalone.d.ts +9 -7
  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 +1047 -1007
  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/package.json +30 -26
  148. package/.nycrc +0 -14
  149. package/Jenkinsfile.sonar +0 -53
  150. package/dist/api/APIListPurchased.d.ts +0 -5
  151. package/dist/api/APIListStatistics.d.ts +0 -6
  152. package/dist/api/APIResourceBuild.d.ts +0 -8
  153. package/dist/api/APIResourceJob.d.ts +0 -9
  154. package/sonar-project.properties +0 -17
  155. package/tsconfig.test.json +0 -20
@@ -0,0 +1,108 @@
1
+ import { Browser } from './Browser';
2
+ import { OsType } from './Enum';
3
+ import { CollectionBasicQueryParams, CollectionQueryParams, CollectionResponse, QueryParams } from './HTTP';
4
+ import { TestRunsQueryParams } from './TestRun';
5
+ export declare enum DeviceGroupOrigin {
6
+ STATIC = "STATIC",
7
+ DYNAMIC = "DYNAMIC",
8
+ HYBRID = "HYBRID"
9
+ }
10
+ export declare enum Platform {
11
+ IOS = "IOS",
12
+ ANDROID = "ANDROID",
13
+ WINDOWS = "WINDOWS",
14
+ MAC = "MAC",
15
+ LINUX = "LINUX",
16
+ UNDEFINED = "UNDEFINED"
17
+ }
18
+ export declare enum SupportedCreators {
19
+ MANUAL = "MANUAL",
20
+ ROBOT = "ROBOT",
21
+ AUTOMATIC = "AUTOMATIC"
22
+ }
23
+ export declare type DeviceProperty = {
24
+ displayName: string;
25
+ id: number;
26
+ labelGroupName: string;
27
+ name: string;
28
+ propertyGroupId: number;
29
+ propertyGroupName: string;
30
+ };
31
+ export declare type SoftwareVersion = {
32
+ apiLevel: number;
33
+ id: number;
34
+ releaseVersion: string;
35
+ };
36
+ export declare type Device = {
37
+ accountId: number;
38
+ available: boolean;
39
+ browsers: CollectionResponse<Browser>;
40
+ creditsPrice: number;
41
+ deviceGroupOrigin: DeviceGroupOrigin;
42
+ displayName: string;
43
+ enabled: boolean;
44
+ frame100Url: string;
45
+ frame160Url: string;
46
+ frame400Url: string;
47
+ frame80Url: string;
48
+ frameExtraWidth: number;
49
+ id: number;
50
+ imageHeight: number;
51
+ imageLeft: number;
52
+ imagePrefix: string;
53
+ imageTop: number;
54
+ imageWidth: number;
55
+ locked: boolean;
56
+ mainUserEmail: string;
57
+ manufacturer: string;
58
+ online: boolean;
59
+ osType: OsType;
60
+ platform: Platform;
61
+ properties: CollectionResponse<DeviceProperty>;
62
+ softwareVersion: SoftwareVersion;
63
+ supportedCreators: SupportedCreators;
64
+ };
65
+ export declare type DeviceCleanupConfiguration = {
66
+ content: string;
67
+ createTime: number;
68
+ createdByEmail: string;
69
+ createdById: number;
70
+ discriminator: string;
71
+ enabled: boolean;
72
+ global: boolean;
73
+ example: true;
74
+ id: number;
75
+ lastModificationTime: number;
76
+ osType: OsType;
77
+ };
78
+ export declare type DeviceCleanupConfigurationData = {
79
+ deviceCleanupConfigurationId: number;
80
+ };
81
+ export declare type DeviceLabelData = {
82
+ labelId: number;
83
+ };
84
+ export interface DeviceProperiesData extends QueryParams {
85
+ labelId: number;
86
+ }
87
+ export declare type CleanupConfigurationData = Pick<DeviceCleanupConfiguration, 'content' | 'discriminator' | 'enabled'>;
88
+ export interface CleanupConfigurationSpecificData extends QueryParams {
89
+ serialId: string;
90
+ }
91
+ export interface DeviceTimeSummaryQueryParams extends CollectionBasicQueryParams {
92
+ forWholeAccount: boolean;
93
+ }
94
+ export interface DeviceUsageQueryParams extends TestRunsQueryParams {
95
+ startTime: number;
96
+ }
97
+ export interface DeviceStatisticQueryParam extends TestRunsQueryParams {
98
+ mode: string;
99
+ }
100
+ export interface DevicesQueryParams extends CollectionQueryParams {
101
+ labelIds: Array<string>;
102
+ liveTestingOnly: boolean;
103
+ withBrowsers: boolean;
104
+ withDedicated: boolean;
105
+ withDisabled: boolean;
106
+ withProperties: boolean;
107
+ withSupportedCreators: boolean;
108
+ }
@@ -0,0 +1,17 @@
1
+ import { OsType } from './Enum';
2
+ export declare type DevicePicker = {
3
+ deviceFilterGroups: Array<DeviceFilterGroup>;
4
+ id: number;
5
+ };
6
+ export declare type DeviceFilter = {
7
+ displayName: string;
8
+ hidden: boolean;
9
+ id: number;
10
+ name: string;
11
+ osType: OsType;
12
+ };
13
+ export declare type DeviceFilterGroup = {
14
+ deviceFilters: Array<DeviceFilter>;
15
+ id: number;
16
+ name: string;
17
+ };
@@ -0,0 +1,30 @@
1
+ import { OsType } from './Enum';
2
+ import { CollectionBasicQueryParams, QueryParams } from './HTTP';
3
+ export declare type DeviceGroup = {
4
+ deviceCount: number;
5
+ displayName: string;
6
+ id: number;
7
+ name: string;
8
+ osType: OsType;
9
+ shared: boolean;
10
+ userEmail: string;
11
+ userId: number;
12
+ };
13
+ export interface DeviceGroupSelectorData extends QueryParams {
14
+ selectorIds: Array<number>;
15
+ }
16
+ export interface DeviceGroupIdsData extends QueryParams {
17
+ deviceId: number;
18
+ deviceIds: Array<number>;
19
+ }
20
+ export interface DeviceGroupShareData extends QueryParams {
21
+ accessGroupId: number;
22
+ email: string;
23
+ }
24
+ export interface DeviceGroupParams extends CollectionBasicQueryParams {
25
+ withProperties: boolean;
26
+ }
27
+ export interface DeviceGroupWithPublicParams extends CollectionBasicQueryParams {
28
+ withPublic: boolean;
29
+ }
30
+ export declare type DeviceGroupData = Pick<DeviceGroup, 'displayName' | 'name' | 'osType'>;
@@ -0,0 +1,23 @@
1
+ import { Platform } from './Device';
2
+ import { OsType } from './Enum';
3
+ export declare type DeviceModel = {
4
+ avgWaitingTime: number;
5
+ dedicated: boolean;
6
+ enabled: boolean;
7
+ id: number;
8
+ location: string;
9
+ name: string;
10
+ online: number;
11
+ osType: OsType;
12
+ platform: Platform;
13
+ queueSize: number;
14
+ releaseVersion: string;
15
+ running: number;
16
+ total: number;
17
+ };
18
+ export declare type DeviceModelData = Pick<DeviceModel, 'enabled' | 'name' | 'releaseVersion'> & {
19
+ apiLevel: number;
20
+ creditsPrice: number;
21
+ manufacturer: string;
22
+ typeId: number;
23
+ };
@@ -0,0 +1,19 @@
1
+ export declare enum CriterionField {
2
+ NAME = "NAME",
3
+ FINGERPRINT = "FINGERPRINT",
4
+ SERIAL_ID = "SERIAL_ID",
5
+ UNLOCK_GESTURE = "UNLOCK_GESTURE",
6
+ SOFTWARE_VERSION = "SOFTWARE_VERSION",
7
+ INIT_STEP = "INIT_STEP",
8
+ ACCOUNT = "ACCOUNT",
9
+ BROWSERS = "BROWSERS"
10
+ }
11
+ export declare type DeviceModelCriterion = {
12
+ createTime: number;
13
+ field: CriterionField;
14
+ id: number;
15
+ labelGroupDisplayName: string;
16
+ labelGroupId: number;
17
+ labelGroupName: string;
18
+ };
19
+ export declare type DeviceModelCriterionData = Pick<DeviceModelCriterion, 'field' | 'labelGroupId'>;
@@ -0,0 +1,19 @@
1
+ export declare enum RetentionStrategy {
2
+ CLUSTER_ON_OFF = "CLUSTER_ON_OFF",
3
+ MIN_FREE_MAX_TOTAL = "MIN_FREE_MAX_TOTAL",
4
+ POOL_MANAGER_AWARE = "POOL_MANAGER_AWARE"
5
+ }
6
+ export declare type DeviceModelPool = {
7
+ createTime: number;
8
+ enabled: boolean;
9
+ id: number;
10
+ location: string;
11
+ maxTotal: number;
12
+ minAvailable: number;
13
+ name: string;
14
+ numberOfBrowsers: number;
15
+ osVersion: string;
16
+ retentionStrategy: RetentionStrategy;
17
+ running: number;
18
+ };
19
+ export declare type DeviceModelPoolData = Pick<DeviceModelPool, 'maxTotal' | 'minAvailable'>;
@@ -0,0 +1,23 @@
1
+ export declare enum ProblemType {
2
+ CLEANING = "CLEANING",
3
+ DIRTY = "DIRTY",
4
+ OFFLINE = "OFFLINE",
5
+ LOW_BATTERY = "LOW_BATTERY",
6
+ HIGH_FAIL_RATE = "HIGH_FAIL_RATE",
7
+ NO_INTERNET_CONNECTION = "NO_INTERNET_CONNECTION"
8
+ }
9
+ export declare type DeviceProblem = {
10
+ clusterId: number;
11
+ clusterName: string;
12
+ deviceId: number;
13
+ deviceModelId: number;
14
+ deviceModelName: string;
15
+ deviceName: string;
16
+ id: number;
17
+ problems: Array<DeviceProblemPair>;
18
+ };
19
+ export declare type DeviceProblemPair = {
20
+ id: number;
21
+ type: ProblemType;
22
+ value: any;
23
+ };
@@ -0,0 +1,137 @@
1
+ import { Device } from './Device';
2
+ import { CollectionBasicQueryParams } from './HTTP';
3
+ export declare type TunnelSettings = {
4
+ domain: string;
5
+ email: string;
6
+ };
7
+ export declare enum DeviceSessionType {
8
+ AUTOMATIC = "AUTOMATIC",
9
+ MANUAL = "MANUAL",
10
+ MANUAL_APP = "MANUAL_APP",
11
+ MANUAL_WEB = "MANUAL_WEB",
12
+ REMOTE = "REMOTE"
13
+ }
14
+ export declare enum RetryState {
15
+ NONE = "NONE",
16
+ MANUAL = "MANUAL",
17
+ AUTO = "AUTO"
18
+ }
19
+ export declare enum DeviceSessionState {
20
+ ABORTED = "ABORTED",
21
+ EXCLUDED = "EXCLUDED",
22
+ FAILED = "FAILED",
23
+ RUNNING = "RUNNING",
24
+ SUCCEEDED = "SUCCEEDED",
25
+ TIMEOUT = "TIMEOUT",
26
+ WAITING = "WAITING",
27
+ WARNING = "WARNING"
28
+ }
29
+ export declare enum DeviceSessionStepType {
30
+ WAITING = "WAITING",
31
+ PREPARING = "PREPARING",
32
+ UNINSTALL = "UNINSTALL",
33
+ INSTALL = "INSTALL",
34
+ RUNNING = "RUNNING",
35
+ SENDING_RESULTS = "SENDING_RESULTS",
36
+ PROCESSING_RESULTS = "PROCESSING_RESULTS"
37
+ }
38
+ export declare type DeviceSessionConfig = {
39
+ adbVersion: string;
40
+ browserName: string;
41
+ browserVersion: string;
42
+ deviceModelId: number;
43
+ id: number;
44
+ screenResolution: string;
45
+ tunnelSettings: TunnelSettings;
46
+ type: DeviceSessionConfig;
47
+ url: string;
48
+ };
49
+ export declare type DeviceSession = {
50
+ accountId: number;
51
+ autoRetriesLeftCount: number;
52
+ billable: boolean;
53
+ config: DeviceSessionConfig;
54
+ createTime: number;
55
+ device: Device;
56
+ deviceInstanceId: number;
57
+ deviceLogFirstTimestamp: number;
58
+ deviceRunId: number;
59
+ deviceTime: number;
60
+ duration: number;
61
+ endTime: number;
62
+ excludeReason: string;
63
+ externalId: string;
64
+ id: number;
65
+ installTime: number;
66
+ name: string;
67
+ projectId: number;
68
+ projectName: string;
69
+ retryState: RetryState;
70
+ rowIndex: number;
71
+ startTime: number;
72
+ state: DeviceSessionState;
73
+ successRatio: number;
74
+ testCaseAllCount: number;
75
+ testCaseFailedCount: number;
76
+ testCasePassedCount: number;
77
+ testCaseSkippedCount: number;
78
+ testCaseSuccessCount: number;
79
+ testRunId: number;
80
+ testRunName: string;
81
+ timeLimit: number;
82
+ type: DeviceSessionType;
83
+ userEmail: string;
84
+ userId: number;
85
+ };
86
+ export declare type DeviceSessionCommand = {
87
+ duration: number;
88
+ httpMethod: string;
89
+ id: number;
90
+ requestBody: string;
91
+ responseBody: string;
92
+ responseCode: number;
93
+ timestamp: number;
94
+ uri: string;
95
+ };
96
+ export declare type DeviceSessionStep = {
97
+ deviceSessionId: number;
98
+ excludeReason: string;
99
+ failReason: string;
100
+ finishTimeMS: number;
101
+ id: number;
102
+ startTimeMS: number;
103
+ type: DeviceSessionStepType;
104
+ };
105
+ export declare type DeviceSessionConnection = {
106
+ createTime: number;
107
+ deviceSessionId: number;
108
+ endTime: number;
109
+ externalId: string;
110
+ host: string;
111
+ id: number;
112
+ password: string;
113
+ path: string;
114
+ port: number;
115
+ type: string;
116
+ url: string;
117
+ urlSchema: string;
118
+ };
119
+ export declare type DeviceSessionData = Omit<DeviceSessionConfig, 'adbVersion' | 'id' | 'tunnelSettings' | 'type'> & {
120
+ configuration: DeviceSessionConfig;
121
+ };
122
+ export interface DeviceSessionQueryParams extends CollectionBasicQueryParams {
123
+ withProperties: boolean;
124
+ }
125
+ export interface SessionQueryParams extends CollectionBasicQueryParams {
126
+ projectId: number;
127
+ testRunId: number;
128
+ }
129
+ export interface SessionRunStepQueryParams extends CollectionBasicQueryParams {
130
+ runId: number;
131
+ }
132
+ export interface SessionStepQueryParams extends SessionRunStepQueryParams {
133
+ projectId: number;
134
+ }
135
+ export interface TRunDeviceSessionQueryParams extends CollectionBasicQueryParams {
136
+ projectId: number;
137
+ }
@@ -0,0 +1,9 @@
1
+ export declare type DeviceSessionDataAvailability = {
2
+ buildLogs: boolean;
3
+ deviceRunId: number;
4
+ id: number;
5
+ logs: boolean;
6
+ performance: boolean;
7
+ resultsDataZip: boolean;
8
+ screenshots: boolean;
9
+ };
@@ -0,0 +1,15 @@
1
+ import { OsType } from './Enum';
2
+ export declare type DeviceStatistics = {
3
+ deviceName: string;
4
+ failedDevices: number;
5
+ failedRatio: number;
6
+ failedTests: number;
7
+ id: number;
8
+ osType: OsType;
9
+ passedRatio: number;
10
+ passedTests: number;
11
+ releaseVersion: string;
12
+ totalTests: number;
13
+ usageCount: number;
14
+ usageMillis: number;
15
+ };
@@ -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
+ };