@hestia-earth/data-validation 0.38.6 → 0.39.1

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.6",
3
+ "version": "0.39.1",
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",
@@ -4,9 +4,9 @@
4
4
  "diesel",
5
5
  "diesel1D",
6
6
  "aviationGasoline",
7
- "marineDieselOil",
8
7
  "diesel4D",
9
8
  "diesel2D",
9
+ "marineDieselOil",
10
10
  "en590Diesel",
11
11
  "gasolineTypeJetFuel",
12
12
  "petrolBurntIn2StrokeEngine",
@@ -18,121 +18,136 @@
18
18
  "discardedCropIncorporated",
19
19
  "discardedCropLeftOnField",
20
20
  "discardedCropTotal",
21
- "aboveGroundCropResidueBurnt",
22
- "belowGroundCropResidue",
23
- "aboveGroundCropResidueLeftOnField",
24
21
  "aboveGroundCropResidueIncorporated",
25
22
  "aboveGroundCropResidueTotal",
26
- "discardedCropRemoved"
23
+ "discardedCropRemoved",
24
+ "aboveGroundCropResidueBurnt",
25
+ "belowGroundCropResidue",
26
+ "aboveGroundCropResidueLeftOnField"
27
27
  ],
28
28
  "model": [
29
- "landOccupationCalculationIncludingUsedAndUnusedDuration",
30
- "edip2003",
31
- "cnspsModel",
32
- "hestiaAggregatedData",
33
- "lcImpactAllEffects100Years",
34
- "pestlciConsensusModel",
35
- "recipe2008Individualist",
36
- "pefcrGuidanceDocument2017",
37
- "agribalyse2016",
38
- "ipcc2007",
29
+ "aware",
39
30
  "ipcc2019",
40
31
  "dewulfEtAl2007",
32
+ "pestlciConsensusModel",
33
+ "cnspsModel",
41
34
  "epa2014",
35
+ "ipcc2007",
36
+ "edip2003",
37
+ "landOccupationCalculationIncludingUsedAndUnusedDuration",
42
38
  "spatial",
43
- "aware",
44
39
  "landOccupationCalculationUsedDurationOnly",
40
+ "pefcrGuidanceDocument2017",
41
+ "agribalyse2016",
42
+ "hestiaAggregatedData",
43
+ "lcImpactAllEffects100Years",
44
+ "recipe2008Individualist",
45
45
  "worldMeteorologicalOrganization1999",
46
+ "chaudharyBrooks2018",
47
+ "fantkeEtAl2016",
46
48
  "ipcc2013ExcludingFeedbacks",
47
- "pribyl2010",
48
- "ridouttPfister2010",
49
+ "ipcc2019CountryAverageFertiliserMix",
50
+ "lcImpactCertainEffectsInfinite",
51
+ "haversineFormula",
52
+ "europeanEnvironmentAgency2016",
49
53
  "lcImpactCertainEffects100Years",
50
- "recipe2016Individualist",
51
- "chaudharyBrooks2018",
52
- "recipe2016Hierarchist",
54
+ "ridouttPfister2010",
55
+ "cml1992",
53
56
  "ecoinventV3AndEmberClimate",
57
+ "pribyl2010",
58
+ "usetoxV2-1",
54
59
  "mapbiomas",
55
- "sqcb",
56
- "harmonizedWorldSoilDatabaseV1-2",
57
- "lcImpactCertainEffectsInfinite",
58
60
  "poschEtAl2008",
59
- "haversineFormula",
60
- "europeanEnvironmentAgency2016",
61
- "fantkeEtAl2016",
62
61
  "papatryphonEtAl2004",
63
- "ipcc2019CountryAverageFertiliserMix",
64
- "usetoxV2",
65
- "cml1992",
66
62
  "ecoinventV3",
67
- "ipcc2006",
68
- "ipcc2001",
69
- "recipe2008Hierarchist",
70
- "otherModel",
71
- "frischknechtEtAl2000",
72
- "impact2002Model",
73
- "ecoIndicator99",
74
- "akagiEtAl2011AndIpcc2006",
75
- "aggregatedModels",
76
- "environmentalFootprintV2-0",
77
- "recipe2008Egalitarian",
78
- "cml2001Baseline",
79
- "europeanEnvironmentAgency2013",
80
- "ecoinventV2",
81
- "recipe2016Egalitarian",
82
- "rainsModel",
83
- "faostat2018",
84
- "lcImpactAllEffectsInfinite",
85
- "webbEtAl2012AndSintermannEtAl2012",
86
- "akiyamaEtAl2010",
87
- "ipcc1996",
88
- "hyde3-2",
89
- "globalCropWaterModel2008",
90
- "ecoIndicator95",
91
- "cml2001NonBaseline",
63
+ "harmonizedWorldSoilDatabaseV1-2",
64
+ "sqcb",
65
+ "recipe2016Individualist",
66
+ "recipe2016Hierarchist",
92
67
  "emepEea2019",
93
- "ipcc2013IncludingFeedbacks",
94
- "sqcbFaistEmmeneggerEtAl2009",
95
- "emepEea2019CountryAverageFertiliserMix",
68
+ "ipcc2021",
69
+ "gfliDatabaseV2",
96
70
  "massBalanceModel",
97
- "chaudharyEtAl2015",
71
+ "cml2001NonBaseline",
72
+ "ecoIndicator95",
73
+ "globalCropWaterModel2008",
74
+ "stehfestBouwman2006",
75
+ "sqcbFaistEmmeneggerEtAl2009",
98
76
  "stehfestBouwman2006GisImplementation",
99
- "milaICanalsEtAl2007",
77
+ "chaudharyEtAl2015",
78
+ "ipcc2013IncludingFeedbacks",
79
+ "emepEea2019CountryAverageFertiliserMix",
80
+ "semc2000",
81
+ "cumulativeEnergyDemandCedMethod",
100
82
  "dammgen2009",
83
+ "linkedImpactAssessment",
101
84
  "allenEtAl2018",
102
- "royEtAl2014",
103
- "stehfestBouwman2006",
104
- "ipcc2021",
105
85
  "schererPfister2015",
86
+ "milaICanalsEtAl2007",
106
87
  "hestia",
107
- "cumulativeEnergyDemandCedMethod",
108
- "gfliDatabaseV2",
109
- "semc2000",
110
- "linkedImpactAssessment",
88
+ "royEtAl2014",
89
+ "emissionNotRelevant",
90
+ "riskpollModel",
91
+ "ecoalimV9",
111
92
  "pooreNemecek2018",
112
- "worldSteel",
113
- "salca",
114
- "jarvisAndPain1994",
115
- "blonkConsultants2016",
116
- "usEpa1995",
117
- "akagiEtAl2011",
93
+ "lanca",
94
+ "environmentalFootprintV3-1",
118
95
  "ipcc1995",
96
+ "akagiEtAl2011",
97
+ "jarvisAndPain1994",
98
+ "worldSteel",
99
+ "directive200829EcOfTheEuropeanParliament",
119
100
  "kanEtAl2020",
101
+ "resourceUseNotRelevant",
102
+ "environmentalFootprintV3-0",
103
+ "deRuijterEtAl2010",
120
104
  "usEpa1993",
121
- "lanca",
122
- "directive200829EcOfTheEuropeanParliament",
105
+ "blonkConsultants2016",
123
106
  "bafu2025",
124
- "environmentalFootprintV3-1",
107
+ "aware2-0",
125
108
  "koble2014",
126
109
  "schmidt2007",
127
- "resourceUseNotRelevant",
128
- "deRuijterEtAl2010",
129
- "aware2-0",
130
- "emissionNotRelevant",
131
- "environmentalFootprintV3-0",
132
- "riskpollModel",
133
- "ecoalimV9"
110
+ "salca",
111
+ "usEpa1995",
112
+ "impact2002Model",
113
+ "ecoinventV2",
114
+ "europeanEnvironmentAgency2013",
115
+ "ipcc1996",
116
+ "ipcc2001",
117
+ "rainsModel",
118
+ "frischknechtEtAl2000",
119
+ "environmentalFootprintV2-0",
120
+ "otherModel",
121
+ "aggregatedModels",
122
+ "ecoIndicator99",
123
+ "ipcc2006",
124
+ "webbEtAl2012AndSintermannEtAl2012",
125
+ "akagiEtAl2011AndIpcc2006",
126
+ "recipe2016Egalitarian",
127
+ "cml2001Baseline",
128
+ "faostat2018",
129
+ "recipe2008Hierarchist",
130
+ "akiyamaEtAl2010",
131
+ "lcImpactAllEffectsInfinite",
132
+ "hyde3-2",
133
+ "recipe2008Egalitarian"
134
134
  ],
135
135
  "forage": [
136
+ "redtopFreshForage",
137
+ "bluegrassFreshForage",
138
+ "sugarcaneFreshForage",
139
+ "soybeanFreshForage",
140
+ "lespedezaFreshForage",
141
+ "danthoniaFreshForage",
142
+ "pulseFreshForage",
143
+ "poroFreshForage",
144
+ "oatFreshForage",
145
+ "lanillaFreshForage",
146
+ "mustardFreshForage",
147
+ "sainfoinFreshForage",
148
+ "burguFreshForage",
149
+ "barleyFreshForage",
150
+ "turnipFreshForage",
136
151
  "cockatooFreshForage",
137
152
  "jackfruitFreshForage",
138
153
  "cocksfootFreshForage",
@@ -149,21 +164,6 @@
149
164
  "peanutFreshForage",
150
165
  "mulgaFreshForage",
151
166
  "lupinFreshForage",
152
- "redtopFreshForage",
153
- "bluegrassFreshForage",
154
- "sugarcaneFreshForage",
155
- "soybeanFreshForage",
156
- "lespedezaFreshForage",
157
- "danthoniaFreshForage",
158
- "pulseFreshForage",
159
- "poroFreshForage",
160
- "oatFreshForage",
161
- "lanillaFreshForage",
162
- "mustardFreshForage",
163
- "sainfoinFreshForage",
164
- "burguFreshForage",
165
- "barleyFreshForage",
166
- "turnipFreshForage",
167
167
  "wheatFreshForage",
168
168
  "taroFreshForage",
169
169
  "peaFreshForage",
@@ -197,6 +197,32 @@
197
197
  "maizeFreshForage",
198
198
  "buckwheatFreshForage",
199
199
  "calliandraFreshForage",
200
+ "gambaGrassFreshForage",
201
+ "andropogonFastigiatusFreshForage",
202
+ "arizonaCottontopFreshForage",
203
+ "andropogonCanaliculatusFreshForage",
204
+ "pigeonPeaFreshForage",
205
+ "guriaGrassFreshForage",
206
+ "durumWheatFreshForage",
207
+ "paraGrassFreshForage",
208
+ "torpedoGrassFreshForage",
209
+ "sainGrassFreshForage",
210
+ "bluePanicFreshForage",
211
+ "tripsacumLatifoliumFreshForage",
212
+ "bermudaGrassFreshForage",
213
+ "setariaLachneaFreshForage",
214
+ "hyacinthBeanFreshForage",
215
+ "nileGrassFreshForage",
216
+ "alangAlangFreshForage",
217
+ "elephantGrassFreshForage",
218
+ "chlorisPrieuriiFreshForage",
219
+ "blackseedGrassFreshForage",
220
+ "surinameGrassFreshForage",
221
+ "redCloverFreshForage",
222
+ "guatemalaGrassFreshForage",
223
+ "centipedeGrassFreshForage",
224
+ "dallisGrassFreshForage",
225
+ "bahiaGrassFreshForage",
200
226
  "sunnHempFreshForage",
201
227
  "signalGrassFreshForage",
202
228
  "columbusGrassFreshForage",
@@ -229,57 +255,6 @@
229
255
  "congoGrassFreshForage",
230
256
  "indianBluegrassFreshForage",
231
257
  "mnesitheaRottboellioidesFreshForage",
232
- "gambaGrassFreshForage",
233
- "andropogonFastigiatusFreshForage",
234
- "arizonaCottontopFreshForage",
235
- "andropogonCanaliculatusFreshForage",
236
- "pigeonPeaFreshForage",
237
- "guriaGrassFreshForage",
238
- "durumWheatFreshForage",
239
- "paraGrassFreshForage",
240
- "torpedoGrassFreshForage",
241
- "sainGrassFreshForage",
242
- "bluePanicFreshForage",
243
- "tripsacumLatifoliumFreshForage",
244
- "bermudaGrassFreshForage",
245
- "setariaLachneaFreshForage",
246
- "hyacinthBeanFreshForage",
247
- "nileGrassFreshForage",
248
- "alangAlangFreshForage",
249
- "elephantGrassFreshForage",
250
- "chlorisPrieuriiFreshForage",
251
- "blackseedGrassFreshForage",
252
- "surinameGrassFreshForage",
253
- "redCloverFreshForage",
254
- "guatemalaGrassFreshForage",
255
- "centipedeGrassFreshForage",
256
- "dallisGrassFreshForage",
257
- "bahiaGrassFreshForage",
258
- "sporobolusNervosusFreshForage",
259
- "spottedBrachiariaFreshForage",
260
- "pennisetumOrientaleFreshForage",
261
- "timothyGrassFreshForage",
262
- "eriochloaNubicaFreshForage",
263
- "carpetGrassFreshForage",
264
- "sporobolusHelvolusFreshForage",
265
- "missionGrassFreshForage",
266
- "rainTreeFreshForage",
267
- "sudanGrassFreshForage",
268
- "cockspurGrassFreshForage",
269
- "swaziGrassFreshForage",
270
- "polypogonSchimperianusFreshForage",
271
- "coelachyrumYemenicumFreshForage",
272
- "genericGrassFreshForage",
273
- "donkeyGrassFreshForage",
274
- "blackOatFreshForage",
275
- "prosoMilletFreshForage",
276
- "giantReedFreshForage",
277
- "nigeriaGrassFreshForage",
278
- "mungBeanFreshForage",
279
- "umbrellaThornFreshForage",
280
- "breadGrassFreshForage",
281
- "chineseAlbiziaFreshForage",
282
- "fodderBeetFreshForage",
283
258
  "natalGrassFreshForage",
284
259
  "pennisetumSquamulatumFreshForage",
285
260
  "desertGrassFreshForage",
@@ -306,6 +281,31 @@
306
281
  "liverseedGrassFreshForage",
307
282
  "molassesGrassFreshForage",
308
283
  "birdwoodGrassFreshForage",
284
+ "sporobolusNervosusFreshForage",
285
+ "spottedBrachiariaFreshForage",
286
+ "pennisetumOrientaleFreshForage",
287
+ "timothyGrassFreshForage",
288
+ "eriochloaNubicaFreshForage",
289
+ "carpetGrassFreshForage",
290
+ "sporobolusHelvolusFreshForage",
291
+ "missionGrassFreshForage",
292
+ "rainTreeFreshForage",
293
+ "sudanGrassFreshForage",
294
+ "cockspurGrassFreshForage",
295
+ "swaziGrassFreshForage",
296
+ "polypogonSchimperianusFreshForage",
297
+ "coelachyrumYemenicumFreshForage",
298
+ "genericGrassFreshForage",
299
+ "donkeyGrassFreshForage",
300
+ "blackOatFreshForage",
301
+ "prosoMilletFreshForage",
302
+ "giantReedFreshForage",
303
+ "nigeriaGrassFreshForage",
304
+ "mungBeanFreshForage",
305
+ "umbrellaThornFreshForage",
306
+ "breadGrassFreshForage",
307
+ "chineseAlbiziaFreshForage",
308
+ "fodderBeetFreshForage",
309
309
  "ottochloaNodosaFreshForage",
310
310
  "guarBeanFreshForage",
311
311
  "espartoGrassFreshForage",
@@ -339,13 +339,6 @@
339
339
  "creepingBluegrassFreshForage",
340
340
  "smutGrassFreshForage",
341
341
  "giantSetariaFreshForage",
342
- "yellowThatchingGrassFreshForage",
343
- "africanLocustBeanFreshForage",
344
- "whiteSpearGrassFreshForage",
345
- "queenslandBlueGrassFreshForage",
346
- "bulbousCanaryGrassFreshForage",
347
- "grassCloverMixtureFreshForage",
348
- "hairyHerringboneGrassFreshForage",
349
342
  "giantStarGrassFreshForage",
350
343
  "blueSignalGrassFreshForage",
351
344
  "chineseRyeGrassFreshForage",
@@ -356,6 +349,13 @@
356
349
  "genericLeguminousGrassFreshForage",
357
350
  "fineThatchingGrassFreshForage",
358
351
  "nadiBlueGrassFreshForage",
352
+ "yellowThatchingGrassFreshForage",
353
+ "africanLocustBeanFreshForage",
354
+ "whiteSpearGrassFreshForage",
355
+ "queenslandBlueGrassFreshForage",
356
+ "bulbousCanaryGrassFreshForage",
357
+ "grassCloverMixtureFreshForage",
358
+ "hairyHerringboneGrassFreshForage",
359
359
  "largeLeafFlemingiaFreshForage",
360
360
  "weepingLoveGrassFreshForage",
361
361
  "redRhodesGrassFreshForage",
@@ -381,7 +381,7 @@
381
381
  "rice": [
382
382
  "riceStraw",
383
383
  "jungleRiceHay",
384
- "riceGrainInHuskFlooded",
385
- "riceGrainInHuskUpland"
384
+ "riceGrainInHuskUpland",
385
+ "riceGrainInHuskFlooded"
386
386
  ]
387
387
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const DATA_VALIDATION_VERSION = '0.38.6';
1
+ export const DATA_VALIDATION_VERSION = '0.39.1';
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",
@@ -335,6 +340,11 @@
335
340
  "level": "error",
336
341
  "message": "invalid water salinity"
337
342
  },
343
+ {
344
+ "function": "validate_soil_type_consistency",
345
+ "level": "error",
346
+ "message": "measurements for the same termType must be consistent"
347
+ },
338
348
  {
339
349
  "function": "validate_characterisedIndicator_model",
340
350
  "level": "error",
@@ -400,6 +410,11 @@
400
410
  "level": "error",
401
411
  "message": "must equal to endDate - startDate in days"
402
412
  },
413
+ {
414
+ "function": "validate_harvestedArea",
415
+ "level": "error",
416
+ "message": "must be lower or equal to siteArea"
417
+ },
403
418
  {
404
419
  "function": "validate_maximum_cycleDuration",
405
420
  "level": "error",
@@ -655,6 +670,11 @@
655
670
  "level": "error",
656
671
  "message": "must be linked to a verified country-level Impact Assessment"
657
672
  },
673
+ {
674
+ "function": "validate_plantation_practices",
675
+ "level": "error",
676
+ "message": "must include practices for plantation weighting"
677
+ },
658
678
  {
659
679
  "function": "validate_id",
660
680
  "level": "error",
package/setup.cfg DELETED
@@ -1,2 +0,0 @@
1
- [metadata]
2
- description-file = README.md