@hestia-earth/data-validation 0.39.1 → 0.40.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.39.1",
3
+ "version": "0.40.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": "^36.0.0",
40
- "@hestia-earth/schema": "^36.0.0",
41
- "@hestia-earth/schema-validation": "^36.0.0",
39
+ "@hestia-earth/json-schema": "^37.1.0",
40
+ "@hestia-earth/schema": "^37.1.0",
41
+ "@hestia-earth/schema-validation": "^37.1.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,14 +1,14 @@
1
1
  {
2
2
  "fuel": [
3
- "petrol",
4
3
  "diesel",
5
- "diesel1D",
4
+ "petrol",
6
5
  "aviationGasoline",
6
+ "diesel1D",
7
+ "marineDieselOil",
7
8
  "diesel4D",
8
9
  "diesel2D",
9
- "marineDieselOil",
10
- "en590Diesel",
11
10
  "gasolineTypeJetFuel",
11
+ "en590Diesel",
12
12
  "petrolBurntIn2StrokeEngine",
13
13
  "petrolBurntIn4StrokeEngine"
14
14
  ],
@@ -18,23 +18,23 @@
18
18
  "discardedCropIncorporated",
19
19
  "discardedCropLeftOnField",
20
20
  "discardedCropTotal",
21
- "aboveGroundCropResidueIncorporated",
22
- "aboveGroundCropResidueTotal",
23
- "discardedCropRemoved",
24
21
  "aboveGroundCropResidueBurnt",
25
22
  "belowGroundCropResidue",
26
- "aboveGroundCropResidueLeftOnField"
23
+ "aboveGroundCropResidueLeftOnField",
24
+ "aboveGroundCropResidueIncorporated",
25
+ "aboveGroundCropResidueTotal",
26
+ "discardedCropRemoved"
27
27
  ],
28
28
  "model": [
29
29
  "aware",
30
30
  "ipcc2019",
31
31
  "dewulfEtAl2007",
32
+ "worldMeteorologicalOrganization1999",
32
33
  "pestlciConsensusModel",
33
34
  "cnspsModel",
34
35
  "epa2014",
35
36
  "ipcc2007",
36
37
  "edip2003",
37
- "landOccupationCalculationIncludingUsedAndUnusedDuration",
38
38
  "spatial",
39
39
  "landOccupationCalculationUsedDurationOnly",
40
40
  "pefcrGuidanceDocument2017",
@@ -42,7 +42,29 @@
42
42
  "hestiaAggregatedData",
43
43
  "lcImpactAllEffects100Years",
44
44
  "recipe2008Individualist",
45
- "worldMeteorologicalOrganization1999",
45
+ "landOccupationCalculationIncludingUsedAndUnusedDuration",
46
+ "impact2002Model",
47
+ "ecoinventV2",
48
+ "europeanEnvironmentAgency2013",
49
+ "ipcc1996",
50
+ "ipcc2001",
51
+ "rainsModel",
52
+ "frischknechtEtAl2000",
53
+ "environmentalFootprintV2-0",
54
+ "otherModel",
55
+ "aggregatedModels",
56
+ "ecoIndicator99",
57
+ "ipcc2006",
58
+ "webbEtAl2012AndSintermannEtAl2012",
59
+ "akagiEtAl2011AndIpcc2006",
60
+ "recipe2016Egalitarian",
61
+ "cml2001Baseline",
62
+ "faostat2018",
63
+ "recipe2008Hierarchist",
64
+ "akiyamaEtAl2010",
65
+ "lcImpactAllEffectsInfinite",
66
+ "hyde3-2",
67
+ "recipe2008Egalitarian",
46
68
  "chaudharyBrooks2018",
47
69
  "fantkeEtAl2016",
48
70
  "ipcc2013ExcludingFeedbacks",
@@ -108,46 +130,20 @@
108
130
  "koble2014",
109
131
  "schmidt2007",
110
132
  "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"
133
+ "usEpa1995"
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
+ "tamarindFreshForage",
137
+ "rapeseedFreshForage",
138
+ "lebbekFreshForage",
139
+ "carobFreshForage",
140
+ "flaxFreshForage",
141
+ "sunflowerFreshForage",
142
+ "cloverFreshForage",
143
+ "chicoryFreshForage",
144
+ "maizeFreshForage",
145
+ "buckwheatFreshForage",
146
+ "calliandraFreshForage",
151
147
  "cockatooFreshForage",
152
148
  "jackfruitFreshForage",
153
149
  "cocksfootFreshForage",
@@ -186,43 +182,54 @@
186
182
  "cerealFreshForage",
187
183
  "alfalfaFreshForage",
188
184
  "sesbanFreshForage",
189
- "tamarindFreshForage",
190
- "rapeseedFreshForage",
191
- "lebbekFreshForage",
192
- "carobFreshForage",
193
- "flaxFreshForage",
194
- "sunflowerFreshForage",
195
- "cloverFreshForage",
196
- "chicoryFreshForage",
197
- "maizeFreshForage",
198
- "buckwheatFreshForage",
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",
185
+ "redtopFreshForage",
186
+ "bluegrassFreshForage",
187
+ "sugarcaneFreshForage",
188
+ "soybeanFreshForage",
189
+ "lespedezaFreshForage",
190
+ "danthoniaFreshForage",
191
+ "pulseFreshForage",
192
+ "poroFreshForage",
193
+ "oatFreshForage",
194
+ "lanillaFreshForage",
195
+ "mustardFreshForage",
196
+ "sainfoinFreshForage",
197
+ "burguFreshForage",
198
+ "barleyFreshForage",
199
+ "turnipFreshForage",
200
+ "ottochloaNodosaFreshForage",
201
+ "guarBeanFreshForage",
202
+ "espartoGrassFreshForage",
203
+ "jobSTearsFreshForage",
204
+ "foxtailMilletFreshForage",
205
+ "hondurasGrassFreshForage",
206
+ "cynodonPlectostachyusFreshForage",
207
+ "greenleafDesmodiumFreshForage",
208
+ "gooseGrassFreshForage",
209
+ "starGrassFreshForage",
210
+ "yellowIndiangrassFreshForage",
211
+ "antelopeGrassFreshForage",
212
+ "whiteCloverFreshForage",
213
+ "sweetPotatoFreshForage",
214
+ "pennisetumTrachyphyllumFreshForage",
215
+ "dalGrassFreshForage",
216
+ "uradBeanFreshForage",
217
+ "wildCaneFreshForage",
218
+ "goldenMilletFreshForage",
219
+ "ischaemumMuticumFreshForage",
220
+ "buffaloGrassFreshForage",
221
+ "armgrassMilletFreshForage",
222
+ "indianCoralFreshForage",
223
+ "germanGrassFreshForage",
224
+ "wildScrobicFreshForage",
225
+ "koroniviaGrassFreshForage",
226
+ "musalGrassFreshForage",
227
+ "gliricidiaSepiumFreshForage",
228
+ "chrysopogonLatifoliusFreshForage",
229
+ "cratyliaArgenteaFreshForage",
230
+ "creepingBluegrassFreshForage",
231
+ "smutGrassFreshForage",
232
+ "giantSetariaFreshForage",
226
233
  "sunnHempFreshForage",
227
234
  "signalGrassFreshForage",
228
235
  "columbusGrassFreshForage",
@@ -255,6 +262,31 @@
255
262
  "congoGrassFreshForage",
256
263
  "indianBluegrassFreshForage",
257
264
  "mnesitheaRottboellioidesFreshForage",
265
+ "sporobolusNervosusFreshForage",
266
+ "spottedBrachiariaFreshForage",
267
+ "pennisetumOrientaleFreshForage",
268
+ "timothyGrassFreshForage",
269
+ "eriochloaNubicaFreshForage",
270
+ "carpetGrassFreshForage",
271
+ "sporobolusHelvolusFreshForage",
272
+ "missionGrassFreshForage",
273
+ "rainTreeFreshForage",
274
+ "sudanGrassFreshForage",
275
+ "cockspurGrassFreshForage",
276
+ "swaziGrassFreshForage",
277
+ "polypogonSchimperianusFreshForage",
278
+ "coelachyrumYemenicumFreshForage",
279
+ "genericGrassFreshForage",
280
+ "donkeyGrassFreshForage",
281
+ "blackOatFreshForage",
282
+ "prosoMilletFreshForage",
283
+ "giantReedFreshForage",
284
+ "nigeriaGrassFreshForage",
285
+ "mungBeanFreshForage",
286
+ "umbrellaThornFreshForage",
287
+ "breadGrassFreshForage",
288
+ "chineseAlbiziaFreshForage",
289
+ "fodderBeetFreshForage",
258
290
  "natalGrassFreshForage",
259
291
  "pennisetumSquamulatumFreshForage",
260
292
  "desertGrassFreshForage",
@@ -281,74 +313,36 @@
281
313
  "liverseedGrassFreshForage",
282
314
  "molassesGrassFreshForage",
283
315
  "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
- "ottochloaNodosaFreshForage",
310
- "guarBeanFreshForage",
311
- "espartoGrassFreshForage",
312
- "jobSTearsFreshForage",
313
- "foxtailMilletFreshForage",
314
- "hondurasGrassFreshForage",
315
- "cynodonPlectostachyusFreshForage",
316
- "greenleafDesmodiumFreshForage",
317
- "gooseGrassFreshForage",
318
- "starGrassFreshForage",
319
- "yellowIndiangrassFreshForage",
320
- "antelopeGrassFreshForage",
321
- "whiteCloverFreshForage",
322
- "sweetPotatoFreshForage",
323
- "pennisetumTrachyphyllumFreshForage",
324
- "dalGrassFreshForage",
325
- "uradBeanFreshForage",
326
- "wildCaneFreshForage",
327
- "goldenMilletFreshForage",
328
- "ischaemumMuticumFreshForage",
329
- "buffaloGrassFreshForage",
330
- "armgrassMilletFreshForage",
331
- "indianCoralFreshForage",
332
- "germanGrassFreshForage",
333
- "wildScrobicFreshForage",
334
- "koroniviaGrassFreshForage",
335
- "musalGrassFreshForage",
336
- "gliricidiaSepiumFreshForage",
337
- "chrysopogonLatifoliusFreshForage",
338
- "cratyliaArgenteaFreshForage",
339
- "creepingBluegrassFreshForage",
340
- "smutGrassFreshForage",
341
- "giantSetariaFreshForage",
342
- "giantStarGrassFreshForage",
343
- "blueSignalGrassFreshForage",
344
- "chineseRyeGrassFreshForage",
345
- "masaiLoveGrassFreshForage",
346
- "redOatGrassFreshForage",
347
- "egyptianCrowfootGrassFreshForage",
348
- "swampRiceGrassFreshForage",
349
- "genericLeguminousGrassFreshForage",
350
- "fineThatchingGrassFreshForage",
351
- "nadiBlueGrassFreshForage",
316
+ "gambaGrassFreshForage",
317
+ "andropogonFastigiatusFreshForage",
318
+ "arizonaCottontopFreshForage",
319
+ "andropogonCanaliculatusFreshForage",
320
+ "pigeonPeaFreshForage",
321
+ "guriaGrassFreshForage",
322
+ "durumWheatFreshForage",
323
+ "paraGrassFreshForage",
324
+ "torpedoGrassFreshForage",
325
+ "sainGrassFreshForage",
326
+ "bluePanicFreshForage",
327
+ "tripsacumLatifoliumFreshForage",
328
+ "bermudaGrassFreshForage",
329
+ "setariaLachneaFreshForage",
330
+ "hyacinthBeanFreshForage",
331
+ "nileGrassFreshForage",
332
+ "alangAlangFreshForage",
333
+ "elephantGrassFreshForage",
334
+ "chlorisPrieuriiFreshForage",
335
+ "blackseedGrassFreshForage",
336
+ "surinameGrassFreshForage",
337
+ "redCloverFreshForage",
338
+ "guatemalaGrassFreshForage",
339
+ "centipedeGrassFreshForage",
340
+ "dallisGrassFreshForage",
341
+ "bahiaGrassFreshForage",
342
+ "colouredHoodGrassFreshForage",
343
+ "falseRhodesGrassFreshForage",
344
+ "stAugustineGrassFreshForage",
345
+ "commonNeedleGrassFreshForage",
352
346
  "yellowThatchingGrassFreshForage",
353
347
  "africanLocustBeanFreshForage",
354
348
  "whiteSpearGrassFreshForage",
@@ -356,11 +350,6 @@
356
350
  "bulbousCanaryGrassFreshForage",
357
351
  "grassCloverMixtureFreshForage",
358
352
  "hairyHerringboneGrassFreshForage",
359
- "largeLeafFlemingiaFreshForage",
360
- "weepingLoveGrassFreshForage",
361
- "redRhodesGrassFreshForage",
362
- "lehmannLoveGrassFreshForage",
363
- "stylosanthesCampoGrandeFreshForage",
364
353
  "milanjeFingerGrassFreshForage",
365
354
  "africanCouchGrassFreshForage",
366
355
  "colouredGuineaGrassFreshForage",
@@ -372,10 +361,21 @@
372
361
  "greyLoveGrassFreshForage",
373
362
  "cushionLoveGrassFreshForage",
374
363
  "wireLemonGrassFreshForage",
375
- "colouredHoodGrassFreshForage",
376
- "falseRhodesGrassFreshForage",
377
- "stAugustineGrassFreshForage",
378
- "commonNeedleGrassFreshForage",
364
+ "largeLeafFlemingiaFreshForage",
365
+ "weepingLoveGrassFreshForage",
366
+ "redRhodesGrassFreshForage",
367
+ "lehmannLoveGrassFreshForage",
368
+ "stylosanthesCampoGrandeFreshForage",
369
+ "giantStarGrassFreshForage",
370
+ "blueSignalGrassFreshForage",
371
+ "chineseRyeGrassFreshForage",
372
+ "masaiLoveGrassFreshForage",
373
+ "redOatGrassFreshForage",
374
+ "egyptianCrowfootGrassFreshForage",
375
+ "swampRiceGrassFreshForage",
376
+ "genericLeguminousGrassFreshForage",
377
+ "fineThatchingGrassFreshForage",
378
+ "nadiBlueGrassFreshForage",
379
379
  "bigLeafBristleGrassFreshForage"
380
380
  ],
381
381
  "rice": [
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const DATA_VALIDATION_VERSION = '0.39.1';
1
+ export const DATA_VALIDATION_VERSION = '0.40.0';
package/validation.json CHANGED
@@ -290,6 +290,11 @@
290
290
  "level": "error",
291
291
  "message": "must not set rainfed with water inputs"
292
292
  },
293
+ {
294
+ "function": "validate_irrigating_operation_rainfed_water_regime",
295
+ "level": "warning",
296
+ "message": "should use irrigated water regime"
297
+ },
293
298
  {
294
299
  "function": "validate_soilTexture",
295
300
  "level": "error",