@hpcc-js/comms 2.56.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.es6.js +79 -13
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +83 -12
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.node.js +77 -12
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.min.js +1 -1
- package/dist/index.node.min.js.map +1 -1
- package/lib-es6/__package__.js +2 -2
- package/lib-es6/ecl/logicalFile.js +34 -1
- package/lib-es6/ecl/logicalFile.js.map +1 -1
- package/lib-es6/ecl/workunit.js +17 -7
- package/lib-es6/ecl/workunit.js.map +1 -1
- package/lib-es6/index.node.js +5 -0
- package/lib-es6/index.node.js.map +1 -1
- package/lib-es6/services/wsAccount.js +10 -1
- package/lib-es6/services/wsAccount.js.map +1 -1
- package/lib-es6/services/wsDFU.js +10 -1
- package/lib-es6/services/wsDFU.js.map +1 -1
- package/lib-es6/services/wsWorkunits.js +3 -2
- package/lib-es6/services/wsWorkunits.js.map +1 -1
- package/package.json +7 -6
- package/src/__package__.ts +2 -2
- package/src/ecl/logicalFile.ts +42 -1
- package/src/ecl/workunit.ts +9 -7
- package/src/index.node.ts +6 -0
- package/src/services/wsAccount.ts +65 -6
- package/src/services/wsDFU.ts +14 -2
- package/src/services/wsWorkunits.ts +5 -2
- package/types/__package__.d.ts +2 -2
- package/types/ecl/logicalFile.d.ts +13 -1
- package/types/ecl/logicalFile.d.ts.map +1 -1
- package/types/ecl/workunit.d.ts +2 -0
- package/types/ecl/workunit.d.ts.map +1 -1
- package/types/index.node.d.ts.map +1 -1
- package/types/services/wsAccount.d.ts +45 -4
- package/types/services/wsAccount.d.ts.map +1 -1
- package/types/services/wsDFU.d.ts +4 -1
- package/types/services/wsDFU.d.ts.map +1 -1
- package/types/services/wsWorkunits.d.ts +2 -0
- package/types/services/wsWorkunits.d.ts.map +1 -1
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/ecl/logicalFile.d.ts +13 -1
- package/types-3.4/ecl/workunit.d.ts +2 -0
- package/types-3.4/services/wsAccount.d.ts +45 -4
- package/types-3.4/services/wsDFU.d.ts +4 -1
- package/types-3.4/services/wsWorkunits.d.ts +2 -0
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.
|
|
607
|
-
var BUILD_VERSION = "2.
|
|
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");
|
|
@@ -1073,11 +1083,20 @@
|
|
|
1073
1083
|
|
|
1074
1084
|
var AccountService = /** @class */ (function () {
|
|
1075
1085
|
function AccountService(optsConnection) {
|
|
1076
|
-
this._connection = new ESPConnection(optsConnection, "Ws_Account", "1.
|
|
1086
|
+
this._connection = new ESPConnection(optsConnection, "Ws_Account", "1.05");
|
|
1077
1087
|
}
|
|
1078
1088
|
AccountService.prototype.connectionOptions = function () {
|
|
1079
1089
|
return this._connection.opts();
|
|
1080
1090
|
};
|
|
1091
|
+
AccountService.prototype.MyAccount = function (request) {
|
|
1092
|
+
return this._connection.send("MyAccount", request);
|
|
1093
|
+
};
|
|
1094
|
+
AccountService.prototype.UpdateUser = function (request) {
|
|
1095
|
+
return this._connection.send("UpdateUser", request);
|
|
1096
|
+
};
|
|
1097
|
+
AccountService.prototype.UpdateUserInput = function (request) {
|
|
1098
|
+
return this._connection.send("UpdateUserInput", request);
|
|
1099
|
+
};
|
|
1081
1100
|
AccountService.prototype.VerifyUser = function (request) {
|
|
1082
1101
|
return this._connection.send("VerifyUser", request)
|
|
1083
1102
|
.catch(function (e) {
|
|
@@ -1123,7 +1142,7 @@
|
|
|
1123
1142
|
var DFUService = /** @class */ (function (_super) {
|
|
1124
1143
|
__extends(DFUService, _super);
|
|
1125
1144
|
function DFUService(optsConnection) {
|
|
1126
|
-
return _super.call(this, optsConnection, "WsDfu", "1.
|
|
1145
|
+
return _super.call(this, optsConnection, "WsDfu", "1.60") || this;
|
|
1127
1146
|
}
|
|
1128
1147
|
DFUService.prototype.DFUQuery = function (request) {
|
|
1129
1148
|
return this._connection.send("DFUQuery", request);
|
|
@@ -1131,6 +1150,15 @@
|
|
|
1131
1150
|
DFUService.prototype.DFUInfo = function (request) {
|
|
1132
1151
|
return this._connection.send("DFUInfo", request);
|
|
1133
1152
|
};
|
|
1153
|
+
DFUService.prototype.DFUFile = function (request) {
|
|
1154
|
+
return this._connection.send("DFUDefFile", request, "text");
|
|
1155
|
+
};
|
|
1156
|
+
DFUService.prototype.ListHistory = function (request) {
|
|
1157
|
+
return this._connection.send("ListHistory", request);
|
|
1158
|
+
};
|
|
1159
|
+
DFUService.prototype.EraseHistory = function (request) {
|
|
1160
|
+
return this._connection.send("EraseHistory", request);
|
|
1161
|
+
};
|
|
1134
1162
|
return DFUService;
|
|
1135
1163
|
}(Service));
|
|
1136
1164
|
|
|
@@ -1651,7 +1679,7 @@
|
|
|
1651
1679
|
var WorkunitsService = /** @class */ (function (_super) {
|
|
1652
1680
|
__extends(WorkunitsService, _super);
|
|
1653
1681
|
function WorkunitsService(optsConnection) {
|
|
1654
|
-
return _super.call(this, optsConnection, "WsWorkunits", "1.
|
|
1682
|
+
return _super.call(this, optsConnection, "WsWorkunits", "1.85") || this;
|
|
1655
1683
|
}
|
|
1656
1684
|
WorkunitsService.prototype.opts = function () {
|
|
1657
1685
|
return this._connection.opts();
|
|
@@ -4260,37 +4288,37 @@
|
|
|
4260
4288
|
configurable: true
|
|
4261
4289
|
});
|
|
4262
4290
|
Object.defineProperty(Workunit.prototype, "SourceFilesDesc", {
|
|
4263
|
-
get: function () { return this.get("
|
|
4291
|
+
get: function () { return this.get("SourceFilesDesc"); },
|
|
4264
4292
|
enumerable: false,
|
|
4265
4293
|
configurable: true
|
|
4266
4294
|
});
|
|
4267
4295
|
Object.defineProperty(Workunit.prototype, "ResultsDesc", {
|
|
4268
|
-
get: function () { return this.get("
|
|
4296
|
+
get: function () { return this.get("ResultsDesc"); },
|
|
4269
4297
|
enumerable: false,
|
|
4270
4298
|
configurable: true
|
|
4271
4299
|
});
|
|
4272
4300
|
Object.defineProperty(Workunit.prototype, "VariablesDesc", {
|
|
4273
|
-
get: function () { return this.get("
|
|
4301
|
+
get: function () { return this.get("VariablesDesc"); },
|
|
4274
4302
|
enumerable: false,
|
|
4275
4303
|
configurable: true
|
|
4276
4304
|
});
|
|
4277
4305
|
Object.defineProperty(Workunit.prototype, "TimersDesc", {
|
|
4278
|
-
get: function () { return this.get("
|
|
4306
|
+
get: function () { return this.get("TimersDesc"); },
|
|
4279
4307
|
enumerable: false,
|
|
4280
4308
|
configurable: true
|
|
4281
4309
|
});
|
|
4282
4310
|
Object.defineProperty(Workunit.prototype, "DebugValuesDesc", {
|
|
4283
|
-
get: function () { return this.get("
|
|
4311
|
+
get: function () { return this.get("DebugValuesDesc"); },
|
|
4284
4312
|
enumerable: false,
|
|
4285
4313
|
configurable: true
|
|
4286
4314
|
});
|
|
4287
4315
|
Object.defineProperty(Workunit.prototype, "ApplicationValuesDesc", {
|
|
4288
|
-
get: function () { return this.get("
|
|
4316
|
+
get: function () { return this.get("ApplicationValuesDesc"); },
|
|
4289
4317
|
enumerable: false,
|
|
4290
4318
|
configurable: true
|
|
4291
4319
|
});
|
|
4292
4320
|
Object.defineProperty(Workunit.prototype, "WorkflowsDesc", {
|
|
4293
|
-
get: function () { return this.get("
|
|
4321
|
+
get: function () { return this.get("WorkflowsDesc"); },
|
|
4294
4322
|
enumerable: false,
|
|
4295
4323
|
configurable: true
|
|
4296
4324
|
});
|
|
@@ -4299,6 +4327,16 @@
|
|
|
4299
4327
|
enumerable: false,
|
|
4300
4328
|
configurable: true
|
|
4301
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
|
+
});
|
|
4302
4340
|
// Factories ---
|
|
4303
4341
|
Workunit.create = function (optsConnection) {
|
|
4304
4342
|
var retVal = new Workunit(optsConnection);
|
|
@@ -5639,6 +5677,24 @@
|
|
|
5639
5677
|
});
|
|
5640
5678
|
return retVal;
|
|
5641
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
|
+
};
|
|
5642
5698
|
LogicalFile.prototype.update = function (request) {
|
|
5643
5699
|
var _this = this;
|
|
5644
5700
|
return this.connection.DFUInfo(__assign(__assign({}, request), {
|
|
@@ -5656,6 +5712,21 @@
|
|
|
5656
5712
|
return response.FileDetail;
|
|
5657
5713
|
});
|
|
5658
5714
|
};
|
|
5715
|
+
LogicalFile.prototype.fetchDefFile = function (format) {
|
|
5716
|
+
return this.connection.DFUFile({ Name: this.Name, Format: format });
|
|
5717
|
+
};
|
|
5718
|
+
LogicalFile.prototype.fetchListHistory = function () {
|
|
5719
|
+
return this.connection.ListHistory({ Name: this.Name }).then(function (response) {
|
|
5720
|
+
var _a;
|
|
5721
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.History) === null || _a === void 0 ? void 0 : _a.Origin) || [];
|
|
5722
|
+
});
|
|
5723
|
+
};
|
|
5724
|
+
LogicalFile.prototype.eraseHistory = function () {
|
|
5725
|
+
return this.connection.EraseHistory({ Name: this.Name }).then(function (response) {
|
|
5726
|
+
var _a;
|
|
5727
|
+
return ((_a = response === null || response === void 0 ? void 0 : response.History) === null || _a === void 0 ? void 0 : _a.Origin) || [];
|
|
5728
|
+
});
|
|
5729
|
+
};
|
|
5659
5730
|
return LogicalFile;
|
|
5660
5731
|
}(util.StateObject));
|
|
5661
5732
|
|