@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.
- package/dist/API.d.ts +66 -38
- package/dist/ApiConfig.d.ts +10 -10
- package/dist/CloudAPIClient.d.ts +7 -7
- package/dist/Filter.d.ts +7 -7
- package/dist/FilterBuilder.d.ts +24 -25
- package/dist/api/APIAdminListDevices.d.ts +12 -12
- package/dist/api/APIAdminListNotificationPlans.d.ts +11 -7
- package/dist/api/APIAdminListRuns.d.ts +14 -7
- package/dist/api/APIAdminListServices.d.ts +11 -12
- package/dist/api/APIAdminListStatistics.d.ts +10 -7
- package/dist/api/APIAdminResource.d.ts +121 -91
- package/dist/api/APIAdminResourceAccount.d.ts +8 -5
- package/dist/api/APIAdminResourceAccountService.d.ts +10 -7
- package/dist/api/APIAdminResourceCluster.d.ts +11 -7
- package/dist/api/APIAdminResourceDevice.d.ts +16 -11
- package/dist/api/APIAdminResourceDeviceModel.d.ts +11 -7
- package/dist/api/APIAdminResourceDeviceSession.d.ts +5 -5
- package/dist/api/APIAdminResourceDeviceSessionStandalone.d.ts +6 -12
- package/dist/api/APIAdminResourceDeviceTime.d.ts +12 -8
- package/dist/api/APIAdminResourceFramework.d.ts +13 -8
- package/dist/api/APIAdminResourceLicense.d.ts +12 -9
- package/dist/api/APIAdminResourceNotificationPlan.d.ts +13 -9
- package/dist/api/APIAdminResourceProject.d.ts +7 -6
- package/dist/api/APIAdminResourceRun.d.ts +8 -7
- package/dist/api/APIAdminResourceRunStandalone.d.ts +12 -13
- package/dist/api/APIAdminResourceService.d.ts +9 -9
- package/dist/api/APIAdminResourceUser.d.ts +18 -12
- package/dist/api/APIAdminResourceUserAccount.d.ts +15 -10
- package/dist/api/APIEntity.d.ts +35 -32
- package/dist/api/APIList.d.ts +22 -24
- package/dist/api/APIListCleanupConfigurations.d.ts +11 -7
- package/dist/api/APIListDeviceTime.d.ts +11 -7
- package/dist/api/APIListDevices.d.ts +13 -12
- package/dist/api/APIListFiles.d.ts +11 -10
- package/dist/api/APIListNotifications.d.ts +13 -7
- package/dist/api/APIListProperties.d.ts +10 -6
- package/dist/api/APIListRuns.d.ts +10 -7
- package/dist/api/APIListServices.d.ts +16 -9
- package/dist/api/APIListSmartbearTunnels.d.ts +11 -6
- package/dist/api/APIListUsers.d.ts +17 -11
- package/dist/api/APIResource.d.ts +6 -5
- package/dist/api/APIResourceAccessGroup.d.ts +16 -10
- package/dist/api/APIResourceAccount.d.ts +12 -7
- package/dist/api/APIResourceAccountService.d.ts +11 -6
- package/dist/api/APIResourceAdditionalUser.d.ts +9 -6
- package/dist/api/APIResourceBillingPeriod.d.ts +9 -6
- package/dist/api/APIResourceBroker.d.ts +10 -0
- package/dist/api/APIResourceChannel.d.ts +8 -0
- package/dist/api/APIResourceCleanupConfiguration.d.ts +9 -7
- package/dist/api/APIResourceDevice.d.ts +12 -7
- package/dist/api/APIResourceDeviceGroup.d.ts +18 -11
- package/dist/api/APIResourceDeviceSession.d.ts +9 -8
- package/dist/api/APIResourceDeviceSessionCommon.d.ts +26 -18
- package/dist/api/APIResourceDeviceSessionStandalone.d.ts +19 -14
- package/dist/api/APIResourceFile.d.ts +17 -9
- package/dist/api/APIResourceLabelGroup.d.ts +12 -8
- package/dist/api/APIResourceNotification.d.ts +10 -6
- package/dist/api/APIResourceProject.d.ts +15 -15
- package/dist/api/APIResourceRun.d.ts +6 -6
- package/dist/api/APIResourceRunCommon.d.ts +29 -19
- package/dist/api/APIResourceUser.d.ts +69 -56
- package/dist/api/APIResourceUserSession.d.ts +12 -9
- package/dist/api/APIUserResourceAccount.d.ts +16 -10
- 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 +13 -8
- package/dist/api/class/NonMedia.filter.d.ts +2 -0
- package/dist/api/class/OutputFileset.d.ts +21 -14
- package/dist/api/decorators/NonRequestable.d.ts +8 -0
- package/dist/api/factory/postAdminDeviceSessionChangeBillable.d.ts +5 -4
- package/dist/api/factory/postDeviceRunIds.d.ts +5 -4
- package/dist/api/interface/DeviceSession.d.ts +8 -7
- package/dist/api/interface/DeviceSessionBase.d.ts +8 -8
- package/dist/api/interface/DeviceSessionCommon.d.ts +17 -13
- package/dist/api/interface/DeviceSessionStandalone.d.ts +11 -9
- 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 +30 -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 +11 -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 +1787 -1732
- 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/dist/finka.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +32 -28
- package/.nycrc +0 -14
- package/Jenkinsfile.sonar +0 -53
- package/dist/api/APIListPurchased.d.ts +0 -5
- package/dist/api/APIListStatistics.d.ts +0 -6
- package/dist/api/APIResourceBuild.d.ts +0 -8
- package/dist/api/APIResourceJob.d.ts +0 -9
- package/sonar-project.properties +0 -17
- package/tsconfig.test.json +0 -20
|
@@ -1,56 +1,69 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
1
|
+
import { API } from '../API';
|
|
2
|
+
import { APIList } from './APIList';
|
|
3
|
+
import { APIListDeviceTime } from './APIListDeviceTime';
|
|
4
|
+
import { APIListFiles } from './APIListFiles';
|
|
5
|
+
import { APIListNotifications } from './APIListNotifications';
|
|
6
|
+
import { APIListRuns } from './APIListRuns';
|
|
7
|
+
import { APIListServices } from './APIListServices';
|
|
8
|
+
import { APIListSmartbearTunnels } from './APIListSmartbearTunnels';
|
|
9
|
+
import { APIResource } from './APIResource';
|
|
10
|
+
import { APIResourceAccessGroup } from './APIResourceAccessGroup';
|
|
11
|
+
import { APIResourceBillingPeriod } from './APIResourceBillingPeriod';
|
|
12
|
+
import { APIResourceDeviceGroup } from './APIResourceDeviceGroup';
|
|
13
|
+
import { APIResourceDeviceSessionStandalone } from './APIResourceDeviceSessionStandalone';
|
|
14
|
+
import { APIResourceFile } from './APIResourceFile';
|
|
15
|
+
import { APIResourceNotification } from './APIResourceNotification';
|
|
16
|
+
import { APIResourceProject } from './APIResourceProject';
|
|
17
|
+
import { APIUserResourceAccount } from './APIUserResourceAccount';
|
|
18
|
+
import { DeviceSession } from './interface/DeviceSession';
|
|
19
|
+
import { AccessGroup, AccessGroupsData } from './models/AccessGroup';
|
|
20
|
+
import { BillingPeriod } from './models/BillingPeriod';
|
|
21
|
+
import { DeviceGroup, DeviceGroupIdsData, DeviceGroupWithPublicParams } from './models/DeviceGroup';
|
|
22
|
+
import { DeviceStatistics } from './models/DeviceStatistics';
|
|
23
|
+
import { DeviceUsage } from './models/DeviceUsage';
|
|
24
|
+
import { Framework } from './models/Framework';
|
|
25
|
+
import { Project, UserProjectData, UserProjectQueryParams } from './models/Project';
|
|
26
|
+
import { Service } from './models/Service';
|
|
27
|
+
import { User } from './models/User';
|
|
28
|
+
import { UserDeviceTimeSummary } from './models/UserDeviceTimeSummary';
|
|
29
|
+
import { UiPreferencesData, UserPreference } from './models/UserPreference';
|
|
30
|
+
import { StatisticQueryParams, UserStatistics } from './models/UserStatistics';
|
|
31
|
+
import { DeviceSessionData, DeviceSessionQueryParams } from './models/DeviceSession';
|
|
32
|
+
import { CollectionBasicQueryParams, NoQueryParams } from './models/HTTP';
|
|
33
|
+
import { DeviceStatisticQueryParam, DeviceTimeSummaryQueryParams, DeviceUsageQueryParams } from './models/Device';
|
|
34
|
+
export declare class APIResourceUser extends APIResource {
|
|
35
|
+
constructor(parent: API, id: number | 'me');
|
|
36
|
+
account(): APIUserResourceAccount;
|
|
37
|
+
deviceTime(): APIListDeviceTime;
|
|
38
|
+
deviceTimeSummary(): APIList<UserDeviceTimeSummary, DeviceTimeSummaryQueryParams, void>;
|
|
39
|
+
services(): APIListServices;
|
|
40
|
+
service(id: number): APIResource<Service, NoQueryParams, void>;
|
|
41
|
+
billingPeriods(): APIList<BillingPeriod, CollectionBasicQueryParams, void>;
|
|
42
|
+
billingPeriod(id: number): APIResourceBillingPeriod;
|
|
43
|
+
deviceGroups(): APIList<DeviceGroup, DeviceGroupWithPublicParams, DeviceGroupIdsData>;
|
|
44
|
+
deviceGroup(id: number): APIResourceDeviceGroup;
|
|
45
|
+
deviceSessions(): APIList<DeviceSession, DeviceSessionQueryParams, DeviceSessionData>;
|
|
46
|
+
deviceSession(id: number): APIResourceDeviceSessionStandalone;
|
|
47
|
+
projects(): APIList<Project, UserProjectQueryParams, UserProjectData>;
|
|
48
|
+
project(id: number): APIResourceProject;
|
|
49
|
+
files(): APIListFiles;
|
|
50
|
+
file(id: number): APIResourceFile;
|
|
51
|
+
runs(): APIListRuns;
|
|
52
|
+
availableFrameworks(): APIList<Framework, CollectionBasicQueryParams, void>;
|
|
53
|
+
resetApiKey(): APIResource<User, NoQueryParams, void>;
|
|
54
|
+
restore(): APIResource<User, NoQueryParams, void>;
|
|
55
|
+
feedback(): APIResource<any, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
|
|
56
|
+
notifications(): APIListNotifications;
|
|
57
|
+
notification(id: number): APIResourceNotification;
|
|
58
|
+
preferences(): APIResource<UserPreference, NoQueryParams, UserPreference>;
|
|
59
|
+
uiPreferences(): APIResource<string, NoQueryParams, UiPreferencesData>;
|
|
60
|
+
deviceUsage(): APIList<DeviceUsage, DeviceUsageQueryParams, void>;
|
|
61
|
+
statistics(): APIResource<UserStatistics, StatisticQueryParams, void>;
|
|
62
|
+
deviceStatistics(): APIList<DeviceStatistics, DeviceStatisticQueryParam, void>;
|
|
63
|
+
accessGroups(): APIList<AccessGroup, CollectionBasicQueryParams, AccessGroupsData>;
|
|
64
|
+
accessGroup(id: number): APIResourceAccessGroup;
|
|
65
|
+
smartbearTunnel(id: number): APIResource<any, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
|
|
66
|
+
smartbearTunnels(): APIListSmartbearTunnels;
|
|
67
|
+
deleteAccount(): APIResource<any, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
|
|
68
|
+
}
|
|
69
|
+
export default APIResourceUser;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { API } from '../API';
|
|
2
|
+
import { APIResource } from './APIResource';
|
|
3
|
+
import { NoQueryParams } from './models/HTTP';
|
|
4
|
+
import { LoginData, User } from './models/User';
|
|
5
|
+
export declare class APIResourceUserSession extends APIResource {
|
|
6
|
+
constructor(parent: API);
|
|
7
|
+
login(data: LoginData): APIResource<User, NoQueryParams, LoginData>;
|
|
8
|
+
logout(): APIResource<any, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
|
|
9
|
+
sso(name: string): APIResource<any, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
|
|
10
|
+
portalLogin(): APIResource<any, import("./models/HTTP").QueryParams, import("./models/HTTP").QueryParams>;
|
|
11
|
+
}
|
|
12
|
+
export default APIResourceUserSession;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
export
|
|
1
|
+
import { APIList } from './APIList';
|
|
2
|
+
import { APIResource } from './APIResource';
|
|
3
|
+
import { APIResourceAdditionalUser } from './APIResourceAdditionalUser';
|
|
4
|
+
import { APIResourceUser } from './APIResourceUser';
|
|
5
|
+
import { Account } from './models/Account';
|
|
6
|
+
import { AccountServicePayment } from './models/AccountServicePayment';
|
|
7
|
+
import { BillingPeriodQueryParams } from './models/BillingPeriod';
|
|
8
|
+
import { CollectionBasicQueryParams } from './models/HTTP';
|
|
9
|
+
import { User, UserData } from './models/User';
|
|
10
|
+
export declare class APIUserResourceAccount extends APIResource<Account> {
|
|
11
|
+
constructor(parent: APIResourceUser);
|
|
12
|
+
additionalUsers(): APIList<User, CollectionBasicQueryParams, UserData>;
|
|
13
|
+
additionalUser(id: number): APIResourceAdditionalUser;
|
|
14
|
+
serviceBillingPeriod(id: number): APIResource<AccountServicePayment, BillingPeriodQueryParams, void>;
|
|
15
|
+
}
|
|
16
|
+
export default APIUserResourceAccount;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
export
|
|
1
|
+
import { API } from '../../API';
|
|
2
|
+
import { APIEntity } from '../APIEntity';
|
|
3
|
+
import { APIList } from '../APIList';
|
|
4
|
+
import { APIResource } from '../APIResource';
|
|
5
|
+
import { NoData } from '../models/HTTP';
|
|
6
|
+
import { UserFile } from '../models/UserFile';
|
|
7
|
+
import { FilesQueryParams } from './FilesQueryParams';
|
|
8
|
+
export declare class InputFileset extends APIResource<NoData> {
|
|
9
|
+
constructor(parent: APIEntity | API);
|
|
10
|
+
files(): APIList<UserFile, FilesQueryParams, void>;
|
|
11
|
+
filesZip(): APIResource<Blob, FilesQueryParams, FilesQueryParams>;
|
|
12
|
+
}
|
|
13
|
+
export default InputFileset;
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { API } from '../../API';
|
|
2
|
+
import { APIEntity } from '../APIEntity';
|
|
3
|
+
import { APIList } from '../APIList';
|
|
4
|
+
import { APIResource } from '../APIResource';
|
|
5
|
+
import { Screenshot } from '../models/Screenshot';
|
|
6
|
+
import { UserFile } from '../models/UserFile';
|
|
7
|
+
import { FilesQueryParams } from './FilesQueryParams';
|
|
8
|
+
export declare class OutputFileset extends APIResource<UserFile, FilesQueryParams> {
|
|
9
|
+
constructor(parent: APIEntity | API);
|
|
10
|
+
files(): APIList<UserFile, FilesQueryParams, any>;
|
|
11
|
+
file(id: number): APIResource<UserFile, FilesQueryParams, FilesQueryParams>;
|
|
12
|
+
filesZip(): APIResource<Blob, FilesQueryParams, FilesQueryParams>;
|
|
13
|
+
screenshots(): APIList<Screenshot, FilesQueryParams, any>;
|
|
14
|
+
screenshot(id: number): APIResource<Screenshot, FilesQueryParams, FilesQueryParams>;
|
|
15
|
+
screenshotFile(id: number): APIResource<Screenshot, FilesQueryParams, FilesQueryParams>;
|
|
16
|
+
videos(): APIList<UserFile, FilesQueryParams, any>;
|
|
17
|
+
nonMediaFiles(): APIList<UserFile, FilesQueryParams, any>;
|
|
18
|
+
performance(): APIList<UserFile, FilesQueryParams, any>;
|
|
19
|
+
images(): APIList<UserFile, FilesQueryParams, any>;
|
|
20
|
+
}
|
|
21
|
+
export default OutputFileset;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { APIResource } from '../APIResource';
|
|
2
|
+
import APIResourceDeviceSessionCommon from '../APIResourceDeviceSessionCommon';
|
|
3
|
+
import { DeviceSession } from '../models/DeviceSession';
|
|
4
|
+
export declare function postAdminDeviceSessionChangeBillable(parent: APIResourceDeviceSessionCommon, billable: boolean): APIResource<DeviceSession, import("../models/HTTP").QueryParams, import("../models/HTTP").QueryParams>;
|
|
5
|
+
export default postAdminDeviceSessionChangeBillable;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import APIEntity from '../APIEntity';
|
|
2
|
-
import APIResource from '../APIResource';
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import { APIEntity } from '../APIEntity';
|
|
2
|
+
import { APIResource } from '../APIResource';
|
|
3
|
+
import { BuildLogsData } from '../models/UserFile';
|
|
4
|
+
export declare function postDeviceRunIds<T>(parent: APIEntity, name: string, ids?: Array<number>): APIResource<T, BuildLogsData, BuildLogsData>;
|
|
5
|
+
export default postDeviceRunIds;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import APIResource from '../APIResource';
|
|
2
|
-
import DeviceSessionCommon from './DeviceSessionCommon';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { APIResource } from '../APIResource';
|
|
2
|
+
import { DeviceSessionCommon } from './DeviceSessionCommon';
|
|
3
|
+
import { DeviceSession as DeviceSessionDTO } from '../models/DeviceSession';
|
|
4
|
+
export interface DeviceSession extends DeviceSessionCommon {
|
|
5
|
+
abort(): APIResource<DeviceSessionDTO>;
|
|
6
|
+
retry(): APIResource<DeviceSessionDTO>;
|
|
7
|
+
}
|
|
8
|
+
export default DeviceSession;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import APIResource from '../APIResource';
|
|
2
|
-
import InputFileset from '../class/InputFileset';
|
|
3
|
-
import OutputFileset from '../class/OutputFileset';
|
|
4
|
-
interface DeviceSessionBase extends APIResource {
|
|
5
|
-
input(): InputFileset;
|
|
6
|
-
output(): OutputFileset;
|
|
7
|
-
}
|
|
8
|
-
export default DeviceSessionBase;
|
|
1
|
+
import { APIResource } from '../APIResource';
|
|
2
|
+
import { InputFileset } from '../class/InputFileset';
|
|
3
|
+
import { OutputFileset } from '../class/OutputFileset';
|
|
4
|
+
export interface DeviceSessionBase extends APIResource {
|
|
5
|
+
input(): InputFileset;
|
|
6
|
+
output(): OutputFileset;
|
|
7
|
+
}
|
|
8
|
+
export default DeviceSessionBase;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import APIList from '../APIList';
|
|
2
|
-
import APIResource from '../APIResource';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { APIList } from '../APIList';
|
|
2
|
+
import { APIResource } from '../APIResource';
|
|
3
|
+
import { DeviceSessionCommand, DeviceSessionStep, SessionQueryParams } from '../models/DeviceSession';
|
|
4
|
+
import { NoData, NoQueryParams } from '../models/HTTP';
|
|
5
|
+
import { Screenshot } from '../models/Screenshot';
|
|
6
|
+
import { TestCaseRun } from '../models/TestCaseRun';
|
|
7
|
+
import { DeviceSessionBase } from './DeviceSessionBase';
|
|
8
|
+
export interface DeviceSessionCommon extends DeviceSessionBase {
|
|
9
|
+
commands(): APIList<DeviceSessionCommand>;
|
|
10
|
+
screenshots(): APIList<Screenshot>;
|
|
11
|
+
screenshot(id: number): APIResource<Screenshot>;
|
|
12
|
+
steps(): APIList<DeviceSessionStep>;
|
|
13
|
+
step(id: number | 'current'): APIResource<DeviceSessionStep, NoQueryParams, NoData>;
|
|
14
|
+
currentStep(): APIResource<DeviceSessionStep, NoQueryParams, NoData>;
|
|
15
|
+
testCaseRuns(): APIList<TestCaseRun, SessionQueryParams | NoQueryParams, NoData>;
|
|
16
|
+
}
|
|
17
|
+
export default DeviceSessionCommon;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import APIList from '../APIList';
|
|
2
|
-
import APIResource from '../APIResource';
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { APIList } from '../APIList';
|
|
2
|
+
import { APIResource } from '../APIResource';
|
|
3
|
+
import { DeviceSession, DeviceSessionConnection } from '../models/DeviceSession';
|
|
4
|
+
import { NoData, NoQueryParams } from '../models/HTTP';
|
|
5
|
+
import { DeviceSessionBase } from './DeviceSessionBase';
|
|
6
|
+
export interface DeviceSessionStandalone extends DeviceSessionBase {
|
|
7
|
+
connections(): APIList<DeviceSessionConnection>;
|
|
8
|
+
connection(id: number): APIResource<DeviceSessionConnection, NoQueryParams, NoData>;
|
|
9
|
+
release(): APIResource<DeviceSession, NoQueryParams, NoData>;
|
|
10
|
+
}
|
|
11
|
+
export default DeviceSessionStandalone;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum AccessGroupScope {
|
|
2
|
+
USER = "USER",
|
|
3
|
+
ACCOUNT = "ACCOUNT",
|
|
4
|
+
GLOBAL = "GLOBAL"
|
|
5
|
+
}
|
|
6
|
+
export declare type AccessGroup = {
|
|
7
|
+
id: number;
|
|
8
|
+
name: string;
|
|
9
|
+
scope: AccessGroupScope;
|
|
10
|
+
userEmail: string;
|
|
11
|
+
userId: number;
|
|
12
|
+
};
|
|
13
|
+
export declare type AccessGroupData = Pick<AccessGroup, 'name' | 'scope' | 'userId'>;
|
|
14
|
+
export declare type AccessGroupsData = Omit<AccessGroupData, 'userId'>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ServiceUnit } from './Service';
|
|
2
|
+
export declare enum PaymentStatus {
|
|
3
|
+
SUCCEEDED = "SUCCEEDED",
|
|
4
|
+
FAILED = "FAILED",
|
|
5
|
+
REDIRECTED = "REDIRECTED"
|
|
6
|
+
}
|
|
7
|
+
export declare enum PaymentMethod {
|
|
8
|
+
PAYPAL = "PAYPAL",
|
|
9
|
+
BRAINTREE = "BRAINTREE",
|
|
10
|
+
STRIPE = "STRIPE",
|
|
11
|
+
INVOICE = "INVOICE",
|
|
12
|
+
PROMOTION = "PROMOTION",
|
|
13
|
+
AWS = "AWS"
|
|
14
|
+
}
|
|
15
|
+
export declare enum ChargeType {
|
|
16
|
+
USAGE_MOBILE = "USAGE_MOBILE",
|
|
17
|
+
CONCURRENCY_MOBILE = "CONCURRENCY_MOBILE",
|
|
18
|
+
CONCURRENCY_DESKTOP = "CONCURRENCY_DESKTOP"
|
|
19
|
+
}
|
|
20
|
+
export declare enum DeactivateReason {
|
|
21
|
+
INITIAL_FAILURE = "INITIAL_FAILURE",
|
|
22
|
+
SCA_FAILURE = "SCA_FAILURE",
|
|
23
|
+
CHARGE_FAILURE = "CHARGE_FAILURE",
|
|
24
|
+
CANCEL = "CANCEL",
|
|
25
|
+
SUSPENDED = "SUSPENDED",
|
|
26
|
+
ANOTHER_PURCHASE = "ANOTHER_PURCHASE"
|
|
27
|
+
}
|
|
28
|
+
export declare type ServicePaymentStatus = {
|
|
29
|
+
accountService: AccountService;
|
|
30
|
+
message: string;
|
|
31
|
+
redirectUrl: string;
|
|
32
|
+
status: PaymentStatus;
|
|
33
|
+
};
|
|
34
|
+
export declare type AccountService = {
|
|
35
|
+
accountId: number;
|
|
36
|
+
activatedById: number;
|
|
37
|
+
activatedByName: string;
|
|
38
|
+
active: boolean;
|
|
39
|
+
autoRenew: boolean;
|
|
40
|
+
braintreeId: string;
|
|
41
|
+
chargeType: ChargeType;
|
|
42
|
+
createTime: number;
|
|
43
|
+
deactivateReason: DeactivateReason;
|
|
44
|
+
deactivatedById: number;
|
|
45
|
+
deactivatedByName: string;
|
|
46
|
+
endTime: number;
|
|
47
|
+
finished: boolean;
|
|
48
|
+
id: number;
|
|
49
|
+
lastPaymentTime: number;
|
|
50
|
+
paymentMethod: PaymentMethod;
|
|
51
|
+
price: number;
|
|
52
|
+
serviceCount: number;
|
|
53
|
+
serviceId: number;
|
|
54
|
+
serviceName: string;
|
|
55
|
+
startTime: number;
|
|
56
|
+
subscriptionManagementURL: string;
|
|
57
|
+
total: number;
|
|
58
|
+
unit: ServiceUnit;
|
|
59
|
+
unitCount: number;
|
|
60
|
+
userEmail: string;
|
|
61
|
+
userId: number;
|
|
62
|
+
vatRate: number;
|
|
63
|
+
};
|
|
64
|
+
export declare type AccountServiceData = Pick<AccountService, 'endTime' | 'serviceId'> & {
|
|
65
|
+
count: number;
|
|
66
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Method } from 'axios';
|
|
2
|
+
export declare type Activity = {
|
|
3
|
+
body: string;
|
|
4
|
+
createTime: number;
|
|
5
|
+
deprecatedResource: boolean;
|
|
6
|
+
httpMethod: Uppercase<Method>;
|
|
7
|
+
id: number;
|
|
8
|
+
parameters: string;
|
|
9
|
+
uri: string;
|
|
10
|
+
userAgent: string;
|
|
11
|
+
userEmail: string;
|
|
12
|
+
userId: number;
|
|
13
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { DevicesQueryParams, Platform, SoftwareVersion } from './Device';
|
|
2
|
+
import { OsType } from './Enum';
|
|
3
|
+
import { CollectionQueryParams } from './HTTP';
|
|
4
|
+
export declare enum InitStep {
|
|
5
|
+
SKIP = "SKIP",
|
|
6
|
+
REBOOT = "REBOOT",
|
|
7
|
+
REBOOT_WITH_UNLOCK = "REBOOT_WITH_UNLOCK",
|
|
8
|
+
UNLOCK_ONLY = "UNLOCK_ONLY"
|
|
9
|
+
}
|
|
10
|
+
export declare enum DeviceState {
|
|
11
|
+
OFFLINE_CLEANING = "OFFLINE_CLEANING",
|
|
12
|
+
OFFLINE_DIRTY = "OFFLINE_DIRTY",
|
|
13
|
+
OFFLINE_FREE = "OFFLINE_FREE",
|
|
14
|
+
OFFLINE_TESTING = "OFFLINE_TESTING",
|
|
15
|
+
ONLINE_CLEANING = "ONLINE_CLEANING",
|
|
16
|
+
ONLINE_DIRTY = "ONLINE_DIRTY",
|
|
17
|
+
ONLINE_FREE = "ONLINE_FREE",
|
|
18
|
+
ONLINE_TESTING = "ONLINE_TESTING"
|
|
19
|
+
}
|
|
20
|
+
export declare type AdminDevice = {
|
|
21
|
+
accountId: number;
|
|
22
|
+
cluster: unknown;
|
|
23
|
+
deviceModelId: number;
|
|
24
|
+
deviceModelName: string;
|
|
25
|
+
enabled: boolean;
|
|
26
|
+
fingerprint: string;
|
|
27
|
+
id: number;
|
|
28
|
+
initStep: InitStep;
|
|
29
|
+
ipAddress: string;
|
|
30
|
+
lastOnlineTime: number;
|
|
31
|
+
location: string;
|
|
32
|
+
locked: boolean;
|
|
33
|
+
mainUserEmail: string;
|
|
34
|
+
manufacturer: string;
|
|
35
|
+
name: string;
|
|
36
|
+
osType: OsType;
|
|
37
|
+
platform: Platform;
|
|
38
|
+
serialId: string;
|
|
39
|
+
softwareVersion: SoftwareVersion;
|
|
40
|
+
state: DeviceState;
|
|
41
|
+
stateChangeTime: number;
|
|
42
|
+
stateTime: number;
|
|
43
|
+
testTimeLimit: number;
|
|
44
|
+
unlockGesture: string;
|
|
45
|
+
};
|
|
46
|
+
export declare type AdminDevicesQueryParams = Pick<DevicesQueryParams, 'withDisabled'> & CollectionQueryParams;
|
|
47
|
+
export declare type AdminDeviceData = Pick<AdminDevice, 'accountId' | 'enabled' | 'initStep' | 'ipAddress' | 'name' | 'serialId' | 'testTimeLimit' | 'unlockGesture'> & {
|
|
48
|
+
apiLevel: number;
|
|
49
|
+
releaseVersion: string;
|
|
50
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DeviceSessionState, DeviceSessionStepType } from './DeviceSession';
|
|
2
|
+
export declare type AdminDeviceSession = {
|
|
3
|
+
billable: boolean;
|
|
4
|
+
createTime: number;
|
|
5
|
+
currentStepType: DeviceSessionStepType;
|
|
6
|
+
deviceTime: number;
|
|
7
|
+
endTime: number;
|
|
8
|
+
errorMessage: string;
|
|
9
|
+
id: number;
|
|
10
|
+
priority: number;
|
|
11
|
+
projectId: number;
|
|
12
|
+
projectName: string;
|
|
13
|
+
retriedFailReason: string;
|
|
14
|
+
startTime: number;
|
|
15
|
+
startedByDisplayName: string;
|
|
16
|
+
state: DeviceSessionState;
|
|
17
|
+
testRunId: number;
|
|
18
|
+
testRunName: string;
|
|
19
|
+
};
|
|
20
|
+
export declare type AdminInteractiveDeviceSession = {
|
|
21
|
+
billable: boolean;
|
|
22
|
+
createTime: number;
|
|
23
|
+
deviceId: number;
|
|
24
|
+
deviceModelId: number;
|
|
25
|
+
deviceModelName: string;
|
|
26
|
+
deviceName: string;
|
|
27
|
+
deviceTime: number;
|
|
28
|
+
duration: number;
|
|
29
|
+
endTime: number;
|
|
30
|
+
errorMessage: string;
|
|
31
|
+
id: number;
|
|
32
|
+
startTime: number;
|
|
33
|
+
state: DeviceSessionState;
|
|
34
|
+
userEmail: string;
|
|
35
|
+
userId: number;
|
|
36
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CollectionQueryParams } from './HTTP';
|
|
2
|
+
export declare type AdminDeviceSessionStatistics = {
|
|
3
|
+
abortedDeviceCount: number;
|
|
4
|
+
avgDeviceSessionDeviceTime: number;
|
|
5
|
+
avgDeviceSessionDuration: number;
|
|
6
|
+
avgDeviceSessionSuccessRatio: number;
|
|
7
|
+
errorsDeviceCount: number;
|
|
8
|
+
excludedDeviceCount: number;
|
|
9
|
+
finishedDeviceCount: number;
|
|
10
|
+
id: number;
|
|
11
|
+
maxDeviceSessionDuration: number;
|
|
12
|
+
minDeviceSessionDuration: number;
|
|
13
|
+
runningDeviceCount: number;
|
|
14
|
+
succeededDeviceCount: number;
|
|
15
|
+
timeoutedDeviceCount: number;
|
|
16
|
+
totalDeviceCount: number;
|
|
17
|
+
waitingDeviceCount: number;
|
|
18
|
+
warningDeviceCount: number;
|
|
19
|
+
};
|
|
20
|
+
export interface AdminStatisticsParams extends CollectionQueryParams {
|
|
21
|
+
days: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare type AdminDeviceType = {
|
|
2
|
+
frameExtraWidth: number;
|
|
3
|
+
id: number;
|
|
4
|
+
imageHeight: number;
|
|
5
|
+
imageLeft: number;
|
|
6
|
+
imagePrefix: string;
|
|
7
|
+
imageTop: number;
|
|
8
|
+
imageWidth: number;
|
|
9
|
+
};
|
|
10
|
+
export declare type DeviceTypeData = Omit<AdminDeviceType, 'id'> & {
|
|
11
|
+
deviceTypeId: number;
|
|
12
|
+
};
|