@opentap/runner-client 4.9.0-beta.2.40698646911 → 4.9.0-beta.3.41598982309

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.
@@ -52,7 +52,7 @@ export declare class RunnerClient extends BaseClient {
52
52
  * @param {ConfigureSessionRequest} configureSessionRequest
53
53
  * @returns {{Promise<void>}}
54
54
  */
55
- configureSession(configureSessionRequest: ConfigureSessionRequest): Promise<void>;
55
+ configureSession(configureSessionRequest: ConfigureSessionRequest, timeout?: number): Promise<void>;
56
56
  /**
57
57
  * Create a OpenTAP package configuration image from a list image inputs consisting of user specified packages and repositories.
58
58
  * @param {Image[]} images List of images
@@ -108,7 +108,7 @@ export declare class RunnerClient extends BaseClient {
108
108
  * @param {NewSessionRequest} sessionRequest
109
109
  * @returns {{Promise<Session>}}
110
110
  */
111
- newSession(sessionRequest?: NewSessionRequest): Promise<Session>;
111
+ newSession(sessionRequest?: NewSessionRequest, timeout?: number): Promise<Session>;
112
112
  /**
113
113
  * Resumes a stopped session as it is. A session that is not stopped is an error; change a session with {@link configureSession}.
114
114
  * @param {ResumeSessionRequest} resumeSessionRequest
@@ -119,7 +119,7 @@ export declare class RunnerClient extends BaseClient {
119
119
  * Start a session
120
120
  * @returns {{Promise<Session>}}
121
121
  */
122
- startSession(): Promise<Session>;
122
+ startSession(timeout?: number): Promise<Session>;
123
123
  /**
124
124
  * Get the session manager image.
125
125
  * @returns {{Promise<Image>}}
@@ -130,7 +130,7 @@ export declare class RunnerClient extends BaseClient {
130
130
  * @param imageId
131
131
  * @returns {{Promise<Session>}}
132
132
  */
133
- startImageSession(image: Image): Promise<Session>;
133
+ startImageSession(image: Image, timeout?: number): Promise<Session>;
134
134
  /**
135
135
  * Update the `Runner` plugin to the given version
136
136
  * @param runnerUpdateRequest
@@ -205,13 +205,13 @@ var RunnerClient = /** @class */ (function (_super) {
205
205
  * @param {ConfigureSessionRequest} configureSessionRequest
206
206
  * @returns {{Promise<void>}}
207
207
  */
208
- RunnerClient.prototype.configureSession = function (configureSessionRequest) {
208
+ RunnerClient.prototype.configureSession = function (configureSessionRequest, timeout) {
209
209
  var sessionId = configureSessionRequest.sessionId, sessionConfiguration = configureSessionRequest.sessionConfiguration;
210
210
  return (sessionId === null || sessionId === void 0 ? void 0 : sessionId.length) > 0
211
211
  ? this.request('ConfigureSession', {
212
212
  SessionId: sessionId,
213
213
  SessionConfiguration: sessionConfiguration ? new DTOs_1.SessionConfiguration(sessionConfiguration) : undefined,
214
- })
214
+ }, { timeout: timeout })
215
215
  .then(this.success())
216
216
  .catch(this.error())
217
217
  : Promise.reject('sessionId is not defined');
@@ -317,8 +317,8 @@ var RunnerClient = /** @class */ (function (_super) {
317
317
  * @param {NewSessionRequest} sessionRequest
318
318
  * @returns {{Promise<Session>}}
319
319
  */
320
- RunnerClient.prototype.newSession = function (sessionRequest) {
321
- return this.request('NewSession', sessionRequest)
320
+ RunnerClient.prototype.newSession = function (sessionRequest, timeout) {
321
+ return this.request('NewSession', sessionRequest, { timeout: timeout })
322
322
  .then(function (response) { return DTOs_1.Session.fromJS(response.Session); })
323
323
  .then(this.success())
324
324
  .catch(this.error());
@@ -341,8 +341,8 @@ var RunnerClient = /** @class */ (function (_super) {
341
341
  * Start a session
342
342
  * @returns {{Promise<Session>}}
343
343
  */
344
- RunnerClient.prototype.startSession = function () {
345
- return this.request('StartSession')
344
+ RunnerClient.prototype.startSession = function (timeout) {
345
+ return this.request('StartSession', undefined, { timeout: timeout })
346
346
  .then(function (sessionJs) { return DTOs_1.Session.fromJS(sessionJs); })
347
347
  .then(this.success())
348
348
  .catch(this.error());
@@ -362,9 +362,9 @@ var RunnerClient = /** @class */ (function (_super) {
362
362
  * @param imageId
363
363
  * @returns {{Promise<Session>}}
364
364
  */
365
- RunnerClient.prototype.startImageSession = function (image) {
365
+ RunnerClient.prototype.startImageSession = function (image, timeout) {
366
366
  return image
367
- ? this.request('StartImageSession', image)
367
+ ? this.request('StartImageSession', image, { timeout: timeout })
368
368
  .then(function (sessionJs) { return DTOs_1.Session.fromJS(sessionJs); })
369
369
  .then(this.success())
370
370
  .catch(this.error())
@@ -52,7 +52,7 @@ export declare class RunnerClient extends BaseClient {
52
52
  * @param {ConfigureSessionRequest} configureSessionRequest
53
53
  * @returns {{Promise<void>}}
54
54
  */
55
- configureSession(configureSessionRequest: ConfigureSessionRequest): Promise<void>;
55
+ configureSession(configureSessionRequest: ConfigureSessionRequest, timeout?: number): Promise<void>;
56
56
  /**
57
57
  * Create a OpenTAP package configuration image from a list image inputs consisting of user specified packages and repositories.
58
58
  * @param {Image[]} images List of images
@@ -108,7 +108,7 @@ export declare class RunnerClient extends BaseClient {
108
108
  * @param {NewSessionRequest} sessionRequest
109
109
  * @returns {{Promise<Session>}}
110
110
  */
111
- newSession(sessionRequest?: NewSessionRequest): Promise<Session>;
111
+ newSession(sessionRequest?: NewSessionRequest, timeout?: number): Promise<Session>;
112
112
  /**
113
113
  * Resumes a stopped session as it is. A session that is not stopped is an error; change a session with {@link configureSession}.
114
114
  * @param {ResumeSessionRequest} resumeSessionRequest
@@ -119,7 +119,7 @@ export declare class RunnerClient extends BaseClient {
119
119
  * Start a session
120
120
  * @returns {{Promise<Session>}}
121
121
  */
122
- startSession(): Promise<Session>;
122
+ startSession(timeout?: number): Promise<Session>;
123
123
  /**
124
124
  * Get the session manager image.
125
125
  * @returns {{Promise<Image>}}
@@ -130,7 +130,7 @@ export declare class RunnerClient extends BaseClient {
130
130
  * @param imageId
131
131
  * @returns {{Promise<Session>}}
132
132
  */
133
- startImageSession(image: Image): Promise<Session>;
133
+ startImageSession(image: Image, timeout?: number): Promise<Session>;
134
134
  /**
135
135
  * Update the `Runner` plugin to the given version
136
136
  * @param runnerUpdateRequest
@@ -145,13 +145,13 @@ export class RunnerClient extends BaseClient {
145
145
  * @param {ConfigureSessionRequest} configureSessionRequest
146
146
  * @returns {{Promise<void>}}
147
147
  */
148
- configureSession(configureSessionRequest) {
148
+ configureSession(configureSessionRequest, timeout) {
149
149
  const { sessionId, sessionConfiguration } = configureSessionRequest;
150
150
  return (sessionId === null || sessionId === void 0 ? void 0 : sessionId.length) > 0
151
151
  ? this.request('ConfigureSession', {
152
152
  SessionId: sessionId,
153
153
  SessionConfiguration: sessionConfiguration ? new SessionConfiguration(sessionConfiguration) : undefined,
154
- })
154
+ }, { timeout })
155
155
  .then(this.success())
156
156
  .catch(this.error())
157
157
  : Promise.reject('sessionId is not defined');
@@ -178,7 +178,7 @@ export class RunnerClient extends BaseClient {
178
178
  */
179
179
  resolveImageDryRun(images, timeout) {
180
180
  return (images === null || images === void 0 ? void 0 : images.length) > 0
181
- ? this.request('ResolveImageDryRun', images, { timeout: timeout })
181
+ ? this.request('ResolveImageDryRun', images, { timeout })
182
182
  .then(imageJs => Image.fromJS(imageJs))
183
183
  .then(this.success())
184
184
  .catch(this.error())
@@ -256,8 +256,8 @@ export class RunnerClient extends BaseClient {
256
256
  * @param {NewSessionRequest} sessionRequest
257
257
  * @returns {{Promise<Session>}}
258
258
  */
259
- newSession(sessionRequest) {
260
- return this.request('NewSession', sessionRequest)
259
+ newSession(sessionRequest, timeout) {
260
+ return this.request('NewSession', sessionRequest, { timeout })
261
261
  .then(response => Session.fromJS(response.Session))
262
262
  .then(this.success())
263
263
  .catch(this.error());
@@ -280,8 +280,8 @@ export class RunnerClient extends BaseClient {
280
280
  * Start a session
281
281
  * @returns {{Promise<Session>}}
282
282
  */
283
- startSession() {
284
- return this.request('StartSession')
283
+ startSession(timeout) {
284
+ return this.request('StartSession', undefined, { timeout })
285
285
  .then(sessionJs => Session.fromJS(sessionJs))
286
286
  .then(this.success())
287
287
  .catch(this.error());
@@ -301,9 +301,9 @@ export class RunnerClient extends BaseClient {
301
301
  * @param imageId
302
302
  * @returns {{Promise<Session>}}
303
303
  */
304
- startImageSession(image) {
304
+ startImageSession(image, timeout) {
305
305
  return image
306
- ? this.request('StartImageSession', image)
306
+ ? this.request('StartImageSession', image, { timeout })
307
307
  .then(sessionJs => Session.fromJS(sessionJs))
308
308
  .then(this.success())
309
309
  .catch(this.error())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentap/runner-client",
3
- "version": "4.9.0-beta.2.40698646911",
3
+ "version": "4.9.0-beta.3.41598982309",
4
4
  "description": "This is the web client for the OpenTAP Runner.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/mjs/index.js",