@hpcc-js/comms 3.14.2 → 3.15.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hpcc-js/comms",
3
- "version": "3.14.2",
3
+ "version": "3.15.0",
4
4
  "description": "hpcc-js - Communications",
5
5
  "type": "module",
6
6
  "main": "./dist/node/index.cjs",
@@ -74,13 +74,13 @@
74
74
  "wsdl-all": "npm-run-all --aggregate-output -c --serial build --parallel wsdl-*"
75
75
  },
76
76
  "dependencies": {
77
- "@hpcc-js/util": "^3.4.6",
77
+ "@hpcc-js/util": "^3.5.0",
78
78
  "@xmldom/xmldom": "0.9.8",
79
- "undici": "7.19.1"
79
+ "undici": "7.22.0"
80
80
  },
81
81
  "devDependencies": {
82
- "@hpcc-js/ddl-shim": "^3.2.5",
83
- "@hpcc-js/esbuild-plugins": "^1.8.2",
82
+ "@hpcc-js/ddl-shim": "^3.3.0",
83
+ "@hpcc-js/esbuild-plugins": "^1.8.3",
84
84
  "@kubernetes/client-node": "1.4.0",
85
85
  "@types/d3-request": "1.0.9",
86
86
  "@types/d3-time-format": "2.3.4",
@@ -90,7 +90,7 @@
90
90
  "d3-format": "^1",
91
91
  "d3-time-format": "^2",
92
92
  "data-uri-to-buffer": "6.0.2",
93
- "soap": "1.6.3",
93
+ "soap": "1.7.1",
94
94
  "typescript-formatter": "^7.2.2"
95
95
  },
96
96
  "repository": {
@@ -110,5 +110,5 @@
110
110
  "esp",
111
111
  "HPCC-Platform"
112
112
  ],
113
- "gitHead": "99595523fbe7b16b75fc22b03666b9f249257a50"
113
+ "gitHead": "ada394f582442d2b23a7ff55b9f87a50a723f45b"
114
114
  }
@@ -20,6 +20,31 @@ export enum FileSprayStates {
20
20
  notfound = 999
21
21
  }
22
22
 
23
+ // defined in https://github.com/hpcc-systems/HPCC-Platform/blob/master/dali/dfu/dfuwu.cpp#L102-L121
24
+ export enum DFUWUTypes {
25
+ Copy = "copy",
26
+ Remove = "remove",
27
+ Move = "move",
28
+ Rename = "rename",
29
+ Replicate = "replicate",
30
+ Import = "import",
31
+ Export = "export",
32
+ /*
33
+ * These seem to not be valid with respect to filtering DFU WUs,
34
+ * but leaving them here because they exist in the dfuwu.cpp struct
35
+ *
36
+ * Add = "add",
37
+ * Transfer = "transfer",
38
+ * Savemap = "savemap",
39
+ * Addgroup = "addgroup",
40
+ * Server = "server",
41
+ */
42
+ Monitor = "monitor",
43
+ Copymerge = "copymerge",
44
+ Supercopy = "supercopy",
45
+ Publish = "publish",
46
+ }
47
+
23
48
  export interface UpdateDFUWorkunitEx extends UpdateDFUWorkunitMinusWU {
24
49
  wu?: Partial<UpdateDFUWorkunitWU>
25
50
  }
@@ -118,10 +118,14 @@ export class LogaccessService extends LogaccessServiceBase {
118
118
  };
119
119
 
120
120
  const filters: WsLogaccess.leftFilter[] = [];
121
+ const logTypes = Object.values(WsLogaccess.LogColumnType);
121
122
  for (const key in request) {
123
+ if (request[key] == null || request[key] === "" || (Array.isArray(request[key]) && request[key].length === 0)) {
124
+ continue;
125
+ }
122
126
  let searchField;
123
127
  if (key in columnMap) {
124
- if (Object.values(WsLogaccess.LogColumnType).includes(key as WsLogaccess.LogColumnType)) {
128
+ if (logTypes.includes(key as WsLogaccess.LogColumnType)) {
125
129
  searchField = key;
126
130
  } else {
127
131
  searchField = columnMap[key];
@@ -1,5 +1,5 @@
1
1
  import { deepMixin, xml2json, XMLNode } from "@hpcc-js/util";
2
- import { WsWorkunits, WorkunitsServiceBase } from "./wsdl/WsWorkunits/v2.03/WsWorkunits.ts";
2
+ import { WsWorkunits, WorkunitsServiceBase } from "./wsdl/WsWorkunits/v2.04/WsWorkunits.ts";
3
3
  import { IConnection, IOptions } from "../connection.ts";
4
4
 
5
5
  export {