@opentap/runner-client 2.19.0-alpha.1.3 → 2.20.0-alpha.1.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.
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __extends = (this && this.__extends) || (function () {
2
3
  var extendStatics = function (d, b) {
3
4
  extendStatics = Object.setPrototypeOf ||
@@ -13,8 +14,10 @@ var __extends = (this && this.__extends) || (function () {
13
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
15
  };
15
16
  })();
16
- import { Image, RepositoryPackageReference, Session } from './DTOs';
17
- import { BaseClient } from './BaseClient';
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.RunnerClient = void 0;
19
+ var DTOs_1 = require("./DTOs");
20
+ var BaseClient_1 = require("./BaseClient");
18
21
  var RunnerClient = /** @class */ (function (_super) {
19
22
  __extends(RunnerClient, _super);
20
23
  function RunnerClient(baseSubject, options) {
@@ -26,7 +29,7 @@ var RunnerClient = /** @class */ (function (_super) {
26
29
  created with the base image and base settings. */
27
30
  startSession: function (testPlanRepositoryReference, timeout) {
28
31
  return _this.request('StartDefaultSession', testPlanRepositoryReference !== null && testPlanRepositoryReference !== void 0 ? testPlanRepositoryReference : null, { timeout: timeout })
29
- .then(function (sessionJs) { return Session.fromJS(sessionJs); })
32
+ .then(function (sessionJs) { return DTOs_1.Session.fromJS(sessionJs); })
30
33
  .then(_this.success())
31
34
  .catch(_this.error());
32
35
  },
@@ -41,7 +44,7 @@ var RunnerClient = /** @class */ (function (_super) {
41
44
  imageOverride: imageOverride !== null && imageOverride !== void 0 ? imageOverride : null,
42
45
  };
43
46
  return _this.request('StartDefaultSessionOverrideImage', defaultSessionRequest, { timeout: timeout })
44
- .then(function (sessionJs) { return Session.fromJS(sessionJs); })
47
+ .then(function (sessionJs) { return DTOs_1.Session.fromJS(sessionJs); })
45
48
  .then(_this.success())
46
49
  .catch(_this.error());
47
50
  },
@@ -49,7 +52,7 @@ var RunnerClient = /** @class */ (function (_super) {
49
52
  creation process */
50
53
  getImage: function () {
51
54
  return _this.request('GetDefaultImage')
52
- .then(function (imageJs) { return Image.fromJS(imageJs); })
55
+ .then(function (imageJs) { return DTOs_1.Image.fromJS(imageJs); })
53
56
  .then(_this.success())
54
57
  .catch(_this.error());
55
58
  },
@@ -57,7 +60,7 @@ var RunnerClient = /** @class */ (function (_super) {
57
60
  base image */
58
61
  setImage: function (image) {
59
62
  return _this.request('SetDefaultImage', image)
60
- .then(function (imageJs) { return Image.fromJS(imageJs); })
63
+ .then(function (imageJs) { return DTOs_1.Image.fromJS(imageJs); })
61
64
  .then(_this.success())
62
65
  .catch(_this.error());
63
66
  },
@@ -66,7 +69,7 @@ var RunnerClient = /** @class */ (function (_super) {
66
69
  getSettings: function () {
67
70
  return _this.request('GetDefaultSettings')
68
71
  .then(function (repositoryPackageReferenceJs) {
69
- return repositoryPackageReferenceJs ? RepositoryPackageReference.fromJS(repositoryPackageReferenceJs) : undefined;
72
+ return repositoryPackageReferenceJs ? DTOs_1.RepositoryPackageReference.fromJS(repositoryPackageReferenceJs) : undefined;
70
73
  })
71
74
  .then(_this.success())
72
75
  .catch(_this.error());
@@ -87,7 +90,7 @@ var RunnerClient = /** @class */ (function (_super) {
87
90
  RunnerClient.prototype.getImage = function (imageId) {
88
91
  return (imageId === null || imageId === void 0 ? void 0 : imageId.length) > 0
89
92
  ? this.request('GetImage', imageId)
90
- .then(function (imageJs) { return Image.fromJS(imageJs); })
93
+ .then(function (imageJs) { return DTOs_1.Image.fromJS(imageJs); })
91
94
  .then(this.success())
92
95
  .catch(this.error())
93
96
  : Promise.reject('imageId is not defined');
@@ -98,7 +101,7 @@ var RunnerClient = /** @class */ (function (_super) {
98
101
  */
99
102
  RunnerClient.prototype.getImages = function () {
100
103
  return this.request('GetImages')
101
- .then(function (imageArrayJs) { return imageArrayJs.map(function (imageJs) { return Image.fromJS(imageJs); }); })
104
+ .then(function (imageArrayJs) { return imageArrayJs.map(function (imageJs) { return DTOs_1.Image.fromJS(imageJs); }); })
102
105
  .then(this.success())
103
106
  .catch(this.error());
104
107
  };
@@ -108,7 +111,7 @@ var RunnerClient = /** @class */ (function (_super) {
108
111
  */
109
112
  RunnerClient.prototype.getSessions = function () {
110
113
  return this.request('GetSessions')
111
- .then(function (sessionArrayJs) { return sessionArrayJs.map(function (sessionJs) { return Session.fromJS(sessionJs); }); })
114
+ .then(function (sessionArrayJs) { return sessionArrayJs.map(function (sessionJs) { return DTOs_1.Session.fromJS(sessionJs); }); })
112
115
  .then(this.success())
113
116
  .catch(this.error());
114
117
  };
@@ -121,7 +124,7 @@ var RunnerClient = /** @class */ (function (_super) {
121
124
  RunnerClient.prototype.resolveImage = function (images, timeout) {
122
125
  return (images === null || images === void 0 ? void 0 : images.length) > 0
123
126
  ? this.request('ResolveImage', images, { timeout: timeout })
124
- .then(function (imageJs) { return Image.fromJS(imageJs); })
127
+ .then(function (imageJs) { return DTOs_1.Image.fromJS(imageJs); })
125
128
  .then(this.success())
126
129
  .catch(this.error())
127
130
  : Promise.reject('images list is not defined or is empty');
@@ -135,7 +138,7 @@ var RunnerClient = /** @class */ (function (_super) {
135
138
  RunnerClient.prototype.resolveImageDryRun = function (images, timeout) {
136
139
  return (images === null || images === void 0 ? void 0 : images.length) > 0
137
140
  ? this.request('ResolveImageDryRun', images, { timeout: timeout })
138
- .then(function (imageJs) { return Image.fromJS(imageJs); })
141
+ .then(function (imageJs) { return DTOs_1.Image.fromJS(imageJs); })
139
142
  .then(this.success())
140
143
  .catch(this.error())
141
144
  : Promise.reject('images list is not defined or is empty');
@@ -156,7 +159,7 @@ var RunnerClient = /** @class */ (function (_super) {
156
159
  */
157
160
  RunnerClient.prototype.startSession = function () {
158
161
  return this.request('StartSession')
159
- .then(function (sessionJs) { return Session.fromJS(sessionJs); })
162
+ .then(function (sessionJs) { return DTOs_1.Session.fromJS(sessionJs); })
160
163
  .then(this.success())
161
164
  .catch(this.error());
162
165
  };
@@ -166,7 +169,7 @@ var RunnerClient = /** @class */ (function (_super) {
166
169
  */
167
170
  RunnerClient.prototype.getSessionManagerImage = function () {
168
171
  return this.request('GetSessionManagerImage')
169
- .then(function (imageJs) { return Image.fromJS(imageJs); })
172
+ .then(function (imageJs) { return DTOs_1.Image.fromJS(imageJs); })
170
173
  .then(this.success())
171
174
  .catch(this.error());
172
175
  };
@@ -178,7 +181,7 @@ var RunnerClient = /** @class */ (function (_super) {
178
181
  RunnerClient.prototype.startImageSession = function (image) {
179
182
  return image
180
183
  ? this.request('StartImageSession', image)
181
- .then(function (sessionJs) { return Session.fromJS(sessionJs); })
184
+ .then(function (sessionJs) { return DTOs_1.Session.fromJS(sessionJs); })
182
185
  .then(this.success())
183
186
  .catch(this.error())
184
187
  : Promise.reject('image is not defined');
@@ -192,5 +195,5 @@ var RunnerClient = /** @class */ (function (_super) {
192
195
  return this.request('UpdateRunner', runnerUpdateRequest).then(this.success()).catch(this.error());
193
196
  };
194
197
  return RunnerClient;
195
- }(BaseClient));
196
- export { RunnerClient };
198
+ }(BaseClient_1.BaseClient));
199
+ exports.RunnerClient = RunnerClient;
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __extends = (this && this.__extends) || (function () {
2
3
  var extendStatics = function (d, b) {
3
4
  extendStatics = Object.setPrototypeOf ||
@@ -24,52 +25,11 @@ var __assign = (this && this.__assign) || function () {
24
25
  };
25
26
  return __assign.apply(this, arguments);
26
27
  };
27
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
28
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
29
- return new (P || (P = Promise))(function (resolve, reject) {
30
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
31
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
32
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
33
- step((generator = generator.apply(thisArg, _arguments || [])).next());
34
- });
35
- };
36
- var __generator = (this && this.__generator) || function (thisArg, body) {
37
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
38
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
39
- function verb(n) { return function (v) { return step([n, v]); }; }
40
- function step(op) {
41
- if (f) throw new TypeError("Generator is already executing.");
42
- while (_) try {
43
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
44
- if (y = 0, t) op = [op[0] & 2, t.value];
45
- switch (op[0]) {
46
- case 0: case 1: t = op; break;
47
- case 4: _.label++; return { value: op[1], done: false };
48
- case 5: _.label++; y = op[1]; op = [0]; continue;
49
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
50
- default:
51
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
52
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
53
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
54
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
55
- if (t[2]) _.ops.pop();
56
- _.trys.pop(); continue;
57
- }
58
- op = body.call(thisArg, _);
59
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
60
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
61
- }
62
- };
63
- var __asyncValues = (this && this.__asyncValues) || function (o) {
64
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
65
- var m = o[Symbol.asyncIterator], i;
66
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
67
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
68
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
69
- };
70
- import { BreakPoints, CommonContext, CommonSettings, DataGridControl, Image, Interaction, ListItemType, LogList, Result, RunStatus, SessionEvent, Setting, TestPlan, TestRun, TestStepType, TestStepValidationError, WatchDog, } from './DTOs';
71
- import { JSONCodec } from 'nats.ws';
72
- import { BaseClient } from './BaseClient';
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SessionClient = void 0;
30
+ var DTOs_1 = require("./DTOs");
31
+ var nats_ws_1 = require("nats.ws");
32
+ var BaseClient_1 = require("./BaseClient");
73
33
  var SessionClient = /** @class */ (function (_super) {
74
34
  __extends(SessionClient, _super);
75
35
  function SessionClient(baseSubject, options) {
@@ -89,9 +49,9 @@ var SessionClient = /** @class */ (function (_super) {
89
49
  return;
90
50
  }
91
51
  try {
92
- var jsonCodec = JSONCodec();
52
+ var jsonCodec = (0, nats_ws_1.JSONCodec)();
93
53
  var logListJson = jsonCodec.decode(encodedMessage === null || encodedMessage === void 0 ? void 0 : encodedMessage.data);
94
- var logList = LogList.fromJS(logListJson);
54
+ var logList = DTOs_1.LogList.fromJS(logListJson);
95
55
  sessionLogsHandler(logList, error);
96
56
  }
97
57
  catch (error) {
@@ -111,9 +71,9 @@ var SessionClient = /** @class */ (function (_super) {
111
71
  return;
112
72
  }
113
73
  try {
114
- var jsonCodec = JSONCodec();
74
+ var jsonCodec = (0, nats_ws_1.JSONCodec)();
115
75
  var sessionEventJs = jsonCodec.decode(encodedMessage === null || encodedMessage === void 0 ? void 0 : encodedMessage.data);
116
- var sessionEvent = SessionEvent.fromJS(sessionEventJs);
76
+ var sessionEvent = DTOs_1.SessionEvent.fromJS(sessionEventJs);
117
77
  eventHandler(sessionEvent, error);
118
78
  }
119
79
  catch (error) {
@@ -130,99 +90,38 @@ var SessionClient = /** @class */ (function (_super) {
130
90
  * @returns Subscription array: Result and Test Run subscriptions
131
91
  */
132
92
  SessionClient.prototype.connectSessionResults = function (resultHandler, testRunHandler, options) {
133
- var _this = this;
134
- var jsonCodec = JSONCodec();
135
- var resultSubscription = this.subscribe('OnResult', __assign({}, options));
136
- var testRunSubscription = this.subscribe('OnTestRun', __assign({}, options));
137
- (function () { return __awaiter(_this, void 0, void 0, function () {
138
- var resultSubscription_1, resultSubscription_1_1, message, resultJs, result, e_1_1;
139
- var e_1, _a;
140
- return __generator(this, function (_b) {
141
- switch (_b.label) {
142
- case 0:
143
- _b.trys.push([0, 5, 6, 11]);
144
- resultSubscription_1 = __asyncValues(resultSubscription);
145
- _b.label = 1;
146
- case 1: return [4 /*yield*/, resultSubscription_1.next()];
147
- case 2:
148
- if (!(resultSubscription_1_1 = _b.sent(), !resultSubscription_1_1.done)) return [3 /*break*/, 4];
149
- message = resultSubscription_1_1.value;
150
- try {
151
- resultJs = jsonCodec.decode(message === null || message === void 0 ? void 0 : message.data);
152
- result = Result.fromJS(resultJs);
153
- resultHandler(result, null);
154
- }
155
- catch (error) {
156
- resultHandler(undefined, error);
157
- }
158
- _b.label = 3;
159
- case 3: return [3 /*break*/, 1];
160
- case 4: return [3 /*break*/, 11];
161
- case 5:
162
- e_1_1 = _b.sent();
163
- e_1 = { error: e_1_1 };
164
- return [3 /*break*/, 11];
165
- case 6:
166
- _b.trys.push([6, , 9, 10]);
167
- if (!(resultSubscription_1_1 && !resultSubscription_1_1.done && (_a = resultSubscription_1.return))) return [3 /*break*/, 8];
168
- return [4 /*yield*/, _a.call(resultSubscription_1)];
169
- case 7:
170
- _b.sent();
171
- _b.label = 8;
172
- case 8: return [3 /*break*/, 10];
173
- case 9:
174
- if (e_1) throw e_1.error;
175
- return [7 /*endfinally*/];
176
- case 10: return [7 /*endfinally*/];
177
- case 11: return [2 /*return*/];
178
- }
179
- });
180
- }); })();
181
- (function () { return __awaiter(_this, void 0, void 0, function () {
182
- var testRunSubscription_1, testRunSubscription_1_1, message, testRunJs, testRun, e_2_1;
183
- var e_2, _a;
184
- return __generator(this, function (_b) {
185
- switch (_b.label) {
186
- case 0:
187
- _b.trys.push([0, 5, 6, 11]);
188
- testRunSubscription_1 = __asyncValues(testRunSubscription);
189
- _b.label = 1;
190
- case 1: return [4 /*yield*/, testRunSubscription_1.next()];
191
- case 2:
192
- if (!(testRunSubscription_1_1 = _b.sent(), !testRunSubscription_1_1.done)) return [3 /*break*/, 4];
193
- message = testRunSubscription_1_1.value;
194
- try {
195
- testRunJs = jsonCodec.decode(message === null || message === void 0 ? void 0 : message.data);
196
- testRun = TestRun.fromJS(testRunJs);
197
- testRunHandler(testRun, null);
198
- }
199
- catch (error) {
200
- testRunHandler(undefined, error);
201
- }
202
- _b.label = 3;
203
- case 3: return [3 /*break*/, 1];
204
- case 4: return [3 /*break*/, 11];
205
- case 5:
206
- e_2_1 = _b.sent();
207
- e_2 = { error: e_2_1 };
208
- return [3 /*break*/, 11];
209
- case 6:
210
- _b.trys.push([6, , 9, 10]);
211
- if (!(testRunSubscription_1_1 && !testRunSubscription_1_1.done && (_a = testRunSubscription_1.return))) return [3 /*break*/, 8];
212
- return [4 /*yield*/, _a.call(testRunSubscription_1)];
213
- case 7:
214
- _b.sent();
215
- _b.label = 8;
216
- case 8: return [3 /*break*/, 10];
217
- case 9:
218
- if (e_2) throw e_2.error;
219
- return [7 /*endfinally*/];
220
- case 10: return [7 /*endfinally*/];
221
- case 11: return [2 /*return*/];
222
- }
223
- });
224
- }); })();
225
- return [resultSubscription, testRunSubscription];
93
+ return [
94
+ this.subscribe('OnResult', __assign(__assign({}, options), { callback: function (error, encodedMessage) {
95
+ if (error) {
96
+ resultHandler(undefined, error);
97
+ return;
98
+ }
99
+ try {
100
+ var jsonCodec = (0, nats_ws_1.JSONCodec)();
101
+ var resultJs = jsonCodec.decode(encodedMessage === null || encodedMessage === void 0 ? void 0 : encodedMessage.data);
102
+ var result = DTOs_1.Result.fromJS(resultJs);
103
+ resultHandler(result, error);
104
+ }
105
+ catch (error) {
106
+ resultHandler(undefined, error);
107
+ }
108
+ } })),
109
+ this.subscribe('OnTestRun', __assign(__assign({}, options), { callback: function (error, encodedMessage) {
110
+ if (error) {
111
+ testRunHandler(undefined, error);
112
+ return;
113
+ }
114
+ try {
115
+ var jsonCodec = (0, nats_ws_1.JSONCodec)();
116
+ var testRunJs = jsonCodec.decode(encodedMessage === null || encodedMessage === void 0 ? void 0 : encodedMessage.data);
117
+ var testRun = DTOs_1.TestRun.fromJS(testRunJs);
118
+ testRunHandler(testRun, error);
119
+ }
120
+ catch (error) {
121
+ testRunHandler(undefined, error);
122
+ }
123
+ } })),
124
+ ];
226
125
  };
227
126
  /**
228
127
  * Unsubscibe from session events
@@ -244,7 +143,7 @@ var SessionClient = /** @class */ (function (_super) {
244
143
  SessionClient.prototype.getSessionLogs = function (id, levels, excludedSources, filterText, offset, limit) {
245
144
  var getSessionLogsRequest = { id: id, levels: levels, excludedSources: excludedSources, filterText: filterText, offset: offset, limit: limit };
246
145
  return this.request('GetSessionLogs', getSessionLogsRequest)
247
- .then(function (logListJs) { return LogList.fromJS(logListJs); })
146
+ .then(function (logListJs) { return DTOs_1.LogList.fromJS(logListJs); })
248
147
  .then(this.success())
249
148
  .catch(this.error());
250
149
  };
@@ -291,7 +190,7 @@ var SessionClient = /** @class */ (function (_super) {
291
190
  */
292
191
  SessionClient.prototype.getStatus = function (timeout) {
293
192
  return this.request('GetStatus', timeout)
294
- .then(function (runStatusJs) { return RunStatus.fromJS(runStatusJs); })
193
+ .then(function (runStatusJs) { return DTOs_1.RunStatus.fromJS(runStatusJs); })
295
194
  .then(this.success())
296
195
  .catch(this.error());
297
196
  };
@@ -348,7 +247,7 @@ var SessionClient = /** @class */ (function (_super) {
348
247
  */
349
248
  SessionClient.prototype.resourcesOpen = function () {
350
249
  return this.request('ResourcesOpen')
351
- .then(function (testPlanJs) { return TestPlan.fromJS(testPlanJs); })
250
+ .then(function (testPlanJs) { return DTOs_1.TestPlan.fromJS(testPlanJs); })
352
251
  .then(this.success())
353
252
  .catch(this.error());
354
253
  };
@@ -358,7 +257,7 @@ var SessionClient = /** @class */ (function (_super) {
358
257
  */
359
258
  SessionClient.prototype.resourcesClose = function () {
360
259
  return this.request('ResourcesClose')
361
- .then(function (testPlanJs) { return TestPlan.fromJS(testPlanJs); })
260
+ .then(function (testPlanJs) { return DTOs_1.TestPlan.fromJS(testPlanJs); })
362
261
  .then(this.success())
363
262
  .catch(this.error());
364
263
  };
@@ -369,7 +268,7 @@ var SessionClient = /** @class */ (function (_super) {
369
268
  */
370
269
  SessionClient.prototype.getSettings = function (contextId) {
371
270
  return this.request('GetSettings', contextId)
372
- .then(function (settingArrayJs) { return settingArrayJs.map(function (settingJs) { return Setting.fromJS(settingJs); }); })
271
+ .then(function (settingArrayJs) { return settingArrayJs.map(function (settingJs) { return DTOs_1.Setting.fromJS(settingJs); }); })
373
272
  .then(this.success())
374
273
  .catch(this.error());
375
274
  };
@@ -382,7 +281,7 @@ var SessionClient = /** @class */ (function (_super) {
382
281
  SessionClient.prototype.setSettings = function (contextId, settings) {
383
282
  var setSettingsRequest = { contextId: contextId, settings: settings };
384
283
  return this.request('SetSettings', setSettingsRequest)
385
- .then(function (settingArrayJs) { return settingArrayJs.map(function (settingJs) { return Setting.fromJS(settingJs); }); })
284
+ .then(function (settingArrayJs) { return settingArrayJs.map(function (settingJs) { return DTOs_1.Setting.fromJS(settingJs); }); })
386
285
  .then(this.success())
387
286
  .catch(this.error());
388
287
  };
@@ -393,7 +292,7 @@ var SessionClient = /** @class */ (function (_super) {
393
292
  */
394
293
  SessionClient.prototype.getTestPlan = function (properties) {
395
294
  return this.request('GetTestPlan', properties)
396
- .then(function (testPlanJs) { return TestPlan.fromJS(testPlanJs); })
295
+ .then(function (testPlanJs) { return DTOs_1.TestPlan.fromJS(testPlanJs); })
397
296
  .then(this.success())
398
297
  .catch(this.error());
399
298
  };
@@ -404,7 +303,7 @@ var SessionClient = /** @class */ (function (_super) {
404
303
  */
405
304
  SessionClient.prototype.setTestPlan = function (plan) {
406
305
  return this.request('SetTestPlan', plan)
407
- .then(function (testPlanJs) { return TestPlan.fromJS(testPlanJs); })
306
+ .then(function (testPlanJs) { return DTOs_1.TestPlan.fromJS(testPlanJs); })
408
307
  .then(this.success())
409
308
  .catch(this.error());
410
309
  };
@@ -423,7 +322,7 @@ var SessionClient = /** @class */ (function (_super) {
423
322
  SessionClient.prototype.getValidationErrors = function () {
424
323
  return this.request('GetValidationErrors')
425
324
  .then(function (testStepValidationErrorArrayJs) {
426
- return testStepValidationErrorArrayJs.map(function (testStepValidationErrorJs) { return TestStepValidationError.fromJS(testStepValidationErrorJs); });
325
+ return testStepValidationErrorArrayJs.map(function (testStepValidationErrorJs) { return DTOs_1.TestStepValidationError.fromJS(testStepValidationErrorJs); });
427
326
  })
428
327
  .then(this.success())
429
328
  .catch(this.error());
@@ -435,7 +334,7 @@ var SessionClient = /** @class */ (function (_super) {
435
334
  */
436
335
  SessionClient.prototype.commonStepSettings = function (commonSettings) {
437
336
  return this.request('CommonStepSettings', commonSettings)
438
- .then(function (commonSettingsJs) { return CommonSettings.fromJS(commonSettingsJs); })
337
+ .then(function (commonSettingsJs) { return DTOs_1.CommonSettings.fromJS(commonSettingsJs); })
439
338
  .then(this.success())
440
339
  .catch(this.error());
441
340
  };
@@ -448,7 +347,7 @@ var SessionClient = /** @class */ (function (_super) {
448
347
  SessionClient.prototype.commonStepSettingsContextMenu = function (propertyName, commonContext) {
449
348
  var commonStepSettingsContextRequest = { propertyName: propertyName, commonContext: commonContext };
450
349
  return this.request('CommonStepSettingsContextMenu', commonStepSettingsContextRequest)
451
- .then(function (commonContextJs) { return CommonContext.fromJS(commonContextJs); })
350
+ .then(function (commonContextJs) { return DTOs_1.CommonContext.fromJS(commonContextJs); })
452
351
  .then(this.success())
453
352
  .catch(this.error());
454
353
  };
@@ -466,7 +365,7 @@ var SessionClient = /** @class */ (function (_super) {
466
365
  */
467
366
  SessionClient.prototype.getUserInput = function (id) {
468
367
  return this.request('GetUserInput', id)
469
- .then(function (interactionJs) { return Interaction.fromJS(interactionJs); })
368
+ .then(function (interactionJs) { return DTOs_1.Interaction.fromJS(interactionJs); })
470
369
  .then(this.success())
471
370
  .catch(this.error());
472
371
  };
@@ -477,7 +376,7 @@ var SessionClient = /** @class */ (function (_super) {
477
376
  */
478
377
  SessionClient.prototype.setUserInput = function (interaction) {
479
378
  return this.request('SetUserInput', interaction)
480
- .then(function (interactionJs) { return Interaction.fromJS(interactionJs); })
379
+ .then(function (interactionJs) { return DTOs_1.Interaction.fromJS(interactionJs); })
481
380
  .then(this.success())
482
381
  .catch(this.error());
483
382
  };
@@ -493,7 +392,7 @@ var SessionClient = /** @class */ (function (_super) {
493
392
  propertyName: propertyName,
494
393
  };
495
394
  return this.request('GetContextMenu', propertyReferenceRequest)
496
- .then(function (settingArrayJs) { return settingArrayJs.map(function (settingJs) { return Setting.fromJS(settingJs); }); })
395
+ .then(function (settingArrayJs) { return settingArrayJs.map(function (settingJs) { return DTOs_1.Setting.fromJS(settingJs); }); })
497
396
  .then(this.success())
498
397
  .catch(this.error());
499
398
  };
@@ -511,7 +410,7 @@ var SessionClient = /** @class */ (function (_super) {
511
410
  contextMenu: contextMenu,
512
411
  };
513
412
  return this.request('SetContextMenu', setContextMenuRequest)
514
- .then(function (settingArrayJs) { return settingArrayJs.map(function (settingJs) { return Setting.fromJS(settingJs); }); })
413
+ .then(function (settingArrayJs) { return settingArrayJs.map(function (settingJs) { return DTOs_1.Setting.fromJS(settingJs); }); })
515
414
  .then(this.success())
516
415
  .catch(this.error());
517
416
  };
@@ -527,7 +426,7 @@ var SessionClient = /** @class */ (function (_super) {
527
426
  propertyName: propertyName,
528
427
  };
529
428
  return this.request('GetDataGrid', propertyReferenceRequest)
530
- .then(function (dataGridControlJs) { return DataGridControl.fromJS(dataGridControlJs); })
429
+ .then(function (dataGridControlJs) { return DTOs_1.DataGridControl.fromJS(dataGridControlJs); })
531
430
  .then(this.success())
532
431
  .catch(this.error());
533
432
  };
@@ -538,7 +437,7 @@ var SessionClient = /** @class */ (function (_super) {
538
437
  SessionClient.prototype.setDataGrid = function (contextId, propertyName, dataGridControl) {
539
438
  var setDataGridRequest = { contextId: contextId, propertyName: propertyName, dataGridControl: dataGridControl };
540
439
  return this.request('SetDataGrid', setDataGridRequest)
541
- .then(function (dataGridControlJs) { return DataGridControl.fromJS(dataGridControlJs); })
440
+ .then(function (dataGridControlJs) { return DTOs_1.DataGridControl.fromJS(dataGridControlJs); })
542
441
  .then(this.success())
543
442
  .catch(this.error());
544
443
  };
@@ -556,7 +455,7 @@ var SessionClient = /** @class */ (function (_super) {
556
455
  typeName: typeName,
557
456
  };
558
457
  return this.request('AddDataGridItemType', addDataGridItemTypeRequest)
559
- .then(function (dataGridControlJs) { return DataGridControl.fromJS(dataGridControlJs); })
458
+ .then(function (dataGridControlJs) { return DTOs_1.DataGridControl.fromJS(dataGridControlJs); })
560
459
  .then(this.success())
561
460
  .catch(this.error());
562
461
  };
@@ -572,7 +471,7 @@ var SessionClient = /** @class */ (function (_super) {
572
471
  propertyName: propertyName,
573
472
  };
574
473
  return this.request('AddDataGridItem', propertyReferenceRequest)
575
- .then(function (dataGridControlJs) { return DataGridControl.fromJS(dataGridControlJs); })
474
+ .then(function (dataGridControlJs) { return DTOs_1.DataGridControl.fromJS(dataGridControlJs); })
576
475
  .then(this.success())
577
476
  .catch(this.error());
578
477
  };
@@ -588,7 +487,7 @@ var SessionClient = /** @class */ (function (_super) {
588
487
  propertyName: propertyName,
589
488
  };
590
489
  return this.request('GetDataGridTypes', propertyReferenceRequest)
591
- .then(function (listItemTypeArrayJs) { return listItemTypeArrayJs.map(function (listItemTypeJs) { return ListItemType.fromJS(listItemTypeJs); }); })
490
+ .then(function (listItemTypeArrayJs) { return listItemTypeArrayJs.map(function (listItemTypeJs) { return DTOs_1.ListItemType.fromJS(listItemTypeJs); }); })
592
491
  .then(this.success())
593
492
  .catch(this.error());
594
493
  };
@@ -598,7 +497,7 @@ var SessionClient = /** @class */ (function (_super) {
598
497
  */
599
498
  SessionClient.prototype.getStepTypes = function () {
600
499
  return this.request('GetStepTypes')
601
- .then(function (testStepTypeArrayJs) { return testStepTypeArrayJs.map(function (testStepTypeJs) { return TestStepType.fromJS(testStepTypeJs); }); })
500
+ .then(function (testStepTypeArrayJs) { return testStepTypeArrayJs.map(function (testStepTypeJs) { return DTOs_1.TestStepType.fromJS(testStepTypeJs); }); })
602
501
  .then(this.success())
603
502
  .catch(this.error());
604
503
  };
@@ -613,7 +512,7 @@ var SessionClient = /** @class */ (function (_super) {
613
512
  */
614
513
  SessionClient.prototype.getBreakpoints = function () {
615
514
  return this.request('GetBreakpoints')
616
- .then(function (breakPointsJs) { return BreakPoints.fromJS(breakPointsJs); })
515
+ .then(function (breakPointsJs) { return DTOs_1.BreakPoints.fromJS(breakPointsJs); })
617
516
  .then(this.success())
618
517
  .catch(this.error());
619
518
  };
@@ -624,7 +523,7 @@ var SessionClient = /** @class */ (function (_super) {
624
523
  */
625
524
  SessionClient.prototype.setBreakpoints = function (breakPointsDto) {
626
525
  return this.request('SetBreakpoints', breakPointsDto)
627
- .then(function (breakPointsJs) { return BreakPoints.fromJS(breakPointsJs); })
526
+ .then(function (breakPointsJs) { return DTOs_1.BreakPoints.fromJS(breakPointsJs); })
628
527
  .then(this.success())
629
528
  .catch(this.error());
630
529
  };
@@ -642,7 +541,7 @@ var SessionClient = /** @class */ (function (_super) {
642
541
  */
643
542
  SessionClient.prototype.runTestPlan = function (parameters) {
644
543
  return this.request('RunTestPlan', parameters)
645
- .then(function (runStatusJs) { return RunStatus.fromJS(runStatusJs); })
544
+ .then(function (runStatusJs) { return DTOs_1.RunStatus.fromJS(runStatusJs); })
646
545
  .then(this.success())
647
546
  .catch(this.error());
648
547
  };
@@ -663,7 +562,7 @@ var SessionClient = /** @class */ (function (_super) {
663
562
  */
664
563
  SessionClient.prototype.getImage = function () {
665
564
  return this.request('GetImage')
666
- .then(function (imageJs) { return Image.fromJS(imageJs); })
565
+ .then(function (imageJs) { return DTOs_1.Image.fromJS(imageJs); })
667
566
  .then(this.success())
668
567
  .catch(this.error());
669
568
  };
@@ -678,7 +577,7 @@ var SessionClient = /** @class */ (function (_super) {
678
577
  */
679
578
  SessionClient.prototype.getWatchDog = function () {
680
579
  return this.request('GetWatchDog')
681
- .then(function (watchDogJs) { return WatchDog.fromJS(watchDogJs); })
580
+ .then(function (watchDogJs) { return DTOs_1.WatchDog.fromJS(watchDogJs); })
682
581
  .then(this.success())
683
582
  .catch(this.error());
684
583
  };
@@ -688,7 +587,7 @@ var SessionClient = /** @class */ (function (_super) {
688
587
  */
689
588
  SessionClient.prototype.setWatchDog = function (watchDog) {
690
589
  return this.request('SetWatchDog', watchDog)
691
- .then(function (watchDogJs) { return WatchDog.fromJS(watchDogJs); })
590
+ .then(function (watchDogJs) { return DTOs_1.WatchDog.fromJS(watchDogJs); })
692
591
  .then(this.success())
693
592
  .catch(this.error());
694
593
  };
@@ -699,5 +598,5 @@ var SessionClient = /** @class */ (function (_super) {
699
598
  return this.request('GetSettingsTypes').then(this.success()).catch(this.error());
700
599
  };
701
600
  return SessionClient;
702
- }(BaseClient));
703
- export { SessionClient };
601
+ }(BaseClient_1.BaseClient));
602
+ exports.SessionClient = SessionClient;