@hestia-earth/api 0.9.29 → 0.9.32-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.
@@ -101,10 +101,19 @@ 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
+ var isKey = !!key;
106
107
  group[term] = group[term] || {};
107
- group[term][modelKey] = group[term][modelKey] || { isKey: !!key };
108
+ group[term][modelKey] = group[term][modelKey] || __assign({ isKey: isKey }, (isKey ? { model: model } : {}));
109
+ if (typeof input !== 'undefined') {
110
+ group[term][modelKey].input = group[term][modelKey].input || [];
111
+ group[term][modelKey].input.push(input);
112
+ }
113
+ if (typeof property !== 'undefined') {
114
+ group[term][modelKey].property = group[term][modelKey].property || [];
115
+ group[term][modelKey].property.push(property);
116
+ }
108
117
  if (typeof should_run !== 'undefined') {
109
118
  group[term][modelKey] = __assign(__assign(__assign({}, group[term][modelKey]), log), { shouldRun: should_run === 'True' });
110
119
  }
@@ -2,4 +2,5 @@ import { BaseModel } from '../../db/model.base';
2
2
  export declare class Reconciliation extends BaseModel {
3
3
  idExpected: string;
4
4
  idRecalculated: string;
5
+ name: string;
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/api",
3
- "version": "0.9.29",
3
+ "version": "0.9.32-0",
4
4
  "description": "Hestia API definitions",
5
5
  "main": "dist/models.js",
6
6
  "typings": "dist/models.d.ts",
@@ -30,14 +30,15 @@
30
30
  "author": "Guillaume Royer <guillaumeroyer.mail@gmail.com>",
31
31
  "license": "UNLICENSED",
32
32
  "dependencies": {
33
- "@hestia-earth/schema": "^7.0.0"
33
+ "@hestia-earth/schema": "^7.6.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@commitlint/cli": "^12.1.4",
37
37
  "@commitlint/config-conventional": "^12.1.4",
38
38
  "@elastic/elasticsearch": "7.13.0",
39
- "@hestia-earth/schema-convert": "^7.0.0",
40
- "@hestia-earth/schema-validation": "^7.0.0",
39
+ "@hestia-earth/json-schema": "^7.6.1",
40
+ "@hestia-earth/schema-convert": "^7.6.1",
41
+ "@hestia-earth/schema-validation": "^7.6.1",
41
42
  "@hestia-earth/utils": "^0.10.4",
42
43
  "@mendeley/api": "^10.0.2",
43
44
  "@sentry/node": "^6.18.2",