@opentap/runner-client 2.11.0 → 2.12.0-alpha.1
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/lib/DTOs.d.ts +10 -2
- package/lib/DTOs.js +8 -0
- package/lib/RunnerClient.d.ts +5 -0
- package/lib/RunnerClient.js +10 -0
- package/package.json +1 -1
package/lib/DTOs.d.ts
CHANGED
|
@@ -63,7 +63,11 @@ export interface IImageResolveErrorResponse extends IErrorResponse {
|
|
|
63
63
|
}
|
|
64
64
|
export declare class Session implements ISession {
|
|
65
65
|
subject?: string | undefined;
|
|
66
|
-
id?: string;
|
|
66
|
+
id?: string | undefined;
|
|
67
|
+
imageId?: string | undefined;
|
|
68
|
+
executionState?: ExecutionState;
|
|
69
|
+
testPlanRunId?: string | undefined;
|
|
70
|
+
startedBy?: string | undefined;
|
|
67
71
|
constructor(data?: ISession);
|
|
68
72
|
init(_data?: any): void;
|
|
69
73
|
static fromJS(data: any): Session;
|
|
@@ -71,7 +75,11 @@ export declare class Session implements ISession {
|
|
|
71
75
|
}
|
|
72
76
|
export interface ISession {
|
|
73
77
|
subject?: string | undefined;
|
|
74
|
-
id?: string;
|
|
78
|
+
id?: string | undefined;
|
|
79
|
+
imageId?: string | undefined;
|
|
80
|
+
executionState?: ExecutionState;
|
|
81
|
+
testPlanRunId?: string | undefined;
|
|
82
|
+
startedBy?: string | undefined;
|
|
75
83
|
}
|
|
76
84
|
export declare class Links implements ILinks {
|
|
77
85
|
editor?: string | undefined;
|
package/lib/DTOs.js
CHANGED
|
@@ -182,6 +182,10 @@ var Session = /** @class */ (function () {
|
|
|
182
182
|
if (_data) {
|
|
183
183
|
this.subject = _data['Subject'];
|
|
184
184
|
this.id = _data['Id'];
|
|
185
|
+
this.imageId = _data['ImageId'];
|
|
186
|
+
this.executionState = _data['ExecutionState'];
|
|
187
|
+
this.testPlanRunId = _data['TestPlanRunId'];
|
|
188
|
+
this.startedBy = _data['StartedBy'];
|
|
185
189
|
}
|
|
186
190
|
};
|
|
187
191
|
Session.fromJS = function (data) {
|
|
@@ -194,6 +198,10 @@ var Session = /** @class */ (function () {
|
|
|
194
198
|
data = typeof data === 'object' ? data : {};
|
|
195
199
|
data['Subject'] = this.subject;
|
|
196
200
|
data['Id'] = this.id;
|
|
201
|
+
data['ImageId'] = this.imageId;
|
|
202
|
+
data['ExecutionState'] = this.executionState;
|
|
203
|
+
data['TestPlanRunId'] = this.testPlanRunId;
|
|
204
|
+
data['StartedBy'] = this.startedBy;
|
|
197
205
|
return data;
|
|
198
206
|
};
|
|
199
207
|
return Session;
|
package/lib/RunnerClient.d.ts
CHANGED
|
@@ -14,6 +14,11 @@ export declare class RunnerClient extends BaseClient {
|
|
|
14
14
|
* @returns {{Promise<Image[]>}}
|
|
15
15
|
*/
|
|
16
16
|
getImages(): Promise<Image[]>;
|
|
17
|
+
/**
|
|
18
|
+
* Get all sessions
|
|
19
|
+
* @returns {{Promise<Session[]>}}
|
|
20
|
+
*/
|
|
21
|
+
getSessions(): Promise<Session[]>;
|
|
17
22
|
/**
|
|
18
23
|
* Create a OpenTAP package configuration image from a list image inputs consisting of user specified packages and repositories.
|
|
19
24
|
* @param {Image[]} images List of images
|
package/lib/RunnerClient.js
CHANGED
|
@@ -43,6 +43,16 @@ var RunnerClient = /** @class */ (function (_super) {
|
|
|
43
43
|
.then(this.success())
|
|
44
44
|
.catch(this.error());
|
|
45
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* Get all sessions
|
|
48
|
+
* @returns {{Promise<Session[]>}}
|
|
49
|
+
*/
|
|
50
|
+
RunnerClient.prototype.getSessions = function () {
|
|
51
|
+
return this.request('GetSessions')
|
|
52
|
+
.then(function (sessionArrayJs) { return sessionArrayJs.map(function (sessionJs) { return Session.fromJS(sessionJs); }); })
|
|
53
|
+
.then(this.success())
|
|
54
|
+
.catch(this.error());
|
|
55
|
+
};
|
|
46
56
|
/**
|
|
47
57
|
* Create a OpenTAP package configuration image from a list image inputs consisting of user specified packages and repositories.
|
|
48
58
|
* @param {Image[]} images List of images
|