@hestia-earth/api 0.19.3 → 0.20.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.
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ITermJSONLD } from '@hestia-earth/schema';
|
|
2
2
|
import { BaseModel } from '../../db/model.base';
|
|
3
|
-
export type analysisChangeType = 'increase' | 'decrease';
|
|
4
3
|
export interface IAnalysisDetail {
|
|
5
4
|
key: 'inputs' | 'products' | 'practices';
|
|
6
5
|
grouping: string;
|
|
7
|
-
|
|
6
|
+
analysis: string;
|
|
8
7
|
originalUrl?: string;
|
|
9
8
|
recalculatedUrl?: string;
|
|
10
9
|
}
|
|
@@ -13,13 +12,13 @@ export interface IAnalaysisIndicator {
|
|
|
13
12
|
model: Partial<ITermJSONLD>;
|
|
14
13
|
}
|
|
15
14
|
export declare enum AnalysisType {
|
|
16
|
-
quantity = "quantity"
|
|
15
|
+
quantity = "quantity",
|
|
16
|
+
term = "term"
|
|
17
17
|
}
|
|
18
18
|
export declare class Analysis extends BaseModel {
|
|
19
19
|
cycleId: string;
|
|
20
20
|
name: string;
|
|
21
21
|
indicators: IAnalaysisIndicator[];
|
|
22
|
-
readonly quantity?: IAnalysisDetail[];
|
|
23
22
|
readonly cycle: {
|
|
24
23
|
originalUrl: string;
|
|
25
24
|
recalculatedUrl: string;
|
|
@@ -28,4 +27,6 @@ export declare class Analysis extends BaseModel {
|
|
|
28
27
|
originalUrl: string;
|
|
29
28
|
recalculatedUrl: string;
|
|
30
29
|
};
|
|
30
|
+
readonly quantity?: IAnalysisDetail[];
|
|
31
|
+
readonly term?: IAnalysisDetail[];
|
|
31
32
|
}
|
|
@@ -20,6 +20,7 @@ var model_base_1 = require("../../db/model.base");
|
|
|
20
20
|
var AnalysisType;
|
|
21
21
|
(function (AnalysisType) {
|
|
22
22
|
AnalysisType["quantity"] = "quantity";
|
|
23
|
+
AnalysisType["term"] = "term";
|
|
23
24
|
})(AnalysisType = exports.AnalysisType || (exports.AnalysisType = {}));
|
|
24
25
|
var Analysis = (function (_super) {
|
|
25
26
|
__extends(Analysis, _super);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hestia-earth/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Hestia API definitions",
|
|
5
5
|
"main": "dist/models.js",
|
|
6
6
|
"typings": "dist/models.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"author": "Guillaume Royer <guillaumeroyer.mail@gmail.com>",
|
|
31
31
|
"license": "UNLICENSED",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@hestia-earth/schema": ">=
|
|
33
|
+
"@hestia-earth/schema": ">=20.0.0",
|
|
34
34
|
"@hestia-earth/utils": ">=0.11.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"@commitlint/config-conventional": "^16.2.4",
|
|
39
39
|
"@elastic/elasticsearch": "7.13.0",
|
|
40
40
|
"@hestia-earth/eslint-config": "^0.0.5",
|
|
41
|
-
"@hestia-earth/json-schema": "^
|
|
42
|
-
"@hestia-earth/schema-convert": "^
|
|
43
|
-
"@hestia-earth/schema-validation": "^
|
|
41
|
+
"@hestia-earth/json-schema": "^20.0.0",
|
|
42
|
+
"@hestia-earth/schema-convert": "^20.0.0",
|
|
43
|
+
"@hestia-earth/schema-validation": "^20.0.0",
|
|
44
44
|
"@mendeley/api": "^10.0.2",
|
|
45
45
|
"@sentry/node": "^7.33.0",
|
|
46
46
|
"@sentry/tracing": "^7.33.0",
|