@hestia-earth/data-validation 0.37.13 → 0.37.15

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.37.13",
3
+ "version": "0.37.15",
4
4
  "description": "HESTIA Data Validation library",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "fuel": [
3
- "diesel",
4
3
  "petrol",
4
+ "diesel",
5
5
  "diesel1D",
6
- "marineDieselOil",
7
6
  "aviationGasoline",
8
- "petrolBurntIn2StrokeEngine",
7
+ "marineDieselOil",
9
8
  "diesel4D",
10
9
  "diesel2D",
11
10
  "gasolineTypeJetFuel",
12
11
  "en590Diesel",
12
+ "petrolBurntIn2StrokeEngine",
13
13
  "petrolBurntIn4StrokeEngine"
14
14
  ],
15
15
  "cropResidue": [
@@ -26,111 +26,128 @@
26
26
  "discardedCropRemoved"
27
27
  ],
28
28
  "model": [
29
- "riskpollModel",
30
- "ipcc1995",
31
- "environmentalFootprintV3-1",
32
- "deRuijterEtAl2010",
33
- "ecoalimV9",
34
- "kanEtAl2020",
35
- "resourceUseNotRelevant",
36
- "environmentalFootprintV3-0",
37
- "pooreNemecek2018",
38
- "koble2014",
39
- "usEpa1993",
40
- "directive200829EcOfTheEuropeanParliament",
41
- "emissionNotRelevant",
42
- "lanca",
43
- "aware2-0",
44
- "schmidt2007",
45
- "blonkConsultants2016",
46
- "akagiEtAl2011",
47
- "salca",
48
- "usEpa1995",
49
- "jarvisAndPain1994",
50
- "papatryphonEtAl2004",
51
- "ipcc2019CountryAverageFertiliserMix",
29
+ "cnspsModel",
30
+ "pestlciConsensusModel",
31
+ "worldMeteorologicalOrganization1999",
32
+ "ipcc2019",
33
+ "ipcc2007",
34
+ "agribalyse2016",
35
+ "hestiaAggregatedData",
36
+ "epa2014",
37
+ "pefcrGuidanceDocument2017",
38
+ "edip2003",
39
+ "landOccupationCalculationIncludingUsedAndUnusedDuration",
40
+ "recipe2008Individualist",
41
+ "lcImpactAllEffects100Years",
42
+ "aware",
43
+ "landOccupationCalculationUsedDurationOnly",
44
+ "spatial",
45
+ "dewulfEtAl2007",
52
46
  "usetoxV2",
53
- "europeanEnvironmentAgency2016",
54
47
  "ipcc2013ExcludingFeedbacks",
48
+ "europeanEnvironmentAgency2016",
49
+ "haversineFormula",
50
+ "ipcc2019CountryAverageFertiliserMix",
51
+ "lcImpactCertainEffects100Years",
52
+ "papatryphonEtAl2004",
55
53
  "fantkeEtAl2016",
56
- "recipe2016Hierarchist",
57
- "harmonizedWorldSoilDatabaseV1-2",
58
- "poschEtAl2008",
59
54
  "pribyl2010",
60
- "ridouttPfister2010",
61
55
  "cml1992",
62
- "mapbiomas",
63
- "lcImpactCertainEffects100Years",
64
- "ecoinventV3AndEmberClimate",
56
+ "chaudharyBrooks2018",
57
+ "lcImpactCertainEffectsInfinite",
65
58
  "ecoinventV3",
59
+ "ecoinventV3AndEmberClimate",
60
+ "ridouttPfister2010",
61
+ "harmonizedWorldSoilDatabaseV1-2",
62
+ "mapbiomas",
63
+ "recipe2016Hierarchist",
64
+ "poschEtAl2008",
66
65
  "recipe2016Individualist",
67
- "chaudharyBrooks2018",
68
66
  "sqcb",
69
- "lcImpactCertainEffectsInfinite",
70
- "haversineFormula",
71
- "emepEea2019CountryAverageFertiliserMix",
72
- "ipcc2013IncludingFeedbacks",
67
+ "ipcc1995",
68
+ "riskpollModel",
69
+ "pooreNemecek2018",
70
+ "salca",
71
+ "ecoalimV9",
72
+ "worldSteel",
73
+ "deRuijterEtAl2010",
74
+ "environmentalFootprintV3-0",
75
+ "lanca",
76
+ "aware2-0",
77
+ "jarvisAndPain1994",
78
+ "directive200829EcOfTheEuropeanParliament",
79
+ "akagiEtAl2011",
80
+ "schmidt2007",
81
+ "koble2014",
82
+ "blonkConsultants2016",
83
+ "resourceUseNotRelevant",
84
+ "kanEtAl2020",
85
+ "usEpa1995",
86
+ "usEpa1993",
87
+ "emissionNotRelevant",
88
+ "environmentalFootprintV3-1",
73
89
  "emepEea2019",
74
- "massBalanceModel",
75
- "gfliDatabaseV2",
90
+ "ecoIndicator95",
91
+ "chaudharyEtAl2015",
92
+ "cumulativeEnergyDemandCedMethod",
76
93
  "ipcc2021",
77
- "dammgen2009",
78
94
  "semc2000",
79
- "hestia",
80
- "allenEtAl2018",
81
- "schererPfister2015",
82
95
  "stehfestBouwman2006",
83
- "cumulativeEnergyDemandCedMethod",
84
- "chaudharyEtAl2015",
96
+ "gfliDatabaseV2",
85
97
  "globalCropWaterModel2008",
86
- "sqcbFaistEmmeneggerEtAl2009",
87
- "royEtAl2014",
88
98
  "milaICanalsEtAl2007",
89
- "cml2001NonBaseline",
90
- "ecoIndicator95",
99
+ "emepEea2019CountryAverageFertiliserMix",
100
+ "dammgen2009",
101
+ "ipcc2013IncludingFeedbacks",
102
+ "massBalanceModel",
91
103
  "linkedImpactAssessment",
104
+ "royEtAl2014",
92
105
  "stehfestBouwman2006GisImplementation",
93
- "landOccupationCalculationUsedDurationOnly",
94
- "aware",
95
- "agribalyse2016",
96
- "hestiaAggregatedData",
97
- "edip2003",
98
- "pefcrGuidanceDocument2017",
99
- "dewulfEtAl2007",
100
- "landOccupationCalculationIncludingUsedAndUnusedDuration",
101
- "spatial",
102
- "worldMeteorologicalOrganization1999",
103
- "cnspsModel",
104
- "ipcc2007",
105
- "ipcc2019",
106
- "pestlciConsensusModel",
107
- "epa2014",
108
- "lcImpactAllEffects100Years",
109
- "recipe2008Individualist",
110
- "faostat2018",
111
- "hyde3-2",
112
- "akagiEtAl2011AndIpcc2006",
113
- "ipcc2006",
114
- "lcImpactAllEffectsInfinite",
115
- "recipe2008Egalitarian",
116
- "ipcc1996",
117
- "otherModel",
118
- "ipcc2001",
119
- "europeanEnvironmentAgency2013",
106
+ "hestia",
107
+ "cml2001NonBaseline",
108
+ "schererPfister2015",
109
+ "sqcbFaistEmmeneggerEtAl2009",
110
+ "allenEtAl2018",
111
+ "rainsModel",
120
112
  "aggregatedModels",
113
+ "europeanEnvironmentAgency2013",
114
+ "frischknechtEtAl2000",
115
+ "ipcc2001",
121
116
  "environmentalFootprintV2-0",
122
- "impact2002Model",
117
+ "ecoinventV2",
123
118
  "recipe2016Egalitarian",
119
+ "hyde3-2",
120
+ "ipcc2006",
121
+ "otherModel",
122
+ "ipcc1996",
124
123
  "recipe2008Hierarchist",
125
- "frischknechtEtAl2000",
124
+ "faostat2018",
126
125
  "ecoIndicator99",
127
- "akiyamaEtAl2010",
128
- "ecoinventV2",
129
- "webbEtAl2012AndSintermannEtAl2012",
130
126
  "cml2001Baseline",
131
- "rainsModel"
127
+ "recipe2008Egalitarian",
128
+ "webbEtAl2012AndSintermannEtAl2012",
129
+ "akagiEtAl2011AndIpcc2006",
130
+ "lcImpactAllEffectsInfinite",
131
+ "impact2002Model",
132
+ "akiyamaEtAl2010"
132
133
  ],
133
134
  "forage": [
135
+ "cockatooFreshForage",
136
+ "jackfruitFreshForage",
137
+ "cocksfootFreshForage",
138
+ "safflowerFreshForage",
139
+ "trefoilFreshForage",
140
+ "kikuyuFreshForage",
141
+ "arrowrootFreshForage",
142
+ "itchgrassFreshForage",
143
+ "tanniaFreshForage",
144
+ "babulFreshForage",
145
+ "agatiFreshForage",
146
+ "nigerFreshForage",
147
+ "ryeFreshForage",
148
+ "peanutFreshForage",
149
+ "mulgaFreshForage",
150
+ "lupinFreshForage",
134
151
  "tomatoFreshForage",
135
152
  "triticaleFreshForage",
136
153
  "panicFreshForage",
@@ -179,22 +196,38 @@
179
196
  "maizeFreshForage",
180
197
  "buckwheatFreshForage",
181
198
  "calliandraFreshForage",
182
- "cockatooFreshForage",
183
- "jackfruitFreshForage",
184
- "cocksfootFreshForage",
185
- "safflowerFreshForage",
186
- "trefoilFreshForage",
187
- "kikuyuFreshForage",
188
- "arrowrootFreshForage",
189
- "itchgrassFreshForage",
190
- "tanniaFreshForage",
191
- "babulFreshForage",
192
- "agatiFreshForage",
193
- "nigerFreshForage",
194
- "ryeFreshForage",
195
- "peanutFreshForage",
196
- "mulgaFreshForage",
197
- "lupinFreshForage",
199
+ "sunnHempFreshForage",
200
+ "signalGrassFreshForage",
201
+ "columbusGrassFreshForage",
202
+ "fingerMilletFreshForage",
203
+ "marvelGrassFreshForage",
204
+ "jungleRiceFreshForage",
205
+ "tallFescueFreshForage",
206
+ "hedgeLucerneFreshForage",
207
+ "guineaGrassFreshForage",
208
+ "riverTamarindFreshForage",
209
+ "hookGrassFreshForage",
210
+ "anthephoraNigritanaFreshForage",
211
+ "limpoGrassFreshForage",
212
+ "echinochloaHaplocladaFreshForage",
213
+ "winterThornFreshForage",
214
+ "intermediateWheatgrassFreshForage",
215
+ "aleppoGrassFreshForage",
216
+ "pearlMilletFreshForage",
217
+ "mountainRedtopFreshForage",
218
+ "kachiGrassFreshForage",
219
+ "indianSanburFreshForage",
220
+ "caribGrassFreshForage",
221
+ "sewanGrassFreshForage",
222
+ "buffelGrassFreshForage",
223
+ "commonVetchFreshForage",
224
+ "landGrassFreshForage",
225
+ "whiteMulberryFreshForage",
226
+ "sabiGrassFreshForage",
227
+ "tocoGrassFreshForage",
228
+ "congoGrassFreshForage",
229
+ "indianBluegrassFreshForage",
230
+ "mnesitheaRottboellioidesFreshForage",
198
231
  "natalGrassFreshForage",
199
232
  "pennisetumSquamulatumFreshForage",
200
233
  "desertGrassFreshForage",
@@ -246,32 +279,6 @@
246
279
  "breadGrassFreshForage",
247
280
  "chineseAlbiziaFreshForage",
248
281
  "fodderBeetFreshForage",
249
- "gambaGrassFreshForage",
250
- "andropogonFastigiatusFreshForage",
251
- "arizonaCottontopFreshForage",
252
- "andropogonCanaliculatusFreshForage",
253
- "pigeonPeaFreshForage",
254
- "guriaGrassFreshForage",
255
- "durumWheatFreshForage",
256
- "paraGrassFreshForage",
257
- "torpedoGrassFreshForage",
258
- "sainGrassFreshForage",
259
- "bluePanicFreshForage",
260
- "tripsacumLatifoliumFreshForage",
261
- "bermudaGrassFreshForage",
262
- "setariaLachneaFreshForage",
263
- "hyacinthBeanFreshForage",
264
- "nileGrassFreshForage",
265
- "alangAlangFreshForage",
266
- "elephantGrassFreshForage",
267
- "chlorisPrieuriiFreshForage",
268
- "blackseedGrassFreshForage",
269
- "surinameGrassFreshForage",
270
- "redCloverFreshForage",
271
- "guatemalaGrassFreshForage",
272
- "centipedeGrassFreshForage",
273
- "dallisGrassFreshForage",
274
- "bahiaGrassFreshForage",
275
282
  "ottochloaNodosaFreshForage",
276
283
  "guarBeanFreshForage",
277
284
  "espartoGrassFreshForage",
@@ -305,43 +312,44 @@
305
312
  "creepingBluegrassFreshForage",
306
313
  "smutGrassFreshForage",
307
314
  "giantSetariaFreshForage",
315
+ "gambaGrassFreshForage",
316
+ "andropogonFastigiatusFreshForage",
317
+ "arizonaCottontopFreshForage",
318
+ "andropogonCanaliculatusFreshForage",
319
+ "pigeonPeaFreshForage",
320
+ "guriaGrassFreshForage",
321
+ "durumWheatFreshForage",
322
+ "paraGrassFreshForage",
323
+ "torpedoGrassFreshForage",
324
+ "sainGrassFreshForage",
325
+ "bluePanicFreshForage",
326
+ "tripsacumLatifoliumFreshForage",
327
+ "bermudaGrassFreshForage",
328
+ "setariaLachneaFreshForage",
329
+ "hyacinthBeanFreshForage",
330
+ "nileGrassFreshForage",
331
+ "alangAlangFreshForage",
332
+ "elephantGrassFreshForage",
333
+ "chlorisPrieuriiFreshForage",
334
+ "blackseedGrassFreshForage",
335
+ "surinameGrassFreshForage",
336
+ "redCloverFreshForage",
337
+ "guatemalaGrassFreshForage",
338
+ "centipedeGrassFreshForage",
339
+ "dallisGrassFreshForage",
340
+ "bahiaGrassFreshForage",
341
+ "yellowThatchingGrassFreshForage",
342
+ "africanLocustBeanFreshForage",
343
+ "whiteSpearGrassFreshForage",
344
+ "queenslandBlueGrassFreshForage",
345
+ "bulbousCanaryGrassFreshForage",
346
+ "grassCloverMixtureFreshForage",
347
+ "hairyHerringboneGrassFreshForage",
308
348
  "largeLeafFlemingiaFreshForage",
309
349
  "weepingLoveGrassFreshForage",
310
350
  "redRhodesGrassFreshForage",
311
351
  "lehmannLoveGrassFreshForage",
312
352
  "stylosanthesCampoGrandeFreshForage",
313
- "sunnHempFreshForage",
314
- "signalGrassFreshForage",
315
- "columbusGrassFreshForage",
316
- "fingerMilletFreshForage",
317
- "marvelGrassFreshForage",
318
- "jungleRiceFreshForage",
319
- "tallFescueFreshForage",
320
- "hedgeLucerneFreshForage",
321
- "guineaGrassFreshForage",
322
- "riverTamarindFreshForage",
323
- "hookGrassFreshForage",
324
- "anthephoraNigritanaFreshForage",
325
- "limpoGrassFreshForage",
326
- "echinochloaHaplocladaFreshForage",
327
- "winterThornFreshForage",
328
- "intermediateWheatgrassFreshForage",
329
- "aleppoGrassFreshForage",
330
- "pearlMilletFreshForage",
331
- "mountainRedtopFreshForage",
332
- "kachiGrassFreshForage",
333
- "indianSanburFreshForage",
334
- "caribGrassFreshForage",
335
- "sewanGrassFreshForage",
336
- "buffelGrassFreshForage",
337
- "commonVetchFreshForage",
338
- "landGrassFreshForage",
339
- "whiteMulberryFreshForage",
340
- "sabiGrassFreshForage",
341
- "tocoGrassFreshForage",
342
- "congoGrassFreshForage",
343
- "indianBluegrassFreshForage",
344
- "mnesitheaRottboellioidesFreshForage",
345
353
  "milanjeFingerGrassFreshForage",
346
354
  "africanCouchGrassFreshForage",
347
355
  "colouredGuineaGrassFreshForage",
@@ -353,6 +361,10 @@
353
361
  "greyLoveGrassFreshForage",
354
362
  "cushionLoveGrassFreshForage",
355
363
  "wireLemonGrassFreshForage",
364
+ "colouredHoodGrassFreshForage",
365
+ "falseRhodesGrassFreshForage",
366
+ "stAugustineGrassFreshForage",
367
+ "commonNeedleGrassFreshForage",
356
368
  "giantStarGrassFreshForage",
357
369
  "blueSignalGrassFreshForage",
358
370
  "chineseRyeGrassFreshForage",
@@ -363,18 +375,7 @@
363
375
  "genericLeguminousGrassFreshForage",
364
376
  "fineThatchingGrassFreshForage",
365
377
  "nadiBlueGrassFreshForage",
366
- "colouredHoodGrassFreshForage",
367
- "falseRhodesGrassFreshForage",
368
- "stAugustineGrassFreshForage",
369
- "commonNeedleGrassFreshForage",
370
- "bigLeafBristleGrassFreshForage",
371
- "yellowThatchingGrassFreshForage",
372
- "africanLocustBeanFreshForage",
373
- "whiteSpearGrassFreshForage",
374
- "queenslandBlueGrassFreshForage",
375
- "bulbousCanaryGrassFreshForage",
376
- "grassCloverMixtureFreshForage",
377
- "hairyHerringboneGrassFreshForage"
378
+ "bigLeafBristleGrassFreshForage"
378
379
  ],
379
380
  "rice": [
380
381
  "riceStraw",
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const DATA_VALIDATION_VERSION = '0.37.13';
1
+ export const DATA_VALIDATION_VERSION = '0.37.15';
package/validation.json CHANGED
@@ -75,6 +75,11 @@
75
75
  "level": "error",
76
76
  "message": "the node value type is incorrect"
77
77
  },
78
+ {
79
+ "function": "validate_list_has_properties",
80
+ "level": "warning",
81
+ "message": "should add missing properties"
82
+ },
78
83
  {
79
84
  "function": "validate_is_region",
80
85
  "level": "error",
@@ -250,6 +255,11 @@
250
255
  "level": "error",
251
256
  "message": "primaryPercent not allowed on this siteType"
252
257
  },
258
+ {
259
+ "function": "validate_primaryPercent",
260
+ "level": "error",
261
+ "message": "primaryPercent not allowed on this practice"
262
+ },
253
263
  {
254
264
  "function": "validate_processing_operation",
255
265
  "level": "error",
@@ -510,6 +520,11 @@
510
520
  "level": "warning",
511
521
  "message": "should specify the pregnancy rate"
512
522
  },
523
+ {
524
+ "function": "validate_has_milkYieldPractice",
525
+ "level": "warning",
526
+ "message": "should specify the a milkYield practice"
527
+ },
513
528
  {
514
529
  "function": "validate_must_include_id",
515
530
  "level": "warning",