@hpcc-js/comms 2.91.3 → 2.92.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 +86 -95
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +101 -110
- 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 +101 -110
- 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/__tests__/workunit.js +1 -1
- package/lib-es6/__tests__/workunit.js.map +1 -1
- package/lib-es6/ecl/dfuWorkunit.js +8 -2
- package/lib-es6/ecl/dfuWorkunit.js.map +1 -1
- package/lib-es6/ecl/graph.js.map +1 -1
- package/lib-es6/ecl/query.js +5 -0
- package/lib-es6/ecl/query.js.map +1 -1
- package/lib-es6/ecl/result.js +2 -1
- package/lib-es6/ecl/result.js.map +1 -1
- package/lib-es6/ecl/scope.js +5 -0
- package/lib-es6/ecl/scope.js.map +1 -1
- package/lib-es6/ecl/sourceFile.js.map +1 -1
- package/lib-es6/ecl/timer.js +10 -0
- package/lib-es6/ecl/timer.js.map +1 -1
- package/lib-es6/ecl/workunit.js +41 -37
- package/lib-es6/ecl/workunit.js.map +1 -1
- package/lib-es6/services/wsWorkunits.js +14 -60
- package/lib-es6/services/wsWorkunits.js.map +1 -1
- package/lib-es6/services/wsdl/WsWorkunits/v1.97/WsWorkunits.js +376 -0
- package/lib-es6/services/wsdl/WsWorkunits/v1.97/WsWorkunits.js.map +1 -0
- package/lib-es6/services/wsdl/WsWorkunits/v1.99/WsWorkunits.js +376 -0
- package/lib-es6/services/wsdl/WsWorkunits/v1.99/WsWorkunits.js.map +1 -0
- package/lib-es6/services/wsdl/WsWorkunits/v2/WsWorkunits.js +376 -0
- package/lib-es6/services/wsdl/WsWorkunits/v2/WsWorkunits.js.map +1 -0
- package/package.json +7 -6
- package/src/__package__.ts +2 -2
- package/src/__tests__/workunit.ts +1 -1
- package/src/ecl/dfuWorkunit.ts +7 -2
- package/src/ecl/graph.ts +4 -4
- package/src/ecl/query.ts +17 -16
- package/src/ecl/result.ts +36 -17
- package/src/ecl/scope.ts +10 -9
- package/src/ecl/sourceFile.ts +5 -5
- package/src/ecl/timer.ts +6 -4
- package/src/ecl/workunit.ts +87 -87
- package/src/services/wsWorkunits.ts +41 -2661
- package/src/services/wsdl/WsWorkunits/v1.97/WsWorkunits.ts +3134 -0
- package/src/services/wsdl/WsWorkunits/v1.99/WsWorkunits.ts +3162 -0
- package/src/services/wsdl/WsWorkunits/v2/WsWorkunits.ts +3165 -0
- package/types/__package__.d.ts +2 -2
- package/types/ecl/dfuWorkunit.d.ts.map +1 -1
- package/types/ecl/graph.d.ts +4 -4
- package/types/ecl/graph.d.ts.map +1 -1
- package/types/ecl/query.d.ts +16 -15
- package/types/ecl/query.d.ts.map +1 -1
- package/types/ecl/result.d.ts +26 -7
- package/types/ecl/result.d.ts.map +1 -1
- package/types/ecl/scope.d.ts +10 -9
- package/types/ecl/scope.d.ts.map +1 -1
- package/types/ecl/sourceFile.d.ts +5 -5
- package/types/ecl/sourceFile.d.ts.map +1 -1
- package/types/ecl/timer.d.ts +6 -4
- package/types/ecl/timer.d.ts.map +1 -1
- package/types/ecl/workunit.d.ts +66 -65
- package/types/ecl/workunit.d.ts.map +1 -1
- package/types/services/wsWorkunits.d.ts +17 -2256
- package/types/services/wsWorkunits.d.ts.map +1 -1
- package/types/services/wsdl/WsWorkunits/v1.97/WsWorkunits.d.ts +2529 -0
- package/types/services/wsdl/WsWorkunits/v1.97/WsWorkunits.d.ts.map +1 -0
- package/types/services/wsdl/WsWorkunits/v1.99/WsWorkunits.d.ts +2555 -0
- package/types/services/wsdl/WsWorkunits/v1.99/WsWorkunits.d.ts.map +1 -0
- package/types/services/wsdl/WsWorkunits/v2/WsWorkunits.d.ts +2558 -0
- package/types/services/wsdl/WsWorkunits/v2/WsWorkunits.d.ts.map +1 -0
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/ecl/graph.d.ts +4 -4
- package/types-3.4/ecl/query.d.ts +16 -15
- package/types-3.4/ecl/result.d.ts +26 -7
- package/types-3.4/ecl/scope.d.ts +10 -9
- package/types-3.4/ecl/sourceFile.d.ts +5 -5
- package/types-3.4/ecl/timer.d.ts +6 -4
- package/types-3.4/ecl/workunit.d.ts +66 -65
- package/types-3.4/services/wsWorkunits.d.ts +17 -2256
- package/types-3.4/services/wsdl/WsWorkunits/v1.97/WsWorkunits.d.ts +2529 -0
- package/types-3.4/services/wsdl/WsWorkunits/v1.99/WsWorkunits.d.ts +2555 -0
- package/types-3.4/services/wsdl/WsWorkunits/v2/WsWorkunits.d.ts +2558 -0
package/dist/index.js
CHANGED
|
@@ -648,8 +648,8 @@
|
|
|
648
648
|
}
|
|
649
649
|
|
|
650
650
|
var PKG_NAME = "@hpcc-js/comms";
|
|
651
|
-
var PKG_VERSION = "2.
|
|
652
|
-
var BUILD_VERSION = "2.105.
|
|
651
|
+
var PKG_VERSION = "2.92.0";
|
|
652
|
+
var BUILD_VERSION = "2.105.6";
|
|
653
653
|
|
|
654
654
|
/******************************************************************************
|
|
655
655
|
Copyright (c) Microsoft Corporation.
|
|
@@ -2839,6 +2839,11 @@
|
|
|
2839
2839
|
LogEventClass["MET"] = "MET";
|
|
2840
2840
|
LogEventClass["EVT"] = "EVT";
|
|
2841
2841
|
})(WsWorkunits.LogEventClass || (WsWorkunits.LogEventClass = {}));
|
|
2842
|
+
(function (WUDetailsAttrValueType) {
|
|
2843
|
+
WUDetailsAttrValueType["Single"] = "Single";
|
|
2844
|
+
WUDetailsAttrValueType["List"] = "List";
|
|
2845
|
+
WUDetailsAttrValueType["Multi"] = "Multi";
|
|
2846
|
+
})(WsWorkunits.WUDetailsAttrValueType || (WsWorkunits.WUDetailsAttrValueType = {}));
|
|
2842
2847
|
(function (EclDefinitionActions) {
|
|
2843
2848
|
EclDefinitionActions["SyntaxCheck"] = "SyntaxCheck";
|
|
2844
2849
|
EclDefinitionActions["Deploy"] = "Deploy";
|
|
@@ -2907,7 +2912,7 @@
|
|
|
2907
2912
|
var WorkunitsServiceBase = /** @class */ (function (_super) {
|
|
2908
2913
|
__extends(WorkunitsServiceBase, _super);
|
|
2909
2914
|
function WorkunitsServiceBase(optsConnection) {
|
|
2910
|
-
return _super.call(this, optsConnection, "WsWorkunits", "
|
|
2915
|
+
return _super.call(this, optsConnection, "WsWorkunits", "2") || this;
|
|
2911
2916
|
}
|
|
2912
2917
|
WorkunitsServiceBase.prototype.GVCAjaxGraph = function (request) {
|
|
2913
2918
|
return this._connection.send("GVCAjaxGraph", request, "json", false, undefined, "GVCAjaxGraphResponse");
|
|
@@ -3177,9 +3182,6 @@
|
|
|
3177
3182
|
WUStateID[WUStateID["LAST"] = 17] = "LAST";
|
|
3178
3183
|
WUStateID[WUStateID["NotFound"] = 999] = "NotFound";
|
|
3179
3184
|
})(exports.WUStateID || (exports.WUStateID = {}));
|
|
3180
|
-
function isECLResult(_) {
|
|
3181
|
-
return typeof _.Name === "string";
|
|
3182
|
-
}
|
|
3183
3185
|
exports.WUUpdate = void 0;
|
|
3184
3186
|
(function (WUUpdate) {
|
|
3185
3187
|
(function (Action) {
|
|
@@ -3195,6 +3197,9 @@
|
|
|
3195
3197
|
Action[Action["__size"] = 9] = "__size";
|
|
3196
3198
|
})(WUUpdate.Action || (WUUpdate.Action = {}));
|
|
3197
3199
|
})(exports.WUUpdate || (exports.WUUpdate = {}));
|
|
3200
|
+
function isECLResult(_) {
|
|
3201
|
+
return typeof _.Name === "string";
|
|
3202
|
+
}
|
|
3198
3203
|
function isWUQueryECLWorkunit(_) {
|
|
3199
3204
|
return _.TotalClusterTime !== undefined;
|
|
3200
3205
|
}
|
|
@@ -3204,7 +3209,7 @@
|
|
|
3204
3209
|
var WorkunitsService = /** @class */ (function (_super) {
|
|
3205
3210
|
__extends(WorkunitsService, _super);
|
|
3206
3211
|
function WorkunitsService(optsConnection) {
|
|
3207
|
-
return _super.call(this, optsConnection
|
|
3212
|
+
return _super.call(this, optsConnection) || this;
|
|
3208
3213
|
}
|
|
3209
3214
|
WorkunitsService.prototype.opts = function () {
|
|
3210
3215
|
return this._connection.opts();
|
|
@@ -3221,86 +3226,41 @@
|
|
|
3221
3226
|
};
|
|
3222
3227
|
WorkunitsService.prototype.WUQuery = function (request) {
|
|
3223
3228
|
if (request === void 0) { request = {}; }
|
|
3224
|
-
return
|
|
3229
|
+
return _super.prototype.WUQuery.call(this, request).then(function (response) {
|
|
3225
3230
|
return util.deepMixin({ Workunits: { ECLWorkunit: [] } }, response);
|
|
3226
3231
|
});
|
|
3227
3232
|
};
|
|
3228
3233
|
WorkunitsService.prototype.WUInfo = function (_request) {
|
|
3229
3234
|
var request = __assign({ Wuid: "", TruncateEclTo64k: true, IncludeExceptions: false, IncludeGraphs: false, IncludeSourceFiles: false, IncludeResults: false, IncludeResultsViewNames: false, IncludeVariables: false, IncludeTimers: false, IncludeDebugValues: false, IncludeApplicationValues: false, IncludeWorkflows: false, IncludeXmlSchemas: false, IncludeResourceURLs: false, IncludeECL: false, IncludeHelpers: false, IncludeAllowedClusters: false, IncludeTotalClusterTime: false, IncludeServiceNames: false, SuppressResultSchemas: true }, _request);
|
|
3230
|
-
return
|
|
3235
|
+
return _super.prototype.WUInfo.call(this, request);
|
|
3231
3236
|
};
|
|
3232
3237
|
WorkunitsService.prototype.WUCreate = function () {
|
|
3233
|
-
return
|
|
3238
|
+
return _super.prototype.WUCreate.call(this, {});
|
|
3234
3239
|
};
|
|
3235
3240
|
WorkunitsService.prototype.WUUpdate = function (request) {
|
|
3236
3241
|
return this._connection.send("WUUpdate", request, "json", true);
|
|
3237
3242
|
};
|
|
3238
|
-
WorkunitsService.prototype.WUSubmit = function (request) {
|
|
3239
|
-
return this._connection.send("WUSubmit", request);
|
|
3240
|
-
};
|
|
3241
3243
|
WorkunitsService.prototype.WUResubmit = function (request) {
|
|
3242
3244
|
this._connection.toESPStringArray(request, "Wuids");
|
|
3243
|
-
return
|
|
3244
|
-
};
|
|
3245
|
-
WorkunitsService.prototype.WUQueryDetails = function (request) {
|
|
3246
|
-
return this._connection.send("WUQueryDetails", request);
|
|
3247
|
-
};
|
|
3248
|
-
WorkunitsService.prototype.WUListQueries = function (request) {
|
|
3249
|
-
return this._connection.send("WUListQueries", request);
|
|
3250
|
-
};
|
|
3251
|
-
WorkunitsService.prototype.WUPushEvent = function (request) {
|
|
3252
|
-
return this._connection.send("WUPushEvent", request);
|
|
3245
|
+
return _super.prototype.WUResubmit.call(this, request);
|
|
3253
3246
|
};
|
|
3254
3247
|
WorkunitsService.prototype.WUAction = function (request) {
|
|
3255
3248
|
request.ActionType = request.WUActionType; // v5.x compatibility
|
|
3256
|
-
return
|
|
3257
|
-
};
|
|
3258
|
-
WorkunitsService.prototype.WUGetZAPInfo = function (request) {
|
|
3259
|
-
return this._connection.send("WUGetZAPInfo", request);
|
|
3260
|
-
};
|
|
3261
|
-
WorkunitsService.prototype.WUShowScheduled = function (request) {
|
|
3262
|
-
return this._connection.send("WUShowScheduled", request);
|
|
3263
|
-
};
|
|
3264
|
-
WorkunitsService.prototype.WUQuerySetAliasAction = function (request) {
|
|
3265
|
-
return this._connection.send("WUQuerySetAliasAction", request);
|
|
3266
|
-
};
|
|
3267
|
-
WorkunitsService.prototype.WUQuerySetQueryAction = function (request) {
|
|
3268
|
-
return this._connection.send("WUQuerySetQueryAction", request);
|
|
3269
|
-
};
|
|
3270
|
-
WorkunitsService.prototype.WUPublishWorkunit = function (request) {
|
|
3271
|
-
return this._connection.send("WUPublishWorkunit", request);
|
|
3272
|
-
};
|
|
3273
|
-
WorkunitsService.prototype.WUQueryFiles = function (request) {
|
|
3274
|
-
return this._connection.send("WUQueryFiles", request);
|
|
3275
|
-
};
|
|
3276
|
-
WorkunitsService.prototype.WUGetGraph = function (request) {
|
|
3277
|
-
return this._connection.send("WUGetGraph", request);
|
|
3249
|
+
return _super.prototype.WUAction.call(this, request);
|
|
3278
3250
|
};
|
|
3279
3251
|
WorkunitsService.prototype.WUResult = function (request, abortSignal) {
|
|
3280
3252
|
return this._connection.send("WUResult", request, "json", false, abortSignal);
|
|
3281
3253
|
};
|
|
3282
|
-
WorkunitsService.prototype.
|
|
3283
|
-
return this._connection.send("WUQueryGetGraph", request);
|
|
3284
|
-
};
|
|
3285
|
-
WorkunitsService.prototype.WUFile = function (request) {
|
|
3254
|
+
WorkunitsService.prototype.WUFileEx = function (request) {
|
|
3286
3255
|
return this._connection.send("WUFile", request, "text");
|
|
3287
3256
|
};
|
|
3288
|
-
WorkunitsService.prototype.WUGetStats = function (request) {
|
|
3289
|
-
return this._connection.send("WUGetStats", request);
|
|
3290
|
-
};
|
|
3291
|
-
WorkunitsService.prototype.WUQueryGetSummaryStats = function (request) {
|
|
3292
|
-
return this._connection.send("WUQueryGetSummaryStats", request);
|
|
3293
|
-
};
|
|
3294
3257
|
WorkunitsService.prototype.WUDetailsMeta = function (request) {
|
|
3295
3258
|
if (!this._WUDetailsMetaPromise) {
|
|
3296
|
-
this._WUDetailsMetaPromise =
|
|
3259
|
+
this._WUDetailsMetaPromise = _super.prototype.WUDetailsMeta.call(this, request);
|
|
3297
3260
|
}
|
|
3298
3261
|
return this._WUDetailsMetaPromise;
|
|
3299
3262
|
};
|
|
3300
|
-
WorkunitsService.prototype.
|
|
3301
|
-
return this._connection.send("WUDetails", request);
|
|
3302
|
-
};
|
|
3303
|
-
WorkunitsService.prototype.WUCDebug = function (request) {
|
|
3263
|
+
WorkunitsService.prototype.WUCDebugEx = function (request) {
|
|
3304
3264
|
return this._connection.send("WUCDebug", request, undefined, undefined, undefined, "WUDebug").then(function (response) {
|
|
3305
3265
|
var retVal = util.xml2json(response.Result);
|
|
3306
3266
|
var children = retVal.children();
|
|
@@ -3311,7 +3271,7 @@
|
|
|
3311
3271
|
});
|
|
3312
3272
|
};
|
|
3313
3273
|
return WorkunitsService;
|
|
3314
|
-
}(
|
|
3274
|
+
}(WorkunitsServiceBase));
|
|
3315
3275
|
var WorkunitsServiceEx = /** @class */ (function (_super) {
|
|
3316
3276
|
__extends(WorkunitsServiceEx, _super);
|
|
3317
3277
|
function WorkunitsServiceEx() {
|
|
@@ -5286,7 +5246,8 @@
|
|
|
5286
5246
|
if (refresh === void 0) { refresh = false; }
|
|
5287
5247
|
if (!this._fetchXMLSchemaPromise || refresh) {
|
|
5288
5248
|
this._fetchXMLSchemaPromise = this.WUResult().then(function (response) {
|
|
5289
|
-
|
|
5249
|
+
var _a, _b;
|
|
5250
|
+
if ((_b = (_a = response.Result) === null || _a === void 0 ? void 0 : _a.XmlSchema) === null || _b === void 0 ? void 0 : _b.xml) {
|
|
5290
5251
|
_this.xsdSchema = parseXSD(response.Result.XmlSchema.xml);
|
|
5291
5252
|
return _this.xsdSchema;
|
|
5292
5253
|
}
|
|
@@ -5479,6 +5440,11 @@
|
|
|
5479
5440
|
enumerable: false,
|
|
5480
5441
|
configurable: true
|
|
5481
5442
|
});
|
|
5443
|
+
Object.defineProperty(BaseScope.prototype, "SinkActivity", {
|
|
5444
|
+
get: function () { return this.get("SinkActivity"); },
|
|
5445
|
+
enumerable: false,
|
|
5446
|
+
configurable: true
|
|
5447
|
+
});
|
|
5482
5448
|
Object.defineProperty(BaseScope.prototype, "CAttributes", {
|
|
5483
5449
|
get: function () {
|
|
5484
5450
|
var _this = this;
|
|
@@ -5729,6 +5695,16 @@
|
|
|
5729
5695
|
enumerable: false,
|
|
5730
5696
|
configurable: true
|
|
5731
5697
|
});
|
|
5698
|
+
Object.defineProperty(Timer.prototype, "Timestamp", {
|
|
5699
|
+
get: function () { return this.get("Timestamp"); },
|
|
5700
|
+
enumerable: false,
|
|
5701
|
+
configurable: true
|
|
5702
|
+
});
|
|
5703
|
+
Object.defineProperty(Timer.prototype, "When", {
|
|
5704
|
+
get: function () { return this.get("When"); },
|
|
5705
|
+
enumerable: false,
|
|
5706
|
+
configurable: true
|
|
5707
|
+
});
|
|
5732
5708
|
return Timer;
|
|
5733
5709
|
}(util.StateObject));
|
|
5734
5710
|
|
|
@@ -5819,7 +5795,6 @@
|
|
|
5819
5795
|
return null;
|
|
5820
5796
|
}
|
|
5821
5797
|
var logger$2 = util.scopedLogger("workunit.ts");
|
|
5822
|
-
var WUStateID = exports.WUStateID;
|
|
5823
5798
|
var WorkunitCache = /** @class */ (function (_super) {
|
|
5824
5799
|
__extends(WorkunitCache, _super);
|
|
5825
5800
|
function WorkunitCache() {
|
|
@@ -6064,11 +6039,6 @@
|
|
|
6064
6039
|
enumerable: false,
|
|
6065
6040
|
configurable: true
|
|
6066
6041
|
});
|
|
6067
|
-
Object.defineProperty(Workunit.prototype, "HaveSubGraphTimings", {
|
|
6068
|
-
get: function () { return this.get("HaveSubGraphTimings"); },
|
|
6069
|
-
enumerable: false,
|
|
6070
|
-
configurable: true
|
|
6071
|
-
});
|
|
6072
6042
|
Object.defineProperty(Workunit.prototype, "Query", {
|
|
6073
6043
|
get: function () { return this.get("Query"); },
|
|
6074
6044
|
enumerable: false,
|
|
@@ -6307,6 +6277,16 @@
|
|
|
6307
6277
|
enumerable: false,
|
|
6308
6278
|
configurable: true
|
|
6309
6279
|
});
|
|
6280
|
+
Object.defineProperty(Workunit.prototype, "NoAccess", {
|
|
6281
|
+
get: function () { return this.get("NoAccess"); },
|
|
6282
|
+
enumerable: false,
|
|
6283
|
+
configurable: true
|
|
6284
|
+
});
|
|
6285
|
+
Object.defineProperty(Workunit.prototype, "ECLWUProcessList", {
|
|
6286
|
+
get: function () { return this.get("ECLWUProcessList"); },
|
|
6287
|
+
enumerable: false,
|
|
6288
|
+
configurable: true
|
|
6289
|
+
});
|
|
6310
6290
|
// Factories ---
|
|
6311
6291
|
Workunit.create = function (optsConnection) {
|
|
6312
6292
|
var retVal = new Workunit(optsConnection);
|
|
@@ -6350,14 +6330,14 @@
|
|
|
6350
6330
|
Workunit.prototype.clearState = function (wuid) {
|
|
6351
6331
|
this.clear({
|
|
6352
6332
|
Wuid: wuid,
|
|
6353
|
-
StateID: WUStateID.Unknown
|
|
6333
|
+
StateID: exports.WUStateID.Unknown
|
|
6354
6334
|
});
|
|
6355
6335
|
};
|
|
6356
6336
|
Workunit.prototype.update = function (request) {
|
|
6357
6337
|
var _this = this;
|
|
6358
6338
|
return this.connection.WUUpdate(__assign(__assign({}, request), {
|
|
6359
6339
|
Wuid: this.Wuid,
|
|
6360
|
-
StateOrig: this.
|
|
6340
|
+
StateOrig: this.StateID,
|
|
6361
6341
|
JobnameOrig: this.Jobname,
|
|
6362
6342
|
DescriptionOrig: this.Description,
|
|
6363
6343
|
ProtectedOrig: this.Protected,
|
|
@@ -6408,83 +6388,83 @@
|
|
|
6408
6388
|
};
|
|
6409
6389
|
Workunit.prototype.isComplete = function () {
|
|
6410
6390
|
switch (this.StateID) {
|
|
6411
|
-
case WUStateID.Compiled:
|
|
6391
|
+
case exports.WUStateID.Compiled:
|
|
6412
6392
|
return this.ActionEx === "compile" || this._submitAction === exports.WUUpdate.Action.Compile;
|
|
6413
|
-
case WUStateID.Completed:
|
|
6414
|
-
case WUStateID.Failed:
|
|
6415
|
-
case WUStateID.Aborted:
|
|
6416
|
-
case WUStateID.NotFound:
|
|
6393
|
+
case exports.WUStateID.Completed:
|
|
6394
|
+
case exports.WUStateID.Failed:
|
|
6395
|
+
case exports.WUStateID.Aborted:
|
|
6396
|
+
case exports.WUStateID.NotFound:
|
|
6417
6397
|
return true;
|
|
6418
6398
|
}
|
|
6419
6399
|
return false;
|
|
6420
6400
|
};
|
|
6421
6401
|
Workunit.prototype.isFailed = function () {
|
|
6422
6402
|
switch (this.StateID) {
|
|
6423
|
-
case WUStateID.Aborted:
|
|
6424
|
-
case WUStateID.Failed:
|
|
6403
|
+
case exports.WUStateID.Aborted:
|
|
6404
|
+
case exports.WUStateID.Failed:
|
|
6425
6405
|
return true;
|
|
6426
6406
|
}
|
|
6427
6407
|
return false;
|
|
6428
6408
|
};
|
|
6429
6409
|
Workunit.prototype.isDeleted = function () {
|
|
6430
6410
|
switch (this.StateID) {
|
|
6431
|
-
case WUStateID.NotFound:
|
|
6411
|
+
case exports.WUStateID.NotFound:
|
|
6432
6412
|
return true;
|
|
6433
6413
|
}
|
|
6434
6414
|
return false;
|
|
6435
6415
|
};
|
|
6436
6416
|
Workunit.prototype.isDebugging = function () {
|
|
6437
6417
|
switch (this.StateID) {
|
|
6438
|
-
case WUStateID.DebugPaused:
|
|
6439
|
-
case WUStateID.DebugRunning:
|
|
6418
|
+
case exports.WUStateID.DebugPaused:
|
|
6419
|
+
case exports.WUStateID.DebugRunning:
|
|
6440
6420
|
return true;
|
|
6441
6421
|
}
|
|
6442
6422
|
return this._debugMode;
|
|
6443
6423
|
};
|
|
6444
6424
|
Workunit.prototype.isRunning = function () {
|
|
6445
6425
|
switch (this.StateID) {
|
|
6446
|
-
case WUStateID.Compiled:
|
|
6447
|
-
case WUStateID.Running:
|
|
6448
|
-
case WUStateID.Aborting:
|
|
6449
|
-
case WUStateID.Blocked:
|
|
6450
|
-
case WUStateID.DebugPaused:
|
|
6451
|
-
case WUStateID.DebugRunning:
|
|
6426
|
+
case exports.WUStateID.Compiled:
|
|
6427
|
+
case exports.WUStateID.Running:
|
|
6428
|
+
case exports.WUStateID.Aborting:
|
|
6429
|
+
case exports.WUStateID.Blocked:
|
|
6430
|
+
case exports.WUStateID.DebugPaused:
|
|
6431
|
+
case exports.WUStateID.DebugRunning:
|
|
6452
6432
|
return true;
|
|
6453
6433
|
}
|
|
6454
6434
|
return false;
|
|
6455
6435
|
};
|
|
6456
6436
|
Workunit.prototype.setToFailed = function () {
|
|
6457
|
-
return this.WUAction(
|
|
6437
|
+
return this.WUAction(exports.WsWorkunits.ECLWUActions.SetToFailed);
|
|
6458
6438
|
};
|
|
6459
6439
|
Workunit.prototype.pause = function () {
|
|
6460
|
-
return this.WUAction(
|
|
6440
|
+
return this.WUAction(exports.WsWorkunits.ECLWUActions.Pause);
|
|
6461
6441
|
};
|
|
6462
6442
|
Workunit.prototype.pauseNow = function () {
|
|
6463
|
-
return this.WUAction(
|
|
6443
|
+
return this.WUAction(exports.WsWorkunits.ECLWUActions.PauseNow);
|
|
6464
6444
|
};
|
|
6465
6445
|
Workunit.prototype.resume = function () {
|
|
6466
|
-
return this.WUAction(
|
|
6446
|
+
return this.WUAction(exports.WsWorkunits.ECLWUActions.Resume);
|
|
6467
6447
|
};
|
|
6468
6448
|
Workunit.prototype.abort = function () {
|
|
6469
|
-
return this.WUAction(
|
|
6449
|
+
return this.WUAction(exports.WsWorkunits.ECLWUActions.Abort);
|
|
6470
6450
|
};
|
|
6471
6451
|
Workunit.prototype.protect = function () {
|
|
6472
|
-
return this.WUAction(
|
|
6452
|
+
return this.WUAction(exports.WsWorkunits.ECLWUActions.Protect);
|
|
6473
6453
|
};
|
|
6474
6454
|
Workunit.prototype.unprotect = function () {
|
|
6475
|
-
return this.WUAction(
|
|
6455
|
+
return this.WUAction(exports.WsWorkunits.ECLWUActions.Unprotect);
|
|
6476
6456
|
};
|
|
6477
6457
|
Workunit.prototype.delete = function () {
|
|
6478
|
-
return this.WUAction(
|
|
6458
|
+
return this.WUAction(exports.WsWorkunits.ECLWUActions.Delete);
|
|
6479
6459
|
};
|
|
6480
6460
|
Workunit.prototype.restore = function () {
|
|
6481
|
-
return this.WUAction(
|
|
6461
|
+
return this.WUAction(exports.WsWorkunits.ECLWUActions.Restore);
|
|
6482
6462
|
};
|
|
6483
6463
|
Workunit.prototype.deschedule = function () {
|
|
6484
|
-
return this.WUAction(
|
|
6464
|
+
return this.WUAction(exports.WsWorkunits.ECLWUActions.Deschedule);
|
|
6485
6465
|
};
|
|
6486
6466
|
Workunit.prototype.reschedule = function () {
|
|
6487
|
-
return this.WUAction(
|
|
6467
|
+
return this.WUAction(exports.WsWorkunits.ECLWUActions.Reschedule);
|
|
6488
6468
|
};
|
|
6489
6469
|
Workunit.prototype.resubmit = function () {
|
|
6490
6470
|
var _this = this;
|
|
@@ -6516,7 +6496,7 @@
|
|
|
6516
6496
|
case 0: return [4 /*yield*/, this.WUQuery()];
|
|
6517
6497
|
case 1:
|
|
6518
6498
|
_a.sent();
|
|
6519
|
-
if (!(this.StateID === WUStateID.Compiled && !this.ActionEx && !this._submitAction)) return [3 /*break*/, 3];
|
|
6499
|
+
if (!(this.StateID === exports.WUStateID.Compiled && !this.ActionEx && !this._submitAction)) return [3 /*break*/, 3];
|
|
6520
6500
|
return [4 /*yield*/, this.refreshInfo()];
|
|
6521
6501
|
case 2:
|
|
6522
6502
|
_a.sent();
|
|
@@ -6574,7 +6554,7 @@
|
|
|
6574
6554
|
return this.Exceptions.ECLException;
|
|
6575
6555
|
};
|
|
6576
6556
|
Workunit.prototype.fetchArchive = function () {
|
|
6577
|
-
return this.connection.
|
|
6557
|
+
return this.connection.WUFileEx({
|
|
6578
6558
|
Wuid: this.Wuid,
|
|
6579
6559
|
Type: "ArchiveQuery"
|
|
6580
6560
|
});
|
|
@@ -6802,12 +6782,12 @@
|
|
|
6802
6782
|
return this.fetchDetails({
|
|
6803
6783
|
ScopeFilter: {
|
|
6804
6784
|
MaxDepth: 999999,
|
|
6805
|
-
Ids: graphIDs,
|
|
6806
|
-
ScopeTypes: rootTypes
|
|
6785
|
+
Ids: { id: graphIDs },
|
|
6786
|
+
ScopeTypes: { ScopeType: rootTypes },
|
|
6807
6787
|
},
|
|
6808
6788
|
NestedFilter: {
|
|
6809
6789
|
Depth: 999999,
|
|
6810
|
-
ScopeTypes: ["graph", "subgraph", "activity", "edge", "function"]
|
|
6790
|
+
ScopeTypes: { ScopeType: ["graph", "subgraph", "activity", "edge", "function"] }
|
|
6811
6791
|
},
|
|
6812
6792
|
PropertiesToReturn: {
|
|
6813
6793
|
AllStatistics: true,
|
|
@@ -6974,7 +6954,7 @@
|
|
|
6974
6954
|
var wuMissing = e.Exception.some(function (exception) {
|
|
6975
6955
|
if (exception.Code === 20081) {
|
|
6976
6956
|
_this.clearState(_this.Wuid);
|
|
6977
|
-
_this.set("StateID", WUStateID.NotFound);
|
|
6957
|
+
_this.set("StateID", exports.WUStateID.NotFound);
|
|
6978
6958
|
return true;
|
|
6979
6959
|
}
|
|
6980
6960
|
return false;
|
|
@@ -7011,7 +6991,7 @@
|
|
|
7011
6991
|
var wuMissing = e.Exception.some(function (exception) {
|
|
7012
6992
|
if (exception.Code === 20080) {
|
|
7013
6993
|
_this.clearState(_this.Wuid);
|
|
7014
|
-
_this.set("StateID", WUStateID.NotFound);
|
|
6994
|
+
_this.set("StateID", exports.WUStateID.NotFound);
|
|
7015
6995
|
return true;
|
|
7016
6996
|
}
|
|
7017
6997
|
return false;
|
|
@@ -7025,7 +7005,7 @@
|
|
|
7025
7005
|
};
|
|
7026
7006
|
Workunit.prototype.WUResubmit = function (request) {
|
|
7027
7007
|
return this.connection.WUResubmit(util.deepMixinT({}, request, {
|
|
7028
|
-
Wuids: [this.Wuid]
|
|
7008
|
+
Wuids: { Item: [this.Wuid] }
|
|
7029
7009
|
}));
|
|
7030
7010
|
};
|
|
7031
7011
|
Workunit.prototype.WUDetailsMeta = function (request) {
|
|
@@ -7061,7 +7041,7 @@
|
|
|
7061
7041
|
Workunit.prototype.WUAction = function (actionType) {
|
|
7062
7042
|
var _this = this;
|
|
7063
7043
|
return this.connection.WUAction({
|
|
7064
|
-
Wuids: [this.Wuid],
|
|
7044
|
+
Wuids: { Item: [this.Wuid] },
|
|
7065
7045
|
WUActionType: actionType
|
|
7066
7046
|
}).then(function (response) {
|
|
7067
7047
|
return _this.refresh().then(function () {
|
|
@@ -7076,7 +7056,7 @@
|
|
|
7076
7056
|
Cluster: this.Cluster,
|
|
7077
7057
|
JobName: name || this.Jobname,
|
|
7078
7058
|
AllowForeignFiles: true,
|
|
7079
|
-
Activate:
|
|
7059
|
+
Activate: exports.WsWorkunits.WUQueryActivationMode.ActivateQuery,
|
|
7080
7060
|
Wait: 5000
|
|
7081
7061
|
});
|
|
7082
7062
|
};
|
|
@@ -7093,7 +7073,7 @@
|
|
|
7093
7073
|
optsStr += " ".concat(key, "='").concat(opts[key], "'");
|
|
7094
7074
|
}
|
|
7095
7075
|
}
|
|
7096
|
-
return this.connection.
|
|
7076
|
+
return this.connection.WUCDebugEx({
|
|
7097
7077
|
Wuid: this.Wuid,
|
|
7098
7078
|
Command: "<debug:".concat(command, " uid='").concat(this.Wuid, "'").concat(optsStr, "/>")
|
|
7099
7079
|
}).then(function (response) {
|
|
@@ -9163,6 +9143,11 @@
|
|
|
9163
9143
|
enumerable: false,
|
|
9164
9144
|
configurable: true
|
|
9165
9145
|
});
|
|
9146
|
+
Object.defineProperty(Query.prototype, "PriorityID", {
|
|
9147
|
+
get: function () { return this.get("PriorityID"); },
|
|
9148
|
+
enumerable: false,
|
|
9149
|
+
configurable: true
|
|
9150
|
+
});
|
|
9166
9151
|
Query.attach = function (optsConnection, querySet, queryId) {
|
|
9167
9152
|
var retVal = _queries.get({ BaseUrl: optsConnection.baseUrl, QuerySet: querySet, QueryId: queryId }, function () {
|
|
9168
9153
|
return new Query(optsConnection, querySet, queryId);
|
|
@@ -9996,7 +9981,13 @@
|
|
|
9996
9981
|
return this.connection.AbortDFUWorkunit({ wuid: this.ID });
|
|
9997
9982
|
};
|
|
9998
9983
|
DFUWorkunit.prototype.delete = function () {
|
|
9999
|
-
|
|
9984
|
+
var _this = this;
|
|
9985
|
+
return this.DFUWUAction(exports.FileSpray.DFUWUActions.Delete).then(function (response) {
|
|
9986
|
+
return _this.refresh().then(function () {
|
|
9987
|
+
_this._monitor();
|
|
9988
|
+
return response;
|
|
9989
|
+
});
|
|
9990
|
+
});
|
|
10000
9991
|
};
|
|
10001
9992
|
DFUWorkunit.prototype.refresh = function () {
|
|
10002
9993
|
return __awaiter(this, arguments, void 0, function (full) {
|
|
@@ -10128,7 +10119,7 @@
|
|
|
10128
10119
|
}).catch(function (e) {
|
|
10129
10120
|
// deleted ---
|
|
10130
10121
|
var wuMissing = e.Exception.some(function (exception) {
|
|
10131
|
-
if (exception.Code === 20081) {
|
|
10122
|
+
if (exception.Code === 20080 || exception.Code === 20081) {
|
|
10132
10123
|
_this.clearState(_this.ID);
|
|
10133
10124
|
_this.set("State", States.NotFound);
|
|
10134
10125
|
return true;
|