@opentap/runner-client 2.15.0 → 2.16.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.
@@ -1,6 +1,7 @@
1
1
  import { Image, RepositoryPackageReference, Session } from './DTOs';
2
2
  import { BaseClient } from './BaseClient';
3
3
  import { ConnectionOptions } from 'nats.ws';
4
+ import { RunnerUpdateRequest } from './requestDTOs';
4
5
  export declare class RunnerClient extends BaseClient {
5
6
  default: {
6
7
  startSession: (testPlanRepositoryReference?: RepositoryPackageReference, timeout?: number) => Promise<Session>;
@@ -62,4 +63,10 @@ export declare class RunnerClient extends BaseClient {
62
63
  * @returns {{Promise<Session>}}
63
64
  */
64
65
  startImageSession(image: Image): Promise<Session>;
66
+ /**
67
+ * Update the `Runner` plugin to the given version
68
+ * @param runnerUpdateRequest
69
+ * @returns {{Promise<void>}}
70
+ */
71
+ updateRunner(runnerUpdateRequest: RunnerUpdateRequest): Promise<void>;
65
72
  }
@@ -168,6 +168,14 @@ var RunnerClient = /** @class */ (function (_super) {
168
168
  .catch(this.error())
169
169
  : Promise.reject('image is not defined');
170
170
  };
171
+ /**
172
+ * Update the `Runner` plugin to the given version
173
+ * @param runnerUpdateRequest
174
+ * @returns {{Promise<void>}}
175
+ */
176
+ RunnerClient.prototype.updateRunner = function (runnerUpdateRequest) {
177
+ return this.request('UpdateRunner', runnerUpdateRequest).then(this.success()).catch(this.error());
178
+ };
171
179
  return RunnerClient;
172
180
  }(BaseClient));
173
181
  export { RunnerClient };
@@ -69,3 +69,6 @@ export interface AddComponentSettingsListItemRequest extends GetComponentSetting
69
69
  export interface DownloadTapSettingsRequest {
70
70
  groupName: string | undefined;
71
71
  }
72
+ export interface RunnerUpdateRequest {
73
+ updateTo: string;
74
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentap/runner-client",
3
- "version": "2.15.0",
3
+ "version": "2.16.0",
4
4
  "description": "This is the web client for the OpenTAP Runner.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",