@opentap/runner-client 2.20.0-alpha.1.8.7789948835 → 2.20.0

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