@hestia-earth/data-validation 0.38.5 → 0.39.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/data-validation",
3
- "version": "0.38.5",
3
+ "version": "0.39.0",
4
4
  "description": "HESTIA Data Validation library",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -36,9 +36,9 @@
36
36
  "@commitlint/cli": "^17.8.1",
37
37
  "@commitlint/config-conventional": "^17.8.1",
38
38
  "@hestia-earth/eslint-config": "^0.1.1",
39
- "@hestia-earth/json-schema": "^33.7.11",
40
- "@hestia-earth/schema": "^33.7.11",
41
- "@hestia-earth/schema-validation": "^33.7.11",
39
+ "@hestia-earth/json-schema": "^36.0.0",
40
+ "@hestia-earth/schema": "^36.0.0",
41
+ "@hestia-earth/schema-validation": "^36.0.0",
42
42
  "@typescript-eslint/eslint-plugin": "^5.62.0",
43
43
  "@typescript-eslint/parser": "^5.62.0",
44
44
  "eslint": "^7.32.0",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "fuel": [
3
- "diesel",
4
3
  "petrol",
5
- "diesel1D",
4
+ "diesel",
6
5
  "aviationGasoline",
7
- "marineDieselOil",
6
+ "diesel1D",
8
7
  "diesel4D",
9
8
  "diesel2D",
9
+ "marineDieselOil",
10
10
  "gasolineTypeJetFuel",
11
11
  "en590Diesel",
12
12
  "petrolBurntIn2StrokeEngine",
@@ -14,125 +14,142 @@
14
14
  ],
15
15
  "cropResidue": [
16
16
  "discardedCropBurnt",
17
- "aboveGroundCropResidueRemoved",
18
- "discardedCropIncorporated",
19
17
  "discardedCropLeftOnField",
20
18
  "discardedCropTotal",
21
- "aboveGroundCropResidueBurnt",
22
- "belowGroundCropResidue",
23
- "aboveGroundCropResidueLeftOnField",
19
+ "aboveGroundCropResidueRemoved",
20
+ "discardedCropIncorporated",
24
21
  "aboveGroundCropResidueIncorporated",
25
22
  "aboveGroundCropResidueTotal",
26
- "discardedCropRemoved"
23
+ "discardedCropRemoved",
24
+ "aboveGroundCropResidueBurnt",
25
+ "belowGroundCropResidue",
26
+ "aboveGroundCropResidueLeftOnField"
27
27
  ],
28
28
  "model": [
29
+ "pestlciConsensusModel",
30
+ "landOccupationCalculationUsedDurationOnly",
31
+ "dewulfEtAl2007",
32
+ "cnspsModel",
33
+ "ipcc2007",
34
+ "recipe2008Individualist",
35
+ "worldMeteorologicalOrganization1999",
29
36
  "landOccupationCalculationIncludingUsedAndUnusedDuration",
37
+ "spatial",
38
+ "ipcc2019",
39
+ "aware",
40
+ "agribalyse2016",
41
+ "pefcrGuidanceDocument2017",
30
42
  "edip2003",
31
- "cnspsModel",
32
43
  "hestiaAggregatedData",
33
44
  "lcImpactAllEffects100Years",
34
- "pestlciConsensusModel",
35
- "recipe2008Individualist",
36
- "pefcrGuidanceDocument2017",
37
- "agribalyse2016",
38
- "ipcc2007",
39
- "ipcc2019",
40
- "dewulfEtAl2007",
41
45
  "epa2014",
42
- "spatial",
43
- "aware",
44
- "landOccupationCalculationUsedDurationOnly",
45
- "worldMeteorologicalOrganization1999",
46
- "globalCropWaterModel2008",
47
- "ecoIndicator95",
48
- "cml2001NonBaseline",
49
- "emepEea2019",
46
+ "usetoxV2",
47
+ "usetoxV2-1",
48
+ "europeanEnvironmentAgency2016",
49
+ "fantkeEtAl2016",
50
+ "ipcc2013ExcludingFeedbacks",
51
+ "haversineFormula",
52
+ "poschEtAl2008",
53
+ "ipcc2019CountryAverageFertiliserMix",
54
+ "papatryphonEtAl2004",
55
+ "harmonizedWorldSoilDatabaseV1-2",
56
+ "pribyl2010",
57
+ "lcImpactCertainEffectsInfinite",
58
+ "lcImpactCertainEffects100Years",
59
+ "ridouttPfister2010",
60
+ "recipe2016Hierarchist",
61
+ "sqcb",
62
+ "ecoinventV3",
63
+ "ecoinventV3AndEmberClimate",
64
+ "cml1992",
65
+ "mapbiomas",
66
+ "chaudharyBrooks2018",
67
+ "recipe2016Individualist",
68
+ "milaICanalsEtAl2007",
50
69
  "ipcc2013IncludingFeedbacks",
51
- "sqcbFaistEmmeneggerEtAl2009",
70
+ "emepEea2019",
52
71
  "emepEea2019CountryAverageFertiliserMix",
72
+ "semc2000",
73
+ "royEtAl2014",
74
+ "gfliDatabaseV2",
53
75
  "massBalanceModel",
54
- "chaudharyEtAl2015",
76
+ "cumulativeEnergyDemandCedMethod",
77
+ "globalCropWaterModel2008",
55
78
  "stehfestBouwman2006GisImplementation",
56
- "milaICanalsEtAl2007",
79
+ "cml2001NonBaseline",
80
+ "ecoIndicator95",
81
+ "linkedImpactAssessment",
82
+ "hestia",
83
+ "schererPfister2015",
57
84
  "dammgen2009",
58
- "allenEtAl2018",
59
- "royEtAl2014",
60
- "stehfestBouwman2006",
61
85
  "ipcc2021",
62
- "schererPfister2015",
63
- "hestia",
64
- "cumulativeEnergyDemandCedMethod",
65
- "gfliDatabaseV2",
66
- "semc2000",
67
- "linkedImpactAssessment",
68
- "ipcc2006",
86
+ "stehfestBouwman2006",
87
+ "sqcbFaistEmmeneggerEtAl2009",
88
+ "allenEtAl2018",
89
+ "chaudharyEtAl2015",
90
+ "akiyamaEtAl2010",
69
91
  "ipcc2001",
70
- "recipe2008Hierarchist",
71
- "otherModel",
72
- "frischknechtEtAl2000",
73
- "impact2002Model",
74
- "ecoIndicator99",
75
- "akagiEtAl2011AndIpcc2006",
76
- "aggregatedModels",
92
+ "ipcc1996",
77
93
  "environmentalFootprintV2-0",
78
- "recipe2008Egalitarian",
79
- "cml2001Baseline",
80
94
  "europeanEnvironmentAgency2013",
81
- "ecoinventV2",
82
- "recipe2016Egalitarian",
83
- "rainsModel",
95
+ "aggregatedModels",
96
+ "ecoIndicator99",
97
+ "akagiEtAl2011AndIpcc2006",
84
98
  "faostat2018",
99
+ "otherModel",
100
+ "frischknechtEtAl2000",
85
101
  "lcImpactAllEffectsInfinite",
86
- "webbEtAl2012AndSintermannEtAl2012",
87
- "akiyamaEtAl2010",
88
- "ipcc1996",
102
+ "recipe2008Egalitarian",
103
+ "impact2002Model",
104
+ "ecoinventV2",
105
+ "ipcc2006",
106
+ "recipe2008Hierarchist",
89
107
  "hyde3-2",
90
- "ipcc2013ExcludingFeedbacks",
91
- "pribyl2010",
92
- "ridouttPfister2010",
93
- "lcImpactCertainEffects100Years",
94
- "recipe2016Individualist",
95
- "chaudharyBrooks2018",
96
- "recipe2016Hierarchist",
97
- "ecoinventV3AndEmberClimate",
98
- "mapbiomas",
99
- "sqcb",
100
- "harmonizedWorldSoilDatabaseV1-2",
101
- "lcImpactCertainEffectsInfinite",
102
- "poschEtAl2008",
103
- "haversineFormula",
104
- "europeanEnvironmentAgency2016",
105
- "fantkeEtAl2016",
106
- "papatryphonEtAl2004",
107
- "ipcc2019CountryAverageFertiliserMix",
108
- "usetoxV2",
109
- "cml1992",
110
- "ecoinventV3",
111
- "pooreNemecek2018",
112
- "worldSteel",
108
+ "webbEtAl2012AndSintermannEtAl2012",
109
+ "rainsModel",
110
+ "cml2001Baseline",
111
+ "recipe2016Egalitarian",
112
+ "usetoxV2-14",
113
+ "koble2014",
113
114
  "salca",
115
+ "ipcc1995",
116
+ "environmentalFootprintV3-0",
117
+ "environmentalFootprintV3-1",
118
+ "riskpollModel",
119
+ "akagiEtAl2011",
120
+ "emissionNotRelevant",
121
+ "bafu2025",
122
+ "lanca",
114
123
  "jarvisAndPain1994",
115
- "blonkConsultants2016",
124
+ "deRuijterEtAl2010",
125
+ "aware2-0",
116
126
  "usEpa1995",
117
- "akagiEtAl2011",
118
- "ipcc1995",
119
- "kanEtAl2020",
120
127
  "usEpa1993",
121
- "lanca",
128
+ "ecoalimV9",
122
129
  "directive200829EcOfTheEuropeanParliament",
123
- "bafu2025",
124
- "environmentalFootprintV3-1",
125
- "koble2014",
126
- "schmidt2007",
127
130
  "resourceUseNotRelevant",
128
- "deRuijterEtAl2010",
129
- "aware2-0",
130
- "emissionNotRelevant",
131
- "environmentalFootprintV3-0",
132
- "riskpollModel",
133
- "ecoalimV9"
131
+ "kanEtAl2020",
132
+ "worldSteel",
133
+ "pooreNemecek2018",
134
+ "schmidt2007",
135
+ "blonkConsultants2016"
134
136
  ],
135
137
  "forage": [
138
+ "redtopFreshForage",
139
+ "bluegrassFreshForage",
140
+ "sugarcaneFreshForage",
141
+ "soybeanFreshForage",
142
+ "lespedezaFreshForage",
143
+ "danthoniaFreshForage",
144
+ "pulseFreshForage",
145
+ "poroFreshForage",
146
+ "oatFreshForage",
147
+ "lanillaFreshForage",
148
+ "mustardFreshForage",
149
+ "sainfoinFreshForage",
150
+ "burguFreshForage",
151
+ "barleyFreshForage",
152
+ "turnipFreshForage",
136
153
  "wheatFreshForage",
137
154
  "taroFreshForage",
138
155
  "peaFreshForage",
@@ -160,21 +177,6 @@
160
177
  "peanutFreshForage",
161
178
  "mulgaFreshForage",
162
179
  "lupinFreshForage",
163
- "redtopFreshForage",
164
- "bluegrassFreshForage",
165
- "sugarcaneFreshForage",
166
- "soybeanFreshForage",
167
- "lespedezaFreshForage",
168
- "danthoniaFreshForage",
169
- "pulseFreshForage",
170
- "poroFreshForage",
171
- "oatFreshForage",
172
- "lanillaFreshForage",
173
- "mustardFreshForage",
174
- "sainfoinFreshForage",
175
- "burguFreshForage",
176
- "barleyFreshForage",
177
- "turnipFreshForage",
178
180
  "tomatoFreshForage",
179
181
  "triticaleFreshForage",
180
182
  "panicFreshForage",
@@ -197,6 +199,32 @@
197
199
  "maizeFreshForage",
198
200
  "buckwheatFreshForage",
199
201
  "calliandraFreshForage",
202
+ "gambaGrassFreshForage",
203
+ "andropogonFastigiatusFreshForage",
204
+ "arizonaCottontopFreshForage",
205
+ "andropogonCanaliculatusFreshForage",
206
+ "pigeonPeaFreshForage",
207
+ "guriaGrassFreshForage",
208
+ "durumWheatFreshForage",
209
+ "paraGrassFreshForage",
210
+ "torpedoGrassFreshForage",
211
+ "sainGrassFreshForage",
212
+ "bluePanicFreshForage",
213
+ "tripsacumLatifoliumFreshForage",
214
+ "bermudaGrassFreshForage",
215
+ "setariaLachneaFreshForage",
216
+ "hyacinthBeanFreshForage",
217
+ "nileGrassFreshForage",
218
+ "alangAlangFreshForage",
219
+ "elephantGrassFreshForage",
220
+ "chlorisPrieuriiFreshForage",
221
+ "blackseedGrassFreshForage",
222
+ "surinameGrassFreshForage",
223
+ "redCloverFreshForage",
224
+ "guatemalaGrassFreshForage",
225
+ "centipedeGrassFreshForage",
226
+ "dallisGrassFreshForage",
227
+ "bahiaGrassFreshForage",
200
228
  "sporobolusNervosusFreshForage",
201
229
  "spottedBrachiariaFreshForage",
202
230
  "pennisetumOrientaleFreshForage",
@@ -254,32 +282,6 @@
254
282
  "congoGrassFreshForage",
255
283
  "indianBluegrassFreshForage",
256
284
  "mnesitheaRottboellioidesFreshForage",
257
- "gambaGrassFreshForage",
258
- "andropogonFastigiatusFreshForage",
259
- "arizonaCottontopFreshForage",
260
- "andropogonCanaliculatusFreshForage",
261
- "pigeonPeaFreshForage",
262
- "guriaGrassFreshForage",
263
- "durumWheatFreshForage",
264
- "paraGrassFreshForage",
265
- "torpedoGrassFreshForage",
266
- "sainGrassFreshForage",
267
- "bluePanicFreshForage",
268
- "tripsacumLatifoliumFreshForage",
269
- "bermudaGrassFreshForage",
270
- "setariaLachneaFreshForage",
271
- "hyacinthBeanFreshForage",
272
- "nileGrassFreshForage",
273
- "alangAlangFreshForage",
274
- "elephantGrassFreshForage",
275
- "chlorisPrieuriiFreshForage",
276
- "blackseedGrassFreshForage",
277
- "surinameGrassFreshForage",
278
- "redCloverFreshForage",
279
- "guatemalaGrassFreshForage",
280
- "centipedeGrassFreshForage",
281
- "dallisGrassFreshForage",
282
- "bahiaGrassFreshForage",
283
285
  "natalGrassFreshForage",
284
286
  "pennisetumSquamulatumFreshForage",
285
287
  "desertGrassFreshForage",
@@ -339,6 +341,16 @@
339
341
  "creepingBluegrassFreshForage",
340
342
  "smutGrassFreshForage",
341
343
  "giantSetariaFreshForage",
344
+ "giantStarGrassFreshForage",
345
+ "blueSignalGrassFreshForage",
346
+ "chineseRyeGrassFreshForage",
347
+ "masaiLoveGrassFreshForage",
348
+ "redOatGrassFreshForage",
349
+ "egyptianCrowfootGrassFreshForage",
350
+ "swampRiceGrassFreshForage",
351
+ "genericLeguminousGrassFreshForage",
352
+ "fineThatchingGrassFreshForage",
353
+ "nadiBlueGrassFreshForage",
342
354
  "milanjeFingerGrassFreshForage",
343
355
  "africanCouchGrassFreshForage",
344
356
  "colouredGuineaGrassFreshForage",
@@ -357,16 +369,6 @@
357
369
  "bulbousCanaryGrassFreshForage",
358
370
  "grassCloverMixtureFreshForage",
359
371
  "hairyHerringboneGrassFreshForage",
360
- "giantStarGrassFreshForage",
361
- "blueSignalGrassFreshForage",
362
- "chineseRyeGrassFreshForage",
363
- "masaiLoveGrassFreshForage",
364
- "redOatGrassFreshForage",
365
- "egyptianCrowfootGrassFreshForage",
366
- "swampRiceGrassFreshForage",
367
- "genericLeguminousGrassFreshForage",
368
- "fineThatchingGrassFreshForage",
369
- "nadiBlueGrassFreshForage",
370
372
  "largeLeafFlemingiaFreshForage",
371
373
  "weepingLoveGrassFreshForage",
372
374
  "redRhodesGrassFreshForage",
@@ -381,7 +383,7 @@
381
383
  "rice": [
382
384
  "riceStraw",
383
385
  "jungleRiceHay",
384
- "riceGrainInHuskFlooded",
385
- "riceGrainInHuskUpland"
386
+ "riceGrainInHuskUpland",
387
+ "riceGrainInHuskFlooded"
386
388
  ]
387
389
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const DATA_VALIDATION_VERSION = '0.38.5';
1
+ export const DATA_VALIDATION_VERSION = '0.39.0';
package/validation.json CHANGED
@@ -175,6 +175,11 @@
175
175
  "level": "error",
176
176
  "message": "must not have background methodTier"
177
177
  },
178
+ {
179
+ "function": "validate_depth",
180
+ "level": "warning",
181
+ "message": "should set the depth"
182
+ },
178
183
  {
179
184
  "function": "validate_defaultValue",
180
185
  "level": "warning",
@@ -350,6 +355,16 @@
350
355
  "level": "error",
351
356
  "message": "must be linked to waste input"
352
357
  },
358
+ {
359
+ "function": "validate_resourceUse_landCover",
360
+ "level": "error",
361
+ "message": "this field is required"
362
+ },
363
+ {
364
+ "function": "validate_resourceUse_landCover",
365
+ "level": "error",
366
+ "message": "this field is required"
367
+ },
353
368
  {
354
369
  "function": "validate_empty",
355
370
  "level": "error",
@@ -390,6 +405,11 @@
390
405
  "level": "error",
391
406
  "message": "must equal to endDate - startDate in days"
392
407
  },
408
+ {
409
+ "function": "validate_harvestedArea",
410
+ "level": "error",
411
+ "message": "must be lower or equal to siteArea"
412
+ },
393
413
  {
394
414
  "function": "validate_maximum_cycleDuration",
395
415
  "level": "error",