Skip to content

Commit 0d1c816

Browse files
Merge pull request #540 from marisuch/master
14082: Test run models update
2 parents fb0544c + 981f018 commit 0d1c816

8 files changed

Lines changed: 24 additions & 22 deletions

dist/api/models/TestRun.d.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { OsType } from './Enum';
44
import { CollectionBasicQueryParams, QueryParams } from './HTTP';
55
import { Tag } from './Tag';
66
import { UserFile } from './UserFile';
7+
import { DeviceGroup } from './DeviceGroup';
78
export declare enum LimitationType {
89
PACKAGE = "PACKAGE",
910
CLASS = "CLASS"
@@ -71,10 +72,10 @@ export type TestRunConfigFile = {
7172
id: number;
7273
};
7374
export type TestRunParameter = {
74-
name: string;
75+
name?: string;
7576
key: string;
7677
value: string;
77-
label: string;
78+
label?: string;
7879
};
7980
export type TRCDefaultSettings = {
8081
deviceLanguageCode: string;
@@ -90,22 +91,22 @@ export type TRCDefaultSettings = {
9091
timeout: string;
9192
projectName: string;
9293
testRunName: string;
93-
testRunParameters: TestRunParameter[];
94+
testRunParameters?: TestRunParameter[];
9495
biometricInstrumentation: boolean;
9596
};
9697
export type TestRunConfig = TRCDefaultSettings & {
9798
appCrawlerRun: boolean;
9899
appiumBrokerAddress: string;
99100
applicationPassword: string;
100101
applicationUsername: string;
101-
availableDeviceGroups: any;
102+
availableDeviceGroups: DeviceGroup[];
102103
availableDevices: Array<Device>;
103104
availableFrameworks: any;
104105
availableOsTypes: Array<OsType>;
105106
clientSideTestConfig: any;
106107
computedDevices: Array<number>;
107108
creditsPrice: number;
108-
deviceGroupId: number;
109+
deviceGroupId?: number;
109110
deviceIds: any;
110111
deviceNamePattern: string;
111112
files: Array<TestRunConfigFile> | null;
@@ -142,11 +143,11 @@ export interface RunQueryParam extends QueryParams {
142143
export interface TestRunsData {
143144
configuration: TestRunConfig;
144145
}
145-
export interface TestRunsIncludes {
146+
export type TestRunsIncludes = {
146147
includeDeviceGroups: boolean;
147148
includeDevices: boolean;
148149
includeFrameworks: boolean;
149-
}
150+
};
150151
export type RunsConfigParams = TestRunsIncludes & QueryParams;
151152
export type TestRunsConfigData = TestRunsIncludes & TestRunsData;
152153
export interface TestRunsQueryParams extends CollectionBasicQueryParams {

dist/bitbar-cloud-api-client.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bitbar-cloud-api-client.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bitbar-cloud-api-client.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bitbar-cloud-api-client.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bitbar/cloud-api-client",
3-
"version": "1.4.18",
3+
"version": "1.4.19",
44
"description": "Bitbar Cloud API Client for JavaScript",
55
"main": "dist/bitbar-cloud-api-client.min.js",
66
"types": "dist/index.d.ts",

src/api/models/TestRun.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {OsType} from './Enum';
44
import {CollectionBasicQueryParams, QueryParams} from './HTTP';
55
import {Tag} from './Tag';
66
import {UserFile} from './UserFile';
7+
import {DeviceGroup} from './DeviceGroup';
78

89

910
export enum LimitationType {
@@ -80,10 +81,10 @@ export type TestRunConfigFile = {
8081
};
8182

8283
export type TestRunParameter = {
83-
name: string;
84+
name?: string;
8485
key: string;
8586
value: string;
86-
label: string;
87+
label?: string;
8788
}
8889

8990
export type TRCDefaultSettings = {
@@ -100,7 +101,7 @@ export type TRCDefaultSettings = {
100101
timeout: string;
101102
projectName: string;
102103
testRunName: string;
103-
testRunParameters: TestRunParameter[];
104+
testRunParameters?: TestRunParameter[];
104105
biometricInstrumentation: boolean;
105106
}
106107

@@ -109,14 +110,14 @@ export type TestRunConfig = TRCDefaultSettings & {
109110
appiumBrokerAddress: string;
110111
applicationPassword: string;
111112
applicationUsername: string;
112-
availableDeviceGroups: any;
113+
availableDeviceGroups: DeviceGroup[];
113114
availableDevices: Array<Device>;
114115
availableFrameworks: any;
115116
availableOsTypes: Array<OsType>;
116117
clientSideTestConfig: any;
117118
computedDevices: Array<number>;
118119
creditsPrice: number;
119-
deviceGroupId: number;
120+
deviceGroupId?: number;
120121
deviceIds: any;
121122
deviceNamePattern: string;
122123
files: Array<TestRunConfigFile> | null;
@@ -158,7 +159,7 @@ export interface TestRunsData {
158159
configuration: TestRunConfig;
159160
}
160161

161-
export interface TestRunsIncludes {
162+
export type TestRunsIncludes = {
162163
includeDeviceGroups: boolean;
163164
includeDevices: boolean;
164165
includeFrameworks: boolean;

0 commit comments

Comments
 (0)