@opentap/runner-client 2.18.0-alpha.1.2 → 2.18.0-alpha.1.4
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/DTOs.js +14 -2
- package/package.json +1 -1
package/lib/DTOs.js
CHANGED
|
@@ -1334,7 +1334,13 @@ var PluginTypeSelectorControl = /** @class */ (function (_super) {
|
|
|
1334
1334
|
PluginTypeSelectorControl.prototype.init = function (_data) {
|
|
1335
1335
|
_super.prototype.init.call(this, _data);
|
|
1336
1336
|
if (_data) {
|
|
1337
|
-
|
|
1337
|
+
if (Array.isArray(_data['AvailableValues'])) {
|
|
1338
|
+
this.availableValues = [];
|
|
1339
|
+
for (var _i = 0, _a = _data['AvailableValues']; _i < _a.length; _i++) {
|
|
1340
|
+
var item = _a[_i];
|
|
1341
|
+
this.availableValues.push(AvailableValue.fromJS(item));
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1338
1344
|
this.selectedIndex = _data['SelectedIndex'];
|
|
1339
1345
|
}
|
|
1340
1346
|
};
|
|
@@ -1346,7 +1352,13 @@ var PluginTypeSelectorControl = /** @class */ (function (_super) {
|
|
|
1346
1352
|
};
|
|
1347
1353
|
PluginTypeSelectorControl.prototype.toJSON = function (data) {
|
|
1348
1354
|
data = typeof data === 'object' ? data : {};
|
|
1349
|
-
|
|
1355
|
+
if (Array.isArray(this.availableValues)) {
|
|
1356
|
+
data['AvailableValues'] = [];
|
|
1357
|
+
for (var _i = 0, _a = this.availableValues; _i < _a.length; _i++) {
|
|
1358
|
+
var item = _a[_i];
|
|
1359
|
+
data['AvailableValues'].push(item.toJSON());
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1350
1362
|
data['SelectedIndex'] = this.selectedIndex;
|
|
1351
1363
|
_super.prototype.toJSON.call(this, data);
|
|
1352
1364
|
return data;
|