@opentap/runner-client 1.0.0-alpha.37.12
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/BaseClient.d.ts +44 -0
- package/lib/BaseClient.js +181 -0
- package/lib/DTOs.d.ts +1127 -0
- package/lib/DTOs.js +3292 -0
- package/lib/RunnerClient.d.ts +185 -0
- package/lib/RunnerClient.js +1399 -0
- package/lib/SessionClient.d.ts +543 -0
- package/lib/SessionClient.js +5051 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/lib/requestDTOs.d.ts +72 -0
- package/lib/requestDTOs.js +131 -0
- package/package.json +44 -0
- package/readme.md +67 -0
package/lib/DTOs.js
ADDED
|
@@ -0,0 +1,3292 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
+
extendStatics(d, b);
|
|
12
|
+
function __() { this.constructor = d; }
|
|
13
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
var Image = /** @class */ (function () {
|
|
17
|
+
function Image(data) {
|
|
18
|
+
if (data) {
|
|
19
|
+
for (var property in data) {
|
|
20
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
21
|
+
this[property] = data[property];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
Image.prototype.init = function (_data) {
|
|
26
|
+
if (_data) {
|
|
27
|
+
this.name = _data['Name'];
|
|
28
|
+
if (Array.isArray(_data['Packages'])) {
|
|
29
|
+
this.packages = [];
|
|
30
|
+
for (var _i = 0, _a = _data['Packages']; _i < _a.length; _i++) {
|
|
31
|
+
var item = _a[_i];
|
|
32
|
+
this.packages.push(PackageSpecifier.fromJS(item));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
if (Array.isArray(_data['Repositories'])) {
|
|
36
|
+
this.repositories = [];
|
|
37
|
+
for (var _b = 0, _c = _data['Repositories']; _b < _c.length; _b++) {
|
|
38
|
+
var item = _c[_b];
|
|
39
|
+
this.repositories.push(item);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
this.id = _data['Id'];
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
Image.fromJS = function (data) {
|
|
46
|
+
data = typeof data === 'object' ? data : {};
|
|
47
|
+
var result = new Image();
|
|
48
|
+
result.init(data);
|
|
49
|
+
return result;
|
|
50
|
+
};
|
|
51
|
+
Image.prototype.toJSON = function (data) {
|
|
52
|
+
data = typeof data === 'object' ? data : {};
|
|
53
|
+
data['Name'] = this.name;
|
|
54
|
+
if (Array.isArray(this.packages)) {
|
|
55
|
+
data['Packages'] = [];
|
|
56
|
+
for (var _i = 0, _a = this.packages; _i < _a.length; _i++) {
|
|
57
|
+
var item = _a[_i];
|
|
58
|
+
data['Packages'].push(item.toJSON());
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
if (Array.isArray(this.repositories)) {
|
|
62
|
+
data['Repositories'] = [];
|
|
63
|
+
for (var _b = 0, _c = this.repositories; _b < _c.length; _b++) {
|
|
64
|
+
var item = _c[_b];
|
|
65
|
+
data['Repositories'].push(item);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
data['Id'] = this.id;
|
|
69
|
+
return data;
|
|
70
|
+
};
|
|
71
|
+
return Image;
|
|
72
|
+
}());
|
|
73
|
+
export { Image };
|
|
74
|
+
var PackageSpecifier = /** @class */ (function () {
|
|
75
|
+
function PackageSpecifier(data) {
|
|
76
|
+
if (data) {
|
|
77
|
+
for (var property in data) {
|
|
78
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
79
|
+
this[property] = data[property];
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
PackageSpecifier.prototype.init = function (_data) {
|
|
84
|
+
if (_data) {
|
|
85
|
+
this.name = _data['Name'];
|
|
86
|
+
this.version = _data['Version'];
|
|
87
|
+
this.architecture = _data['Architecture'];
|
|
88
|
+
this.oS = _data['OS'];
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
PackageSpecifier.fromJS = function (data) {
|
|
92
|
+
data = typeof data === 'object' ? data : {};
|
|
93
|
+
var result = new PackageSpecifier();
|
|
94
|
+
result.init(data);
|
|
95
|
+
return result;
|
|
96
|
+
};
|
|
97
|
+
PackageSpecifier.prototype.toJSON = function (data) {
|
|
98
|
+
data = typeof data === 'object' ? data : {};
|
|
99
|
+
data['Name'] = this.name;
|
|
100
|
+
data['Version'] = this.version;
|
|
101
|
+
data['Architecture'] = this.architecture;
|
|
102
|
+
data['OS'] = this.oS;
|
|
103
|
+
return data;
|
|
104
|
+
};
|
|
105
|
+
return PackageSpecifier;
|
|
106
|
+
}());
|
|
107
|
+
export { PackageSpecifier };
|
|
108
|
+
var ErrorResponse = /** @class */ (function () {
|
|
109
|
+
function ErrorResponse(data) {
|
|
110
|
+
if (data) {
|
|
111
|
+
for (var property in data) {
|
|
112
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
113
|
+
this[property] = data[property];
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
ErrorResponse.prototype.init = function (_data) {
|
|
118
|
+
if (_data) {
|
|
119
|
+
this.type = _data['Type'];
|
|
120
|
+
this.message = _data['Message'];
|
|
121
|
+
this.parameter = _data['Parameter'];
|
|
122
|
+
this.source = _data['Source'];
|
|
123
|
+
this.stackTrace = _data['StackTrace'];
|
|
124
|
+
this.inner = _data['Inner'] ? ErrorResponse.fromJS(_data['Inner']) : undefined;
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
ErrorResponse.fromJS = function (data) {
|
|
128
|
+
data = typeof data === 'object' ? data : {};
|
|
129
|
+
var result = new ErrorResponse();
|
|
130
|
+
result.init(data);
|
|
131
|
+
return result;
|
|
132
|
+
};
|
|
133
|
+
ErrorResponse.prototype.toJSON = function (data) {
|
|
134
|
+
data = typeof data === 'object' ? data : {};
|
|
135
|
+
data['Type'] = this.type;
|
|
136
|
+
data['Message'] = this.message;
|
|
137
|
+
data['Parameter'] = this.parameter;
|
|
138
|
+
data['Source'] = this.source;
|
|
139
|
+
data['StackTrace'] = this.stackTrace;
|
|
140
|
+
data['Inner'] = this.inner ? this.inner.toJSON() : undefined;
|
|
141
|
+
return data;
|
|
142
|
+
};
|
|
143
|
+
return ErrorResponse;
|
|
144
|
+
}());
|
|
145
|
+
export { ErrorResponse };
|
|
146
|
+
var ImageResolveErrorResponse = /** @class */ (function (_super) {
|
|
147
|
+
__extends(ImageResolveErrorResponse, _super);
|
|
148
|
+
function ImageResolveErrorResponse(data) {
|
|
149
|
+
return _super.call(this, data) || this;
|
|
150
|
+
}
|
|
151
|
+
ImageResolveErrorResponse.prototype.init = function (_data) {
|
|
152
|
+
_super.prototype.init.call(this, _data);
|
|
153
|
+
if (_data) {
|
|
154
|
+
this.dotGraph = _data['DotGraph'];
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
ImageResolveErrorResponse.fromJS = function (data) {
|
|
158
|
+
data = typeof data === 'object' ? data : {};
|
|
159
|
+
var result = new ImageResolveErrorResponse();
|
|
160
|
+
result.init(data);
|
|
161
|
+
return result;
|
|
162
|
+
};
|
|
163
|
+
ImageResolveErrorResponse.prototype.toJSON = function (data) {
|
|
164
|
+
data = typeof data === 'object' ? data : {};
|
|
165
|
+
data['DotGraph'] = this.dotGraph;
|
|
166
|
+
_super.prototype.toJSON.call(this, data);
|
|
167
|
+
return data;
|
|
168
|
+
};
|
|
169
|
+
return ImageResolveErrorResponse;
|
|
170
|
+
}(ErrorResponse));
|
|
171
|
+
export { ImageResolveErrorResponse };
|
|
172
|
+
var Session = /** @class */ (function () {
|
|
173
|
+
function Session(data) {
|
|
174
|
+
if (data) {
|
|
175
|
+
for (var property in data) {
|
|
176
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
177
|
+
this[property] = data[property];
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
Session.prototype.init = function (_data) {
|
|
182
|
+
if (_data) {
|
|
183
|
+
this.url = _data['Url'];
|
|
184
|
+
this.id = _data['Id'];
|
|
185
|
+
this.imageId = _data['ImageId'];
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
Session.fromJS = function (data) {
|
|
189
|
+
data = typeof data === 'object' ? data : {};
|
|
190
|
+
var result = new Session();
|
|
191
|
+
result.init(data);
|
|
192
|
+
return result;
|
|
193
|
+
};
|
|
194
|
+
Session.prototype.toJSON = function (data) {
|
|
195
|
+
data = typeof data === 'object' ? data : {};
|
|
196
|
+
data['Url'] = this.url;
|
|
197
|
+
data['Id'] = this.id;
|
|
198
|
+
data['ImageId'] = this.imageId;
|
|
199
|
+
return data;
|
|
200
|
+
};
|
|
201
|
+
return Session;
|
|
202
|
+
}());
|
|
203
|
+
export { Session };
|
|
204
|
+
var Links = /** @class */ (function () {
|
|
205
|
+
function Links(data) {
|
|
206
|
+
if (data) {
|
|
207
|
+
for (var property in data) {
|
|
208
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
209
|
+
this[property] = data[property];
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
Links.prototype.init = function (_data) {
|
|
214
|
+
if (_data) {
|
|
215
|
+
this.editor = _data['Editor'];
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
Links.fromJS = function (data) {
|
|
219
|
+
data = typeof data === 'object' ? data : {};
|
|
220
|
+
var result = new Links();
|
|
221
|
+
result.init(data);
|
|
222
|
+
return result;
|
|
223
|
+
};
|
|
224
|
+
Links.prototype.toJSON = function (data) {
|
|
225
|
+
data = typeof data === 'object' ? data : {};
|
|
226
|
+
data['Editor'] = this.editor;
|
|
227
|
+
return data;
|
|
228
|
+
};
|
|
229
|
+
return Links;
|
|
230
|
+
}());
|
|
231
|
+
export { Links };
|
|
232
|
+
var ComponentSettingsBase = /** @class */ (function () {
|
|
233
|
+
function ComponentSettingsBase(data) {
|
|
234
|
+
if (data) {
|
|
235
|
+
for (var property in data) {
|
|
236
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
237
|
+
this[property] = data[property];
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
this._discriminator = 'ComponentSettingsBase';
|
|
241
|
+
}
|
|
242
|
+
ComponentSettingsBase.prototype.init = function (_data) {
|
|
243
|
+
if (_data) {
|
|
244
|
+
this.name = _data['Name'];
|
|
245
|
+
this.groupName = _data['GroupName'];
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
ComponentSettingsBase.fromJS = function (data) {
|
|
249
|
+
data = typeof data === 'object' ? data : {};
|
|
250
|
+
if (data['ComponentSettingsType'] === 'ComponentSettingsIdentifier') {
|
|
251
|
+
var result = new ComponentSettingsIdentifier();
|
|
252
|
+
result.init(data);
|
|
253
|
+
return result;
|
|
254
|
+
}
|
|
255
|
+
if (data['ComponentSettingsType'] === 'ComponentSettingsList') {
|
|
256
|
+
var result = new ComponentSettingsList();
|
|
257
|
+
result.init(data);
|
|
258
|
+
return result;
|
|
259
|
+
}
|
|
260
|
+
if (data['ComponentSettingsType'] === 'ComponentSettings') {
|
|
261
|
+
var result = new ComponentSettings();
|
|
262
|
+
result.init(data);
|
|
263
|
+
return result;
|
|
264
|
+
}
|
|
265
|
+
throw new Error("The abstract class 'ComponentSettingsBase' cannot be instantiated.");
|
|
266
|
+
};
|
|
267
|
+
ComponentSettingsBase.prototype.toJSON = function (data) {
|
|
268
|
+
data = typeof data === 'object' ? data : {};
|
|
269
|
+
data['ComponentSettingsType'] = this._discriminator;
|
|
270
|
+
data['Name'] = this.name;
|
|
271
|
+
data['GroupName'] = this.groupName;
|
|
272
|
+
return data;
|
|
273
|
+
};
|
|
274
|
+
return ComponentSettingsBase;
|
|
275
|
+
}());
|
|
276
|
+
export { ComponentSettingsBase };
|
|
277
|
+
var ComponentSettingsIdentifier = /** @class */ (function (_super) {
|
|
278
|
+
__extends(ComponentSettingsIdentifier, _super);
|
|
279
|
+
function ComponentSettingsIdentifier(data) {
|
|
280
|
+
var _this = _super.call(this, data) || this;
|
|
281
|
+
_this._discriminator = 'ComponentSettingsIdentifier';
|
|
282
|
+
return _this;
|
|
283
|
+
}
|
|
284
|
+
ComponentSettingsIdentifier.prototype.init = function (_data) {
|
|
285
|
+
_super.prototype.init.call(this, _data);
|
|
286
|
+
};
|
|
287
|
+
ComponentSettingsIdentifier.fromJS = function (data) {
|
|
288
|
+
data = typeof data === 'object' ? data : {};
|
|
289
|
+
var result = new ComponentSettingsIdentifier();
|
|
290
|
+
result.init(data);
|
|
291
|
+
return result;
|
|
292
|
+
};
|
|
293
|
+
ComponentSettingsIdentifier.prototype.toJSON = function (data) {
|
|
294
|
+
data = typeof data === 'object' ? data : {};
|
|
295
|
+
_super.prototype.toJSON.call(this, data);
|
|
296
|
+
return data;
|
|
297
|
+
};
|
|
298
|
+
return ComponentSettingsIdentifier;
|
|
299
|
+
}(ComponentSettingsBase));
|
|
300
|
+
export { ComponentSettingsIdentifier };
|
|
301
|
+
var ComponentSettingsList = /** @class */ (function (_super) {
|
|
302
|
+
__extends(ComponentSettingsList, _super);
|
|
303
|
+
function ComponentSettingsList(data) {
|
|
304
|
+
var _this = _super.call(this, data) || this;
|
|
305
|
+
_this._discriminator = 'ComponentSettingsList';
|
|
306
|
+
return _this;
|
|
307
|
+
}
|
|
308
|
+
ComponentSettingsList.prototype.init = function (_data) {
|
|
309
|
+
_super.prototype.init.call(this, _data);
|
|
310
|
+
if (_data) {
|
|
311
|
+
if (Array.isArray(_data['Items'])) {
|
|
312
|
+
this.items = [];
|
|
313
|
+
for (var _i = 0, _a = _data['Items']; _i < _a.length; _i++) {
|
|
314
|
+
var item = _a[_i];
|
|
315
|
+
this.items.push(ComponentSettingsListItem.fromJS(item));
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
ComponentSettingsList.fromJS = function (data) {
|
|
321
|
+
data = typeof data === 'object' ? data : {};
|
|
322
|
+
var result = new ComponentSettingsList();
|
|
323
|
+
result.init(data);
|
|
324
|
+
return result;
|
|
325
|
+
};
|
|
326
|
+
ComponentSettingsList.prototype.toJSON = function (data) {
|
|
327
|
+
data = typeof data === 'object' ? data : {};
|
|
328
|
+
if (Array.isArray(this.items)) {
|
|
329
|
+
data['Items'] = [];
|
|
330
|
+
for (var _i = 0, _a = this.items; _i < _a.length; _i++) {
|
|
331
|
+
var item = _a[_i];
|
|
332
|
+
data['Items'].push(item.toJSON());
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
_super.prototype.toJSON.call(this, data);
|
|
336
|
+
return data;
|
|
337
|
+
};
|
|
338
|
+
return ComponentSettingsList;
|
|
339
|
+
}(ComponentSettingsBase));
|
|
340
|
+
export { ComponentSettingsList };
|
|
341
|
+
var AnnotatedObject = /** @class */ (function () {
|
|
342
|
+
function AnnotatedObject(data) {
|
|
343
|
+
if (data) {
|
|
344
|
+
for (var property in data) {
|
|
345
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
346
|
+
this[property] = data[property];
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
AnnotatedObject.prototype.init = function (_data) {
|
|
351
|
+
if (_data) {
|
|
352
|
+
this.visualStatus = _data['VisualStatus'] ? VisualStatus.fromJS(_data['VisualStatus']) : undefined;
|
|
353
|
+
this.valueType = _data['ValueType'];
|
|
354
|
+
this.display = _data['Display'] ? DisplayAttribute.fromJS(_data['Display']) : undefined;
|
|
355
|
+
this.metaData = _data['MetaData'] ? MetaData.fromJS(_data['MetaData']) : undefined;
|
|
356
|
+
this.externalParameter = _data['ExternalParameter'] ? ExternalParameter.fromJS(_data['ExternalParameter']) : undefined;
|
|
357
|
+
}
|
|
358
|
+
};
|
|
359
|
+
AnnotatedObject.fromJS = function (data) {
|
|
360
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
361
|
+
data = typeof data === 'object' ? data : {};
|
|
362
|
+
throw new Error("The abstract class 'AnnotatedObject' cannot be instantiated.");
|
|
363
|
+
};
|
|
364
|
+
AnnotatedObject.prototype.toJSON = function (data) {
|
|
365
|
+
data = typeof data === 'object' ? data : {};
|
|
366
|
+
data['VisualStatus'] = this.visualStatus ? this.visualStatus.toJSON() : undefined;
|
|
367
|
+
data['ValueType'] = this.valueType;
|
|
368
|
+
data['Display'] = this.display ? this.display.toJSON() : undefined;
|
|
369
|
+
data['MetaData'] = this.metaData ? this.metaData.toJSON() : undefined;
|
|
370
|
+
data['ExternalParameter'] = this.externalParameter ? this.externalParameter.toJSON() : undefined;
|
|
371
|
+
return data;
|
|
372
|
+
};
|
|
373
|
+
return AnnotatedObject;
|
|
374
|
+
}());
|
|
375
|
+
export { AnnotatedObject };
|
|
376
|
+
var ComponentSettingsListItem = /** @class */ (function (_super) {
|
|
377
|
+
__extends(ComponentSettingsListItem, _super);
|
|
378
|
+
function ComponentSettingsListItem(data) {
|
|
379
|
+
return _super.call(this, data) || this;
|
|
380
|
+
}
|
|
381
|
+
ComponentSettingsListItem.prototype.init = function (_data) {
|
|
382
|
+
_super.prototype.init.call(this, _data);
|
|
383
|
+
if (_data) {
|
|
384
|
+
if (Array.isArray(_data['Settings'])) {
|
|
385
|
+
this.settings = [];
|
|
386
|
+
for (var _i = 0, _a = _data['Settings']; _i < _a.length; _i++) {
|
|
387
|
+
var item = _a[_i];
|
|
388
|
+
this.settings.push(Setting.fromJS(item));
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
this.name = _data['Name'];
|
|
392
|
+
this.enabledResource = _data['EnabledResource'];
|
|
393
|
+
}
|
|
394
|
+
};
|
|
395
|
+
ComponentSettingsListItem.fromJS = function (data) {
|
|
396
|
+
data = typeof data === 'object' ? data : {};
|
|
397
|
+
var result = new ComponentSettingsListItem();
|
|
398
|
+
result.init(data);
|
|
399
|
+
return result;
|
|
400
|
+
};
|
|
401
|
+
ComponentSettingsListItem.prototype.toJSON = function (data) {
|
|
402
|
+
data = typeof data === 'object' ? data : {};
|
|
403
|
+
if (Array.isArray(this.settings)) {
|
|
404
|
+
data['Settings'] = [];
|
|
405
|
+
for (var _i = 0, _a = this.settings; _i < _a.length; _i++) {
|
|
406
|
+
var item = _a[_i];
|
|
407
|
+
data['Settings'].push(item.toJSON());
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
data['Name'] = this.name;
|
|
411
|
+
data['EnabledResource'] = this.enabledResource;
|
|
412
|
+
_super.prototype.toJSON.call(this, data);
|
|
413
|
+
return data;
|
|
414
|
+
};
|
|
415
|
+
return ComponentSettingsListItem;
|
|
416
|
+
}(AnnotatedObject));
|
|
417
|
+
export { ComponentSettingsListItem };
|
|
418
|
+
var Setting = /** @class */ (function (_super) {
|
|
419
|
+
__extends(Setting, _super);
|
|
420
|
+
function Setting(data) {
|
|
421
|
+
var _this = _super.call(this, data) || this;
|
|
422
|
+
_this._discriminator = 'Setting';
|
|
423
|
+
return _this;
|
|
424
|
+
}
|
|
425
|
+
Setting.prototype.init = function (_data) {
|
|
426
|
+
_super.prototype.init.call(this, _data);
|
|
427
|
+
if (_data) {
|
|
428
|
+
if (Array.isArray(_data['Errors'])) {
|
|
429
|
+
this.errors = [];
|
|
430
|
+
for (var _i = 0, _a = _data['Errors']; _i < _a.length; _i++) {
|
|
431
|
+
var item = _a[_i];
|
|
432
|
+
this.errors.push(item);
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
this.layout = _data['Layout'] ? Layout.fromJS(_data['Layout']) : undefined;
|
|
436
|
+
this.columnDisplayName = _data['ColumnDisplayName'] ? ColumnDisplayName.fromJS(_data['ColumnDisplayName']) : undefined;
|
|
437
|
+
this.valueDescription = _data['ValueDescription'];
|
|
438
|
+
this.propertyName = _data['PropertyName'];
|
|
439
|
+
if (Array.isArray(_data['Icons'])) {
|
|
440
|
+
this.icons = [];
|
|
441
|
+
for (var _b = 0, _c = _data['Icons']; _b < _c.length; _b++) {
|
|
442
|
+
var item = _c[_b];
|
|
443
|
+
this.icons.push(Icon.fromJS(item));
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
};
|
|
448
|
+
Setting.fromJS = function (data) {
|
|
449
|
+
data = typeof data === 'object' ? data : {};
|
|
450
|
+
if (data['ControlType'] === 'ButtonControl') {
|
|
451
|
+
var result_1 = new ButtonControl();
|
|
452
|
+
result_1.init(data);
|
|
453
|
+
return result_1;
|
|
454
|
+
}
|
|
455
|
+
if (data['ControlType'] === 'ButtonsControl') {
|
|
456
|
+
var result_2 = new ButtonsControl();
|
|
457
|
+
result_2.init(data);
|
|
458
|
+
return result_2;
|
|
459
|
+
}
|
|
460
|
+
if (data['ControlType'] === 'CheckBoxControl') {
|
|
461
|
+
var result_3 = new CheckBoxControl();
|
|
462
|
+
result_3.init(data);
|
|
463
|
+
return result_3;
|
|
464
|
+
}
|
|
465
|
+
if (data['ControlType'] === 'DataGridReferenceControl') {
|
|
466
|
+
var result_4 = new DataGridReferenceControl();
|
|
467
|
+
result_4.init(data);
|
|
468
|
+
return result_4;
|
|
469
|
+
}
|
|
470
|
+
if (data['ControlType'] === 'DataGridControl') {
|
|
471
|
+
var result_5 = new DataGridControl();
|
|
472
|
+
result_5.init(data);
|
|
473
|
+
return result_5;
|
|
474
|
+
}
|
|
475
|
+
if (data['ControlType'] === 'TextBoxControl') {
|
|
476
|
+
var result_6 = new TextBoxControl();
|
|
477
|
+
result_6.init(data);
|
|
478
|
+
return result_6;
|
|
479
|
+
}
|
|
480
|
+
if (data['ControlType'] === 'ComboBoxControl') {
|
|
481
|
+
var result_7 = new ComboBoxControl();
|
|
482
|
+
result_7.init(data);
|
|
483
|
+
return result_7;
|
|
484
|
+
}
|
|
485
|
+
if (data['ControlType'] === 'FilePathControl') {
|
|
486
|
+
var result_8 = new FilePathControl();
|
|
487
|
+
result_8.init(data);
|
|
488
|
+
return result_8;
|
|
489
|
+
}
|
|
490
|
+
if (data['ControlType'] === 'EnabledControl') {
|
|
491
|
+
var result_9 = new EnabledControl();
|
|
492
|
+
result_9.init(data);
|
|
493
|
+
return result_9;
|
|
494
|
+
}
|
|
495
|
+
if (data['ControlType'] === 'DropdownControl') {
|
|
496
|
+
var result_10 = new DropdownControl();
|
|
497
|
+
result_10.init(data);
|
|
498
|
+
return result_10;
|
|
499
|
+
}
|
|
500
|
+
if (data['ControlType'] === 'MultiSelectControl') {
|
|
501
|
+
var result_11 = new MultiSelectControl();
|
|
502
|
+
result_11.init(data);
|
|
503
|
+
return result_11;
|
|
504
|
+
}
|
|
505
|
+
if (data['ControlType'] === 'PasswordControl') {
|
|
506
|
+
var result_12 = new PasswordControl();
|
|
507
|
+
result_12.init(data);
|
|
508
|
+
return result_12;
|
|
509
|
+
}
|
|
510
|
+
var result = new Setting();
|
|
511
|
+
result.init(data);
|
|
512
|
+
return result;
|
|
513
|
+
};
|
|
514
|
+
Setting.prototype.toJSON = function (data) {
|
|
515
|
+
data = typeof data === 'object' ? data : {};
|
|
516
|
+
data['ControlType'] = this._discriminator;
|
|
517
|
+
if (Array.isArray(this.errors)) {
|
|
518
|
+
data['Errors'] = [];
|
|
519
|
+
for (var _i = 0, _a = this.errors; _i < _a.length; _i++) {
|
|
520
|
+
var item = _a[_i];
|
|
521
|
+
data['Errors'].push(item);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
data['Layout'] = this.layout ? this.layout.toJSON() : undefined;
|
|
525
|
+
data['ColumnDisplayName'] = this.columnDisplayName ? this.columnDisplayName.toJSON() : undefined;
|
|
526
|
+
data['ValueDescription'] = this.valueDescription;
|
|
527
|
+
data['PropertyName'] = this.propertyName;
|
|
528
|
+
if (Array.isArray(this.icons)) {
|
|
529
|
+
data['Icons'] = [];
|
|
530
|
+
for (var _b = 0, _c = this.icons; _b < _c.length; _b++) {
|
|
531
|
+
var item = _c[_b];
|
|
532
|
+
data['Icons'].push(item.toJSON());
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
_super.prototype.toJSON.call(this, data);
|
|
536
|
+
return data;
|
|
537
|
+
};
|
|
538
|
+
return Setting;
|
|
539
|
+
}(AnnotatedObject));
|
|
540
|
+
export { Setting };
|
|
541
|
+
var Layout = /** @class */ (function () {
|
|
542
|
+
function Layout(data) {
|
|
543
|
+
if (data) {
|
|
544
|
+
for (var property in data) {
|
|
545
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
546
|
+
this[property] = data[property];
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
Layout.prototype.init = function (_data) {
|
|
551
|
+
if (_data) {
|
|
552
|
+
this.mode = _data['Mode'];
|
|
553
|
+
this.rowHeight = _data['RowHeight'];
|
|
554
|
+
this.maxRowHeight = _data['MaxRowHeight'];
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
Layout.fromJS = function (data) {
|
|
558
|
+
data = typeof data === 'object' ? data : {};
|
|
559
|
+
var result = new Layout();
|
|
560
|
+
result.init(data);
|
|
561
|
+
return result;
|
|
562
|
+
};
|
|
563
|
+
Layout.prototype.toJSON = function (data) {
|
|
564
|
+
data = typeof data === 'object' ? data : {};
|
|
565
|
+
data['Mode'] = this.mode;
|
|
566
|
+
data['RowHeight'] = this.rowHeight;
|
|
567
|
+
data['MaxRowHeight'] = this.maxRowHeight;
|
|
568
|
+
return data;
|
|
569
|
+
};
|
|
570
|
+
return Layout;
|
|
571
|
+
}());
|
|
572
|
+
export { Layout };
|
|
573
|
+
/** The supported layout modes. */
|
|
574
|
+
export var LayoutMode;
|
|
575
|
+
(function (LayoutMode) {
|
|
576
|
+
LayoutMode["Normal"] = "Normal";
|
|
577
|
+
LayoutMode["FullRow"] = "FullRow";
|
|
578
|
+
LayoutMode["FloatBottom"] = "FloatBottom";
|
|
579
|
+
})(LayoutMode || (LayoutMode = {}));
|
|
580
|
+
var ColumnDisplayName = /** @class */ (function () {
|
|
581
|
+
function ColumnDisplayName(data) {
|
|
582
|
+
if (data) {
|
|
583
|
+
for (var property in data) {
|
|
584
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
585
|
+
this[property] = data[property];
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
ColumnDisplayName.prototype.init = function (_data) {
|
|
590
|
+
if (_data) {
|
|
591
|
+
this.columnName = _data['ColumnName'];
|
|
592
|
+
this.order = _data['Order'];
|
|
593
|
+
this.isReadOnly = _data['IsReadOnly'];
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
ColumnDisplayName.fromJS = function (data) {
|
|
597
|
+
data = typeof data === 'object' ? data : {};
|
|
598
|
+
var result = new ColumnDisplayName();
|
|
599
|
+
result.init(data);
|
|
600
|
+
return result;
|
|
601
|
+
};
|
|
602
|
+
ColumnDisplayName.prototype.toJSON = function (data) {
|
|
603
|
+
data = typeof data === 'object' ? data : {};
|
|
604
|
+
data['ColumnName'] = this.columnName;
|
|
605
|
+
data['Order'] = this.order;
|
|
606
|
+
data['IsReadOnly'] = this.isReadOnly;
|
|
607
|
+
return data;
|
|
608
|
+
};
|
|
609
|
+
return ColumnDisplayName;
|
|
610
|
+
}());
|
|
611
|
+
export { ColumnDisplayName };
|
|
612
|
+
var Icon = /** @class */ (function () {
|
|
613
|
+
function Icon(data) {
|
|
614
|
+
if (data) {
|
|
615
|
+
for (var property in data) {
|
|
616
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
617
|
+
this[property] = data[property];
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
Icon.prototype.init = function (_data) {
|
|
622
|
+
if (_data) {
|
|
623
|
+
this.iconName = _data['IconName'];
|
|
624
|
+
this.invoke = _data['Invoke'];
|
|
625
|
+
this.stepReference = _data['StepReference'];
|
|
626
|
+
this.propertyReference = _data['PropertyReference'];
|
|
627
|
+
}
|
|
628
|
+
};
|
|
629
|
+
Icon.fromJS = function (data) {
|
|
630
|
+
data = typeof data === 'object' ? data : {};
|
|
631
|
+
var result = new Icon();
|
|
632
|
+
result.init(data);
|
|
633
|
+
return result;
|
|
634
|
+
};
|
|
635
|
+
Icon.prototype.toJSON = function (data) {
|
|
636
|
+
data = typeof data === 'object' ? data : {};
|
|
637
|
+
data['IconName'] = this.iconName;
|
|
638
|
+
data['Invoke'] = this.invoke;
|
|
639
|
+
data['StepReference'] = this.stepReference;
|
|
640
|
+
data['PropertyReference'] = this.propertyReference;
|
|
641
|
+
return data;
|
|
642
|
+
};
|
|
643
|
+
return Icon;
|
|
644
|
+
}());
|
|
645
|
+
export { Icon };
|
|
646
|
+
var VisualStatus = /** @class */ (function () {
|
|
647
|
+
function VisualStatus(data) {
|
|
648
|
+
if (data) {
|
|
649
|
+
for (var property in data) {
|
|
650
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
651
|
+
this[property] = data[property];
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
VisualStatus.prototype.init = function (_data) {
|
|
656
|
+
if (_data) {
|
|
657
|
+
this.isReadOnly = _data['IsReadOnly'];
|
|
658
|
+
this.isVisible = _data['IsVisible'];
|
|
659
|
+
this.isEnabled = _data['IsEnabled'];
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
VisualStatus.fromJS = function (data) {
|
|
663
|
+
data = typeof data === 'object' ? data : {};
|
|
664
|
+
var result = new VisualStatus();
|
|
665
|
+
result.init(data);
|
|
666
|
+
return result;
|
|
667
|
+
};
|
|
668
|
+
VisualStatus.prototype.toJSON = function (data) {
|
|
669
|
+
data = typeof data === 'object' ? data : {};
|
|
670
|
+
data['IsReadOnly'] = this.isReadOnly;
|
|
671
|
+
data['IsVisible'] = this.isVisible;
|
|
672
|
+
data['IsEnabled'] = this.isEnabled;
|
|
673
|
+
return data;
|
|
674
|
+
};
|
|
675
|
+
return VisualStatus;
|
|
676
|
+
}());
|
|
677
|
+
export { VisualStatus };
|
|
678
|
+
var DisplayAttribute = /** @class */ (function () {
|
|
679
|
+
function DisplayAttribute(data) {
|
|
680
|
+
if (data) {
|
|
681
|
+
for (var property in data) {
|
|
682
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
683
|
+
this[property] = data[property];
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
DisplayAttribute.prototype.init = function (_data) {
|
|
688
|
+
if (_data) {
|
|
689
|
+
this.description = _data['Description'];
|
|
690
|
+
if (Array.isArray(_data['Group'])) {
|
|
691
|
+
this.group = [];
|
|
692
|
+
for (var _i = 0, _a = _data['Group']; _i < _a.length; _i++) {
|
|
693
|
+
var item = _a[_i];
|
|
694
|
+
this.group.push(item);
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
this.name = _data['Name'];
|
|
698
|
+
this.order = _data['Order'];
|
|
699
|
+
this.collapsed = _data['Collapsed'];
|
|
700
|
+
}
|
|
701
|
+
};
|
|
702
|
+
DisplayAttribute.fromJS = function (data) {
|
|
703
|
+
data = typeof data === 'object' ? data : {};
|
|
704
|
+
var result = new DisplayAttribute();
|
|
705
|
+
result.init(data);
|
|
706
|
+
return result;
|
|
707
|
+
};
|
|
708
|
+
DisplayAttribute.prototype.toJSON = function (data) {
|
|
709
|
+
data = typeof data === 'object' ? data : {};
|
|
710
|
+
data['Description'] = this.description;
|
|
711
|
+
if (Array.isArray(this.group)) {
|
|
712
|
+
data['Group'] = [];
|
|
713
|
+
for (var _i = 0, _a = this.group; _i < _a.length; _i++) {
|
|
714
|
+
var item = _a[_i];
|
|
715
|
+
data['Group'].push(item);
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
data['Name'] = this.name;
|
|
719
|
+
data['Order'] = this.order;
|
|
720
|
+
data['Collapsed'] = this.collapsed;
|
|
721
|
+
return data;
|
|
722
|
+
};
|
|
723
|
+
return DisplayAttribute;
|
|
724
|
+
}());
|
|
725
|
+
export { DisplayAttribute };
|
|
726
|
+
var MetaData = /** @class */ (function () {
|
|
727
|
+
function MetaData(data) {
|
|
728
|
+
if (data) {
|
|
729
|
+
for (var property in data) {
|
|
730
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
731
|
+
this[property] = data[property];
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
MetaData.prototype.init = function (_data) {
|
|
736
|
+
if (_data) {
|
|
737
|
+
this.name = _data['Name'];
|
|
738
|
+
this.macroName = _data['MacroName'];
|
|
739
|
+
this.group = _data['Group'];
|
|
740
|
+
this.frozen = _data['Frozen'];
|
|
741
|
+
}
|
|
742
|
+
};
|
|
743
|
+
MetaData.fromJS = function (data) {
|
|
744
|
+
data = typeof data === 'object' ? data : {};
|
|
745
|
+
var result = new MetaData();
|
|
746
|
+
result.init(data);
|
|
747
|
+
return result;
|
|
748
|
+
};
|
|
749
|
+
MetaData.prototype.toJSON = function (data) {
|
|
750
|
+
data = typeof data === 'object' ? data : {};
|
|
751
|
+
data['Name'] = this.name;
|
|
752
|
+
data['MacroName'] = this.macroName;
|
|
753
|
+
data['Group'] = this.group;
|
|
754
|
+
data['Frozen'] = this.frozen;
|
|
755
|
+
return data;
|
|
756
|
+
};
|
|
757
|
+
return MetaData;
|
|
758
|
+
}());
|
|
759
|
+
export { MetaData };
|
|
760
|
+
var ExternalParameter = /** @class */ (function () {
|
|
761
|
+
function ExternalParameter(data) {
|
|
762
|
+
if (data) {
|
|
763
|
+
for (var property in data) {
|
|
764
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
765
|
+
this[property] = data[property];
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
ExternalParameter.prototype.init = function (_data) {
|
|
770
|
+
if (_data) {
|
|
771
|
+
this.name = _data['Name'];
|
|
772
|
+
}
|
|
773
|
+
};
|
|
774
|
+
ExternalParameter.fromJS = function (data) {
|
|
775
|
+
data = typeof data === 'object' ? data : {};
|
|
776
|
+
var result = new ExternalParameter();
|
|
777
|
+
result.init(data);
|
|
778
|
+
return result;
|
|
779
|
+
};
|
|
780
|
+
ExternalParameter.prototype.toJSON = function (data) {
|
|
781
|
+
data = typeof data === 'object' ? data : {};
|
|
782
|
+
data['Name'] = this.name;
|
|
783
|
+
return data;
|
|
784
|
+
};
|
|
785
|
+
return ExternalParameter;
|
|
786
|
+
}());
|
|
787
|
+
export { ExternalParameter };
|
|
788
|
+
var ButtonControl = /** @class */ (function (_super) {
|
|
789
|
+
__extends(ButtonControl, _super);
|
|
790
|
+
function ButtonControl(data) {
|
|
791
|
+
var _this = _super.call(this, data) || this;
|
|
792
|
+
_this._discriminator = 'ButtonControl';
|
|
793
|
+
return _this;
|
|
794
|
+
}
|
|
795
|
+
ButtonControl.prototype.init = function (_data) {
|
|
796
|
+
_super.prototype.init.call(this, _data);
|
|
797
|
+
if (_data) {
|
|
798
|
+
this.invokeMethod = _data['InvokeMethod'];
|
|
799
|
+
}
|
|
800
|
+
};
|
|
801
|
+
ButtonControl.fromJS = function (data) {
|
|
802
|
+
data = typeof data === 'object' ? data : {};
|
|
803
|
+
var result = new ButtonControl();
|
|
804
|
+
result.init(data);
|
|
805
|
+
return result;
|
|
806
|
+
};
|
|
807
|
+
ButtonControl.prototype.toJSON = function (data) {
|
|
808
|
+
data = typeof data === 'object' ? data : {};
|
|
809
|
+
data['InvokeMethod'] = this.invokeMethod;
|
|
810
|
+
_super.prototype.toJSON.call(this, data);
|
|
811
|
+
return data;
|
|
812
|
+
};
|
|
813
|
+
return ButtonControl;
|
|
814
|
+
}(Setting));
|
|
815
|
+
export { ButtonControl };
|
|
816
|
+
var ButtonsControl = /** @class */ (function (_super) {
|
|
817
|
+
__extends(ButtonsControl, _super);
|
|
818
|
+
function ButtonsControl(data) {
|
|
819
|
+
var _this = _super.call(this, data) || this;
|
|
820
|
+
_this._discriminator = 'ButtonsControl';
|
|
821
|
+
return _this;
|
|
822
|
+
}
|
|
823
|
+
ButtonsControl.prototype.init = function (_data) {
|
|
824
|
+
_super.prototype.init.call(this, _data);
|
|
825
|
+
if (_data) {
|
|
826
|
+
if (Array.isArray(_data['AvailableValues'])) {
|
|
827
|
+
this.availableValues = [];
|
|
828
|
+
for (var _i = 0, _a = _data['AvailableValues']; _i < _a.length; _i++) {
|
|
829
|
+
var item = _a[_i];
|
|
830
|
+
this.availableValues.push(AvailableValue.fromJS(item));
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
this.selectedIndex = _data['SelectedIndex'];
|
|
834
|
+
this.invokeMethod = _data['InvokeMethod'];
|
|
835
|
+
}
|
|
836
|
+
};
|
|
837
|
+
ButtonsControl.fromJS = function (data) {
|
|
838
|
+
data = typeof data === 'object' ? data : {};
|
|
839
|
+
var result = new ButtonsControl();
|
|
840
|
+
result.init(data);
|
|
841
|
+
return result;
|
|
842
|
+
};
|
|
843
|
+
ButtonsControl.prototype.toJSON = function (data) {
|
|
844
|
+
data = typeof data === 'object' ? data : {};
|
|
845
|
+
if (Array.isArray(this.availableValues)) {
|
|
846
|
+
data['AvailableValues'] = [];
|
|
847
|
+
for (var _i = 0, _a = this.availableValues; _i < _a.length; _i++) {
|
|
848
|
+
var item = _a[_i];
|
|
849
|
+
data['AvailableValues'].push(item.toJSON());
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
data['SelectedIndex'] = this.selectedIndex;
|
|
853
|
+
data['InvokeMethod'] = this.invokeMethod;
|
|
854
|
+
_super.prototype.toJSON.call(this, data);
|
|
855
|
+
return data;
|
|
856
|
+
};
|
|
857
|
+
return ButtonsControl;
|
|
858
|
+
}(Setting));
|
|
859
|
+
export { ButtonsControl };
|
|
860
|
+
var AvailableValue = /** @class */ (function () {
|
|
861
|
+
function AvailableValue(data) {
|
|
862
|
+
if (data) {
|
|
863
|
+
for (var property in data) {
|
|
864
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
865
|
+
this[property] = data[property];
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
AvailableValue.prototype.init = function (_data) {
|
|
870
|
+
if (_data) {
|
|
871
|
+
this.name = _data['Name'];
|
|
872
|
+
this.description = _data['Description'];
|
|
873
|
+
}
|
|
874
|
+
};
|
|
875
|
+
AvailableValue.fromJS = function (data) {
|
|
876
|
+
data = typeof data === 'object' ? data : {};
|
|
877
|
+
var result = new AvailableValue();
|
|
878
|
+
result.init(data);
|
|
879
|
+
return result;
|
|
880
|
+
};
|
|
881
|
+
AvailableValue.prototype.toJSON = function (data) {
|
|
882
|
+
data = typeof data === 'object' ? data : {};
|
|
883
|
+
data['Name'] = this.name;
|
|
884
|
+
data['Description'] = this.description;
|
|
885
|
+
return data;
|
|
886
|
+
};
|
|
887
|
+
return AvailableValue;
|
|
888
|
+
}());
|
|
889
|
+
export { AvailableValue };
|
|
890
|
+
var CheckBoxControl = /** @class */ (function (_super) {
|
|
891
|
+
__extends(CheckBoxControl, _super);
|
|
892
|
+
function CheckBoxControl(data) {
|
|
893
|
+
var _this = _super.call(this, data) || this;
|
|
894
|
+
_this._discriminator = 'CheckBoxControl';
|
|
895
|
+
return _this;
|
|
896
|
+
}
|
|
897
|
+
CheckBoxControl.prototype.init = function (_data) {
|
|
898
|
+
_super.prototype.init.call(this, _data);
|
|
899
|
+
if (_data) {
|
|
900
|
+
this.boolValue = _data['BoolValue'];
|
|
901
|
+
}
|
|
902
|
+
};
|
|
903
|
+
CheckBoxControl.fromJS = function (data) {
|
|
904
|
+
data = typeof data === 'object' ? data : {};
|
|
905
|
+
var result = new CheckBoxControl();
|
|
906
|
+
result.init(data);
|
|
907
|
+
return result;
|
|
908
|
+
};
|
|
909
|
+
CheckBoxControl.prototype.toJSON = function (data) {
|
|
910
|
+
data = typeof data === 'object' ? data : {};
|
|
911
|
+
data['BoolValue'] = this.boolValue;
|
|
912
|
+
_super.prototype.toJSON.call(this, data);
|
|
913
|
+
return data;
|
|
914
|
+
};
|
|
915
|
+
return CheckBoxControl;
|
|
916
|
+
}(Setting));
|
|
917
|
+
export { CheckBoxControl };
|
|
918
|
+
var DataGridReferenceControl = /** @class */ (function (_super) {
|
|
919
|
+
__extends(DataGridReferenceControl, _super);
|
|
920
|
+
function DataGridReferenceControl(data) {
|
|
921
|
+
var _this = _super.call(this, data) || this;
|
|
922
|
+
_this._discriminator = 'DataGridReferenceControl';
|
|
923
|
+
return _this;
|
|
924
|
+
}
|
|
925
|
+
DataGridReferenceControl.prototype.init = function (_data) {
|
|
926
|
+
_super.prototype.init.call(this, _data);
|
|
927
|
+
};
|
|
928
|
+
DataGridReferenceControl.fromJS = function (data) {
|
|
929
|
+
data = typeof data === 'object' ? data : {};
|
|
930
|
+
var result = new DataGridReferenceControl();
|
|
931
|
+
result.init(data);
|
|
932
|
+
return result;
|
|
933
|
+
};
|
|
934
|
+
DataGridReferenceControl.prototype.toJSON = function (data) {
|
|
935
|
+
data = typeof data === 'object' ? data : {};
|
|
936
|
+
_super.prototype.toJSON.call(this, data);
|
|
937
|
+
return data;
|
|
938
|
+
};
|
|
939
|
+
return DataGridReferenceControl;
|
|
940
|
+
}(Setting));
|
|
941
|
+
export { DataGridReferenceControl };
|
|
942
|
+
var DataGridControl = /** @class */ (function (_super) {
|
|
943
|
+
__extends(DataGridControl, _super);
|
|
944
|
+
function DataGridControl(data) {
|
|
945
|
+
var _this = _super.call(this, data) || this;
|
|
946
|
+
_this._discriminator = 'DataGridControl';
|
|
947
|
+
return _this;
|
|
948
|
+
}
|
|
949
|
+
DataGridControl.prototype.init = function (_data) {
|
|
950
|
+
_super.prototype.init.call(this, _data);
|
|
951
|
+
if (_data) {
|
|
952
|
+
if (Array.isArray(_data['Items'])) {
|
|
953
|
+
this.items = [];
|
|
954
|
+
for (var _i = 0, _a = _data['Items']; _i < _a.length; _i++) {
|
|
955
|
+
var item = _a[_i];
|
|
956
|
+
this.items.push(item);
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
this.fixedSize = _data['FixedSize'];
|
|
960
|
+
}
|
|
961
|
+
};
|
|
962
|
+
DataGridControl.fromJS = function (data) {
|
|
963
|
+
data = typeof data === 'object' ? data : {};
|
|
964
|
+
var result = new DataGridControl();
|
|
965
|
+
result.init(data);
|
|
966
|
+
return result;
|
|
967
|
+
};
|
|
968
|
+
DataGridControl.prototype.toJSON = function (data) {
|
|
969
|
+
data = typeof data === 'object' ? data : {};
|
|
970
|
+
if (Array.isArray(this.items)) {
|
|
971
|
+
data['Items'] = [];
|
|
972
|
+
for (var _i = 0, _a = this.items; _i < _a.length; _i++) {
|
|
973
|
+
var item = _a[_i];
|
|
974
|
+
data['Items'].push(item);
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
data['FixedSize'] = this.fixedSize;
|
|
978
|
+
_super.prototype.toJSON.call(this, data);
|
|
979
|
+
return data;
|
|
980
|
+
};
|
|
981
|
+
return DataGridControl;
|
|
982
|
+
}(Setting));
|
|
983
|
+
export { DataGridControl };
|
|
984
|
+
var TextBoxControl = /** @class */ (function (_super) {
|
|
985
|
+
__extends(TextBoxControl, _super);
|
|
986
|
+
function TextBoxControl(data) {
|
|
987
|
+
var _this = _super.call(this, data) || this;
|
|
988
|
+
_this._discriminator = 'TextBoxControl';
|
|
989
|
+
return _this;
|
|
990
|
+
}
|
|
991
|
+
TextBoxControl.prototype.init = function (_data) {
|
|
992
|
+
_super.prototype.init.call(this, _data);
|
|
993
|
+
if (_data) {
|
|
994
|
+
this.stringValue = _data['StringValue'];
|
|
995
|
+
}
|
|
996
|
+
};
|
|
997
|
+
TextBoxControl.fromJS = function (data) {
|
|
998
|
+
data = typeof data === 'object' ? data : {};
|
|
999
|
+
if (data['ControlType'] === 'ComboBoxControl') {
|
|
1000
|
+
var result_13 = new ComboBoxControl();
|
|
1001
|
+
result_13.init(data);
|
|
1002
|
+
return result_13;
|
|
1003
|
+
}
|
|
1004
|
+
var result = new TextBoxControl();
|
|
1005
|
+
result.init(data);
|
|
1006
|
+
return result;
|
|
1007
|
+
};
|
|
1008
|
+
TextBoxControl.prototype.toJSON = function (data) {
|
|
1009
|
+
data = typeof data === 'object' ? data : {};
|
|
1010
|
+
data['StringValue'] = this.stringValue;
|
|
1011
|
+
_super.prototype.toJSON.call(this, data);
|
|
1012
|
+
return data;
|
|
1013
|
+
};
|
|
1014
|
+
return TextBoxControl;
|
|
1015
|
+
}(Setting));
|
|
1016
|
+
export { TextBoxControl };
|
|
1017
|
+
var ComboBoxControl = /** @class */ (function (_super) {
|
|
1018
|
+
__extends(ComboBoxControl, _super);
|
|
1019
|
+
function ComboBoxControl(data) {
|
|
1020
|
+
var _this = _super.call(this, data) || this;
|
|
1021
|
+
_this._discriminator = 'ComboBoxControl';
|
|
1022
|
+
return _this;
|
|
1023
|
+
}
|
|
1024
|
+
ComboBoxControl.prototype.init = function (_data) {
|
|
1025
|
+
_super.prototype.init.call(this, _data);
|
|
1026
|
+
if (_data) {
|
|
1027
|
+
if (Array.isArray(_data['SuggestedValues'])) {
|
|
1028
|
+
this.suggestedValues = [];
|
|
1029
|
+
for (var _i = 0, _a = _data['SuggestedValues']; _i < _a.length; _i++) {
|
|
1030
|
+
var item = _a[_i];
|
|
1031
|
+
this.suggestedValues.push(item);
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
};
|
|
1036
|
+
ComboBoxControl.fromJS = function (data) {
|
|
1037
|
+
data = typeof data === 'object' ? data : {};
|
|
1038
|
+
var result = new ComboBoxControl();
|
|
1039
|
+
result.init(data);
|
|
1040
|
+
return result;
|
|
1041
|
+
};
|
|
1042
|
+
ComboBoxControl.prototype.toJSON = function (data) {
|
|
1043
|
+
data = typeof data === 'object' ? data : {};
|
|
1044
|
+
if (Array.isArray(this.suggestedValues)) {
|
|
1045
|
+
data['SuggestedValues'] = [];
|
|
1046
|
+
for (var _i = 0, _a = this.suggestedValues; _i < _a.length; _i++) {
|
|
1047
|
+
var item = _a[_i];
|
|
1048
|
+
data['SuggestedValues'].push(item);
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
_super.prototype.toJSON.call(this, data);
|
|
1052
|
+
return data;
|
|
1053
|
+
};
|
|
1054
|
+
return ComboBoxControl;
|
|
1055
|
+
}(TextBoxControl));
|
|
1056
|
+
export { ComboBoxControl };
|
|
1057
|
+
var FilePathControl = /** @class */ (function (_super) {
|
|
1058
|
+
__extends(FilePathControl, _super);
|
|
1059
|
+
function FilePathControl(data) {
|
|
1060
|
+
var _this = _super.call(this, data) || this;
|
|
1061
|
+
_this._discriminator = 'FilePathControl';
|
|
1062
|
+
return _this;
|
|
1063
|
+
}
|
|
1064
|
+
FilePathControl.prototype.init = function (_data) {
|
|
1065
|
+
_super.prototype.init.call(this, _data);
|
|
1066
|
+
if (_data) {
|
|
1067
|
+
this.stringValue = _data['StringValue'];
|
|
1068
|
+
this.fileExtension = _data['FileExtension'];
|
|
1069
|
+
}
|
|
1070
|
+
};
|
|
1071
|
+
FilePathControl.fromJS = function (data) {
|
|
1072
|
+
data = typeof data === 'object' ? data : {};
|
|
1073
|
+
var result = new FilePathControl();
|
|
1074
|
+
result.init(data);
|
|
1075
|
+
return result;
|
|
1076
|
+
};
|
|
1077
|
+
FilePathControl.prototype.toJSON = function (data) {
|
|
1078
|
+
data = typeof data === 'object' ? data : {};
|
|
1079
|
+
data['StringValue'] = this.stringValue;
|
|
1080
|
+
data['FileExtension'] = this.fileExtension;
|
|
1081
|
+
_super.prototype.toJSON.call(this, data);
|
|
1082
|
+
return data;
|
|
1083
|
+
};
|
|
1084
|
+
return FilePathControl;
|
|
1085
|
+
}(Setting));
|
|
1086
|
+
export { FilePathControl };
|
|
1087
|
+
var EnabledControl = /** @class */ (function (_super) {
|
|
1088
|
+
__extends(EnabledControl, _super);
|
|
1089
|
+
function EnabledControl(data) {
|
|
1090
|
+
var _this = _super.call(this, data) || this;
|
|
1091
|
+
_this._discriminator = 'EnabledControl';
|
|
1092
|
+
return _this;
|
|
1093
|
+
}
|
|
1094
|
+
EnabledControl.prototype.init = function (_data) {
|
|
1095
|
+
_super.prototype.init.call(this, _data);
|
|
1096
|
+
if (_data) {
|
|
1097
|
+
this.isEnabled = _data['IsEnabled'];
|
|
1098
|
+
this.value = _data['Value'] ? Setting.fromJS(_data['Value']) : undefined;
|
|
1099
|
+
}
|
|
1100
|
+
};
|
|
1101
|
+
EnabledControl.fromJS = function (data) {
|
|
1102
|
+
data = typeof data === 'object' ? data : {};
|
|
1103
|
+
var result = new EnabledControl();
|
|
1104
|
+
result.init(data);
|
|
1105
|
+
return result;
|
|
1106
|
+
};
|
|
1107
|
+
EnabledControl.prototype.toJSON = function (data) {
|
|
1108
|
+
data = typeof data === 'object' ? data : {};
|
|
1109
|
+
data['IsEnabled'] = this.isEnabled;
|
|
1110
|
+
data['Value'] = this.value ? this.value.toJSON() : undefined;
|
|
1111
|
+
_super.prototype.toJSON.call(this, data);
|
|
1112
|
+
return data;
|
|
1113
|
+
};
|
|
1114
|
+
return EnabledControl;
|
|
1115
|
+
}(Setting));
|
|
1116
|
+
export { EnabledControl };
|
|
1117
|
+
var DropdownControl = /** @class */ (function (_super) {
|
|
1118
|
+
__extends(DropdownControl, _super);
|
|
1119
|
+
function DropdownControl(data) {
|
|
1120
|
+
var _this = _super.call(this, data) || this;
|
|
1121
|
+
_this._discriminator = 'DropdownControl';
|
|
1122
|
+
return _this;
|
|
1123
|
+
}
|
|
1124
|
+
DropdownControl.prototype.init = function (_data) {
|
|
1125
|
+
_super.prototype.init.call(this, _data);
|
|
1126
|
+
if (_data) {
|
|
1127
|
+
if (Array.isArray(_data['AvailableValues'])) {
|
|
1128
|
+
this.availableValues = [];
|
|
1129
|
+
for (var _i = 0, _a = _data['AvailableValues']; _i < _a.length; _i++) {
|
|
1130
|
+
var item = _a[_i];
|
|
1131
|
+
this.availableValues.push(AvailableValue.fromJS(item));
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
this.selectedIndex = _data['SelectedIndex'];
|
|
1135
|
+
}
|
|
1136
|
+
};
|
|
1137
|
+
DropdownControl.fromJS = function (data) {
|
|
1138
|
+
data = typeof data === 'object' ? data : {};
|
|
1139
|
+
var result = new DropdownControl();
|
|
1140
|
+
result.init(data);
|
|
1141
|
+
return result;
|
|
1142
|
+
};
|
|
1143
|
+
DropdownControl.prototype.toJSON = function (data) {
|
|
1144
|
+
data = typeof data === 'object' ? data : {};
|
|
1145
|
+
if (Array.isArray(this.availableValues)) {
|
|
1146
|
+
data['AvailableValues'] = [];
|
|
1147
|
+
for (var _i = 0, _a = this.availableValues; _i < _a.length; _i++) {
|
|
1148
|
+
var item = _a[_i];
|
|
1149
|
+
data['AvailableValues'].push(item.toJSON());
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
data['SelectedIndex'] = this.selectedIndex;
|
|
1153
|
+
_super.prototype.toJSON.call(this, data);
|
|
1154
|
+
return data;
|
|
1155
|
+
};
|
|
1156
|
+
return DropdownControl;
|
|
1157
|
+
}(Setting));
|
|
1158
|
+
export { DropdownControl };
|
|
1159
|
+
var MultiSelectControl = /** @class */ (function (_super) {
|
|
1160
|
+
__extends(MultiSelectControl, _super);
|
|
1161
|
+
function MultiSelectControl(data) {
|
|
1162
|
+
var _this = _super.call(this, data) || this;
|
|
1163
|
+
_this._discriminator = 'MultiSelectControl';
|
|
1164
|
+
return _this;
|
|
1165
|
+
}
|
|
1166
|
+
MultiSelectControl.prototype.init = function (_data) {
|
|
1167
|
+
_super.prototype.init.call(this, _data);
|
|
1168
|
+
if (_data) {
|
|
1169
|
+
if (Array.isArray(_data['AvailableValues'])) {
|
|
1170
|
+
this.availableValues = [];
|
|
1171
|
+
for (var _i = 0, _a = _data['AvailableValues']; _i < _a.length; _i++) {
|
|
1172
|
+
var item = _a[_i];
|
|
1173
|
+
this.availableValues.push(AvailableValue.fromJS(item));
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
if (Array.isArray(_data['SelectedIndex'])) {
|
|
1177
|
+
this.selectedIndex = [];
|
|
1178
|
+
for (var _b = 0, _c = _data['SelectedIndex']; _b < _c.length; _b++) {
|
|
1179
|
+
var item = _c[_b];
|
|
1180
|
+
this.selectedIndex.push(item);
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
};
|
|
1185
|
+
MultiSelectControl.fromJS = function (data) {
|
|
1186
|
+
data = typeof data === 'object' ? data : {};
|
|
1187
|
+
var result = new MultiSelectControl();
|
|
1188
|
+
result.init(data);
|
|
1189
|
+
return result;
|
|
1190
|
+
};
|
|
1191
|
+
MultiSelectControl.prototype.toJSON = function (data) {
|
|
1192
|
+
data = typeof data === 'object' ? data : {};
|
|
1193
|
+
if (Array.isArray(this.availableValues)) {
|
|
1194
|
+
data['AvailableValues'] = [];
|
|
1195
|
+
for (var _i = 0, _a = this.availableValues; _i < _a.length; _i++) {
|
|
1196
|
+
var item = _a[_i];
|
|
1197
|
+
data['AvailableValues'].push(item.toJSON());
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
if (Array.isArray(this.selectedIndex)) {
|
|
1201
|
+
data['SelectedIndex'] = [];
|
|
1202
|
+
for (var _b = 0, _c = this.selectedIndex; _b < _c.length; _b++) {
|
|
1203
|
+
var item = _c[_b];
|
|
1204
|
+
data['SelectedIndex'].push(item);
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
_super.prototype.toJSON.call(this, data);
|
|
1208
|
+
return data;
|
|
1209
|
+
};
|
|
1210
|
+
return MultiSelectControl;
|
|
1211
|
+
}(Setting));
|
|
1212
|
+
export { MultiSelectControl };
|
|
1213
|
+
var PasswordControl = /** @class */ (function (_super) {
|
|
1214
|
+
__extends(PasswordControl, _super);
|
|
1215
|
+
function PasswordControl(data) {
|
|
1216
|
+
var _this = _super.call(this, data) || this;
|
|
1217
|
+
_this._discriminator = 'PasswordControl';
|
|
1218
|
+
return _this;
|
|
1219
|
+
}
|
|
1220
|
+
PasswordControl.prototype.init = function (_data) {
|
|
1221
|
+
_super.prototype.init.call(this, _data);
|
|
1222
|
+
if (_data) {
|
|
1223
|
+
this.password = _data['Password'];
|
|
1224
|
+
}
|
|
1225
|
+
};
|
|
1226
|
+
PasswordControl.fromJS = function (data) {
|
|
1227
|
+
data = typeof data === 'object' ? data : {};
|
|
1228
|
+
var result = new PasswordControl();
|
|
1229
|
+
result.init(data);
|
|
1230
|
+
return result;
|
|
1231
|
+
};
|
|
1232
|
+
PasswordControl.prototype.toJSON = function (data) {
|
|
1233
|
+
data = typeof data === 'object' ? data : {};
|
|
1234
|
+
data['Password'] = this.password;
|
|
1235
|
+
_super.prototype.toJSON.call(this, data);
|
|
1236
|
+
return data;
|
|
1237
|
+
};
|
|
1238
|
+
return PasswordControl;
|
|
1239
|
+
}(Setting));
|
|
1240
|
+
export { PasswordControl };
|
|
1241
|
+
var ComponentSettings = /** @class */ (function (_super) {
|
|
1242
|
+
__extends(ComponentSettings, _super);
|
|
1243
|
+
function ComponentSettings(data) {
|
|
1244
|
+
var _this = _super.call(this, data) || this;
|
|
1245
|
+
_this._discriminator = 'ComponentSettings';
|
|
1246
|
+
return _this;
|
|
1247
|
+
}
|
|
1248
|
+
ComponentSettings.prototype.init = function (_data) {
|
|
1249
|
+
_super.prototype.init.call(this, _data);
|
|
1250
|
+
if (_data) {
|
|
1251
|
+
if (Array.isArray(_data['Settings'])) {
|
|
1252
|
+
this.settings = [];
|
|
1253
|
+
for (var _i = 0, _a = _data['Settings']; _i < _a.length; _i++) {
|
|
1254
|
+
var item = _a[_i];
|
|
1255
|
+
this.settings.push(Setting.fromJS(item));
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
};
|
|
1260
|
+
ComponentSettings.fromJS = function (data) {
|
|
1261
|
+
data = typeof data === 'object' ? data : {};
|
|
1262
|
+
var result = new ComponentSettings();
|
|
1263
|
+
result.init(data);
|
|
1264
|
+
return result;
|
|
1265
|
+
};
|
|
1266
|
+
ComponentSettings.prototype.toJSON = function (data) {
|
|
1267
|
+
data = typeof data === 'object' ? data : {};
|
|
1268
|
+
if (Array.isArray(this.settings)) {
|
|
1269
|
+
data['Settings'] = [];
|
|
1270
|
+
for (var _i = 0, _a = this.settings; _i < _a.length; _i++) {
|
|
1271
|
+
var item = _a[_i];
|
|
1272
|
+
data['Settings'].push(item.toJSON());
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
_super.prototype.toJSON.call(this, data);
|
|
1276
|
+
return data;
|
|
1277
|
+
};
|
|
1278
|
+
return ComponentSettings;
|
|
1279
|
+
}(ComponentSettingsBase));
|
|
1280
|
+
export { ComponentSettings };
|
|
1281
|
+
var ListItemType = /** @class */ (function () {
|
|
1282
|
+
function ListItemType(data) {
|
|
1283
|
+
if (data) {
|
|
1284
|
+
for (var property in data) {
|
|
1285
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
1286
|
+
this[property] = data[property];
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
ListItemType.prototype.init = function (_data) {
|
|
1291
|
+
if (_data) {
|
|
1292
|
+
this.typeName = _data['TypeName'];
|
|
1293
|
+
this.typeDisplay = _data['TypeDisplay'] ? DisplayAttribute.fromJS(_data['TypeDisplay']) : undefined;
|
|
1294
|
+
}
|
|
1295
|
+
};
|
|
1296
|
+
ListItemType.fromJS = function (data) {
|
|
1297
|
+
data = typeof data === 'object' ? data : {};
|
|
1298
|
+
var result = new ListItemType();
|
|
1299
|
+
result.init(data);
|
|
1300
|
+
return result;
|
|
1301
|
+
};
|
|
1302
|
+
ListItemType.prototype.toJSON = function (data) {
|
|
1303
|
+
data = typeof data === 'object' ? data : {};
|
|
1304
|
+
data['TypeName'] = this.typeName;
|
|
1305
|
+
data['TypeDisplay'] = this.typeDisplay ? this.typeDisplay.toJSON() : undefined;
|
|
1306
|
+
return data;
|
|
1307
|
+
};
|
|
1308
|
+
return ListItemType;
|
|
1309
|
+
}());
|
|
1310
|
+
export { ListItemType };
|
|
1311
|
+
var ProfileGroup = /** @class */ (function () {
|
|
1312
|
+
function ProfileGroup(data) {
|
|
1313
|
+
if (data) {
|
|
1314
|
+
for (var property in data) {
|
|
1315
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
1316
|
+
this[property] = data[property];
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
ProfileGroup.prototype.init = function (_data) {
|
|
1321
|
+
if (_data) {
|
|
1322
|
+
if (Array.isArray(_data['Profiles'])) {
|
|
1323
|
+
this.profiles = [];
|
|
1324
|
+
for (var _i = 0, _a = _data['Profiles']; _i < _a.length; _i++) {
|
|
1325
|
+
var item = _a[_i];
|
|
1326
|
+
this.profiles.push(item);
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
this.currentProfile = _data['CurrentProfile'];
|
|
1330
|
+
this.groupName = _data['GroupName'];
|
|
1331
|
+
}
|
|
1332
|
+
};
|
|
1333
|
+
ProfileGroup.fromJS = function (data) {
|
|
1334
|
+
data = typeof data === 'object' ? data : {};
|
|
1335
|
+
var result = new ProfileGroup();
|
|
1336
|
+
result.init(data);
|
|
1337
|
+
return result;
|
|
1338
|
+
};
|
|
1339
|
+
ProfileGroup.prototype.toJSON = function (data) {
|
|
1340
|
+
data = typeof data === 'object' ? data : {};
|
|
1341
|
+
if (Array.isArray(this.profiles)) {
|
|
1342
|
+
data['Profiles'] = [];
|
|
1343
|
+
for (var _i = 0, _a = this.profiles; _i < _a.length; _i++) {
|
|
1344
|
+
var item = _a[_i];
|
|
1345
|
+
data['Profiles'].push(item);
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
data['CurrentProfile'] = this.currentProfile;
|
|
1349
|
+
data['GroupName'] = this.groupName;
|
|
1350
|
+
return data;
|
|
1351
|
+
};
|
|
1352
|
+
return ProfileGroup;
|
|
1353
|
+
}());
|
|
1354
|
+
export { ProfileGroup };
|
|
1355
|
+
var RepositoryPackageReference = /** @class */ (function () {
|
|
1356
|
+
function RepositoryPackageReference(data) {
|
|
1357
|
+
if (data) {
|
|
1358
|
+
for (var property in data) {
|
|
1359
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
1360
|
+
this[property] = data[property];
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
RepositoryPackageReference.prototype.init = function (_data) {
|
|
1365
|
+
if (_data) {
|
|
1366
|
+
this.name = _data['Name'];
|
|
1367
|
+
this.version = _data['Version'];
|
|
1368
|
+
this.repository = _data['Repository'];
|
|
1369
|
+
this.path = _data['Path'];
|
|
1370
|
+
}
|
|
1371
|
+
};
|
|
1372
|
+
RepositoryPackageReference.fromJS = function (data) {
|
|
1373
|
+
data = typeof data === 'object' ? data : {};
|
|
1374
|
+
var result = new RepositoryPackageReference();
|
|
1375
|
+
result.init(data);
|
|
1376
|
+
return result;
|
|
1377
|
+
};
|
|
1378
|
+
RepositoryPackageReference.prototype.toJSON = function (data) {
|
|
1379
|
+
data = typeof data === 'object' ? data : {};
|
|
1380
|
+
data['Name'] = this.name;
|
|
1381
|
+
data['Version'] = this.version;
|
|
1382
|
+
data['Repository'] = this.repository;
|
|
1383
|
+
data['Path'] = this.path;
|
|
1384
|
+
return data;
|
|
1385
|
+
};
|
|
1386
|
+
return RepositoryPackageReference;
|
|
1387
|
+
}());
|
|
1388
|
+
export { RepositoryPackageReference };
|
|
1389
|
+
var RepositoryPackageDefinition = /** @class */ (function (_super) {
|
|
1390
|
+
__extends(RepositoryPackageDefinition, _super);
|
|
1391
|
+
function RepositoryPackageDefinition(data) {
|
|
1392
|
+
return _super.call(this, data) || this;
|
|
1393
|
+
}
|
|
1394
|
+
RepositoryPackageDefinition.prototype.init = function (_data) {
|
|
1395
|
+
_super.prototype.init.call(this, _data);
|
|
1396
|
+
if (_data) {
|
|
1397
|
+
if (Array.isArray(_data['Tags'])) {
|
|
1398
|
+
this.tags = [];
|
|
1399
|
+
for (var _i = 0, _a = _data['Tags']; _i < _a.length; _i++) {
|
|
1400
|
+
var item = _a[_i];
|
|
1401
|
+
this.tags.push(item);
|
|
1402
|
+
}
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
};
|
|
1406
|
+
RepositoryPackageDefinition.fromJS = function (data) {
|
|
1407
|
+
data = typeof data === 'object' ? data : {};
|
|
1408
|
+
var result = new RepositoryPackageDefinition();
|
|
1409
|
+
result.init(data);
|
|
1410
|
+
return result;
|
|
1411
|
+
};
|
|
1412
|
+
RepositoryPackageDefinition.prototype.toJSON = function (data) {
|
|
1413
|
+
data = typeof data === 'object' ? data : {};
|
|
1414
|
+
if (Array.isArray(this.tags)) {
|
|
1415
|
+
data['Tags'] = [];
|
|
1416
|
+
for (var _i = 0, _a = this.tags; _i < _a.length; _i++) {
|
|
1417
|
+
var item = _a[_i];
|
|
1418
|
+
data['Tags'].push(item);
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
_super.prototype.toJSON.call(this, data);
|
|
1422
|
+
return data;
|
|
1423
|
+
};
|
|
1424
|
+
return RepositoryPackageDefinition;
|
|
1425
|
+
}(RepositoryPackageReference));
|
|
1426
|
+
export { RepositoryPackageDefinition };
|
|
1427
|
+
var RepositorySettingsPackageDefinition = /** @class */ (function (_super) {
|
|
1428
|
+
__extends(RepositorySettingsPackageDefinition, _super);
|
|
1429
|
+
function RepositorySettingsPackageDefinition(data) {
|
|
1430
|
+
return _super.call(this, data) || this;
|
|
1431
|
+
}
|
|
1432
|
+
RepositorySettingsPackageDefinition.prototype.init = function (_data) {
|
|
1433
|
+
_super.prototype.init.call(this, _data);
|
|
1434
|
+
};
|
|
1435
|
+
RepositorySettingsPackageDefinition.fromJS = function (data) {
|
|
1436
|
+
data = typeof data === 'object' ? data : {};
|
|
1437
|
+
var result = new RepositorySettingsPackageDefinition();
|
|
1438
|
+
result.init(data);
|
|
1439
|
+
return result;
|
|
1440
|
+
};
|
|
1441
|
+
RepositorySettingsPackageDefinition.prototype.toJSON = function (data) {
|
|
1442
|
+
data = typeof data === 'object' ? data : {};
|
|
1443
|
+
_super.prototype.toJSON.call(this, data);
|
|
1444
|
+
return data;
|
|
1445
|
+
};
|
|
1446
|
+
return RepositorySettingsPackageDefinition;
|
|
1447
|
+
}(RepositoryPackageDefinition));
|
|
1448
|
+
export { RepositorySettingsPackageDefinition };
|
|
1449
|
+
var SettingsTapPackage = /** @class */ (function () {
|
|
1450
|
+
function SettingsTapPackage(data) {
|
|
1451
|
+
if (data) {
|
|
1452
|
+
for (var property in data) {
|
|
1453
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
1454
|
+
this[property] = data[property];
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
SettingsTapPackage.prototype.init = function (_data) {
|
|
1459
|
+
if (_data) {
|
|
1460
|
+
this.name = _data['Name'];
|
|
1461
|
+
this.version = _data['Version'];
|
|
1462
|
+
this.tags = _data['Tags'];
|
|
1463
|
+
this.group = _data['Group'];
|
|
1464
|
+
this.owner = _data['Owner'];
|
|
1465
|
+
this.infoLink = _data['InfoLink'];
|
|
1466
|
+
this.description = _data['Description'];
|
|
1467
|
+
if (Array.isArray(_data['Files'])) {
|
|
1468
|
+
this.files = [];
|
|
1469
|
+
for (var _i = 0, _a = _data['Files']; _i < _a.length; _i++) {
|
|
1470
|
+
var item = _a[_i];
|
|
1471
|
+
this.files.push(item);
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
if (Array.isArray(_data['SettingsTypes'])) {
|
|
1475
|
+
this.settingsTypes = [];
|
|
1476
|
+
for (var _b = 0, _c = _data['SettingsTypes']; _b < _c.length; _b++) {
|
|
1477
|
+
var item = _c[_b];
|
|
1478
|
+
this.settingsTypes.push(item);
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
};
|
|
1483
|
+
SettingsTapPackage.fromJS = function (data) {
|
|
1484
|
+
data = typeof data === 'object' ? data : {};
|
|
1485
|
+
var result = new SettingsTapPackage();
|
|
1486
|
+
result.init(data);
|
|
1487
|
+
return result;
|
|
1488
|
+
};
|
|
1489
|
+
SettingsTapPackage.prototype.toJSON = function (data) {
|
|
1490
|
+
data = typeof data === 'object' ? data : {};
|
|
1491
|
+
data['Name'] = this.name;
|
|
1492
|
+
data['Version'] = this.version;
|
|
1493
|
+
data['Tags'] = this.tags;
|
|
1494
|
+
data['Group'] = this.group;
|
|
1495
|
+
data['Owner'] = this.owner;
|
|
1496
|
+
data['InfoLink'] = this.infoLink;
|
|
1497
|
+
data['Description'] = this.description;
|
|
1498
|
+
if (Array.isArray(this.files)) {
|
|
1499
|
+
data['Files'] = [];
|
|
1500
|
+
for (var _i = 0, _a = this.files; _i < _a.length; _i++) {
|
|
1501
|
+
var item = _a[_i];
|
|
1502
|
+
data['Files'].push(item);
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
if (Array.isArray(this.settingsTypes)) {
|
|
1506
|
+
data['SettingsTypes'] = [];
|
|
1507
|
+
for (var _b = 0, _c = this.settingsTypes; _b < _c.length; _b++) {
|
|
1508
|
+
var item = _c[_b];
|
|
1509
|
+
data['SettingsTypes'].push(item);
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
return data;
|
|
1513
|
+
};
|
|
1514
|
+
return SettingsTapPackage;
|
|
1515
|
+
}());
|
|
1516
|
+
export { SettingsTapPackage };
|
|
1517
|
+
var SessionEventArgs = /** @class */ (function () {
|
|
1518
|
+
function SessionEventArgs(data) {
|
|
1519
|
+
if (data) {
|
|
1520
|
+
for (var property in data) {
|
|
1521
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
1522
|
+
this[property] = data[property];
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
this._discriminator = 'SessionEventArgs';
|
|
1526
|
+
}
|
|
1527
|
+
SessionEventArgs.prototype.init = function (_data) {
|
|
1528
|
+
if (_data) {
|
|
1529
|
+
this.sessionId = _data['SessionId'];
|
|
1530
|
+
}
|
|
1531
|
+
};
|
|
1532
|
+
SessionEventArgs.fromJS = function (data) {
|
|
1533
|
+
data = typeof data === 'object' ? data : {};
|
|
1534
|
+
if (data['SessionEventType'] === 'SessionStartInitiated') {
|
|
1535
|
+
var result_14 = new SessionStartInitiated();
|
|
1536
|
+
result_14.init(data);
|
|
1537
|
+
return result_14;
|
|
1538
|
+
}
|
|
1539
|
+
if (data['SessionEventType'] === 'SessionStarted') {
|
|
1540
|
+
var result_15 = new SessionStarted();
|
|
1541
|
+
result_15.init(data);
|
|
1542
|
+
return result_15;
|
|
1543
|
+
}
|
|
1544
|
+
if (data['SessionEventType'] === 'SessionStartFailed') {
|
|
1545
|
+
var result_16 = new SessionStartFailed();
|
|
1546
|
+
result_16.init(data);
|
|
1547
|
+
return result_16;
|
|
1548
|
+
}
|
|
1549
|
+
if (data['SessionEventType'] === 'SessionShutdownInitiated') {
|
|
1550
|
+
var result_17 = new SessionShutdownInitiated();
|
|
1551
|
+
result_17.init(data);
|
|
1552
|
+
return result_17;
|
|
1553
|
+
}
|
|
1554
|
+
if (data['SessionEventType'] === 'SessionShutdown') {
|
|
1555
|
+
var result_18 = new SessionShutdown();
|
|
1556
|
+
result_18.init(data);
|
|
1557
|
+
return result_18;
|
|
1558
|
+
}
|
|
1559
|
+
if (data['SessionEventType'] === 'SessionShutdownFailed') {
|
|
1560
|
+
var result_19 = new SessionShutdownFailed();
|
|
1561
|
+
result_19.init(data);
|
|
1562
|
+
return result_19;
|
|
1563
|
+
}
|
|
1564
|
+
if (data['SessionEventType'] === 'SessionInactivityLimitHit') {
|
|
1565
|
+
var result_20 = new SessionInactivityLimitHit();
|
|
1566
|
+
result_20.init(data);
|
|
1567
|
+
return result_20;
|
|
1568
|
+
}
|
|
1569
|
+
var result = new SessionEventArgs();
|
|
1570
|
+
result.init(data);
|
|
1571
|
+
return result;
|
|
1572
|
+
};
|
|
1573
|
+
SessionEventArgs.prototype.toJSON = function (data) {
|
|
1574
|
+
data = typeof data === 'object' ? data : {};
|
|
1575
|
+
data['SessionEventType'] = this._discriminator;
|
|
1576
|
+
data['SessionId'] = this.sessionId;
|
|
1577
|
+
return data;
|
|
1578
|
+
};
|
|
1579
|
+
return SessionEventArgs;
|
|
1580
|
+
}());
|
|
1581
|
+
export { SessionEventArgs };
|
|
1582
|
+
var SessionStartInitiated = /** @class */ (function (_super) {
|
|
1583
|
+
__extends(SessionStartInitiated, _super);
|
|
1584
|
+
function SessionStartInitiated(data) {
|
|
1585
|
+
var _this = _super.call(this, data) || this;
|
|
1586
|
+
_this._discriminator = 'SessionStartInitiated';
|
|
1587
|
+
return _this;
|
|
1588
|
+
}
|
|
1589
|
+
SessionStartInitiated.prototype.init = function (_data) {
|
|
1590
|
+
_super.prototype.init.call(this, _data);
|
|
1591
|
+
};
|
|
1592
|
+
SessionStartInitiated.fromJS = function (data) {
|
|
1593
|
+
data = typeof data === 'object' ? data : {};
|
|
1594
|
+
var result = new SessionStartInitiated();
|
|
1595
|
+
result.init(data);
|
|
1596
|
+
return result;
|
|
1597
|
+
};
|
|
1598
|
+
SessionStartInitiated.prototype.toJSON = function (data) {
|
|
1599
|
+
data = typeof data === 'object' ? data : {};
|
|
1600
|
+
_super.prototype.toJSON.call(this, data);
|
|
1601
|
+
return data;
|
|
1602
|
+
};
|
|
1603
|
+
return SessionStartInitiated;
|
|
1604
|
+
}(SessionEventArgs));
|
|
1605
|
+
export { SessionStartInitiated };
|
|
1606
|
+
var SessionStarted = /** @class */ (function (_super) {
|
|
1607
|
+
__extends(SessionStarted, _super);
|
|
1608
|
+
function SessionStarted(data) {
|
|
1609
|
+
var _this = _super.call(this, data) || this;
|
|
1610
|
+
_this._discriminator = 'SessionStarted';
|
|
1611
|
+
return _this;
|
|
1612
|
+
}
|
|
1613
|
+
SessionStarted.prototype.init = function (_data) {
|
|
1614
|
+
_super.prototype.init.call(this, _data);
|
|
1615
|
+
if (_data) {
|
|
1616
|
+
this.session = _data['Session'] ? Session.fromJS(_data['Session']) : undefined;
|
|
1617
|
+
}
|
|
1618
|
+
};
|
|
1619
|
+
SessionStarted.fromJS = function (data) {
|
|
1620
|
+
data = typeof data === 'object' ? data : {};
|
|
1621
|
+
var result = new SessionStarted();
|
|
1622
|
+
result.init(data);
|
|
1623
|
+
return result;
|
|
1624
|
+
};
|
|
1625
|
+
SessionStarted.prototype.toJSON = function (data) {
|
|
1626
|
+
data = typeof data === 'object' ? data : {};
|
|
1627
|
+
data['Session'] = this.session ? this.session.toJSON() : undefined;
|
|
1628
|
+
_super.prototype.toJSON.call(this, data);
|
|
1629
|
+
return data;
|
|
1630
|
+
};
|
|
1631
|
+
return SessionStarted;
|
|
1632
|
+
}(SessionEventArgs));
|
|
1633
|
+
export { SessionStarted };
|
|
1634
|
+
var SessionStartFailed = /** @class */ (function (_super) {
|
|
1635
|
+
__extends(SessionStartFailed, _super);
|
|
1636
|
+
function SessionStartFailed(data) {
|
|
1637
|
+
var _this = _super.call(this, data) || this;
|
|
1638
|
+
_this._discriminator = 'SessionStartFailed';
|
|
1639
|
+
return _this;
|
|
1640
|
+
}
|
|
1641
|
+
SessionStartFailed.prototype.init = function (_data) {
|
|
1642
|
+
_super.prototype.init.call(this, _data);
|
|
1643
|
+
if (_data) {
|
|
1644
|
+
this.reason = _data['Reason'];
|
|
1645
|
+
}
|
|
1646
|
+
};
|
|
1647
|
+
SessionStartFailed.fromJS = function (data) {
|
|
1648
|
+
data = typeof data === 'object' ? data : {};
|
|
1649
|
+
var result = new SessionStartFailed();
|
|
1650
|
+
result.init(data);
|
|
1651
|
+
return result;
|
|
1652
|
+
};
|
|
1653
|
+
SessionStartFailed.prototype.toJSON = function (data) {
|
|
1654
|
+
data = typeof data === 'object' ? data : {};
|
|
1655
|
+
data['Reason'] = this.reason;
|
|
1656
|
+
_super.prototype.toJSON.call(this, data);
|
|
1657
|
+
return data;
|
|
1658
|
+
};
|
|
1659
|
+
return SessionStartFailed;
|
|
1660
|
+
}(SessionEventArgs));
|
|
1661
|
+
export { SessionStartFailed };
|
|
1662
|
+
var SessionShutdownInitiated = /** @class */ (function (_super) {
|
|
1663
|
+
__extends(SessionShutdownInitiated, _super);
|
|
1664
|
+
function SessionShutdownInitiated(data) {
|
|
1665
|
+
var _this = _super.call(this, data) || this;
|
|
1666
|
+
_this._discriminator = 'SessionShutdownInitiated';
|
|
1667
|
+
return _this;
|
|
1668
|
+
}
|
|
1669
|
+
SessionShutdownInitiated.prototype.init = function (_data) {
|
|
1670
|
+
_super.prototype.init.call(this, _data);
|
|
1671
|
+
};
|
|
1672
|
+
SessionShutdownInitiated.fromJS = function (data) {
|
|
1673
|
+
data = typeof data === 'object' ? data : {};
|
|
1674
|
+
var result = new SessionShutdownInitiated();
|
|
1675
|
+
result.init(data);
|
|
1676
|
+
return result;
|
|
1677
|
+
};
|
|
1678
|
+
SessionShutdownInitiated.prototype.toJSON = function (data) {
|
|
1679
|
+
data = typeof data === 'object' ? data : {};
|
|
1680
|
+
_super.prototype.toJSON.call(this, data);
|
|
1681
|
+
return data;
|
|
1682
|
+
};
|
|
1683
|
+
return SessionShutdownInitiated;
|
|
1684
|
+
}(SessionEventArgs));
|
|
1685
|
+
export { SessionShutdownInitiated };
|
|
1686
|
+
var SessionShutdown = /** @class */ (function (_super) {
|
|
1687
|
+
__extends(SessionShutdown, _super);
|
|
1688
|
+
function SessionShutdown(data) {
|
|
1689
|
+
var _this = _super.call(this, data) || this;
|
|
1690
|
+
_this._discriminator = 'SessionShutdown';
|
|
1691
|
+
return _this;
|
|
1692
|
+
}
|
|
1693
|
+
SessionShutdown.prototype.init = function (_data) {
|
|
1694
|
+
_super.prototype.init.call(this, _data);
|
|
1695
|
+
};
|
|
1696
|
+
SessionShutdown.fromJS = function (data) {
|
|
1697
|
+
data = typeof data === 'object' ? data : {};
|
|
1698
|
+
var result = new SessionShutdown();
|
|
1699
|
+
result.init(data);
|
|
1700
|
+
return result;
|
|
1701
|
+
};
|
|
1702
|
+
SessionShutdown.prototype.toJSON = function (data) {
|
|
1703
|
+
data = typeof data === 'object' ? data : {};
|
|
1704
|
+
_super.prototype.toJSON.call(this, data);
|
|
1705
|
+
return data;
|
|
1706
|
+
};
|
|
1707
|
+
return SessionShutdown;
|
|
1708
|
+
}(SessionEventArgs));
|
|
1709
|
+
export { SessionShutdown };
|
|
1710
|
+
var SessionShutdownFailed = /** @class */ (function (_super) {
|
|
1711
|
+
__extends(SessionShutdownFailed, _super);
|
|
1712
|
+
function SessionShutdownFailed(data) {
|
|
1713
|
+
var _this = _super.call(this, data) || this;
|
|
1714
|
+
_this._discriminator = 'SessionShutdownFailed';
|
|
1715
|
+
return _this;
|
|
1716
|
+
}
|
|
1717
|
+
SessionShutdownFailed.prototype.init = function (_data) {
|
|
1718
|
+
_super.prototype.init.call(this, _data);
|
|
1719
|
+
if (_data) {
|
|
1720
|
+
this.reason = _data['Reason'];
|
|
1721
|
+
}
|
|
1722
|
+
};
|
|
1723
|
+
SessionShutdownFailed.fromJS = function (data) {
|
|
1724
|
+
data = typeof data === 'object' ? data : {};
|
|
1725
|
+
var result = new SessionShutdownFailed();
|
|
1726
|
+
result.init(data);
|
|
1727
|
+
return result;
|
|
1728
|
+
};
|
|
1729
|
+
SessionShutdownFailed.prototype.toJSON = function (data) {
|
|
1730
|
+
data = typeof data === 'object' ? data : {};
|
|
1731
|
+
data['Reason'] = this.reason;
|
|
1732
|
+
_super.prototype.toJSON.call(this, data);
|
|
1733
|
+
return data;
|
|
1734
|
+
};
|
|
1735
|
+
return SessionShutdownFailed;
|
|
1736
|
+
}(SessionEventArgs));
|
|
1737
|
+
export { SessionShutdownFailed };
|
|
1738
|
+
var SessionInactivityLimitHit = /** @class */ (function (_super) {
|
|
1739
|
+
__extends(SessionInactivityLimitHit, _super);
|
|
1740
|
+
function SessionInactivityLimitHit(data) {
|
|
1741
|
+
var _this = _super.call(this, data) || this;
|
|
1742
|
+
_this._discriminator = 'SessionInactivityLimitHit';
|
|
1743
|
+
return _this;
|
|
1744
|
+
}
|
|
1745
|
+
SessionInactivityLimitHit.prototype.init = function (_data) {
|
|
1746
|
+
_super.prototype.init.call(this, _data);
|
|
1747
|
+
};
|
|
1748
|
+
SessionInactivityLimitHit.fromJS = function (data) {
|
|
1749
|
+
data = typeof data === 'object' ? data : {};
|
|
1750
|
+
var result = new SessionInactivityLimitHit();
|
|
1751
|
+
result.init(data);
|
|
1752
|
+
return result;
|
|
1753
|
+
};
|
|
1754
|
+
SessionInactivityLimitHit.prototype.toJSON = function (data) {
|
|
1755
|
+
data = typeof data === 'object' ? data : {};
|
|
1756
|
+
_super.prototype.toJSON.call(this, data);
|
|
1757
|
+
return data;
|
|
1758
|
+
};
|
|
1759
|
+
return SessionInactivityLimitHit;
|
|
1760
|
+
}(SessionEventArgs));
|
|
1761
|
+
export { SessionInactivityLimitHit };
|
|
1762
|
+
var ImageEventArgs = /** @class */ (function () {
|
|
1763
|
+
function ImageEventArgs(data) {
|
|
1764
|
+
if (data) {
|
|
1765
|
+
for (var property in data) {
|
|
1766
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
1767
|
+
this[property] = data[property];
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
this._discriminator = 'ImageEventArgs';
|
|
1771
|
+
}
|
|
1772
|
+
ImageEventArgs.prototype.init = function (_data) {
|
|
1773
|
+
if (_data) {
|
|
1774
|
+
this.imageId = _data['ImageId'];
|
|
1775
|
+
}
|
|
1776
|
+
};
|
|
1777
|
+
ImageEventArgs.fromJS = function (data) {
|
|
1778
|
+
data = typeof data === 'object' ? data : {};
|
|
1779
|
+
if (data['ImageEventType'] === 'ImageCreating') {
|
|
1780
|
+
var result_21 = new ImageCreating();
|
|
1781
|
+
result_21.init(data);
|
|
1782
|
+
return result_21;
|
|
1783
|
+
}
|
|
1784
|
+
if (data['ImageEventType'] === 'ImageCreated') {
|
|
1785
|
+
var result_22 = new ImageCreated();
|
|
1786
|
+
result_22.init(data);
|
|
1787
|
+
return result_22;
|
|
1788
|
+
}
|
|
1789
|
+
if (data['ImageEventType'] === 'ImageCreationFailed') {
|
|
1790
|
+
var result_23 = new ImageCreationFailed();
|
|
1791
|
+
result_23.init(data);
|
|
1792
|
+
return result_23;
|
|
1793
|
+
}
|
|
1794
|
+
var result = new ImageEventArgs();
|
|
1795
|
+
result.init(data);
|
|
1796
|
+
return result;
|
|
1797
|
+
};
|
|
1798
|
+
ImageEventArgs.prototype.toJSON = function (data) {
|
|
1799
|
+
data = typeof data === 'object' ? data : {};
|
|
1800
|
+
data['ImageEventType'] = this._discriminator;
|
|
1801
|
+
data['ImageId'] = this.imageId;
|
|
1802
|
+
return data;
|
|
1803
|
+
};
|
|
1804
|
+
return ImageEventArgs;
|
|
1805
|
+
}());
|
|
1806
|
+
export { ImageEventArgs };
|
|
1807
|
+
var ImageCreating = /** @class */ (function (_super) {
|
|
1808
|
+
__extends(ImageCreating, _super);
|
|
1809
|
+
function ImageCreating(data) {
|
|
1810
|
+
var _this = _super.call(this, data) || this;
|
|
1811
|
+
_this._discriminator = 'ImageCreating';
|
|
1812
|
+
return _this;
|
|
1813
|
+
}
|
|
1814
|
+
ImageCreating.prototype.init = function (_data) {
|
|
1815
|
+
_super.prototype.init.call(this, _data);
|
|
1816
|
+
};
|
|
1817
|
+
ImageCreating.fromJS = function (data) {
|
|
1818
|
+
data = typeof data === 'object' ? data : {};
|
|
1819
|
+
var result = new ImageCreating();
|
|
1820
|
+
result.init(data);
|
|
1821
|
+
return result;
|
|
1822
|
+
};
|
|
1823
|
+
ImageCreating.prototype.toJSON = function (data) {
|
|
1824
|
+
data = typeof data === 'object' ? data : {};
|
|
1825
|
+
_super.prototype.toJSON.call(this, data);
|
|
1826
|
+
return data;
|
|
1827
|
+
};
|
|
1828
|
+
return ImageCreating;
|
|
1829
|
+
}(ImageEventArgs));
|
|
1830
|
+
export { ImageCreating };
|
|
1831
|
+
var ImageCreated = /** @class */ (function (_super) {
|
|
1832
|
+
__extends(ImageCreated, _super);
|
|
1833
|
+
function ImageCreated(data) {
|
|
1834
|
+
var _this = _super.call(this, data) || this;
|
|
1835
|
+
_this._discriminator = 'ImageCreated';
|
|
1836
|
+
return _this;
|
|
1837
|
+
}
|
|
1838
|
+
ImageCreated.prototype.init = function (_data) {
|
|
1839
|
+
_super.prototype.init.call(this, _data);
|
|
1840
|
+
if (_data) {
|
|
1841
|
+
this.image = _data['Image'] ? Image.fromJS(_data['Image']) : undefined;
|
|
1842
|
+
}
|
|
1843
|
+
};
|
|
1844
|
+
ImageCreated.fromJS = function (data) {
|
|
1845
|
+
data = typeof data === 'object' ? data : {};
|
|
1846
|
+
var result = new ImageCreated();
|
|
1847
|
+
result.init(data);
|
|
1848
|
+
return result;
|
|
1849
|
+
};
|
|
1850
|
+
ImageCreated.prototype.toJSON = function (data) {
|
|
1851
|
+
data = typeof data === 'object' ? data : {};
|
|
1852
|
+
data['Image'] = this.image ? this.image.toJSON() : undefined;
|
|
1853
|
+
_super.prototype.toJSON.call(this, data);
|
|
1854
|
+
return data;
|
|
1855
|
+
};
|
|
1856
|
+
return ImageCreated;
|
|
1857
|
+
}(ImageEventArgs));
|
|
1858
|
+
export { ImageCreated };
|
|
1859
|
+
var ImageCreationFailed = /** @class */ (function (_super) {
|
|
1860
|
+
__extends(ImageCreationFailed, _super);
|
|
1861
|
+
function ImageCreationFailed(data) {
|
|
1862
|
+
var _this = _super.call(this, data) || this;
|
|
1863
|
+
_this._discriminator = 'ImageCreationFailed';
|
|
1864
|
+
return _this;
|
|
1865
|
+
}
|
|
1866
|
+
ImageCreationFailed.prototype.init = function (_data) {
|
|
1867
|
+
_super.prototype.init.call(this, _data);
|
|
1868
|
+
if (_data) {
|
|
1869
|
+
this.reason = _data['Reason'];
|
|
1870
|
+
}
|
|
1871
|
+
};
|
|
1872
|
+
ImageCreationFailed.fromJS = function (data) {
|
|
1873
|
+
data = typeof data === 'object' ? data : {};
|
|
1874
|
+
var result = new ImageCreationFailed();
|
|
1875
|
+
result.init(data);
|
|
1876
|
+
return result;
|
|
1877
|
+
};
|
|
1878
|
+
ImageCreationFailed.prototype.toJSON = function (data) {
|
|
1879
|
+
data = typeof data === 'object' ? data : {};
|
|
1880
|
+
data['Reason'] = this.reason;
|
|
1881
|
+
_super.prototype.toJSON.call(this, data);
|
|
1882
|
+
return data;
|
|
1883
|
+
};
|
|
1884
|
+
return ImageCreationFailed;
|
|
1885
|
+
}(ImageEventArgs));
|
|
1886
|
+
export { ImageCreationFailed };
|
|
1887
|
+
var ApiException = /** @class */ (function (_super) {
|
|
1888
|
+
__extends(ApiException, _super);
|
|
1889
|
+
function ApiException(message, status, response, headers, result) {
|
|
1890
|
+
var _this = _super.call(this) || this;
|
|
1891
|
+
_this.isApiException = true;
|
|
1892
|
+
_this.message = message;
|
|
1893
|
+
_this.status = status;
|
|
1894
|
+
_this.response = response;
|
|
1895
|
+
_this.headers = headers;
|
|
1896
|
+
_this.result = result;
|
|
1897
|
+
return _this;
|
|
1898
|
+
}
|
|
1899
|
+
ApiException.isApiException = function (obj) {
|
|
1900
|
+
return obj.isApiException === true;
|
|
1901
|
+
};
|
|
1902
|
+
return ApiException;
|
|
1903
|
+
}(Error));
|
|
1904
|
+
export { ApiException };
|
|
1905
|
+
var LogList = /** @class */ (function () {
|
|
1906
|
+
function LogList(data) {
|
|
1907
|
+
if (data) {
|
|
1908
|
+
for (var property in data) {
|
|
1909
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
1910
|
+
this[property] = data[property];
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
LogList.prototype.init = function (_data) {
|
|
1915
|
+
if (_data) {
|
|
1916
|
+
if (Array.isArray(_data['Logs'])) {
|
|
1917
|
+
this.logs = [];
|
|
1918
|
+
for (var _i = 0, _a = _data['Logs']; _i < _a.length; _i++) {
|
|
1919
|
+
var item = _a[_i];
|
|
1920
|
+
this.logs.push(LogEntry.fromJS(item));
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
this.offset = _data['Offset'];
|
|
1924
|
+
this.filteredCount = _data['FilteredCount'];
|
|
1925
|
+
if (_data['TotalCount']) {
|
|
1926
|
+
this.totalCount = {};
|
|
1927
|
+
for (var key in _data['TotalCount']) {
|
|
1928
|
+
if (Object.prototype.hasOwnProperty.call(_data['TotalCount'], key))
|
|
1929
|
+
this.totalCount[key] = _data['TotalCount'][key];
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
}
|
|
1933
|
+
};
|
|
1934
|
+
LogList.fromJS = function (data) {
|
|
1935
|
+
data = typeof data === 'object' ? data : {};
|
|
1936
|
+
var result = new LogList();
|
|
1937
|
+
result.init(data);
|
|
1938
|
+
return result;
|
|
1939
|
+
};
|
|
1940
|
+
LogList.prototype.toJSON = function (data) {
|
|
1941
|
+
data = typeof data === 'object' ? data : {};
|
|
1942
|
+
if (Array.isArray(this.logs)) {
|
|
1943
|
+
data['Logs'] = [];
|
|
1944
|
+
for (var _i = 0, _a = this.logs; _i < _a.length; _i++) {
|
|
1945
|
+
var item = _a[_i];
|
|
1946
|
+
data['Logs'].push(item.toJSON());
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
data['Offset'] = this.offset;
|
|
1950
|
+
data['FilteredCount'] = this.filteredCount;
|
|
1951
|
+
if (this.totalCount) {
|
|
1952
|
+
data['TotalCount'] = {};
|
|
1953
|
+
for (var key in this.totalCount) {
|
|
1954
|
+
if (Object.prototype.hasOwnProperty.call(this.totalCount, key))
|
|
1955
|
+
data['TotalCount'][key] = this.totalCount[key];
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
return data;
|
|
1959
|
+
};
|
|
1960
|
+
return LogList;
|
|
1961
|
+
}());
|
|
1962
|
+
export { LogList };
|
|
1963
|
+
var LogEntry = /** @class */ (function () {
|
|
1964
|
+
function LogEntry(data) {
|
|
1965
|
+
if (data) {
|
|
1966
|
+
for (var property in data) {
|
|
1967
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
1968
|
+
this[property] = data[property];
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
LogEntry.prototype.init = function (_data) {
|
|
1973
|
+
if (_data) {
|
|
1974
|
+
this.source = _data['Source'];
|
|
1975
|
+
this.timestamp = _data['Timestamp'];
|
|
1976
|
+
this.message = _data['Message'];
|
|
1977
|
+
this.level = _data['Level'];
|
|
1978
|
+
this.durationNS = _data['DurationNS'];
|
|
1979
|
+
}
|
|
1980
|
+
};
|
|
1981
|
+
LogEntry.fromJS = function (data) {
|
|
1982
|
+
data = typeof data === 'object' ? data : {};
|
|
1983
|
+
var result = new LogEntry();
|
|
1984
|
+
result.init(data);
|
|
1985
|
+
return result;
|
|
1986
|
+
};
|
|
1987
|
+
LogEntry.prototype.toJSON = function (data) {
|
|
1988
|
+
data = typeof data === 'object' ? data : {};
|
|
1989
|
+
data['Source'] = this.source;
|
|
1990
|
+
data['Timestamp'] = this.timestamp;
|
|
1991
|
+
data['Message'] = this.message;
|
|
1992
|
+
data['Level'] = this.level;
|
|
1993
|
+
data['DurationNS'] = this.durationNS;
|
|
1994
|
+
return data;
|
|
1995
|
+
};
|
|
1996
|
+
return LogEntry;
|
|
1997
|
+
}());
|
|
1998
|
+
export { LogEntry };
|
|
1999
|
+
var MissingLicenseResponse = /** @class */ (function () {
|
|
2000
|
+
function MissingLicenseResponse(data) {
|
|
2001
|
+
if (data) {
|
|
2002
|
+
for (var property in data) {
|
|
2003
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2004
|
+
this[property] = data[property];
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
MissingLicenseResponse.prototype.init = function (_data) {
|
|
2009
|
+
if (_data) {
|
|
2010
|
+
this.message = _data['Message'];
|
|
2011
|
+
}
|
|
2012
|
+
};
|
|
2013
|
+
MissingLicenseResponse.fromJS = function (data) {
|
|
2014
|
+
data = typeof data === 'object' ? data : {};
|
|
2015
|
+
var result = new MissingLicenseResponse();
|
|
2016
|
+
result.init(data);
|
|
2017
|
+
return result;
|
|
2018
|
+
};
|
|
2019
|
+
MissingLicenseResponse.prototype.toJSON = function (data) {
|
|
2020
|
+
data = typeof data === 'object' ? data : {};
|
|
2021
|
+
data['Message'] = this.message;
|
|
2022
|
+
return data;
|
|
2023
|
+
};
|
|
2024
|
+
return MissingLicenseResponse;
|
|
2025
|
+
}());
|
|
2026
|
+
export { MissingLicenseResponse };
|
|
2027
|
+
var RunStatus = /** @class */ (function () {
|
|
2028
|
+
function RunStatus(data) {
|
|
2029
|
+
if (data) {
|
|
2030
|
+
for (var property in data) {
|
|
2031
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2032
|
+
this[property] = data[property];
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
RunStatus.prototype.init = function (_data) {
|
|
2037
|
+
if (_data) {
|
|
2038
|
+
this.sessionId = _data['SessionId'];
|
|
2039
|
+
this.verdict = _data['Verdict'];
|
|
2040
|
+
this.testPlanRunId = _data['TestPlanRunId'];
|
|
2041
|
+
this.failedToStart = _data['FailedToStart'];
|
|
2042
|
+
this.executionState = _data['ExecutionState'];
|
|
2043
|
+
if (Array.isArray(_data['ExecutingSteps'])) {
|
|
2044
|
+
this.executingSteps = [];
|
|
2045
|
+
for (var _i = 0, _a = _data['ExecutingSteps']; _i < _a.length; _i++) {
|
|
2046
|
+
var item = _a[_i];
|
|
2047
|
+
this.executingSteps.push(item);
|
|
2048
|
+
}
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
};
|
|
2052
|
+
RunStatus.fromJS = function (data) {
|
|
2053
|
+
data = typeof data === 'object' ? data : {};
|
|
2054
|
+
var result = new RunStatus();
|
|
2055
|
+
result.init(data);
|
|
2056
|
+
return result;
|
|
2057
|
+
};
|
|
2058
|
+
RunStatus.prototype.toJSON = function (data) {
|
|
2059
|
+
data = typeof data === 'object' ? data : {};
|
|
2060
|
+
data['SessionId'] = this.sessionId;
|
|
2061
|
+
data['Verdict'] = this.verdict;
|
|
2062
|
+
data['TestPlanRunId'] = this.testPlanRunId;
|
|
2063
|
+
data['FailedToStart'] = this.failedToStart;
|
|
2064
|
+
data['ExecutionState'] = this.executionState;
|
|
2065
|
+
if (Array.isArray(this.executingSteps)) {
|
|
2066
|
+
data['ExecutingSteps'] = [];
|
|
2067
|
+
for (var _i = 0, _a = this.executingSteps; _i < _a.length; _i++) {
|
|
2068
|
+
var item = _a[_i];
|
|
2069
|
+
data['ExecutingSteps'].push(item);
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
return data;
|
|
2073
|
+
};
|
|
2074
|
+
return RunStatus;
|
|
2075
|
+
}());
|
|
2076
|
+
export { RunStatus };
|
|
2077
|
+
/** Enumeration containing the verdict types used for Verdict and Verdict properties. */
|
|
2078
|
+
export var Verdict;
|
|
2079
|
+
(function (Verdict) {
|
|
2080
|
+
Verdict["NotSet"] = "NotSet";
|
|
2081
|
+
Verdict["Pass"] = "Pass";
|
|
2082
|
+
Verdict["Inconclusive"] = "Inconclusive";
|
|
2083
|
+
Verdict["Fail"] = "Fail";
|
|
2084
|
+
Verdict["Aborted"] = "Aborted";
|
|
2085
|
+
Verdict["Error"] = "Error";
|
|
2086
|
+
})(Verdict || (Verdict = {}));
|
|
2087
|
+
export var ExecutionState;
|
|
2088
|
+
(function (ExecutionState) {
|
|
2089
|
+
ExecutionState["Idle"] = "Idle";
|
|
2090
|
+
ExecutionState["Executing"] = "Executing";
|
|
2091
|
+
ExecutionState["Breaking"] = "Breaking";
|
|
2092
|
+
ExecutionState["Aborting"] = "Aborting";
|
|
2093
|
+
})(ExecutionState || (ExecutionState = {}));
|
|
2094
|
+
var TestPlan = /** @class */ (function () {
|
|
2095
|
+
function TestPlan(data) {
|
|
2096
|
+
if (data) {
|
|
2097
|
+
for (var property in data) {
|
|
2098
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2099
|
+
this[property] = data[property];
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2103
|
+
TestPlan.prototype.init = function (_data) {
|
|
2104
|
+
if (_data) {
|
|
2105
|
+
if (Array.isArray(_data['ChildTestSteps'])) {
|
|
2106
|
+
this.childTestSteps = [];
|
|
2107
|
+
for (var _i = 0, _a = _data['ChildTestSteps']; _i < _a.length; _i++) {
|
|
2108
|
+
var item = _a[_i];
|
|
2109
|
+
this.childTestSteps.push(TestStep.fromJS(item));
|
|
2110
|
+
}
|
|
2111
|
+
}
|
|
2112
|
+
if (Array.isArray(_data['Settings'])) {
|
|
2113
|
+
this.settings = [];
|
|
2114
|
+
for (var _b = 0, _c = _data['Settings']; _b < _c.length; _b++) {
|
|
2115
|
+
var item = _c[_b];
|
|
2116
|
+
this.settings.push(Setting.fromJS(item));
|
|
2117
|
+
}
|
|
2118
|
+
}
|
|
2119
|
+
this.isOpen = _data['IsOpen'];
|
|
2120
|
+
if (Array.isArray(_data['PropertiesToInclude'])) {
|
|
2121
|
+
this.propertiesToInclude = [];
|
|
2122
|
+
for (var _d = 0, _e = _data['PropertiesToInclude']; _d < _e.length; _d++) {
|
|
2123
|
+
var item = _e[_d];
|
|
2124
|
+
this.propertiesToInclude.push(item);
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
this.id = _data['Id'];
|
|
2128
|
+
}
|
|
2129
|
+
};
|
|
2130
|
+
TestPlan.fromJS = function (data) {
|
|
2131
|
+
data = typeof data === 'object' ? data : {};
|
|
2132
|
+
var result = new TestPlan();
|
|
2133
|
+
result.init(data);
|
|
2134
|
+
return result;
|
|
2135
|
+
};
|
|
2136
|
+
TestPlan.prototype.toJSON = function (data) {
|
|
2137
|
+
data = typeof data === 'object' ? data : {};
|
|
2138
|
+
if (Array.isArray(this.childTestSteps)) {
|
|
2139
|
+
data['ChildTestSteps'] = [];
|
|
2140
|
+
for (var _i = 0, _a = this.childTestSteps; _i < _a.length; _i++) {
|
|
2141
|
+
var item = _a[_i];
|
|
2142
|
+
data['ChildTestSteps'].push(item.toJSON());
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
if (Array.isArray(this.settings)) {
|
|
2146
|
+
data['Settings'] = [];
|
|
2147
|
+
for (var _b = 0, _c = this.settings; _b < _c.length; _b++) {
|
|
2148
|
+
var item = _c[_b];
|
|
2149
|
+
data['Settings'].push(item.toJSON());
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2152
|
+
data['IsOpen'] = this.isOpen;
|
|
2153
|
+
if (Array.isArray(this.propertiesToInclude)) {
|
|
2154
|
+
data['PropertiesToInclude'] = [];
|
|
2155
|
+
for (var _d = 0, _e = this.propertiesToInclude; _d < _e.length; _d++) {
|
|
2156
|
+
var item = _e[_d];
|
|
2157
|
+
data['PropertiesToInclude'].push(item);
|
|
2158
|
+
}
|
|
2159
|
+
}
|
|
2160
|
+
data['Id'] = this.id;
|
|
2161
|
+
return data;
|
|
2162
|
+
};
|
|
2163
|
+
return TestPlan;
|
|
2164
|
+
}());
|
|
2165
|
+
export { TestPlan };
|
|
2166
|
+
var TestStep = /** @class */ (function () {
|
|
2167
|
+
function TestStep(data) {
|
|
2168
|
+
if (data) {
|
|
2169
|
+
for (var property in data) {
|
|
2170
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2171
|
+
this[property] = data[property];
|
|
2172
|
+
}
|
|
2173
|
+
}
|
|
2174
|
+
this._discriminator = 'TestStep';
|
|
2175
|
+
}
|
|
2176
|
+
TestStep.prototype.init = function (_data) {
|
|
2177
|
+
if (_data) {
|
|
2178
|
+
this.id = _data['Id'];
|
|
2179
|
+
if (Array.isArray(_data['ChildTestSteps'])) {
|
|
2180
|
+
this.childTestSteps = [];
|
|
2181
|
+
for (var _i = 0, _a = _data['ChildTestSteps']; _i < _a.length; _i++) {
|
|
2182
|
+
var item = _a[_i];
|
|
2183
|
+
this.childTestSteps.push(TestStep.fromJS(item));
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2186
|
+
this.isChildTestStepsReadOnly = _data['IsChildTestStepsReadOnly'];
|
|
2187
|
+
this.isReadOnly = _data['IsReadOnly'];
|
|
2188
|
+
if (Array.isArray(_data['Settings'])) {
|
|
2189
|
+
this.settings = [];
|
|
2190
|
+
for (var _b = 0, _c = _data['Settings']; _b < _c.length; _b++) {
|
|
2191
|
+
var item = _c[_b];
|
|
2192
|
+
this.settings.push(Setting.fromJS(item));
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
2195
|
+
this.typeName = _data['TypeName'];
|
|
2196
|
+
this.typeDisplay = _data['TypeDisplay'] ? DisplayAttribute.fromJS(_data['TypeDisplay']) : undefined;
|
|
2197
|
+
this.name = _data['Name'];
|
|
2198
|
+
}
|
|
2199
|
+
};
|
|
2200
|
+
TestStep.fromJS = function (data) {
|
|
2201
|
+
data = typeof data === 'object' ? data : {};
|
|
2202
|
+
if (data['TestStepTypeOrInstance'] === 'TestStepType') {
|
|
2203
|
+
var result_24 = new TestStepType();
|
|
2204
|
+
result_24.init(data);
|
|
2205
|
+
return result_24;
|
|
2206
|
+
}
|
|
2207
|
+
var result = new TestStep();
|
|
2208
|
+
result.init(data);
|
|
2209
|
+
return result;
|
|
2210
|
+
};
|
|
2211
|
+
TestStep.prototype.toJSON = function (data) {
|
|
2212
|
+
data = typeof data === 'object' ? data : {};
|
|
2213
|
+
data['TestStepTypeOrInstance'] = this._discriminator;
|
|
2214
|
+
data['Id'] = this.id;
|
|
2215
|
+
if (Array.isArray(this.childTestSteps)) {
|
|
2216
|
+
data['ChildTestSteps'] = [];
|
|
2217
|
+
for (var _i = 0, _a = this.childTestSteps; _i < _a.length; _i++) {
|
|
2218
|
+
var item = _a[_i];
|
|
2219
|
+
data['ChildTestSteps'].push(item.toJSON());
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
data['IsChildTestStepsReadOnly'] = this.isChildTestStepsReadOnly;
|
|
2223
|
+
data['IsReadOnly'] = this.isReadOnly;
|
|
2224
|
+
if (Array.isArray(this.settings)) {
|
|
2225
|
+
data['Settings'] = [];
|
|
2226
|
+
for (var _b = 0, _c = this.settings; _b < _c.length; _b++) {
|
|
2227
|
+
var item = _c[_b];
|
|
2228
|
+
data['Settings'].push(item.toJSON());
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
data['TypeName'] = this.typeName;
|
|
2232
|
+
data['TypeDisplay'] = this.typeDisplay ? this.typeDisplay.toJSON() : undefined;
|
|
2233
|
+
data['Name'] = this.name;
|
|
2234
|
+
return data;
|
|
2235
|
+
};
|
|
2236
|
+
return TestStep;
|
|
2237
|
+
}());
|
|
2238
|
+
export { TestStep };
|
|
2239
|
+
var TestStepType = /** @class */ (function (_super) {
|
|
2240
|
+
__extends(TestStepType, _super);
|
|
2241
|
+
function TestStepType(data) {
|
|
2242
|
+
var _this = _super.call(this, data) || this;
|
|
2243
|
+
_this._discriminator = 'TestStepType';
|
|
2244
|
+
return _this;
|
|
2245
|
+
}
|
|
2246
|
+
TestStepType.prototype.init = function (_data) {
|
|
2247
|
+
_super.prototype.init.call(this, _data);
|
|
2248
|
+
if (_data) {
|
|
2249
|
+
if (Array.isArray(_data['AvailableChildrenTypes'])) {
|
|
2250
|
+
this.availableChildrenTypes = [];
|
|
2251
|
+
for (var _i = 0, _a = _data['AvailableChildrenTypes']; _i < _a.length; _i++) {
|
|
2252
|
+
var item = _a[_i];
|
|
2253
|
+
this.availableChildrenTypes.push(item);
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
};
|
|
2258
|
+
TestStepType.fromJS = function (data) {
|
|
2259
|
+
data = typeof data === 'object' ? data : {};
|
|
2260
|
+
var result = new TestStepType();
|
|
2261
|
+
result.init(data);
|
|
2262
|
+
return result;
|
|
2263
|
+
};
|
|
2264
|
+
TestStepType.prototype.toJSON = function (data) {
|
|
2265
|
+
data = typeof data === 'object' ? data : {};
|
|
2266
|
+
if (Array.isArray(this.availableChildrenTypes)) {
|
|
2267
|
+
data['AvailableChildrenTypes'] = [];
|
|
2268
|
+
for (var _i = 0, _a = this.availableChildrenTypes; _i < _a.length; _i++) {
|
|
2269
|
+
var item = _a[_i];
|
|
2270
|
+
data['AvailableChildrenTypes'].push(item);
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
_super.prototype.toJSON.call(this, data);
|
|
2274
|
+
return data;
|
|
2275
|
+
};
|
|
2276
|
+
return TestStepType;
|
|
2277
|
+
}(TestStep));
|
|
2278
|
+
export { TestStepType };
|
|
2279
|
+
var TestStepValidationError = /** @class */ (function () {
|
|
2280
|
+
function TestStepValidationError(data) {
|
|
2281
|
+
if (data) {
|
|
2282
|
+
for (var property in data) {
|
|
2283
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2284
|
+
this[property] = data[property];
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2287
|
+
}
|
|
2288
|
+
TestStepValidationError.prototype.init = function (_data) {
|
|
2289
|
+
if (_data) {
|
|
2290
|
+
this.stepId = _data['StepId'];
|
|
2291
|
+
if (Array.isArray(_data['ValidationErrors'])) {
|
|
2292
|
+
this.validationErrors = [];
|
|
2293
|
+
for (var _i = 0, _a = _data['ValidationErrors']; _i < _a.length; _i++) {
|
|
2294
|
+
var item = _a[_i];
|
|
2295
|
+
this.validationErrors.push(ValidationError.fromJS(item));
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
};
|
|
2300
|
+
TestStepValidationError.fromJS = function (data) {
|
|
2301
|
+
data = typeof data === 'object' ? data : {};
|
|
2302
|
+
var result = new TestStepValidationError();
|
|
2303
|
+
result.init(data);
|
|
2304
|
+
return result;
|
|
2305
|
+
};
|
|
2306
|
+
TestStepValidationError.prototype.toJSON = function (data) {
|
|
2307
|
+
data = typeof data === 'object' ? data : {};
|
|
2308
|
+
data['StepId'] = this.stepId;
|
|
2309
|
+
if (Array.isArray(this.validationErrors)) {
|
|
2310
|
+
data['ValidationErrors'] = [];
|
|
2311
|
+
for (var _i = 0, _a = this.validationErrors; _i < _a.length; _i++) {
|
|
2312
|
+
var item = _a[_i];
|
|
2313
|
+
data['ValidationErrors'].push(item.toJSON());
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
return data;
|
|
2317
|
+
};
|
|
2318
|
+
return TestStepValidationError;
|
|
2319
|
+
}());
|
|
2320
|
+
export { TestStepValidationError };
|
|
2321
|
+
var ValidationError = /** @class */ (function () {
|
|
2322
|
+
function ValidationError(data) {
|
|
2323
|
+
if (data) {
|
|
2324
|
+
for (var property in data) {
|
|
2325
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2326
|
+
this[property] = data[property];
|
|
2327
|
+
}
|
|
2328
|
+
}
|
|
2329
|
+
}
|
|
2330
|
+
ValidationError.prototype.init = function (_data) {
|
|
2331
|
+
if (_data) {
|
|
2332
|
+
this.propertyName = _data['PropertyName'];
|
|
2333
|
+
this.error = _data['Error'];
|
|
2334
|
+
}
|
|
2335
|
+
};
|
|
2336
|
+
ValidationError.fromJS = function (data) {
|
|
2337
|
+
data = typeof data === 'object' ? data : {};
|
|
2338
|
+
var result = new ValidationError();
|
|
2339
|
+
result.init(data);
|
|
2340
|
+
return result;
|
|
2341
|
+
};
|
|
2342
|
+
ValidationError.prototype.toJSON = function (data) {
|
|
2343
|
+
data = typeof data === 'object' ? data : {};
|
|
2344
|
+
data['PropertyName'] = this.propertyName;
|
|
2345
|
+
data['Error'] = this.error;
|
|
2346
|
+
return data;
|
|
2347
|
+
};
|
|
2348
|
+
return ValidationError;
|
|
2349
|
+
}());
|
|
2350
|
+
export { ValidationError };
|
|
2351
|
+
var CommonSettings = /** @class */ (function () {
|
|
2352
|
+
function CommonSettings(data) {
|
|
2353
|
+
if (data) {
|
|
2354
|
+
for (var property in data) {
|
|
2355
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2356
|
+
this[property] = data[property];
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2359
|
+
}
|
|
2360
|
+
CommonSettings.prototype.init = function (_data) {
|
|
2361
|
+
if (_data) {
|
|
2362
|
+
this.step = _data['Step'] ? TestStep.fromJS(_data['Step']) : undefined;
|
|
2363
|
+
if (Array.isArray(_data['StepIds'])) {
|
|
2364
|
+
this.stepIds = [];
|
|
2365
|
+
for (var _i = 0, _a = _data['StepIds']; _i < _a.length; _i++) {
|
|
2366
|
+
var item = _a[_i];
|
|
2367
|
+
this.stepIds.push(item);
|
|
2368
|
+
}
|
|
2369
|
+
}
|
|
2370
|
+
}
|
|
2371
|
+
};
|
|
2372
|
+
CommonSettings.fromJS = function (data) {
|
|
2373
|
+
data = typeof data === 'object' ? data : {};
|
|
2374
|
+
var result = new CommonSettings();
|
|
2375
|
+
result.init(data);
|
|
2376
|
+
return result;
|
|
2377
|
+
};
|
|
2378
|
+
CommonSettings.prototype.toJSON = function (data) {
|
|
2379
|
+
data = typeof data === 'object' ? data : {};
|
|
2380
|
+
data['Step'] = this.step ? this.step.toJSON() : undefined;
|
|
2381
|
+
if (Array.isArray(this.stepIds)) {
|
|
2382
|
+
data['StepIds'] = [];
|
|
2383
|
+
for (var _i = 0, _a = this.stepIds; _i < _a.length; _i++) {
|
|
2384
|
+
var item = _a[_i];
|
|
2385
|
+
data['StepIds'].push(item);
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
return data;
|
|
2389
|
+
};
|
|
2390
|
+
return CommonSettings;
|
|
2391
|
+
}());
|
|
2392
|
+
export { CommonSettings };
|
|
2393
|
+
var CommonContext = /** @class */ (function () {
|
|
2394
|
+
function CommonContext(data) {
|
|
2395
|
+
if (data) {
|
|
2396
|
+
for (var property in data) {
|
|
2397
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2398
|
+
this[property] = data[property];
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2402
|
+
CommonContext.prototype.init = function (_data) {
|
|
2403
|
+
if (_data) {
|
|
2404
|
+
if (Array.isArray(_data['ContextItems'])) {
|
|
2405
|
+
this.contextItems = [];
|
|
2406
|
+
for (var _i = 0, _a = _data['ContextItems']; _i < _a.length; _i++) {
|
|
2407
|
+
var item = _a[_i];
|
|
2408
|
+
this.contextItems.push(Setting.fromJS(item));
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2411
|
+
if (Array.isArray(_data['StepIds'])) {
|
|
2412
|
+
this.stepIds = [];
|
|
2413
|
+
for (var _b = 0, _c = _data['StepIds']; _b < _c.length; _b++) {
|
|
2414
|
+
var item = _c[_b];
|
|
2415
|
+
this.stepIds.push(item);
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
};
|
|
2420
|
+
CommonContext.fromJS = function (data) {
|
|
2421
|
+
data = typeof data === 'object' ? data : {};
|
|
2422
|
+
var result = new CommonContext();
|
|
2423
|
+
result.init(data);
|
|
2424
|
+
return result;
|
|
2425
|
+
};
|
|
2426
|
+
CommonContext.prototype.toJSON = function (data) {
|
|
2427
|
+
data = typeof data === 'object' ? data : {};
|
|
2428
|
+
if (Array.isArray(this.contextItems)) {
|
|
2429
|
+
data['ContextItems'] = [];
|
|
2430
|
+
for (var _i = 0, _a = this.contextItems; _i < _a.length; _i++) {
|
|
2431
|
+
var item = _a[_i];
|
|
2432
|
+
data['ContextItems'].push(item.toJSON());
|
|
2433
|
+
}
|
|
2434
|
+
}
|
|
2435
|
+
if (Array.isArray(this.stepIds)) {
|
|
2436
|
+
data['StepIds'] = [];
|
|
2437
|
+
for (var _b = 0, _c = this.stepIds; _b < _c.length; _b++) {
|
|
2438
|
+
var item = _c[_b];
|
|
2439
|
+
data['StepIds'].push(item);
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
return data;
|
|
2443
|
+
};
|
|
2444
|
+
return CommonContext;
|
|
2445
|
+
}());
|
|
2446
|
+
export { CommonContext };
|
|
2447
|
+
var Interaction = /** @class */ (function () {
|
|
2448
|
+
function Interaction(data) {
|
|
2449
|
+
if (data) {
|
|
2450
|
+
for (var property in data) {
|
|
2451
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2452
|
+
this[property] = data[property];
|
|
2453
|
+
}
|
|
2454
|
+
}
|
|
2455
|
+
}
|
|
2456
|
+
Interaction.prototype.init = function (_data) {
|
|
2457
|
+
if (_data) {
|
|
2458
|
+
this.timeout = _data['Timeout'];
|
|
2459
|
+
this.title = _data['Title'];
|
|
2460
|
+
if (Array.isArray(_data['Settings'])) {
|
|
2461
|
+
this.settings = [];
|
|
2462
|
+
for (var _i = 0, _a = _data['Settings']; _i < _a.length; _i++) {
|
|
2463
|
+
var item = _a[_i];
|
|
2464
|
+
this.settings.push(Setting.fromJS(item));
|
|
2465
|
+
}
|
|
2466
|
+
}
|
|
2467
|
+
this.id = _data['Id'];
|
|
2468
|
+
}
|
|
2469
|
+
};
|
|
2470
|
+
Interaction.fromJS = function (data) {
|
|
2471
|
+
data = typeof data === 'object' ? data : {};
|
|
2472
|
+
var result = new Interaction();
|
|
2473
|
+
result.init(data);
|
|
2474
|
+
return result;
|
|
2475
|
+
};
|
|
2476
|
+
Interaction.prototype.toJSON = function (data) {
|
|
2477
|
+
data = typeof data === 'object' ? data : {};
|
|
2478
|
+
data['Timeout'] = this.timeout;
|
|
2479
|
+
data['Title'] = this.title;
|
|
2480
|
+
if (Array.isArray(this.settings)) {
|
|
2481
|
+
data['Settings'] = [];
|
|
2482
|
+
for (var _i = 0, _a = this.settings; _i < _a.length; _i++) {
|
|
2483
|
+
var item = _a[_i];
|
|
2484
|
+
data['Settings'].push(item.toJSON());
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
data['Id'] = this.id;
|
|
2488
|
+
return data;
|
|
2489
|
+
};
|
|
2490
|
+
return Interaction;
|
|
2491
|
+
}());
|
|
2492
|
+
export { Interaction };
|
|
2493
|
+
var InstalledFile = /** @class */ (function () {
|
|
2494
|
+
function InstalledFile(data) {
|
|
2495
|
+
if (data) {
|
|
2496
|
+
for (var property in data) {
|
|
2497
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2498
|
+
this[property] = data[property];
|
|
2499
|
+
}
|
|
2500
|
+
}
|
|
2501
|
+
}
|
|
2502
|
+
InstalledFile.prototype.init = function (_data) {
|
|
2503
|
+
if (_data) {
|
|
2504
|
+
this.relativePath = _data['RelativePath'];
|
|
2505
|
+
this.tapPackage = _data['TapPackage'];
|
|
2506
|
+
}
|
|
2507
|
+
};
|
|
2508
|
+
InstalledFile.fromJS = function (data) {
|
|
2509
|
+
data = typeof data === 'object' ? data : {};
|
|
2510
|
+
var result = new InstalledFile();
|
|
2511
|
+
result.init(data);
|
|
2512
|
+
return result;
|
|
2513
|
+
};
|
|
2514
|
+
InstalledFile.prototype.toJSON = function (data) {
|
|
2515
|
+
data = typeof data === 'object' ? data : {};
|
|
2516
|
+
data['RelativePath'] = this.relativePath;
|
|
2517
|
+
data['TapPackage'] = this.tapPackage;
|
|
2518
|
+
return data;
|
|
2519
|
+
};
|
|
2520
|
+
return InstalledFile;
|
|
2521
|
+
}());
|
|
2522
|
+
export { InstalledFile };
|
|
2523
|
+
var BreakPoints = /** @class */ (function () {
|
|
2524
|
+
function BreakPoints(data) {
|
|
2525
|
+
if (data) {
|
|
2526
|
+
for (var property in data) {
|
|
2527
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2528
|
+
this[property] = data[property];
|
|
2529
|
+
}
|
|
2530
|
+
}
|
|
2531
|
+
}
|
|
2532
|
+
BreakPoints.prototype.init = function (_data) {
|
|
2533
|
+
if (_data) {
|
|
2534
|
+
if (Array.isArray(_data['TestSteps'])) {
|
|
2535
|
+
this.testSteps = [];
|
|
2536
|
+
for (var _i = 0, _a = _data['TestSteps']; _i < _a.length; _i++) {
|
|
2537
|
+
var item = _a[_i];
|
|
2538
|
+
this.testSteps.push(item);
|
|
2539
|
+
}
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2542
|
+
};
|
|
2543
|
+
BreakPoints.fromJS = function (data) {
|
|
2544
|
+
data = typeof data === 'object' ? data : {};
|
|
2545
|
+
var result = new BreakPoints();
|
|
2546
|
+
result.init(data);
|
|
2547
|
+
return result;
|
|
2548
|
+
};
|
|
2549
|
+
BreakPoints.prototype.toJSON = function (data) {
|
|
2550
|
+
data = typeof data === 'object' ? data : {};
|
|
2551
|
+
if (Array.isArray(this.testSteps)) {
|
|
2552
|
+
data['TestSteps'] = [];
|
|
2553
|
+
for (var _i = 0, _a = this.testSteps; _i < _a.length; _i++) {
|
|
2554
|
+
var item = _a[_i];
|
|
2555
|
+
data['TestSteps'].push(item);
|
|
2556
|
+
}
|
|
2557
|
+
}
|
|
2558
|
+
return data;
|
|
2559
|
+
};
|
|
2560
|
+
return BreakPoints;
|
|
2561
|
+
}());
|
|
2562
|
+
export { BreakPoints };
|
|
2563
|
+
var Parameter = /** @class */ (function () {
|
|
2564
|
+
function Parameter(data) {
|
|
2565
|
+
if (data) {
|
|
2566
|
+
for (var property in data) {
|
|
2567
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2568
|
+
this[property] = data[property];
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
}
|
|
2572
|
+
Parameter.prototype.init = function (_data) {
|
|
2573
|
+
if (_data) {
|
|
2574
|
+
this.group = _data['Group'];
|
|
2575
|
+
this.name = _data['Name'];
|
|
2576
|
+
this.macroName = _data['MacroName'];
|
|
2577
|
+
this.parentLevel = _data['ParentLevel'];
|
|
2578
|
+
this.value = _data['Value'];
|
|
2579
|
+
}
|
|
2580
|
+
};
|
|
2581
|
+
Parameter.fromJS = function (data) {
|
|
2582
|
+
data = typeof data === 'object' ? data : {};
|
|
2583
|
+
var result = new Parameter();
|
|
2584
|
+
result.init(data);
|
|
2585
|
+
return result;
|
|
2586
|
+
};
|
|
2587
|
+
Parameter.prototype.toJSON = function (data) {
|
|
2588
|
+
data = typeof data === 'object' ? data : {};
|
|
2589
|
+
data['Group'] = this.group;
|
|
2590
|
+
data['Name'] = this.name;
|
|
2591
|
+
data['MacroName'] = this.macroName;
|
|
2592
|
+
data['ParentLevel'] = this.parentLevel;
|
|
2593
|
+
data['Value'] = this.value;
|
|
2594
|
+
return data;
|
|
2595
|
+
};
|
|
2596
|
+
return Parameter;
|
|
2597
|
+
}());
|
|
2598
|
+
export { Parameter };
|
|
2599
|
+
var WatchDog = /** @class */ (function () {
|
|
2600
|
+
function WatchDog(data) {
|
|
2601
|
+
if (data) {
|
|
2602
|
+
for (var property in data) {
|
|
2603
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2604
|
+
this[property] = data[property];
|
|
2605
|
+
}
|
|
2606
|
+
}
|
|
2607
|
+
}
|
|
2608
|
+
WatchDog.prototype.init = function (_data) {
|
|
2609
|
+
if (_data) {
|
|
2610
|
+
this.inactiveSeconds = _data['InactiveSeconds'];
|
|
2611
|
+
this.terminationTimeout = _data['TerminationTimeout'];
|
|
2612
|
+
}
|
|
2613
|
+
};
|
|
2614
|
+
WatchDog.fromJS = function (data) {
|
|
2615
|
+
data = typeof data === 'object' ? data : {};
|
|
2616
|
+
var result = new WatchDog();
|
|
2617
|
+
result.init(data);
|
|
2618
|
+
return result;
|
|
2619
|
+
};
|
|
2620
|
+
WatchDog.prototype.toJSON = function (data) {
|
|
2621
|
+
data = typeof data === 'object' ? data : {};
|
|
2622
|
+
data['InactiveSeconds'] = this.inactiveSeconds;
|
|
2623
|
+
data['TerminationTimeout'] = this.terminationTimeout;
|
|
2624
|
+
return data;
|
|
2625
|
+
};
|
|
2626
|
+
return WatchDog;
|
|
2627
|
+
}());
|
|
2628
|
+
export { WatchDog };
|
|
2629
|
+
var TestRun = /** @class */ (function () {
|
|
2630
|
+
function TestRun(data) {
|
|
2631
|
+
if (data) {
|
|
2632
|
+
for (var property in data) {
|
|
2633
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2634
|
+
this[property] = data[property];
|
|
2635
|
+
}
|
|
2636
|
+
}
|
|
2637
|
+
}
|
|
2638
|
+
TestRun.prototype.init = function (_data) {
|
|
2639
|
+
if (_data) {
|
|
2640
|
+
this.status = _data['Status'];
|
|
2641
|
+
this.id = _data['Id'];
|
|
2642
|
+
this.verdict = _data['Verdict'];
|
|
2643
|
+
this.duration = _data['Duration'];
|
|
2644
|
+
if (Array.isArray(_data['Parameters'])) {
|
|
2645
|
+
this.parameters = [];
|
|
2646
|
+
for (var _i = 0, _a = _data['Parameters']; _i < _a.length; _i++) {
|
|
2647
|
+
var item = _a[_i];
|
|
2648
|
+
this.parameters.push(Parameter.fromJS(item));
|
|
2649
|
+
}
|
|
2650
|
+
}
|
|
2651
|
+
this.testStepRun = _data['TestStepRun'] ? TestStepRun.fromJS(_data['TestStepRun']) : undefined;
|
|
2652
|
+
}
|
|
2653
|
+
};
|
|
2654
|
+
TestRun.fromJS = function (data) {
|
|
2655
|
+
data = typeof data === 'object' ? data : {};
|
|
2656
|
+
var result = new TestRun();
|
|
2657
|
+
result.init(data);
|
|
2658
|
+
return result;
|
|
2659
|
+
};
|
|
2660
|
+
TestRun.prototype.toJSON = function (data) {
|
|
2661
|
+
data = typeof data === 'object' ? data : {};
|
|
2662
|
+
data['Status'] = this.status;
|
|
2663
|
+
data['Id'] = this.id;
|
|
2664
|
+
data['Verdict'] = this.verdict;
|
|
2665
|
+
data['Duration'] = this.duration;
|
|
2666
|
+
if (Array.isArray(this.parameters)) {
|
|
2667
|
+
data['Parameters'] = [];
|
|
2668
|
+
for (var _i = 0, _a = this.parameters; _i < _a.length; _i++) {
|
|
2669
|
+
var item = _a[_i];
|
|
2670
|
+
data['Parameters'].push(item.toJSON());
|
|
2671
|
+
}
|
|
2672
|
+
}
|
|
2673
|
+
data['TestStepRun'] = this.testStepRun ? this.testStepRun.toJSON() : undefined;
|
|
2674
|
+
return data;
|
|
2675
|
+
};
|
|
2676
|
+
return TestRun;
|
|
2677
|
+
}());
|
|
2678
|
+
export { TestRun };
|
|
2679
|
+
var TestStepRun = /** @class */ (function () {
|
|
2680
|
+
function TestStepRun(data) {
|
|
2681
|
+
if (data) {
|
|
2682
|
+
for (var property in data) {
|
|
2683
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2684
|
+
this[property] = data[property];
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2688
|
+
TestStepRun.prototype.init = function (_data) {
|
|
2689
|
+
if (_data) {
|
|
2690
|
+
this.parentId = _data['ParentId'];
|
|
2691
|
+
this.testStepId = _data['TestStepId'];
|
|
2692
|
+
this.testStepName = _data['TestStepName'];
|
|
2693
|
+
}
|
|
2694
|
+
};
|
|
2695
|
+
TestStepRun.fromJS = function (data) {
|
|
2696
|
+
data = typeof data === 'object' ? data : {};
|
|
2697
|
+
var result = new TestStepRun();
|
|
2698
|
+
result.init(data);
|
|
2699
|
+
return result;
|
|
2700
|
+
};
|
|
2701
|
+
TestStepRun.prototype.toJSON = function (data) {
|
|
2702
|
+
data = typeof data === 'object' ? data : {};
|
|
2703
|
+
data['ParentId'] = this.parentId;
|
|
2704
|
+
data['TestStepId'] = this.testStepId;
|
|
2705
|
+
data['TestStepName'] = this.testStepName;
|
|
2706
|
+
return data;
|
|
2707
|
+
};
|
|
2708
|
+
return TestStepRun;
|
|
2709
|
+
}());
|
|
2710
|
+
export { TestStepRun };
|
|
2711
|
+
var LogEvent = /** @class */ (function () {
|
|
2712
|
+
function LogEvent(data) {
|
|
2713
|
+
if (data) {
|
|
2714
|
+
for (var property in data) {
|
|
2715
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2716
|
+
this[property] = data[property];
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2720
|
+
LogEvent.prototype.init = function (_data) {
|
|
2721
|
+
if (_data) {
|
|
2722
|
+
this.source = _data['Source'];
|
|
2723
|
+
this.timestamp = _data['Timestamp'];
|
|
2724
|
+
this.message = _data['Message'];
|
|
2725
|
+
this.eventType = _data['EventType'];
|
|
2726
|
+
this.durationNS = _data['DurationNS'];
|
|
2727
|
+
}
|
|
2728
|
+
};
|
|
2729
|
+
LogEvent.fromJS = function (data) {
|
|
2730
|
+
data = typeof data === 'object' ? data : {};
|
|
2731
|
+
var result = new LogEvent();
|
|
2732
|
+
result.init(data);
|
|
2733
|
+
return result;
|
|
2734
|
+
};
|
|
2735
|
+
LogEvent.prototype.toJSON = function (data) {
|
|
2736
|
+
data = typeof data === 'object' ? data : {};
|
|
2737
|
+
data['Source'] = this.source;
|
|
2738
|
+
data['Timestamp'] = this.timestamp;
|
|
2739
|
+
data['Message'] = this.message;
|
|
2740
|
+
data['EventType'] = this.eventType;
|
|
2741
|
+
data['DurationNS'] = this.durationNS;
|
|
2742
|
+
return data;
|
|
2743
|
+
};
|
|
2744
|
+
return LogEvent;
|
|
2745
|
+
}());
|
|
2746
|
+
export { LogEvent };
|
|
2747
|
+
var Result = /** @class */ (function () {
|
|
2748
|
+
function Result(data) {
|
|
2749
|
+
if (data) {
|
|
2750
|
+
for (var property in data) {
|
|
2751
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2752
|
+
this[property] = data[property];
|
|
2753
|
+
}
|
|
2754
|
+
}
|
|
2755
|
+
}
|
|
2756
|
+
Result.prototype.init = function (_data) {
|
|
2757
|
+
if (_data) {
|
|
2758
|
+
this.stepRunID = _data['StepRunID'];
|
|
2759
|
+
this.status = _data['Status'];
|
|
2760
|
+
this.name = _data['Name'];
|
|
2761
|
+
this.rows = _data['Rows'];
|
|
2762
|
+
this.parent = _data['Parent'];
|
|
2763
|
+
if (Array.isArray(_data['Columns'])) {
|
|
2764
|
+
this.columns = [];
|
|
2765
|
+
for (var _i = 0, _a = _data['Columns']; _i < _a.length; _i++) {
|
|
2766
|
+
var item = _a[_i];
|
|
2767
|
+
this.columns.push(ResultColumn.fromJS(item));
|
|
2768
|
+
}
|
|
2769
|
+
}
|
|
2770
|
+
}
|
|
2771
|
+
};
|
|
2772
|
+
Result.fromJS = function (data) {
|
|
2773
|
+
data = typeof data === 'object' ? data : {};
|
|
2774
|
+
var result = new Result();
|
|
2775
|
+
result.init(data);
|
|
2776
|
+
return result;
|
|
2777
|
+
};
|
|
2778
|
+
Result.prototype.toJSON = function (data) {
|
|
2779
|
+
data = typeof data === 'object' ? data : {};
|
|
2780
|
+
data['StepRunID'] = this.stepRunID;
|
|
2781
|
+
data['Status'] = this.status;
|
|
2782
|
+
data['Name'] = this.name;
|
|
2783
|
+
data['Rows'] = this.rows;
|
|
2784
|
+
data['Parent'] = this.parent;
|
|
2785
|
+
if (Array.isArray(this.columns)) {
|
|
2786
|
+
data['Columns'] = [];
|
|
2787
|
+
for (var _i = 0, _a = this.columns; _i < _a.length; _i++) {
|
|
2788
|
+
var item = _a[_i];
|
|
2789
|
+
data['Columns'].push(item.toJSON());
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
return data;
|
|
2793
|
+
};
|
|
2794
|
+
return Result;
|
|
2795
|
+
}());
|
|
2796
|
+
export { Result };
|
|
2797
|
+
var ResultColumn = /** @class */ (function () {
|
|
2798
|
+
function ResultColumn(data) {
|
|
2799
|
+
if (data) {
|
|
2800
|
+
for (var property in data) {
|
|
2801
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2802
|
+
this[property] = data[property];
|
|
2803
|
+
}
|
|
2804
|
+
}
|
|
2805
|
+
}
|
|
2806
|
+
ResultColumn.prototype.init = function (_data) {
|
|
2807
|
+
if (_data) {
|
|
2808
|
+
this.name = _data['Name'];
|
|
2809
|
+
this.objectType = _data['ObjectType'];
|
|
2810
|
+
if (Array.isArray(_data['Data'])) {
|
|
2811
|
+
this.data = [];
|
|
2812
|
+
for (var _i = 0, _a = _data['Data']; _i < _a.length; _i++) {
|
|
2813
|
+
var item = _a[_i];
|
|
2814
|
+
this.data.push(item);
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
this.typeCode = _data['TypeCode'];
|
|
2818
|
+
}
|
|
2819
|
+
};
|
|
2820
|
+
ResultColumn.fromJS = function (data) {
|
|
2821
|
+
data = typeof data === 'object' ? data : {};
|
|
2822
|
+
var result = new ResultColumn();
|
|
2823
|
+
result.init(data);
|
|
2824
|
+
return result;
|
|
2825
|
+
};
|
|
2826
|
+
ResultColumn.prototype.toJSON = function (data) {
|
|
2827
|
+
data = typeof data === 'object' ? data : {};
|
|
2828
|
+
data['Name'] = this.name;
|
|
2829
|
+
data['ObjectType'] = this.objectType;
|
|
2830
|
+
if (Array.isArray(this.data)) {
|
|
2831
|
+
data['Data'] = [];
|
|
2832
|
+
for (var _i = 0, _a = this.data; _i < _a.length; _i++) {
|
|
2833
|
+
var item = _a[_i];
|
|
2834
|
+
data['Data'].push(item);
|
|
2835
|
+
}
|
|
2836
|
+
}
|
|
2837
|
+
data['TypeCode'] = this.typeCode;
|
|
2838
|
+
return data;
|
|
2839
|
+
};
|
|
2840
|
+
return ResultColumn;
|
|
2841
|
+
}());
|
|
2842
|
+
export { ResultColumn };
|
|
2843
|
+
var SessionEvent = /** @class */ (function () {
|
|
2844
|
+
function SessionEvent(data) {
|
|
2845
|
+
if (data) {
|
|
2846
|
+
for (var property in data) {
|
|
2847
|
+
if (Object.prototype.hasOwnProperty.call(data, property))
|
|
2848
|
+
this[property] = data[property];
|
|
2849
|
+
}
|
|
2850
|
+
}
|
|
2851
|
+
this._discriminator = 'SessionEvent';
|
|
2852
|
+
}
|
|
2853
|
+
SessionEvent.prototype.init = function (_data) {
|
|
2854
|
+
if (_data) {
|
|
2855
|
+
this.eventType = _data['EventType'];
|
|
2856
|
+
this.sessionId = _data['SessionId'];
|
|
2857
|
+
}
|
|
2858
|
+
};
|
|
2859
|
+
SessionEvent.fromJS = function (data) {
|
|
2860
|
+
data = typeof data === 'object' ? data : {};
|
|
2861
|
+
if (data['discriminator'] === 'SessionTimeoutEventArgs') {
|
|
2862
|
+
var result_25 = new SessionTimeoutEventArgs();
|
|
2863
|
+
result_25.init(data);
|
|
2864
|
+
return result_25;
|
|
2865
|
+
}
|
|
2866
|
+
if (data['discriminator'] === 'StartingEventArgs') {
|
|
2867
|
+
var result_26 = new StartingEventArgs();
|
|
2868
|
+
result_26.init(data);
|
|
2869
|
+
return result_26;
|
|
2870
|
+
}
|
|
2871
|
+
if (data['discriminator'] === 'StartedEventArgs') {
|
|
2872
|
+
var result_27 = new StartedEventArgs();
|
|
2873
|
+
result_27.init(data);
|
|
2874
|
+
return result_27;
|
|
2875
|
+
}
|
|
2876
|
+
if (data['discriminator'] === 'StoppingEventArgs') {
|
|
2877
|
+
var result_28 = new StoppingEventArgs();
|
|
2878
|
+
result_28.init(data);
|
|
2879
|
+
return result_28;
|
|
2880
|
+
}
|
|
2881
|
+
if (data['discriminator'] === 'StoppedEventArgs') {
|
|
2882
|
+
var result_29 = new StoppedEventArgs();
|
|
2883
|
+
result_29.init(data);
|
|
2884
|
+
return result_29;
|
|
2885
|
+
}
|
|
2886
|
+
if (data['discriminator'] === 'TestPlanChangeEventArgs') {
|
|
2887
|
+
var result_30 = new TestPlanChangeEventArgs();
|
|
2888
|
+
result_30.init(data);
|
|
2889
|
+
return result_30;
|
|
2890
|
+
}
|
|
2891
|
+
if (data['discriminator'] === 'TestPlanExecutionStateChangedEventArgs') {
|
|
2892
|
+
var result_31 = new TestPlanExecutionStateChangedEventArgs();
|
|
2893
|
+
result_31.init(data);
|
|
2894
|
+
return result_31;
|
|
2895
|
+
}
|
|
2896
|
+
if (data['discriminator'] === 'SettingsChangedEventArgs') {
|
|
2897
|
+
var result_32 = new SettingsChangedEventArgs();
|
|
2898
|
+
result_32.init(data);
|
|
2899
|
+
return result_32;
|
|
2900
|
+
}
|
|
2901
|
+
if (data['discriminator'] === 'TestStepChangeEventArgs') {
|
|
2902
|
+
var result_33 = new TestStepChangeEventArgs();
|
|
2903
|
+
result_33.init(data);
|
|
2904
|
+
return result_33;
|
|
2905
|
+
}
|
|
2906
|
+
if (data['discriminator'] === 'BreakEventArgs') {
|
|
2907
|
+
var result_34 = new BreakEventArgs();
|
|
2908
|
+
result_34.init(data);
|
|
2909
|
+
return result_34;
|
|
2910
|
+
}
|
|
2911
|
+
if (data['discriminator'] === 'UserInputRequestEventArgs') {
|
|
2912
|
+
var result_35 = new UserInputRequestEventArgs();
|
|
2913
|
+
result_35.init(data);
|
|
2914
|
+
return result_35;
|
|
2915
|
+
}
|
|
2916
|
+
if (data['discriminator'] === 'UserInputRequestCompletedEventArgs') {
|
|
2917
|
+
var result_36 = new UserInputRequestCompletedEventArgs();
|
|
2918
|
+
result_36.init(data);
|
|
2919
|
+
return result_36;
|
|
2920
|
+
}
|
|
2921
|
+
if (data['discriminator'] === 'TestPlanSettingsChangedEventArgs') {
|
|
2922
|
+
var result_37 = new TestPlanSettingsChangedEventArgs();
|
|
2923
|
+
result_37.init(data);
|
|
2924
|
+
return result_37;
|
|
2925
|
+
}
|
|
2926
|
+
var result = new SessionEvent();
|
|
2927
|
+
result.init(data);
|
|
2928
|
+
return result;
|
|
2929
|
+
};
|
|
2930
|
+
SessionEvent.prototype.toJSON = function (data) {
|
|
2931
|
+
data = typeof data === 'object' ? data : {};
|
|
2932
|
+
data['discriminator'] = this._discriminator;
|
|
2933
|
+
data['EventType'] = this.eventType;
|
|
2934
|
+
data['SessionId'] = this.sessionId;
|
|
2935
|
+
return data;
|
|
2936
|
+
};
|
|
2937
|
+
return SessionEvent;
|
|
2938
|
+
}());
|
|
2939
|
+
export { SessionEvent };
|
|
2940
|
+
export var SessionEventType;
|
|
2941
|
+
(function (SessionEventType) {
|
|
2942
|
+
SessionEventType["SessionStarting"] = "SessionStarting";
|
|
2943
|
+
SessionEventType["SessionStarted"] = "SessionStarted";
|
|
2944
|
+
SessionEventType["SessionStopping"] = "SessionStopping";
|
|
2945
|
+
SessionEventType["SessionStopped"] = "SessionStopped";
|
|
2946
|
+
SessionEventType["TestPlanChanged"] = "TestPlanChanged";
|
|
2947
|
+
SessionEventType["TestPlanExecutionStateChanged"] = "TestPlanExecutionStateChanged";
|
|
2948
|
+
SessionEventType["SettingsChanged"] = "SettingsChanged";
|
|
2949
|
+
SessionEventType["TestStepChanged"] = "TestStepChanged";
|
|
2950
|
+
SessionEventType["BreakEvent"] = "BreakEvent";
|
|
2951
|
+
SessionEventType["UserInputRequested"] = "UserInputRequested";
|
|
2952
|
+
SessionEventType["UserInputCompleted"] = "UserInputCompleted";
|
|
2953
|
+
SessionEventType["SessionTimeoutHit"] = "SessionTimeoutHit";
|
|
2954
|
+
SessionEventType["TestPlanSettingsChanged"] = "TestPlanSettingsChanged";
|
|
2955
|
+
SessionEventType["TypeCacheInvalidated"] = "TypeCacheInvalidated";
|
|
2956
|
+
})(SessionEventType || (SessionEventType = {}));
|
|
2957
|
+
var SessionTimeoutEventArgs = /** @class */ (function (_super) {
|
|
2958
|
+
__extends(SessionTimeoutEventArgs, _super);
|
|
2959
|
+
function SessionTimeoutEventArgs(data) {
|
|
2960
|
+
var _this = _super.call(this, data) || this;
|
|
2961
|
+
_this._discriminator = 'SessionTimeoutEventArgs';
|
|
2962
|
+
return _this;
|
|
2963
|
+
}
|
|
2964
|
+
SessionTimeoutEventArgs.prototype.init = function (_data) {
|
|
2965
|
+
_super.prototype.init.call(this, _data);
|
|
2966
|
+
};
|
|
2967
|
+
SessionTimeoutEventArgs.fromJS = function (data) {
|
|
2968
|
+
data = typeof data === 'object' ? data : {};
|
|
2969
|
+
var result = new SessionTimeoutEventArgs();
|
|
2970
|
+
result.init(data);
|
|
2971
|
+
return result;
|
|
2972
|
+
};
|
|
2973
|
+
SessionTimeoutEventArgs.prototype.toJSON = function (data) {
|
|
2974
|
+
data = typeof data === 'object' ? data : {};
|
|
2975
|
+
_super.prototype.toJSON.call(this, data);
|
|
2976
|
+
return data;
|
|
2977
|
+
};
|
|
2978
|
+
return SessionTimeoutEventArgs;
|
|
2979
|
+
}(SessionEvent));
|
|
2980
|
+
export { SessionTimeoutEventArgs };
|
|
2981
|
+
var StartingEventArgs = /** @class */ (function (_super) {
|
|
2982
|
+
__extends(StartingEventArgs, _super);
|
|
2983
|
+
function StartingEventArgs(data) {
|
|
2984
|
+
var _this = _super.call(this, data) || this;
|
|
2985
|
+
_this._discriminator = 'StartingEventArgs';
|
|
2986
|
+
return _this;
|
|
2987
|
+
}
|
|
2988
|
+
StartingEventArgs.prototype.init = function (_data) {
|
|
2989
|
+
_super.prototype.init.call(this, _data);
|
|
2990
|
+
};
|
|
2991
|
+
StartingEventArgs.fromJS = function (data) {
|
|
2992
|
+
data = typeof data === 'object' ? data : {};
|
|
2993
|
+
var result = new StartingEventArgs();
|
|
2994
|
+
result.init(data);
|
|
2995
|
+
return result;
|
|
2996
|
+
};
|
|
2997
|
+
StartingEventArgs.prototype.toJSON = function (data) {
|
|
2998
|
+
data = typeof data === 'object' ? data : {};
|
|
2999
|
+
_super.prototype.toJSON.call(this, data);
|
|
3000
|
+
return data;
|
|
3001
|
+
};
|
|
3002
|
+
return StartingEventArgs;
|
|
3003
|
+
}(SessionEvent));
|
|
3004
|
+
export { StartingEventArgs };
|
|
3005
|
+
var StartedEventArgs = /** @class */ (function (_super) {
|
|
3006
|
+
__extends(StartedEventArgs, _super);
|
|
3007
|
+
function StartedEventArgs(data) {
|
|
3008
|
+
var _this = _super.call(this, data) || this;
|
|
3009
|
+
_this._discriminator = 'StartedEventArgs';
|
|
3010
|
+
return _this;
|
|
3011
|
+
}
|
|
3012
|
+
StartedEventArgs.prototype.init = function (_data) {
|
|
3013
|
+
_super.prototype.init.call(this, _data);
|
|
3014
|
+
};
|
|
3015
|
+
StartedEventArgs.fromJS = function (data) {
|
|
3016
|
+
data = typeof data === 'object' ? data : {};
|
|
3017
|
+
var result = new StartedEventArgs();
|
|
3018
|
+
result.init(data);
|
|
3019
|
+
return result;
|
|
3020
|
+
};
|
|
3021
|
+
StartedEventArgs.prototype.toJSON = function (data) {
|
|
3022
|
+
data = typeof data === 'object' ? data : {};
|
|
3023
|
+
_super.prototype.toJSON.call(this, data);
|
|
3024
|
+
return data;
|
|
3025
|
+
};
|
|
3026
|
+
return StartedEventArgs;
|
|
3027
|
+
}(SessionEvent));
|
|
3028
|
+
export { StartedEventArgs };
|
|
3029
|
+
var StoppingEventArgs = /** @class */ (function (_super) {
|
|
3030
|
+
__extends(StoppingEventArgs, _super);
|
|
3031
|
+
function StoppingEventArgs(data) {
|
|
3032
|
+
var _this = _super.call(this, data) || this;
|
|
3033
|
+
_this._discriminator = 'StoppingEventArgs';
|
|
3034
|
+
return _this;
|
|
3035
|
+
}
|
|
3036
|
+
StoppingEventArgs.prototype.init = function (_data) {
|
|
3037
|
+
_super.prototype.init.call(this, _data);
|
|
3038
|
+
};
|
|
3039
|
+
StoppingEventArgs.fromJS = function (data) {
|
|
3040
|
+
data = typeof data === 'object' ? data : {};
|
|
3041
|
+
var result = new StoppingEventArgs();
|
|
3042
|
+
result.init(data);
|
|
3043
|
+
return result;
|
|
3044
|
+
};
|
|
3045
|
+
StoppingEventArgs.prototype.toJSON = function (data) {
|
|
3046
|
+
data = typeof data === 'object' ? data : {};
|
|
3047
|
+
_super.prototype.toJSON.call(this, data);
|
|
3048
|
+
return data;
|
|
3049
|
+
};
|
|
3050
|
+
return StoppingEventArgs;
|
|
3051
|
+
}(SessionEvent));
|
|
3052
|
+
export { StoppingEventArgs };
|
|
3053
|
+
var StoppedEventArgs = /** @class */ (function (_super) {
|
|
3054
|
+
__extends(StoppedEventArgs, _super);
|
|
3055
|
+
function StoppedEventArgs(data) {
|
|
3056
|
+
var _this = _super.call(this, data) || this;
|
|
3057
|
+
_this._discriminator = 'StoppedEventArgs';
|
|
3058
|
+
return _this;
|
|
3059
|
+
}
|
|
3060
|
+
StoppedEventArgs.prototype.init = function (_data) {
|
|
3061
|
+
_super.prototype.init.call(this, _data);
|
|
3062
|
+
};
|
|
3063
|
+
StoppedEventArgs.fromJS = function (data) {
|
|
3064
|
+
data = typeof data === 'object' ? data : {};
|
|
3065
|
+
var result = new StoppedEventArgs();
|
|
3066
|
+
result.init(data);
|
|
3067
|
+
return result;
|
|
3068
|
+
};
|
|
3069
|
+
StoppedEventArgs.prototype.toJSON = function (data) {
|
|
3070
|
+
data = typeof data === 'object' ? data : {};
|
|
3071
|
+
_super.prototype.toJSON.call(this, data);
|
|
3072
|
+
return data;
|
|
3073
|
+
};
|
|
3074
|
+
return StoppedEventArgs;
|
|
3075
|
+
}(SessionEvent));
|
|
3076
|
+
export { StoppedEventArgs };
|
|
3077
|
+
var TestPlanChangeEventArgs = /** @class */ (function (_super) {
|
|
3078
|
+
__extends(TestPlanChangeEventArgs, _super);
|
|
3079
|
+
function TestPlanChangeEventArgs(data) {
|
|
3080
|
+
var _this = _super.call(this, data) || this;
|
|
3081
|
+
_this._discriminator = 'TestPlanChangeEventArgs';
|
|
3082
|
+
return _this;
|
|
3083
|
+
}
|
|
3084
|
+
TestPlanChangeEventArgs.prototype.init = function (_data) {
|
|
3085
|
+
_super.prototype.init.call(this, _data);
|
|
3086
|
+
};
|
|
3087
|
+
TestPlanChangeEventArgs.fromJS = function (data) {
|
|
3088
|
+
data = typeof data === 'object' ? data : {};
|
|
3089
|
+
var result = new TestPlanChangeEventArgs();
|
|
3090
|
+
result.init(data);
|
|
3091
|
+
return result;
|
|
3092
|
+
};
|
|
3093
|
+
TestPlanChangeEventArgs.prototype.toJSON = function (data) {
|
|
3094
|
+
data = typeof data === 'object' ? data : {};
|
|
3095
|
+
_super.prototype.toJSON.call(this, data);
|
|
3096
|
+
return data;
|
|
3097
|
+
};
|
|
3098
|
+
return TestPlanChangeEventArgs;
|
|
3099
|
+
}(SessionEvent));
|
|
3100
|
+
export { TestPlanChangeEventArgs };
|
|
3101
|
+
var TestPlanExecutionStateChangedEventArgs = /** @class */ (function (_super) {
|
|
3102
|
+
__extends(TestPlanExecutionStateChangedEventArgs, _super);
|
|
3103
|
+
function TestPlanExecutionStateChangedEventArgs(data) {
|
|
3104
|
+
var _this = _super.call(this, data) || this;
|
|
3105
|
+
_this._discriminator = 'TestPlanExecutionStateChangedEventArgs';
|
|
3106
|
+
return _this;
|
|
3107
|
+
}
|
|
3108
|
+
TestPlanExecutionStateChangedEventArgs.prototype.init = function (_data) {
|
|
3109
|
+
_super.prototype.init.call(this, _data);
|
|
3110
|
+
if (_data) {
|
|
3111
|
+
this.runStatus = _data['RunStatus'] ? RunStatus.fromJS(_data['RunStatus']) : undefined;
|
|
3112
|
+
}
|
|
3113
|
+
};
|
|
3114
|
+
TestPlanExecutionStateChangedEventArgs.fromJS = function (data) {
|
|
3115
|
+
data = typeof data === 'object' ? data : {};
|
|
3116
|
+
var result = new TestPlanExecutionStateChangedEventArgs();
|
|
3117
|
+
result.init(data);
|
|
3118
|
+
return result;
|
|
3119
|
+
};
|
|
3120
|
+
TestPlanExecutionStateChangedEventArgs.prototype.toJSON = function (data) {
|
|
3121
|
+
data = typeof data === 'object' ? data : {};
|
|
3122
|
+
data['RunStatus'] = this.runStatus ? this.runStatus.toJSON() : undefined;
|
|
3123
|
+
_super.prototype.toJSON.call(this, data);
|
|
3124
|
+
return data;
|
|
3125
|
+
};
|
|
3126
|
+
return TestPlanExecutionStateChangedEventArgs;
|
|
3127
|
+
}(SessionEvent));
|
|
3128
|
+
export { TestPlanExecutionStateChangedEventArgs };
|
|
3129
|
+
var SettingsChangedEventArgs = /** @class */ (function (_super) {
|
|
3130
|
+
__extends(SettingsChangedEventArgs, _super);
|
|
3131
|
+
function SettingsChangedEventArgs(data) {
|
|
3132
|
+
var _this = _super.call(this, data) || this;
|
|
3133
|
+
_this._discriminator = 'SettingsChangedEventArgs';
|
|
3134
|
+
return _this;
|
|
3135
|
+
}
|
|
3136
|
+
SettingsChangedEventArgs.prototype.init = function (_data) {
|
|
3137
|
+
_super.prototype.init.call(this, _data);
|
|
3138
|
+
};
|
|
3139
|
+
SettingsChangedEventArgs.fromJS = function (data) {
|
|
3140
|
+
data = typeof data === 'object' ? data : {};
|
|
3141
|
+
var result = new SettingsChangedEventArgs();
|
|
3142
|
+
result.init(data);
|
|
3143
|
+
return result;
|
|
3144
|
+
};
|
|
3145
|
+
SettingsChangedEventArgs.prototype.toJSON = function (data) {
|
|
3146
|
+
data = typeof data === 'object' ? data : {};
|
|
3147
|
+
_super.prototype.toJSON.call(this, data);
|
|
3148
|
+
return data;
|
|
3149
|
+
};
|
|
3150
|
+
return SettingsChangedEventArgs;
|
|
3151
|
+
}(SessionEvent));
|
|
3152
|
+
export { SettingsChangedEventArgs };
|
|
3153
|
+
var TestStepChangeEventArgs = /** @class */ (function (_super) {
|
|
3154
|
+
__extends(TestStepChangeEventArgs, _super);
|
|
3155
|
+
function TestStepChangeEventArgs(data) {
|
|
3156
|
+
var _this = _super.call(this, data) || this;
|
|
3157
|
+
_this._discriminator = 'TestStepChangeEventArgs';
|
|
3158
|
+
return _this;
|
|
3159
|
+
}
|
|
3160
|
+
TestStepChangeEventArgs.prototype.init = function (_data) {
|
|
3161
|
+
_super.prototype.init.call(this, _data);
|
|
3162
|
+
if (_data) {
|
|
3163
|
+
this.stepId = _data['StepId'];
|
|
3164
|
+
}
|
|
3165
|
+
};
|
|
3166
|
+
TestStepChangeEventArgs.fromJS = function (data) {
|
|
3167
|
+
data = typeof data === 'object' ? data : {};
|
|
3168
|
+
var result = new TestStepChangeEventArgs();
|
|
3169
|
+
result.init(data);
|
|
3170
|
+
return result;
|
|
3171
|
+
};
|
|
3172
|
+
TestStepChangeEventArgs.prototype.toJSON = function (data) {
|
|
3173
|
+
data = typeof data === 'object' ? data : {};
|
|
3174
|
+
data['StepId'] = this.stepId;
|
|
3175
|
+
_super.prototype.toJSON.call(this, data);
|
|
3176
|
+
return data;
|
|
3177
|
+
};
|
|
3178
|
+
return TestStepChangeEventArgs;
|
|
3179
|
+
}(SessionEvent));
|
|
3180
|
+
export { TestStepChangeEventArgs };
|
|
3181
|
+
var BreakEventArgs = /** @class */ (function (_super) {
|
|
3182
|
+
__extends(BreakEventArgs, _super);
|
|
3183
|
+
function BreakEventArgs(data) {
|
|
3184
|
+
var _this = _super.call(this, data) || this;
|
|
3185
|
+
_this._discriminator = 'BreakEventArgs';
|
|
3186
|
+
return _this;
|
|
3187
|
+
}
|
|
3188
|
+
BreakEventArgs.prototype.init = function (_data) {
|
|
3189
|
+
_super.prototype.init.call(this, _data);
|
|
3190
|
+
if (_data) {
|
|
3191
|
+
this.stepId = _data['StepId'];
|
|
3192
|
+
}
|
|
3193
|
+
};
|
|
3194
|
+
BreakEventArgs.fromJS = function (data) {
|
|
3195
|
+
data = typeof data === 'object' ? data : {};
|
|
3196
|
+
var result = new BreakEventArgs();
|
|
3197
|
+
result.init(data);
|
|
3198
|
+
return result;
|
|
3199
|
+
};
|
|
3200
|
+
BreakEventArgs.prototype.toJSON = function (data) {
|
|
3201
|
+
data = typeof data === 'object' ? data : {};
|
|
3202
|
+
data['StepId'] = this.stepId;
|
|
3203
|
+
_super.prototype.toJSON.call(this, data);
|
|
3204
|
+
return data;
|
|
3205
|
+
};
|
|
3206
|
+
return BreakEventArgs;
|
|
3207
|
+
}(SessionEvent));
|
|
3208
|
+
export { BreakEventArgs };
|
|
3209
|
+
var UserInputRequestEventArgs = /** @class */ (function (_super) {
|
|
3210
|
+
__extends(UserInputRequestEventArgs, _super);
|
|
3211
|
+
function UserInputRequestEventArgs(data) {
|
|
3212
|
+
var _this = _super.call(this, data) || this;
|
|
3213
|
+
_this._discriminator = 'UserInputRequestEventArgs';
|
|
3214
|
+
return _this;
|
|
3215
|
+
}
|
|
3216
|
+
UserInputRequestEventArgs.prototype.init = function (_data) {
|
|
3217
|
+
_super.prototype.init.call(this, _data);
|
|
3218
|
+
if (_data) {
|
|
3219
|
+
this.requestId = _data['RequestId'];
|
|
3220
|
+
}
|
|
3221
|
+
};
|
|
3222
|
+
UserInputRequestEventArgs.fromJS = function (data) {
|
|
3223
|
+
data = typeof data === 'object' ? data : {};
|
|
3224
|
+
var result = new UserInputRequestEventArgs();
|
|
3225
|
+
result.init(data);
|
|
3226
|
+
return result;
|
|
3227
|
+
};
|
|
3228
|
+
UserInputRequestEventArgs.prototype.toJSON = function (data) {
|
|
3229
|
+
data = typeof data === 'object' ? data : {};
|
|
3230
|
+
data['RequestId'] = this.requestId;
|
|
3231
|
+
_super.prototype.toJSON.call(this, data);
|
|
3232
|
+
return data;
|
|
3233
|
+
};
|
|
3234
|
+
return UserInputRequestEventArgs;
|
|
3235
|
+
}(SessionEvent));
|
|
3236
|
+
export { UserInputRequestEventArgs };
|
|
3237
|
+
var UserInputRequestCompletedEventArgs = /** @class */ (function (_super) {
|
|
3238
|
+
__extends(UserInputRequestCompletedEventArgs, _super);
|
|
3239
|
+
function UserInputRequestCompletedEventArgs(data) {
|
|
3240
|
+
var _this = _super.call(this, data) || this;
|
|
3241
|
+
_this._discriminator = 'UserInputRequestCompletedEventArgs';
|
|
3242
|
+
return _this;
|
|
3243
|
+
}
|
|
3244
|
+
UserInputRequestCompletedEventArgs.prototype.init = function (_data) {
|
|
3245
|
+
_super.prototype.init.call(this, _data);
|
|
3246
|
+
if (_data) {
|
|
3247
|
+
this.requestId = _data['RequestId'];
|
|
3248
|
+
this.answered = _data['Answered'];
|
|
3249
|
+
this.timeout = _data['Timeout'];
|
|
3250
|
+
}
|
|
3251
|
+
};
|
|
3252
|
+
UserInputRequestCompletedEventArgs.fromJS = function (data) {
|
|
3253
|
+
data = typeof data === 'object' ? data : {};
|
|
3254
|
+
var result = new UserInputRequestCompletedEventArgs();
|
|
3255
|
+
result.init(data);
|
|
3256
|
+
return result;
|
|
3257
|
+
};
|
|
3258
|
+
UserInputRequestCompletedEventArgs.prototype.toJSON = function (data) {
|
|
3259
|
+
data = typeof data === 'object' ? data : {};
|
|
3260
|
+
data['RequestId'] = this.requestId;
|
|
3261
|
+
data['Answered'] = this.answered;
|
|
3262
|
+
data['Timeout'] = this.timeout;
|
|
3263
|
+
_super.prototype.toJSON.call(this, data);
|
|
3264
|
+
return data;
|
|
3265
|
+
};
|
|
3266
|
+
return UserInputRequestCompletedEventArgs;
|
|
3267
|
+
}(SessionEvent));
|
|
3268
|
+
export { UserInputRequestCompletedEventArgs };
|
|
3269
|
+
var TestPlanSettingsChangedEventArgs = /** @class */ (function (_super) {
|
|
3270
|
+
__extends(TestPlanSettingsChangedEventArgs, _super);
|
|
3271
|
+
function TestPlanSettingsChangedEventArgs(data) {
|
|
3272
|
+
var _this = _super.call(this, data) || this;
|
|
3273
|
+
_this._discriminator = 'TestPlanSettingsChangedEventArgs';
|
|
3274
|
+
return _this;
|
|
3275
|
+
}
|
|
3276
|
+
TestPlanSettingsChangedEventArgs.prototype.init = function (_data) {
|
|
3277
|
+
_super.prototype.init.call(this, _data);
|
|
3278
|
+
};
|
|
3279
|
+
TestPlanSettingsChangedEventArgs.fromJS = function (data) {
|
|
3280
|
+
data = typeof data === 'object' ? data : {};
|
|
3281
|
+
var result = new TestPlanSettingsChangedEventArgs();
|
|
3282
|
+
result.init(data);
|
|
3283
|
+
return result;
|
|
3284
|
+
};
|
|
3285
|
+
TestPlanSettingsChangedEventArgs.prototype.toJSON = function (data) {
|
|
3286
|
+
data = typeof data === 'object' ? data : {};
|
|
3287
|
+
_super.prototype.toJSON.call(this, data);
|
|
3288
|
+
return data;
|
|
3289
|
+
};
|
|
3290
|
+
return TestPlanSettingsChangedEventArgs;
|
|
3291
|
+
}(SessionEvent));
|
|
3292
|
+
export { TestPlanSettingsChangedEventArgs };
|