@hestia-earth/api 0.24.10 → 0.24.12

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.
@@ -2,8 +2,7 @@ import { SchemaType, NodeType } from '@hestia-earth/schema';
2
2
  export declare const blankNodeTypes: SchemaType[];
3
3
  export declare enum DataState {
4
4
  original = "original",
5
- recalculated = "recalculated",
6
- aggregated = "aggregated"
5
+ recalculated = "recalculated"
7
6
  }
8
7
  export declare const dataStatesTypeMapping: {
9
8
  [state in DataState]: (SchemaType | NodeType)[];
@@ -33,12 +33,10 @@ var DataState;
33
33
  (function (DataState) {
34
34
  DataState["original"] = "original";
35
35
  DataState["recalculated"] = "recalculated";
36
- DataState["aggregated"] = "aggregated";
37
36
  })(DataState = exports.DataState || (exports.DataState = {}));
38
37
  exports.dataStatesTypeMapping = (_a = {},
39
38
  _a[DataState.original] = Object.values(schema_1.NodeType),
40
39
  _a[DataState.recalculated] = [schema_1.NodeType.Cycle, schema_1.NodeType.ImpactAssessment, schema_1.NodeType.Site],
41
- _a[DataState.aggregated] = [],
42
40
  _a);
43
41
  var allowedDataStates = function (type) {
44
42
  return Object.values(DataState).filter(function (dataState) { return exports.dataStatesTypeMapping[dataState].includes(type); });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/api",
3
- "version": "0.24.10",
3
+ "version": "0.24.12",
4
4
  "description": "Hestia API definitions",
5
5
  "main": "dist/models.js",
6
6
  "typings": "dist/models.d.ts",