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