@hpcc-js/comms 2.93.0 → 2.94.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
@@ -648,8 +648,8 @@
648
648
  }
649
649
 
650
650
  var PKG_NAME = "@hpcc-js/comms";
651
- var PKG_VERSION = "2.93.0";
652
- var BUILD_VERSION = "2.105.13";
651
+ var PKG_VERSION = "2.94.0";
652
+ var BUILD_VERSION = "2.106.0";
653
653
 
654
654
  /******************************************************************************
655
655
  Copyright (c) Microsoft Corporation.
@@ -2118,17 +2118,41 @@
2118
2118
  _loop_1 = function (key) {
2119
2119
  var searchField;
2120
2120
  if (key in columnMap) {
2121
- searchField = columnMap[key];
2121
+ if (Object.values(exports.WsLogaccess.LogColumnType).includes(key)) {
2122
+ searchField = key;
2123
+ }
2124
+ else {
2125
+ searchField = columnMap[key];
2126
+ }
2122
2127
  }
2123
- var logCategory = exports.WsLogaccess.LogAccessType.ByFieldName;
2128
+ var logCategory;
2124
2129
  if (searchField) {
2125
2130
  switch (searchField) {
2131
+ case exports.WsLogaccess.LogColumnType.workunits:
2132
+ case "hpcc.log.jobid":
2133
+ logCategory = exports.WsLogaccess.LogAccessType.ByJobID;
2134
+ break;
2135
+ case exports.WsLogaccess.LogColumnType.audience:
2126
2136
  case "hpcc.log.audience":
2127
2137
  logCategory = exports.WsLogaccess.LogAccessType.ByTargetAudience;
2128
2138
  break;
2139
+ case exports.WsLogaccess.LogColumnType.class:
2140
+ case "hpcc.log.class":
2141
+ logCategory = exports.WsLogaccess.LogAccessType.ByLogType;
2142
+ break;
2143
+ case exports.WsLogaccess.LogColumnType.components:
2144
+ case "kubernetes.container.name":
2145
+ logCategory = exports.WsLogaccess.LogAccessType.ByComponent;
2146
+ break;
2147
+ default:
2148
+ logCategory = exports.WsLogaccess.LogAccessType.ByFieldName;
2149
+ searchField = columnMap[key];
2129
2150
  }
2130
2151
  if (Array.isArray(request[key])) {
2131
2152
  request[key].forEach(function (value) {
2153
+ if (logCategory === exports.WsLogaccess.LogAccessType.ByComponent) {
2154
+ value += "*";
2155
+ }
2132
2156
  filters.push({
2133
2157
  LogCategory: logCategory,
2134
2158
  SearchField: searchField,
@@ -2137,10 +2161,16 @@
2137
2161
  });
2138
2162
  }
2139
2163
  else {
2164
+ var value = request[key];
2165
+ if (logCategory === exports.WsLogaccess.LogAccessType.ByComponent) {
2166
+ // append wildcard to end of search value to include ephemeral
2167
+ // containers that aren't listed in ECL Watch's filters
2168
+ value += "*";
2169
+ }
2140
2170
  filters.push({
2141
2171
  LogCategory: logCategory,
2142
2172
  SearchField: searchField,
2143
- SearchByValue: request[key]
2173
+ SearchByValue: value
2144
2174
  });
2145
2175
  }
2146
2176
  }