@hpcc-js/comms 2.82.2 → 2.83.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 +607 -170
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +606 -169
- 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 +606 -169
- 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/dfuWorkunit.js +58 -1
- package/lib-es6/ecl/dfuWorkunit.js.map +1 -1
- package/lib-es6/ecl/query.js +30 -2
- package/lib-es6/ecl/query.js.map +1 -1
- package/lib-es6/ecl/workunit.js +9 -1
- package/lib-es6/ecl/workunit.js.map +1 -1
- package/lib-es6/services/fileSpray.js +5 -1
- package/lib-es6/services/fileSpray.js.map +1 -1
- package/lib-es6/services/wsLogaccess.js +147 -125
- package/lib-es6/services/wsLogaccess.js.map +1 -1
- package/lib-es6/services/wsdl/FileSpray/v1.25/FileSpray.js +116 -0
- package/lib-es6/services/wsdl/FileSpray/v1.25/FileSpray.js.map +1 -0
- package/package.json +2 -2
- package/src/__package__.ts +2 -2
- package/src/ecl/dfuWorkunit.ts +56 -3
- package/src/ecl/query.ts +17 -1
- package/src/ecl/workunit.ts +10 -1
- package/src/services/fileSpray.ts +11 -96
- package/src/services/wsLogaccess.ts +22 -8
- package/src/services/wsdl/FileSpray/v1.25/FileSpray.ts +1040 -0
- package/types/__package__.d.ts +2 -2
- package/types/ecl/dfuWorkunit.d.ts +11 -3
- package/types/ecl/dfuWorkunit.d.ts.map +1 -1
- package/types/ecl/query.d.ts +1 -0
- package/types/ecl/query.d.ts.map +1 -1
- package/types/ecl/workunit.d.ts.map +1 -1
- package/types/services/fileSpray.d.ts +9 -95
- package/types/services/fileSpray.d.ts.map +1 -1
- package/types/services/wsLogaccess.d.ts.map +1 -1
- package/types/services/wsdl/FileSpray/v1.25/FileSpray.d.ts +856 -0
- package/types/services/wsdl/FileSpray/v1.25/FileSpray.d.ts.map +1 -0
- package/types-3.4/__package__.d.ts +2 -2
- package/types-3.4/ecl/dfuWorkunit.d.ts +11 -3
- package/types-3.4/ecl/query.d.ts +1 -0
- package/types-3.4/services/fileSpray.d.ts +9 -95
- package/types-3.4/services/wsdl/FileSpray/v1.25/FileSpray.d.ts +856 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
1
|
+
import { __awaiter, __extends, __generator } from "tslib";
|
|
2
2
|
import { scopedLogger } from "@hpcc-js/util";
|
|
3
3
|
import { LogaccessServiceBase, WsLogaccess } from "./wsdl/ws_logaccess/v1.04/ws_logaccess";
|
|
4
4
|
var logger = scopedLogger("@hpcc-js/comms/services/wsLogaccess.ts");
|
|
@@ -72,134 +72,156 @@ var LogaccessService = /** @class */ (function (_super) {
|
|
|
72
72
|
};
|
|
73
73
|
LogaccessService.prototype.GetLogsEx = function (request) {
|
|
74
74
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
75
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
76
|
+
var logInfo, getLogsRequest, filters, _loop_1, key, binaryLogFilter_1;
|
|
77
|
+
return __generator(this, function (_l) {
|
|
78
|
+
switch (_l.label) {
|
|
79
|
+
case 0: return [4 /*yield*/, this.GetLogAccessInfo()];
|
|
80
|
+
case 1:
|
|
81
|
+
logInfo = _l.sent();
|
|
82
|
+
getLogsRequest = {
|
|
83
|
+
Filter: {
|
|
84
|
+
leftBinaryFilter: {
|
|
85
|
+
BinaryLogFilter: [{
|
|
86
|
+
leftFilter: {
|
|
87
|
+
LogCategory: WsLogaccess.LogAccessType.All,
|
|
88
|
+
},
|
|
89
|
+
}]
|
|
90
|
+
}
|
|
81
91
|
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
LogLineLimit: (_b = request.LogLineLimit) !== null && _b !== void 0 ? _b : 100,
|
|
90
|
-
SelectColumnMode: WsLogaccess.LogSelectColumnMode.DEFAULT,
|
|
91
|
-
Format: "JSON"
|
|
92
|
-
};
|
|
93
|
-
var filters = [];
|
|
94
|
-
var _loop_1 = function (key) {
|
|
95
|
-
if (key in ElasticKnownColumns) {
|
|
96
|
-
if (Array.isArray(request[key])) {
|
|
97
|
-
request[key].forEach(function (value) {
|
|
98
|
-
filters.push({
|
|
99
|
-
LogCategory: WsLogaccess.LogAccessType.ByFieldName,
|
|
100
|
-
SearchField: ElasticKnownColumns[key],
|
|
101
|
-
SearchByValue: value
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
filters.push({
|
|
107
|
-
LogCategory: WsLogaccess.LogAccessType.ByFieldName,
|
|
108
|
-
SearchField: ElasticKnownColumns[key],
|
|
109
|
-
SearchByValue: request[key]
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
for (var key in request) {
|
|
115
|
-
_loop_1(key);
|
|
116
|
-
}
|
|
117
|
-
if (filters.length > 2) {
|
|
118
|
-
var binaryLogFilter_1 = getLogsRequest.Filter.leftBinaryFilter.BinaryLogFilter[0];
|
|
119
|
-
filters.forEach(function (filter, i) {
|
|
120
|
-
var operator = WsLogaccess.LogAccessFilterOperator.AND;
|
|
121
|
-
if (i > 0) {
|
|
122
|
-
if (filters[i - 1].SearchField === filter.SearchField) {
|
|
123
|
-
operator = WsLogaccess.LogAccessFilterOperator.OR;
|
|
124
|
-
}
|
|
125
|
-
if (i === filters.length - 1) {
|
|
126
|
-
binaryLogFilter_1.Operator = operator;
|
|
127
|
-
binaryLogFilter_1.rightFilter = filter;
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
binaryLogFilter_1.Operator = operator;
|
|
131
|
-
binaryLogFilter_1.rightBinaryFilter = {
|
|
132
|
-
BinaryLogFilter: [{
|
|
133
|
-
leftFilter: filter
|
|
134
|
-
}]
|
|
92
|
+
Range: {
|
|
93
|
+
StartDate: new Date(0).toISOString(),
|
|
94
|
+
},
|
|
95
|
+
LogLineStartFrom: (_a = request.LogLineStartFrom) !== null && _a !== void 0 ? _a : 0,
|
|
96
|
+
LogLineLimit: (_b = request.LogLineLimit) !== null && _b !== void 0 ? _b : 100,
|
|
97
|
+
SelectColumnMode: WsLogaccess.LogSelectColumnMode.DEFAULT,
|
|
98
|
+
Format: "JSON"
|
|
135
99
|
};
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
100
|
+
filters = [];
|
|
101
|
+
_loop_1 = function (key) {
|
|
102
|
+
var searchField;
|
|
103
|
+
switch (logInfo.RemoteLogManagerType) {
|
|
104
|
+
case "azureloganalyticscurl":
|
|
105
|
+
if (key in AzureKnownColumns) {
|
|
106
|
+
searchField = AzureKnownColumns[key];
|
|
107
|
+
}
|
|
108
|
+
break;
|
|
109
|
+
case "elasticstack":
|
|
110
|
+
if (key in ElasticKnownColumns) {
|
|
111
|
+
searchField = ElasticKnownColumns[key];
|
|
112
|
+
}
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
if (searchField) {
|
|
116
|
+
if (Array.isArray(request[key])) {
|
|
117
|
+
request[key].forEach(function (value) {
|
|
118
|
+
filters.push({
|
|
119
|
+
LogCategory: WsLogaccess.LogAccessType.ByFieldName,
|
|
120
|
+
SearchField: searchField,
|
|
121
|
+
SearchByValue: value
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
filters.push({
|
|
127
|
+
LogCategory: WsLogaccess.LogAccessType.ByFieldName,
|
|
128
|
+
SearchField: searchField,
|
|
129
|
+
SearchByValue: request[key]
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
for (key in request) {
|
|
135
|
+
_loop_1(key);
|
|
136
|
+
}
|
|
137
|
+
if (filters.length > 2) {
|
|
138
|
+
binaryLogFilter_1 = getLogsRequest.Filter.leftBinaryFilter.BinaryLogFilter[0];
|
|
139
|
+
filters.forEach(function (filter, i) {
|
|
140
|
+
var operator = WsLogaccess.LogAccessFilterOperator.AND;
|
|
141
|
+
if (i > 0) {
|
|
142
|
+
if (filters[i - 1].SearchField === filter.SearchField) {
|
|
143
|
+
operator = WsLogaccess.LogAccessFilterOperator.OR;
|
|
144
|
+
}
|
|
145
|
+
if (i === filters.length - 1) {
|
|
146
|
+
binaryLogFilter_1.Operator = operator;
|
|
147
|
+
binaryLogFilter_1.rightFilter = filter;
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
binaryLogFilter_1.Operator = operator;
|
|
151
|
+
binaryLogFilter_1.rightBinaryFilter = {
|
|
152
|
+
BinaryLogFilter: [{
|
|
153
|
+
leftFilter: filter
|
|
154
|
+
}]
|
|
155
|
+
};
|
|
156
|
+
binaryLogFilter_1 = binaryLogFilter_1.rightBinaryFilter.BinaryLogFilter[0];
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
binaryLogFilter_1.leftFilter = filter;
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
delete getLogsRequest.Filter.leftBinaryFilter;
|
|
166
|
+
getLogsRequest.Filter.leftFilter = {
|
|
167
|
+
LogCategory: WsLogaccess.LogAccessType.All
|
|
168
|
+
};
|
|
169
|
+
if ((_c = filters[0]) === null || _c === void 0 ? void 0 : _c.SearchField) {
|
|
170
|
+
getLogsRequest.Filter.leftFilter = {
|
|
171
|
+
LogCategory: (_d = filters[0]) === null || _d === void 0 ? void 0 : _d.LogCategory,
|
|
172
|
+
SearchField: (_e = filters[0]) === null || _e === void 0 ? void 0 : _e.SearchField,
|
|
173
|
+
SearchByValue: (_f = filters[0]) === null || _f === void 0 ? void 0 : _f.SearchByValue
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
if ((_g = filters[1]) === null || _g === void 0 ? void 0 : _g.SearchField) {
|
|
177
|
+
getLogsRequest.Filter.Operator = WsLogaccess.LogAccessFilterOperator.AND;
|
|
178
|
+
if (filters[0].SearchField === filters[1].SearchField) {
|
|
179
|
+
getLogsRequest.Filter.Operator = WsLogaccess.LogAccessFilterOperator.OR;
|
|
180
|
+
}
|
|
181
|
+
getLogsRequest.Filter.rightFilter = {
|
|
182
|
+
LogCategory: (_h = filters[0]) === null || _h === void 0 ? void 0 : _h.LogCategory,
|
|
183
|
+
SearchField: (_j = filters[1]) === null || _j === void 0 ? void 0 : _j.SearchField,
|
|
184
|
+
SearchByValue: (_k = filters[1]) === null || _k === void 0 ? void 0 : _k.SearchByValue
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
if (request.StartDate) {
|
|
189
|
+
getLogsRequest.Range.StartDate = request.StartDate.toISOString();
|
|
190
|
+
}
|
|
191
|
+
if (request.EndDate) {
|
|
192
|
+
getLogsRequest.Range.EndDate = request.EndDate.toISOString();
|
|
193
|
+
}
|
|
194
|
+
return [2 /*return*/, this.GetLogs(getLogsRequest).then(function (response) {
|
|
195
|
+
var _a, _b, _c, _d, _e;
|
|
196
|
+
try {
|
|
197
|
+
var logLines = JSON.parse(response.LogLines);
|
|
198
|
+
var lines = [];
|
|
199
|
+
switch (logInfo.RemoteLogManagerType) {
|
|
200
|
+
case "azureloganalyticscurl":
|
|
201
|
+
lines = (_b = (_a = logLines.lines) === null || _a === void 0 ? void 0 : _a.map(azureToLogLine)) !== null && _b !== void 0 ? _b : [];
|
|
202
|
+
break;
|
|
203
|
+
case "elasticstack":
|
|
204
|
+
lines = (_d = (_c = logLines.lines) === null || _c === void 0 ? void 0 : _c.map(elasticToLogLine)) !== null && _d !== void 0 ? _d : [];
|
|
205
|
+
break;
|
|
206
|
+
default:
|
|
207
|
+
logger.warning("Unknown RemoteLogManagerType: ".concat(logInfo.RemoteLogManagerType));
|
|
208
|
+
lines = [];
|
|
209
|
+
}
|
|
210
|
+
return {
|
|
211
|
+
lines: lines,
|
|
212
|
+
total: (_e = response.TotalLogLinesAvailable) !== null && _e !== void 0 ? _e : 10000
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
catch (e) {
|
|
216
|
+
logger.error(e);
|
|
217
|
+
}
|
|
218
|
+
return {
|
|
219
|
+
lines: [],
|
|
220
|
+
total: 0
|
|
221
|
+
};
|
|
222
|
+
})];
|
|
141
223
|
}
|
|
142
224
|
});
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
145
|
-
delete getLogsRequest.Filter.leftBinaryFilter;
|
|
146
|
-
getLogsRequest.Filter.leftFilter = {
|
|
147
|
-
LogCategory: WsLogaccess.LogAccessType.All
|
|
148
|
-
};
|
|
149
|
-
if ((_c = filters[0]) === null || _c === void 0 ? void 0 : _c.SearchField) {
|
|
150
|
-
getLogsRequest.Filter.leftFilter = {
|
|
151
|
-
LogCategory: (_d = filters[0]) === null || _d === void 0 ? void 0 : _d.LogCategory,
|
|
152
|
-
SearchField: (_e = filters[0]) === null || _e === void 0 ? void 0 : _e.SearchField,
|
|
153
|
-
SearchByValue: (_f = filters[0]) === null || _f === void 0 ? void 0 : _f.SearchByValue
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
if ((_g = filters[1]) === null || _g === void 0 ? void 0 : _g.SearchField) {
|
|
157
|
-
getLogsRequest.Filter.Operator = WsLogaccess.LogAccessFilterOperator.AND;
|
|
158
|
-
if (filters[0].SearchField === filters[1].SearchField) {
|
|
159
|
-
getLogsRequest.Filter.Operator = WsLogaccess.LogAccessFilterOperator.OR;
|
|
160
|
-
}
|
|
161
|
-
getLogsRequest.Filter.rightFilter = {
|
|
162
|
-
LogCategory: (_h = filters[0]) === null || _h === void 0 ? void 0 : _h.LogCategory,
|
|
163
|
-
SearchField: (_j = filters[1]) === null || _j === void 0 ? void 0 : _j.SearchField,
|
|
164
|
-
SearchByValue: (_k = filters[1]) === null || _k === void 0 ? void 0 : _k.SearchByValue
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
if (request.StartDate) {
|
|
169
|
-
getLogsRequest.Range.StartDate = request.StartDate.toISOString();
|
|
170
|
-
}
|
|
171
|
-
if (request.EndDate) {
|
|
172
|
-
getLogsRequest.Range.EndDate = request.EndDate.toISOString();
|
|
173
|
-
}
|
|
174
|
-
return Promise.all([this.GetLogAccessInfo(), this.GetLogs(getLogsRequest)]).then(function (_a) {
|
|
175
|
-
var _b, _c, _d, _e, _f;
|
|
176
|
-
var info = _a[0], response = _a[1];
|
|
177
|
-
try {
|
|
178
|
-
var logLines = JSON.parse(response.LogLines);
|
|
179
|
-
var lines = [];
|
|
180
|
-
switch (info.RemoteLogManagerType) {
|
|
181
|
-
case "azureloganalyticscurl":
|
|
182
|
-
lines = (_c = (_b = logLines.lines) === null || _b === void 0 ? void 0 : _b.map(azureToLogLine)) !== null && _c !== void 0 ? _c : [];
|
|
183
|
-
break;
|
|
184
|
-
case "elasticstack":
|
|
185
|
-
lines = (_e = (_d = logLines.lines) === null || _d === void 0 ? void 0 : _d.map(elasticToLogLine)) !== null && _e !== void 0 ? _e : [];
|
|
186
|
-
break;
|
|
187
|
-
default:
|
|
188
|
-
logger.warning("Unknown RemoteLogManagerType: ".concat(info.RemoteLogManagerType));
|
|
189
|
-
lines = [];
|
|
190
|
-
}
|
|
191
|
-
return {
|
|
192
|
-
lines: lines,
|
|
193
|
-
total: (_f = response.TotalLogLinesAvailable) !== null && _f !== void 0 ? _f : 10000
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
catch (e) {
|
|
197
|
-
logger.error(e);
|
|
198
|
-
}
|
|
199
|
-
return {
|
|
200
|
-
lines: [],
|
|
201
|
-
total: 0
|
|
202
|
-
};
|
|
203
225
|
});
|
|
204
226
|
};
|
|
205
227
|
return LogaccessService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wsLogaccess.js","sourceRoot":"","sources":["../../src/services/wsLogaccess.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAE3F,IAAM,MAAM,GAAG,YAAY,CAAC,wCAAwC,CAAC,CAAC;AAEtE,OAAO,EACH,WAAW,EACd,CAAC;AA8CF,IAAK,mBAUJ;AAVD,WAAK,mBAAmB;IACpB,qDAA8B,CAAA;IAC9B,+CAAwB,CAAA;IACxB,kEAA2C,CAAA;IAC3C,+CAAwB,CAAA;IACxB,mDAA4B,CAAA;IAC5B,iDAA0B,CAAA;IAC1B,qDAA8B,CAAA;IAC9B,qDAA8B,CAAA;IAC9B,uDAAgC,CAAA;AACpC,CAAC,EAVI,mBAAmB,KAAnB,mBAAmB,QAUvB;AAED,IAAM,oBAAoB,GAA8B,EAAE,CAAC;AAC3D,KAAK,IAAM,GAAG,IAAI,mBAAmB,EAAE;IACnC,IAAI,mBAAmB,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE;QACzC,oBAAoB,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;KACxD;CACJ;AAED,IAAM,gBAAgB,GAAG,UAAC,IAAU;IAChC,IAAM,MAAM,GAAY,EAAE,CAAC;IAC3B,KAAK,IAAM,GAAG,IAAI,oBAAoB,EAAE;QACpC,MAAM,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;KAC5D;IACD,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAEF,IAAK,iBAWJ;AAXD,WAAK,iBAA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;4CAClD,MAAM;wCACV,KAAK,cAAc;4CACf,KAAK,GAAG,MAAA,MAAA,QAAQ,CAAC,KAAK,0CAAE,GAAG,CAAC,gBAAgB,CAAC,mCAAI,EAAE,CAAC;4CACpD,MAAM;wCACV;4CACI,MAAM,CAAC,OAAO,CAAC,wCAAiC,OAAO,CAAC,oBAAoB,CAAE,CAAC,CAAC;4CAChF,KAAK,GAAG,EAAE,CAAC;qCAClB;oCACD,OAAO;wCACH,KAAK,EAAE,KAAK;wCACZ,KAAK,EAAE,MAAA,QAAQ,CAAC,sBAAsB,mCAAI,KAAK;qCAClD,CAAC;iCACL;gCAAC,OAAO,CAAC,EAAE;oCACR,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;iCACnB;gCACD,OAAO;oCACH,KAAK,EAAE,EAAE;oCACT,KAAK,EAAE,CAAC;iCACX,CAAC;4BACN,CAAC,CAAC,EAAC;;;;KACN;IACL,uBAAC;AAAD,CAAC,AA3JD,CAAsC,oBAAoB,GA2JzD"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { Service } from "../../../../espConnection";
|
|
3
|
+
export var FileSpray;
|
|
4
|
+
(function (FileSpray) {
|
|
5
|
+
var DFUWUActions;
|
|
6
|
+
(function (DFUWUActions) {
|
|
7
|
+
DFUWUActions["Delete"] = "Delete";
|
|
8
|
+
DFUWUActions["Protect"] = "Protect";
|
|
9
|
+
DFUWUActions["Unprotect"] = "Unprotect";
|
|
10
|
+
DFUWUActions["Restore"] = "Restore";
|
|
11
|
+
DFUWUActions["SetToFailed"] = "SetToFailed";
|
|
12
|
+
DFUWUActions["Archive"] = "Archive";
|
|
13
|
+
})(DFUWUActions = FileSpray.DFUWUActions || (FileSpray.DFUWUActions = {}));
|
|
14
|
+
})(FileSpray || (FileSpray = {}));
|
|
15
|
+
var FileSprayServiceBase = /** @class */ (function (_super) {
|
|
16
|
+
__extends(FileSprayServiceBase, _super);
|
|
17
|
+
function FileSprayServiceBase(optsConnection) {
|
|
18
|
+
return _super.call(this, optsConnection, "FileSpray", "1.25") || this;
|
|
19
|
+
}
|
|
20
|
+
FileSprayServiceBase.prototype.AbortDFUWorkunit = function (request) {
|
|
21
|
+
return this._connection.send("AbortDFUWorkunit", request, "json", false, undefined, "AbortDFUWorkunitResponse");
|
|
22
|
+
};
|
|
23
|
+
FileSprayServiceBase.prototype.Copy = function (request) {
|
|
24
|
+
return this._connection.send("Copy", request, "json", false, undefined, "CopyResponse");
|
|
25
|
+
};
|
|
26
|
+
FileSprayServiceBase.prototype.CreateDFUPublisherWorkunit = function (request) {
|
|
27
|
+
return this._connection.send("CreateDFUPublisherWorkunit", request, "json", false, undefined, "CreateDFUPublisherWorkunitResponse");
|
|
28
|
+
};
|
|
29
|
+
FileSprayServiceBase.prototype.CreateDFUWorkunit = function (request) {
|
|
30
|
+
return this._connection.send("CreateDFUWorkunit", request, "json", false, undefined, "CreateDFUWorkunitResponse");
|
|
31
|
+
};
|
|
32
|
+
FileSprayServiceBase.prototype.DFUWUFile = function (request) {
|
|
33
|
+
return this._connection.send("DFUWUFile", request, "json", false, undefined, "DFUWUFileResponse");
|
|
34
|
+
};
|
|
35
|
+
FileSprayServiceBase.prototype.DFUWUSearch = function (request) {
|
|
36
|
+
return this._connection.send("DFUWUSearch", request, "json", false, undefined, "DFUWUSearchResponse");
|
|
37
|
+
};
|
|
38
|
+
FileSprayServiceBase.prototype.DFUWorkunitsAction = function (request) {
|
|
39
|
+
return this._connection.send("DFUWorkunitsAction", request, "json", false, undefined, "DFUWorkunitsActionResponse");
|
|
40
|
+
};
|
|
41
|
+
FileSprayServiceBase.prototype.DeleteDFUWorkunit = function (request) {
|
|
42
|
+
return this._connection.send("DeleteDFUWorkunit", request, "json", false, undefined, "DeleteDFUWorkunitResponse");
|
|
43
|
+
};
|
|
44
|
+
FileSprayServiceBase.prototype.DeleteDFUWorkunits = function (request) {
|
|
45
|
+
return this._connection.send("DeleteDFUWorkunits", request, "json", false, undefined, "DeleteDFUWorkunitsResponse");
|
|
46
|
+
};
|
|
47
|
+
FileSprayServiceBase.prototype.DeleteDropZoneFiles = function (request) {
|
|
48
|
+
return this._connection.send("DeleteDropZoneFiles", request, "json", false, undefined, "DFUWorkunitsActionResponse");
|
|
49
|
+
};
|
|
50
|
+
FileSprayServiceBase.prototype.Despray = function (request) {
|
|
51
|
+
return this._connection.send("Despray", request, "json", false, undefined, "DesprayResponse");
|
|
52
|
+
};
|
|
53
|
+
FileSprayServiceBase.prototype.DfuMonitor = function (request) {
|
|
54
|
+
return this._connection.send("DfuMonitor", request, "json", false, undefined, "DfuMonitorResponse");
|
|
55
|
+
};
|
|
56
|
+
FileSprayServiceBase.prototype.DropZoneFileSearch = function (request) {
|
|
57
|
+
return this._connection.send("DropZoneFileSearch", request, "json", false, undefined, "DropZoneFileSearchResponse");
|
|
58
|
+
};
|
|
59
|
+
FileSprayServiceBase.prototype.DropZoneFiles = function (request) {
|
|
60
|
+
return this._connection.send("DropZoneFiles", request, "json", false, undefined, "DropZoneFilesResponse");
|
|
61
|
+
};
|
|
62
|
+
FileSprayServiceBase.prototype.EchoDateTime = function (request) {
|
|
63
|
+
return this._connection.send("EchoDateTime", request, "json", false, undefined, "EchoDateTimeResponse");
|
|
64
|
+
};
|
|
65
|
+
FileSprayServiceBase.prototype.FileList = function (request) {
|
|
66
|
+
return this._connection.send("FileList", request, "json", false, undefined, "FileListResponse");
|
|
67
|
+
};
|
|
68
|
+
FileSprayServiceBase.prototype.GetDFUExceptions = function (request) {
|
|
69
|
+
return this._connection.send("GetDFUExceptions", request, "json", false, undefined, "GetDFUExceptionsResponse");
|
|
70
|
+
};
|
|
71
|
+
FileSprayServiceBase.prototype.GetDFUProgress = function (request) {
|
|
72
|
+
return this._connection.send("GetDFUProgress", request, "json", false, undefined, "ProgressResponse");
|
|
73
|
+
};
|
|
74
|
+
FileSprayServiceBase.prototype.GetDFUServerQueues = function (request) {
|
|
75
|
+
return this._connection.send("GetDFUServerQueues", request, "json", false, undefined, "GetDFUServerQueuesResponse");
|
|
76
|
+
};
|
|
77
|
+
FileSprayServiceBase.prototype.GetDFUWorkunit = function (request) {
|
|
78
|
+
return this._connection.send("GetDFUWorkunit", request, "json", false, undefined, "GetDFUWorkunitResponse");
|
|
79
|
+
};
|
|
80
|
+
FileSprayServiceBase.prototype.GetDFUWorkunits = function (request) {
|
|
81
|
+
return this._connection.send("GetDFUWorkunits", request, "json", false, undefined, "GetDFUWorkunitsResponse");
|
|
82
|
+
};
|
|
83
|
+
FileSprayServiceBase.prototype.GetSprayTargets = function (request) {
|
|
84
|
+
return this._connection.send("GetSprayTargets", request, "json", false, undefined, "GetSprayTargetsResponse");
|
|
85
|
+
};
|
|
86
|
+
FileSprayServiceBase.prototype.OpenSave = function (request) {
|
|
87
|
+
return this._connection.send("OpenSave", request, "json", false, undefined, "OpenSaveResponse");
|
|
88
|
+
};
|
|
89
|
+
FileSprayServiceBase.prototype.Ping = function (request) {
|
|
90
|
+
return this._connection.send("Ping", request, "json", false, undefined, "FileSprayPingResponse");
|
|
91
|
+
};
|
|
92
|
+
FileSprayServiceBase.prototype.Rename = function (request) {
|
|
93
|
+
return this._connection.send("Rename", request, "json", false, undefined, "RenameResponse");
|
|
94
|
+
};
|
|
95
|
+
FileSprayServiceBase.prototype.Replicate = function (request) {
|
|
96
|
+
return this._connection.send("Replicate", request, "json", false, undefined, "ReplicateResponse");
|
|
97
|
+
};
|
|
98
|
+
FileSprayServiceBase.prototype.ShowResult = function (request) {
|
|
99
|
+
return this._connection.send("ShowResult", request, "json", false, undefined, "ShowResultResponse");
|
|
100
|
+
};
|
|
101
|
+
FileSprayServiceBase.prototype.SprayFixed = function (request) {
|
|
102
|
+
return this._connection.send("SprayFixed", request, "json", false, undefined, "SprayFixedResponse");
|
|
103
|
+
};
|
|
104
|
+
FileSprayServiceBase.prototype.SprayVariable = function (request) {
|
|
105
|
+
return this._connection.send("SprayVariable", request, "json", false, undefined, "SprayResponse");
|
|
106
|
+
};
|
|
107
|
+
FileSprayServiceBase.prototype.SubmitDFUWorkunit = function (request) {
|
|
108
|
+
return this._connection.send("SubmitDFUWorkunit", request, "json", false, undefined, "SubmitDFUWorkunitResponse");
|
|
109
|
+
};
|
|
110
|
+
FileSprayServiceBase.prototype.UpdateDFUWorkunit = function (request) {
|
|
111
|
+
return this._connection.send("UpdateDFUWorkunit", request, "json", false, undefined, "UpdateDFUWorkunitResponse");
|
|
112
|
+
};
|
|
113
|
+
return FileSprayServiceBase;
|
|
114
|
+
}(Service));
|
|
115
|
+
export { FileSprayServiceBase };
|
|
116
|
+
//# sourceMappingURL=FileSpray.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileSpray.js","sourceRoot":"","sources":["../../../../../src/services/wsdl/FileSpray/v1.25/FileSpray.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAEpD,MAAM,KAAW,SAAS,CAw4BzB;AAx4BD,WAAiB,SAAS;IAQtB,IAAY,YAOX;IAPD,WAAY,YAAY;QACpB,iCAAiB,CAAA;QACjB,mCAAmB,CAAA;QACnB,uCAAuB,CAAA;QACvB,mCAAmB,CAAA;QACnB,2CAA2B,CAAA;QAC3B,mCAAmB,CAAA;IACvB,CAAC,EAPW,YAAY,GAAZ,sBAAY,KAAZ,sBAAY,QAOvB;AAy3BL,CAAC,EAx4BgB,SAAS,KAAT,SAAS,QAw4BzB;AAED;IAA0C,wCAAO;IAE7C,8BAAY,cAAsC;eAC9C,kBAAM,cAAc,EAAE,WAAW,EAAE,MAAM,CAAC;IAC9C,CAAC;IAED,+CAAgB,GAAhB,UAAiB,OAAmC;QAChD,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,kBAAkB,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,0BAA0B,CAAC,CAAC;IACpH,CAAC;IAED,mCAAI,GAAJ,UAAK,OAAuB;QACxB,OAA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AW,CAAC,IAAI,CAAC,mBAAmB,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,2BAA2B,CAAC,CAAC;IACtH,CAAC;IAED,gDAAiB,GAAjB,UAAkB,OAAoC;QAClD,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,mBAAmB,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,2BAA2B,CAAC,CAAC;IACtH,CAAC;IAEL,2BAAC;AAAD,CAAC,AAlID,CAA0C,OAAO,GAkIhD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hpcc-js/comms",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.83.0",
|
|
4
4
|
"description": "hpcc-js - Communications",
|
|
5
5
|
"main": "dist/index.node.js",
|
|
6
6
|
"module": "dist/index.es6",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"url": "https://github.com/hpcc-systems/Visualization/issues"
|
|
93
93
|
},
|
|
94
94
|
"homepage": "https://github.com/hpcc-systems/Visualization",
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "d68d7fd168a295186ec649d44ea524fdf1ade7c0"
|
|
96
96
|
}
|
package/src/__package__.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export const PKG_NAME = "@hpcc-js/comms";
|
|
2
|
-
export const PKG_VERSION = "2.
|
|
3
|
-
export const BUILD_VERSION = "2.104.
|
|
2
|
+
export const PKG_VERSION = "2.83.0";
|
|
3
|
+
export const BUILD_VERSION = "2.104.22";
|
package/src/ecl/dfuWorkunit.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Cache, IEvent, scopedLogger, StateCallback, StateEvents, StateObject, S
|
|
|
2
2
|
import { IConnection, IOptions } from "../connection";
|
|
3
3
|
import { ESPExceptions } from "../espConnection";
|
|
4
4
|
import { WsSMC } from "../services/wsSMC";
|
|
5
|
-
import { FileSpray,
|
|
5
|
+
import { FileSpray, FileSprayService, UpdateDFUWorkunitEx } from "../services/fileSpray";
|
|
6
6
|
import * as WsTopology from "../services/wsTopology";
|
|
7
7
|
|
|
8
8
|
const logger = scopedLogger("@hpcc-js/comms/dfuWorkunit.ts");
|
|
@@ -95,6 +95,8 @@ export class DFUWorkunit extends StateObject<UDFUWorkunitState, IDFUWorkunitStat
|
|
|
95
95
|
get expireDays(): number { return this.get("expireDays"); }
|
|
96
96
|
get PreserveFileParts(): boolean { return this.get("PreserveFileParts"); }
|
|
97
97
|
get FileAccessCost(): number { return this.get("FileAccessCost"); }
|
|
98
|
+
get KbPerSecAve(): number { return this.get("KbPerSecAve"); }
|
|
99
|
+
get KbPerSec(): number { return this.get("KbPerSec"); }
|
|
98
100
|
|
|
99
101
|
// Factories ---
|
|
100
102
|
static create(optsConnection: IOptions | IConnection, dfuServerQueue: string): Promise<DFUWorkunit> {
|
|
@@ -116,7 +118,7 @@ export class DFUWorkunit extends StateObject<UDFUWorkunitState, IDFUWorkunitStat
|
|
|
116
118
|
return retVal;
|
|
117
119
|
}
|
|
118
120
|
|
|
119
|
-
static sprayFixed(server: IOptions | IConnection, request: Partial<
|
|
121
|
+
static sprayFixed(server: IOptions | IConnection, request: Partial<FileSpray.SprayFixed>): Promise<DFUWorkunit> {
|
|
120
122
|
const service = new FileSprayService(server);
|
|
121
123
|
return service.SprayFixedEx({
|
|
122
124
|
...request
|
|
@@ -128,7 +130,7 @@ export class DFUWorkunit extends StateObject<UDFUWorkunitState, IDFUWorkunitStat
|
|
|
128
130
|
});
|
|
129
131
|
}
|
|
130
132
|
|
|
131
|
-
static sprayVariable(server: IOptions | IConnection, request: Partial<
|
|
133
|
+
static sprayVariable(server: IOptions | IConnection, request: Partial<FileSpray.SprayVariable>): Promise<DFUWorkunit> {
|
|
132
134
|
const service = new FileSprayService(server);
|
|
133
135
|
return service.SprayVariableEx({
|
|
134
136
|
...request
|
|
@@ -152,6 +154,21 @@ export class DFUWorkunit extends StateObject<UDFUWorkunitState, IDFUWorkunitStat
|
|
|
152
154
|
});
|
|
153
155
|
}
|
|
154
156
|
|
|
157
|
+
update(request: Partial<UpdateDFUWorkunitEx>): Promise<FileSpray.UpdateDFUWorkunitResponse> {
|
|
158
|
+
return this.connection.UpdateDFUWorkunitEx({
|
|
159
|
+
wu: {
|
|
160
|
+
JobName: request?.wu?.JobName ?? this.JobName,
|
|
161
|
+
isProtected: request?.wu?.isProtected ?? this.isProtected,
|
|
162
|
+
ID: this.ID,
|
|
163
|
+
State: this.State
|
|
164
|
+
},
|
|
165
|
+
ClusterOrig: this.ClusterName,
|
|
166
|
+
JobNameOrig: this.JobName,
|
|
167
|
+
isProtectedOrig: this.isProtected,
|
|
168
|
+
StateOrig: this.State
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
|
|
155
172
|
isComplete(): boolean {
|
|
156
173
|
switch (this.State) {
|
|
157
174
|
case States.Finished:
|
|
@@ -184,11 +201,23 @@ export class DFUWorkunit extends StateObject<UDFUWorkunitState, IDFUWorkunitStat
|
|
|
184
201
|
return !this.isComplete();
|
|
185
202
|
}
|
|
186
203
|
|
|
204
|
+
abort(): Promise<FileSpray.AbortDFUWorkunitResponse> {
|
|
205
|
+
return this.connection.AbortDFUWorkunit({ wuid: this.ID });
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
delete() {
|
|
209
|
+
return this.DFUWUAction(FileSpray.DFUWUActions.Delete);
|
|
210
|
+
}
|
|
211
|
+
|
|
187
212
|
async refresh(full: boolean = false): Promise<this> {
|
|
188
213
|
await this.GetDFUWorkunit();
|
|
189
214
|
return this;
|
|
190
215
|
}
|
|
191
216
|
|
|
217
|
+
fetchXML(callback?: void): Promise<FileSpray.DFUWUFileResponse> {
|
|
218
|
+
return this.DFUWUFile();
|
|
219
|
+
}
|
|
220
|
+
|
|
192
221
|
// Monitoring ---
|
|
193
222
|
protected _monitor(): void {
|
|
194
223
|
if (this.isComplete()) {
|
|
@@ -210,6 +239,30 @@ export class DFUWorkunit extends StateObject<UDFUWorkunitState, IDFUWorkunitStat
|
|
|
210
239
|
return retVal;
|
|
211
240
|
}
|
|
212
241
|
|
|
242
|
+
protected DFUWUFile(_request: Partial<FileSpray.DFUWUFileRequest> = {}): Promise<FileSpray.DFUWUFileResponse> {
|
|
243
|
+
return this.connection.DFUWUFile({
|
|
244
|
+
..._request, Wuid: this.ID
|
|
245
|
+
}).then(response => {
|
|
246
|
+
//TODO: additional processing?
|
|
247
|
+
return response;
|
|
248
|
+
}).catch((e: ESPExceptions) => {
|
|
249
|
+
return {} as FileSpray.DFUWUFileResponse;
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
protected DFUWUAction(actionType: FileSpray.DFUWUActions): Promise<FileSpray.DFUWorkunitsActionResponse> {
|
|
254
|
+
return this.connection.DFUWorkunitsAction({
|
|
255
|
+
wuids: { Item: [this.ID] },
|
|
256
|
+
Type: actionType
|
|
257
|
+
}).then((response) => {
|
|
258
|
+
if (actionType === FileSpray.DFUWUActions.Delete) return response;
|
|
259
|
+
return this.refresh().then(() => {
|
|
260
|
+
this._monitor();
|
|
261
|
+
return response;
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
|
|
213
266
|
// Events ---
|
|
214
267
|
on(eventID: DFUWorkunitEvents, propIDorCallback: StateCallback | keyof UDFUWorkunitState, callback?: StatePropCallback): this {
|
|
215
268
|
if (this.isCallback(propIDorCallback)) {
|
package/src/ecl/query.ts
CHANGED
|
@@ -76,6 +76,18 @@ export class Query extends StateObject<QueryEx, QueryEx> implements QueryEx {
|
|
|
76
76
|
return retVal;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
private async fetchDetails(): Promise<void> {
|
|
80
|
+
const queryDetails = await this._wsWorkunits.WUQueryDetails({
|
|
81
|
+
QuerySet: this.QuerySet,
|
|
82
|
+
QueryId: this.QueryId,
|
|
83
|
+
IncludeStateOnClusters: false,
|
|
84
|
+
IncludeSuperFiles: false,
|
|
85
|
+
IncludeWsEclAddresses: false,
|
|
86
|
+
CheckAllNodes: false
|
|
87
|
+
});
|
|
88
|
+
this.set({ ...queryDetails } as QueryEx);
|
|
89
|
+
}
|
|
90
|
+
|
|
79
91
|
private async fetchRequestSchema(): Promise<void> {
|
|
80
92
|
this._requestSchema = await this.connection.requestJson(this.QuerySet, this.QueryId);
|
|
81
93
|
}
|
|
@@ -102,7 +114,11 @@ export class Query extends StateObject<QueryEx, QueryEx> implements QueryEx {
|
|
|
102
114
|
}
|
|
103
115
|
|
|
104
116
|
async refresh(): Promise<this> {
|
|
105
|
-
|
|
117
|
+
await Promise.all([
|
|
118
|
+
this.fetchDetails(),
|
|
119
|
+
this.fetchSchema()
|
|
120
|
+
]);
|
|
121
|
+
return this;
|
|
106
122
|
}
|
|
107
123
|
|
|
108
124
|
requestFields(): IWsEclRequest {
|
package/src/ecl/workunit.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Cache, deepMixinT, IEvent, scopedLogger, StateCallback, StateEvents, StateObject, StatePropCallback, StringAnyMap, XMLNode } from "@hpcc-js/util";
|
|
2
|
+
import { format as d3Format } from "d3-format";
|
|
2
3
|
import { utcFormat, utcParse } from "d3-time-format";
|
|
3
4
|
import { IConnection, IOptions } from "../connection";
|
|
4
5
|
import { ESPExceptions } from "../espConnection";
|
|
@@ -14,6 +15,14 @@ import { Timer } from "./timer";
|
|
|
14
15
|
|
|
15
16
|
const formatter = utcFormat("%Y-%m-%dT%H:%M:%S.%LZ");
|
|
16
17
|
const parser = utcParse("%Y-%m-%dT%H:%M:%S.%LZ");
|
|
18
|
+
const d3FormatNum = d3Format(",");
|
|
19
|
+
function formatNum(num: number | string): string {
|
|
20
|
+
if (num && !isNaN(+num)) {
|
|
21
|
+
return d3FormatNum(+num);
|
|
22
|
+
}
|
|
23
|
+
return num as string;
|
|
24
|
+
}
|
|
25
|
+
|
|
17
26
|
const logger = scopedLogger("workunit.ts");
|
|
18
27
|
|
|
19
28
|
const WUStateID = WsWorkunits.WUStateID;
|
|
@@ -567,7 +576,7 @@ export class Workunit extends StateObject<UWorkunitState, IWorkunitState> implem
|
|
|
567
576
|
default:
|
|
568
577
|
props[scopeProperty.Name] = scopeProperty.RawValue;
|
|
569
578
|
}
|
|
570
|
-
formattedProps[scopeProperty.Name] = scopeProperty.Formatted ?? props[scopeProperty.Name];
|
|
579
|
+
formattedProps[scopeProperty.Name] = formatNum(scopeProperty.Formatted ?? props[scopeProperty.Name]);
|
|
571
580
|
|
|
572
581
|
}
|
|
573
582
|
}
|