@hestia-earth/api 0.9.31 → 0.9.32

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.
@@ -101,11 +101,21 @@ exports.groupLogsByModel = function (data) {
101
101
  .map(parseMessage)
102
102
  .filter(function (v) { return !!(v === null || v === void 0 ? void 0 : v.term) && !!(v === null || v === void 0 ? void 0 : v.model); })
103
103
  .reduce(function (group, _a) {
104
- var term = _a.term, model = _a.model, key = _a.key, should_run = _a.should_run, log = __rest(_a, ["term", "model", "key", "should_run"]);
104
+ var term = _a.term, model = _a.model, key = _a.key, should_run = _a.should_run, input = _a.input, property = _a.property, log = __rest(_a, ["term", "model", "key", "should_run", "input", "property"]);
105
105
  var modelKey = key || model;
106
106
  var isKey = !!key;
107
107
  group[term] = group[term] || {};
108
108
  group[term][modelKey] = group[term][modelKey] || __assign({ isKey: isKey }, (isKey ? { model: model } : {}));
109
+ if (typeof input !== 'undefined') {
110
+ group[term][modelKey].input = utils_1.unique(__spreadArrays((group[term][modelKey].input || []), [
111
+ input
112
+ ]));
113
+ }
114
+ if (typeof property !== 'undefined') {
115
+ group[term][modelKey].property = utils_1.unique(__spreadArrays((group[term][modelKey].property || []), [
116
+ property
117
+ ]));
118
+ }
109
119
  if (typeof should_run !== 'undefined') {
110
120
  group[term][modelKey] = __assign(__assign(__assign({}, group[term][modelKey]), log), { shouldRun: should_run === 'True' });
111
121
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/api",
3
- "version": "0.9.31",
3
+ "version": "0.9.32",
4
4
  "description": "Hestia API definitions",
5
5
  "main": "dist/models.js",
6
6
  "typings": "dist/models.d.ts",