@opentap/runner-client 3.2.0-alpha.1.1.20063236382 → 3.2.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.
@@ -442,6 +442,7 @@ var SessionClient = /** @class */ (function (_super) {
442
442
  */
443
443
  SessionClient.prototype.saveTestPlanToRepository = function (packageReference) {
444
444
  return this.request('SaveTestPlanToRepository', packageReference)
445
+ .then(DTOs_1.SaveTestPlanToRepositoryResponse.fromJS)
445
446
  .then(this.success())
446
447
  .catch(this.error());
447
448
  };
@@ -524,7 +525,10 @@ var SessionClient = /** @class */ (function (_super) {
524
525
  * @return {Promise<GetTestPlanReferenceResponse>}
525
526
  */
526
527
  SessionClient.prototype.getTestPlanReference = function () {
527
- return this.request('GetTestPlanReference').then(this.success()).catch(this.error());
528
+ return this.request('GetTestPlanReference')
529
+ .then(DTOs_1.GetTestPlanReferenceResponse.fromJS)
530
+ .then(this.success())
531
+ .catch(this.error());
528
532
  };
529
533
  /**
530
534
  * Retrieve all validation errors present in the test plan
@@ -1,4 +1,4 @@
1
- import { BreakEvent, BreakPoints, CommonContext, CommonSettings, DataGridControl, HeartbeatEvent, Image, Interaction, ListItemType, LogList, MetricsConfiguration, OnTestPlanRun, OnTestStepRun, Result, RunStatus, SessionEventName, SessionStateChangedEvent, SessionTimeoutEvent, Setting, SettingsChangedEvent, StartingEvent, StartedEvent, StoppedEvent, StoppingEvent, TestPlan, TestPlanChangedEvent, TestPlanSettingsChangedEvent, TestStepChangedEvent, TestStepType, TestStepValidationError, TypeCacheInvalidatedEvent, UserInputRequestCompletedEvent, UserInputRequestedEvent, WatchDog, EditStatus, } from './DTOs';
1
+ import { BreakEvent, BreakPoints, CommonContext, CommonSettings, DataGridControl, GetTestPlanReferenceResponse, HeartbeatEvent, Image, Interaction, ListItemType, LogList, MetricsConfiguration, OnTestPlanRun, OnTestStepRun, Result, RunStatus, SaveTestPlanToRepositoryResponse, SessionEventName, SessionStateChangedEvent, SessionTimeoutEvent, Setting, SettingsChangedEvent, StartingEvent, StartedEvent, StoppedEvent, StoppingEvent, TestPlan, TestPlanChangedEvent, TestPlanSettingsChangedEvent, TestStepChangedEvent, TestStepType, TestStepValidationError, TypeCacheInvalidatedEvent, UserInputRequestCompletedEvent, UserInputRequestedEvent, WatchDog, EditStatus, } from './DTOs';
2
2
  import { BaseClient } from './BaseClient';
3
3
  import { jsonCodec } from './encoders';
4
4
  import { NIL } from 'uuid';
@@ -404,6 +404,7 @@ export class SessionClient extends BaseClient {
404
404
  */
405
405
  saveTestPlanToRepository(packageReference) {
406
406
  return this.request('SaveTestPlanToRepository', packageReference)
407
+ .then(SaveTestPlanToRepositoryResponse.fromJS)
407
408
  .then(this.success())
408
409
  .catch(this.error());
409
410
  }
@@ -486,7 +487,10 @@ export class SessionClient extends BaseClient {
486
487
  * @return {Promise<GetTestPlanReferenceResponse>}
487
488
  */
488
489
  getTestPlanReference() {
489
- return this.request('GetTestPlanReference').then(this.success()).catch(this.error());
490
+ return this.request('GetTestPlanReference')
491
+ .then(GetTestPlanReferenceResponse.fromJS)
492
+ .then(this.success())
493
+ .catch(this.error());
490
494
  }
491
495
  /**
492
496
  * Retrieve all validation errors present in the test plan
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentap/runner-client",
3
- "version": "3.2.0-alpha.1.1.20063236382",
3
+ "version": "3.2.0",
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",
@@ -12,6 +12,8 @@
12
12
  },
13
13
  "scripts": {
14
14
  "build": "rimraf ./dist && tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json && bash ./post-build.sh",
15
+ "watch-cjs-build": "rimraf ./dist && bash ./post-build.sh && tsc -p tsconfig.cjs.json --watch",
16
+ "watch-esm-build": "rimraf ./dist && bash ./post-build.sh && tsc -p tsconfig.esm.json --watch",
15
17
  "lint": "eslint --ignore-path .eslintignore --ext .js,.ts .",
16
18
  "format": "prettier --write \"src/**/*.+(js|ts|json)\"",
17
19
  "prepare": "npm run build && husky install",