@hpcc-js/comms 2.59.0 → 2.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -603,8 +603,8 @@
603
603
  }
604
604
 
605
605
  var PKG_NAME = "@hpcc-js/comms";
606
- var PKG_VERSION = "2.59.0";
607
- var BUILD_VERSION = "2.88.0";
606
+ var PKG_VERSION = "2.60.0";
607
+ var BUILD_VERSION = "2.89.0";
608
608
 
609
609
  /*! *****************************************************************************
610
610
  Copyright (c) Microsoft Corporation.
@@ -684,6 +684,16 @@
684
684
  } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
685
685
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
686
686
  }
687
+ }
688
+
689
+ function __spreadArray(to, from, pack) {
690
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
691
+ if (ar || !(i in from)) {
692
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
693
+ ar[i] = from[i];
694
+ }
695
+ }
696
+ return to.concat(ar || from);
687
697
  }
688
698
 
689
699
  var logger = util.scopedLogger("comms/connection.ts");
@@ -1669,7 +1679,7 @@
1669
1679
  var WorkunitsService = /** @class */ (function (_super) {
1670
1680
  __extends(WorkunitsService, _super);
1671
1681
  function WorkunitsService(optsConnection) {
1672
- return _super.call(this, optsConnection, "WsWorkunits", "1.8") || this;
1682
+ return _super.call(this, optsConnection, "WsWorkunits", "1.85") || this;
1673
1683
  }
1674
1684
  WorkunitsService.prototype.opts = function () {
1675
1685
  return this._connection.opts();
@@ -4278,37 +4288,37 @@
4278
4288
  configurable: true
4279
4289
  });
4280
4290
  Object.defineProperty(Workunit.prototype, "SourceFilesDesc", {
4281
- get: function () { return this.get("GraphsDesc"); },
4291
+ get: function () { return this.get("SourceFilesDesc"); },
4282
4292
  enumerable: false,
4283
4293
  configurable: true
4284
4294
  });
4285
4295
  Object.defineProperty(Workunit.prototype, "ResultsDesc", {
4286
- get: function () { return this.get("GraphsDesc"); },
4296
+ get: function () { return this.get("ResultsDesc"); },
4287
4297
  enumerable: false,
4288
4298
  configurable: true
4289
4299
  });
4290
4300
  Object.defineProperty(Workunit.prototype, "VariablesDesc", {
4291
- get: function () { return this.get("GraphsDesc"); },
4301
+ get: function () { return this.get("VariablesDesc"); },
4292
4302
  enumerable: false,
4293
4303
  configurable: true
4294
4304
  });
4295
4305
  Object.defineProperty(Workunit.prototype, "TimersDesc", {
4296
- get: function () { return this.get("GraphsDesc"); },
4306
+ get: function () { return this.get("TimersDesc"); },
4297
4307
  enumerable: false,
4298
4308
  configurable: true
4299
4309
  });
4300
4310
  Object.defineProperty(Workunit.prototype, "DebugValuesDesc", {
4301
- get: function () { return this.get("GraphsDesc"); },
4311
+ get: function () { return this.get("DebugValuesDesc"); },
4302
4312
  enumerable: false,
4303
4313
  configurable: true
4304
4314
  });
4305
4315
  Object.defineProperty(Workunit.prototype, "ApplicationValuesDesc", {
4306
- get: function () { return this.get("GraphsDesc"); },
4316
+ get: function () { return this.get("ApplicationValuesDesc"); },
4307
4317
  enumerable: false,
4308
4318
  configurable: true
4309
4319
  });
4310
4320
  Object.defineProperty(Workunit.prototype, "WorkflowsDesc", {
4311
- get: function () { return this.get("GraphsDesc"); },
4321
+ get: function () { return this.get("WorkflowsDesc"); },
4312
4322
  enumerable: false,
4313
4323
  configurable: true
4314
4324
  });
@@ -4317,6 +4327,16 @@
4317
4327
  enumerable: false,
4318
4328
  configurable: true
4319
4329
  });
4330
+ Object.defineProperty(Workunit.prototype, "ExecuteCost", {
4331
+ get: function () { return this.get("ExecuteCost"); },
4332
+ enumerable: false,
4333
+ configurable: true
4334
+ });
4335
+ Object.defineProperty(Workunit.prototype, "FileAccessCost", {
4336
+ get: function () { return this.get("FileAccessCost"); },
4337
+ enumerable: false,
4338
+ configurable: true
4339
+ });
4320
4340
  // Factories ---
4321
4341
  Workunit.create = function (optsConnection) {
4322
4342
  var retVal = new Workunit(optsConnection);
@@ -5657,6 +5677,24 @@
5657
5677
  });
5658
5678
  return retVal;
5659
5679
  };
5680
+ LogicalFile.prototype.filePartsOnCluster = function () {
5681
+ var _a;
5682
+ return __spreadArray([], (((_a = this.DFUFilePartsOnClusters) === null || _a === void 0 ? void 0 : _a.DFUFilePartsOnCluster) || []));
5683
+ };
5684
+ LogicalFile.prototype.fileParts = function () {
5685
+ var _a, _b;
5686
+ var retVal = [];
5687
+ for (var _i = 0, _c = ((_a = this.DFUFilePartsOnClusters) === null || _a === void 0 ? void 0 : _a.DFUFilePartsOnCluster) || []; _i < _c.length; _i++) {
5688
+ var poc = _c[_i];
5689
+ for (var _d = 0, _e = ((_b = poc === null || poc === void 0 ? void 0 : poc.DFUFileParts) === null || _b === void 0 ? void 0 : _b.DFUPart) || []; _d < _e.length; _d++) {
5690
+ var part = _e[_d];
5691
+ var row = __assign(__assign({}, poc), part);
5692
+ delete row.DFUFileParts;
5693
+ retVal.push(row);
5694
+ }
5695
+ }
5696
+ return retVal;
5697
+ };
5660
5698
  LogicalFile.prototype.update = function (request) {
5661
5699
  var _this = this;
5662
5700
  return this.connection.DFUInfo(__assign(__assign({}, request), {