@hestia-earth/data-validation 0.39.2 → 0.40.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/index.d.mts +12 -0
- package/index.d.ts +12 -0
- package/index.js +753 -0
- package/index.mjs +750 -0
- package/package.json +31 -7
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -17
- package/dist/validations.d.ts +0 -10
- package/dist/validations.js +0 -10
- package/search-results.json +0 -387
- package/src/index.ts +0 -1
- package/src/validations.ts +0 -22
- package/src/version.ts +0 -1
- package/validation.json +0 -714
package/package.json
CHANGED
|
@@ -1,14 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hestia-earth/data-validation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.1",
|
|
4
4
|
"description": "HESTIA Data Validation library",
|
|
5
|
-
"main": "
|
|
6
|
-
"
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"module": "index.mjs",
|
|
7
|
+
"types": "index.d.ts",
|
|
8
|
+
"typings": "index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./index.d.mts",
|
|
13
|
+
"default": "./index.mjs"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./index.d.ts",
|
|
17
|
+
"default": "./index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"./*.js": "./*.js",
|
|
21
|
+
"./*": "./*"
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"files": [
|
|
25
|
+
"index.js",
|
|
26
|
+
"index.mjs",
|
|
27
|
+
"index.d.ts",
|
|
28
|
+
"index.d.mts"
|
|
29
|
+
],
|
|
7
30
|
"directories": {
|
|
8
31
|
"test": "tests"
|
|
9
32
|
},
|
|
10
33
|
"scripts": {
|
|
11
|
-
"build:module": "rm -
|
|
34
|
+
"build:module": "rm -f index.js index.mjs index.d.ts && tsup",
|
|
12
35
|
"test": "hestia-validate-jsonld tests/fixtures",
|
|
13
36
|
"lint": "tsc --noEmit && eslint .",
|
|
14
37
|
"lint:fix": "npm run lint -- --fix",
|
|
@@ -36,15 +59,16 @@
|
|
|
36
59
|
"@commitlint/cli": "^17.8.1",
|
|
37
60
|
"@commitlint/config-conventional": "^17.8.1",
|
|
38
61
|
"@hestia-earth/eslint-config": "^0.1.1",
|
|
39
|
-
"@hestia-earth/json-schema": "^
|
|
40
|
-
"@hestia-earth/schema": "^
|
|
41
|
-
"@hestia-earth/schema-validation": "^
|
|
62
|
+
"@hestia-earth/json-schema": "^37.3.1",
|
|
63
|
+
"@hestia-earth/schema": "^37.3.1",
|
|
64
|
+
"@hestia-earth/schema-validation": "^37.3.1",
|
|
42
65
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
43
66
|
"@typescript-eslint/parser": "^5.62.0",
|
|
44
67
|
"eslint": "^7.32.0",
|
|
45
68
|
"eslint-plugin-jsdoc": "^30.7.13",
|
|
46
69
|
"husky": "~4.3.8",
|
|
47
70
|
"standard-version": "^9.5.0",
|
|
71
|
+
"tsup": "^8.3.5",
|
|
48
72
|
"typescript": "^5.9.3"
|
|
49
73
|
},
|
|
50
74
|
"standard-version": {
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './validations';
|
package/dist/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./validations"), exports);
|
package/dist/validations.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface IValidation {
|
|
2
|
-
function: string;
|
|
3
|
-
level: 'error' | 'warning';
|
|
4
|
-
message: string;
|
|
5
|
-
}
|
|
6
|
-
export interface IValidations {
|
|
7
|
-
validations: IValidation[];
|
|
8
|
-
}
|
|
9
|
-
export declare const validations: IValidations;
|
|
10
|
-
export declare const validationsByMessage: Record<string, IValidation[]>;
|
package/dist/validations.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validationsByMessage = exports.validations = void 0;
|
|
4
|
-
var data = require("../validation.json");
|
|
5
|
-
exports.validations = data;
|
|
6
|
-
exports.validationsByMessage = data.validations.reduce(function (prev, curr) {
|
|
7
|
-
prev[curr.message] = prev[curr.message] || [];
|
|
8
|
-
prev[curr.message].push(curr);
|
|
9
|
-
return prev;
|
|
10
|
-
}, {});
|
package/search-results.json
DELETED
|
@@ -1,387 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"fuel": [
|
|
3
|
-
"petrol",
|
|
4
|
-
"diesel",
|
|
5
|
-
"diesel1D",
|
|
6
|
-
"aviationGasoline",
|
|
7
|
-
"marineDieselOil",
|
|
8
|
-
"diesel4D",
|
|
9
|
-
"diesel2D",
|
|
10
|
-
"en590Diesel",
|
|
11
|
-
"gasolineTypeJetFuel",
|
|
12
|
-
"petrolBurntIn2StrokeEngine",
|
|
13
|
-
"petrolBurntIn4StrokeEngine"
|
|
14
|
-
],
|
|
15
|
-
"cropResidue": [
|
|
16
|
-
"discardedCropBurnt",
|
|
17
|
-
"discardedCropLeftOnField",
|
|
18
|
-
"discardedCropTotal",
|
|
19
|
-
"aboveGroundCropResidueRemoved",
|
|
20
|
-
"discardedCropIncorporated",
|
|
21
|
-
"aboveGroundCropResidueIncorporated",
|
|
22
|
-
"aboveGroundCropResidueTotal",
|
|
23
|
-
"discardedCropRemoved",
|
|
24
|
-
"aboveGroundCropResidueBurnt",
|
|
25
|
-
"belowGroundCropResidue",
|
|
26
|
-
"aboveGroundCropResidueLeftOnField"
|
|
27
|
-
],
|
|
28
|
-
"model": [
|
|
29
|
-
"chaudharyBrooks2018",
|
|
30
|
-
"fantkeEtAl2016",
|
|
31
|
-
"ipcc2013ExcludingFeedbacks",
|
|
32
|
-
"ipcc2019CountryAverageFertiliserMix",
|
|
33
|
-
"lcImpactCertainEffectsInfinite",
|
|
34
|
-
"haversineFormula",
|
|
35
|
-
"europeanEnvironmentAgency2016",
|
|
36
|
-
"lcImpactCertainEffects100Years",
|
|
37
|
-
"ridouttPfister2010",
|
|
38
|
-
"cml1992",
|
|
39
|
-
"ecoinventV3AndEmberClimate",
|
|
40
|
-
"pribyl2010",
|
|
41
|
-
"usetoxV2-1",
|
|
42
|
-
"mapbiomas",
|
|
43
|
-
"poschEtAl2008",
|
|
44
|
-
"papatryphonEtAl2004",
|
|
45
|
-
"ecoinventV3",
|
|
46
|
-
"harmonizedWorldSoilDatabaseV1-2",
|
|
47
|
-
"sqcb",
|
|
48
|
-
"recipe2016Individualist",
|
|
49
|
-
"recipe2016Hierarchist",
|
|
50
|
-
"aware",
|
|
51
|
-
"ipcc2019",
|
|
52
|
-
"dewulfEtAl2007",
|
|
53
|
-
"worldMeteorologicalOrganization1999",
|
|
54
|
-
"pestlciConsensusModel",
|
|
55
|
-
"cnspsModel",
|
|
56
|
-
"epa2014",
|
|
57
|
-
"ipcc2007",
|
|
58
|
-
"edip2003",
|
|
59
|
-
"spatial",
|
|
60
|
-
"landOccupationCalculationUsedDurationOnly",
|
|
61
|
-
"pefcrGuidanceDocument2017",
|
|
62
|
-
"agribalyse2016",
|
|
63
|
-
"hestiaAggregatedData",
|
|
64
|
-
"lcImpactAllEffects100Years",
|
|
65
|
-
"recipe2008Individualist",
|
|
66
|
-
"landOccupationCalculationIncludingUsedAndUnusedDuration",
|
|
67
|
-
"emepEea2019",
|
|
68
|
-
"ipcc2021",
|
|
69
|
-
"gfliDatabaseV2",
|
|
70
|
-
"massBalanceModel",
|
|
71
|
-
"cml2001NonBaseline",
|
|
72
|
-
"ecoIndicator95",
|
|
73
|
-
"globalCropWaterModel2008",
|
|
74
|
-
"stehfestBouwman2006",
|
|
75
|
-
"sqcbFaistEmmeneggerEtAl2009",
|
|
76
|
-
"stehfestBouwman2006GisImplementation",
|
|
77
|
-
"chaudharyEtAl2015",
|
|
78
|
-
"ipcc2013IncludingFeedbacks",
|
|
79
|
-
"emepEea2019CountryAverageFertiliserMix",
|
|
80
|
-
"semc2000",
|
|
81
|
-
"cumulativeEnergyDemandCedMethod",
|
|
82
|
-
"dammgen2009",
|
|
83
|
-
"linkedImpactAssessment",
|
|
84
|
-
"allenEtAl2018",
|
|
85
|
-
"schererPfister2015",
|
|
86
|
-
"milaICanalsEtAl2007",
|
|
87
|
-
"hestia",
|
|
88
|
-
"royEtAl2014",
|
|
89
|
-
"impact2002Model",
|
|
90
|
-
"ecoinventV2",
|
|
91
|
-
"europeanEnvironmentAgency2013",
|
|
92
|
-
"ipcc1996",
|
|
93
|
-
"ipcc2001",
|
|
94
|
-
"rainsModel",
|
|
95
|
-
"frischknechtEtAl2000",
|
|
96
|
-
"environmentalFootprintV2-0",
|
|
97
|
-
"otherModel",
|
|
98
|
-
"aggregatedModels",
|
|
99
|
-
"ecoIndicator99",
|
|
100
|
-
"ipcc2006",
|
|
101
|
-
"webbEtAl2012AndSintermannEtAl2012",
|
|
102
|
-
"akagiEtAl2011AndIpcc2006",
|
|
103
|
-
"recipe2016Egalitarian",
|
|
104
|
-
"cml2001Baseline",
|
|
105
|
-
"faostat2018",
|
|
106
|
-
"recipe2008Hierarchist",
|
|
107
|
-
"akiyamaEtAl2010",
|
|
108
|
-
"lcImpactAllEffectsInfinite",
|
|
109
|
-
"hyde3-2",
|
|
110
|
-
"recipe2008Egalitarian",
|
|
111
|
-
"emissionNotRelevant",
|
|
112
|
-
"riskpollModel",
|
|
113
|
-
"ecoalimV9",
|
|
114
|
-
"pooreNemecek2018",
|
|
115
|
-
"lanca",
|
|
116
|
-
"environmentalFootprintV3-1",
|
|
117
|
-
"ipcc1995",
|
|
118
|
-
"akagiEtAl2011",
|
|
119
|
-
"jarvisAndPain1994",
|
|
120
|
-
"worldSteel",
|
|
121
|
-
"directive200829EcOfTheEuropeanParliament",
|
|
122
|
-
"kanEtAl2020",
|
|
123
|
-
"resourceUseNotRelevant",
|
|
124
|
-
"environmentalFootprintV3-0",
|
|
125
|
-
"deRuijterEtAl2010",
|
|
126
|
-
"usEpa1993",
|
|
127
|
-
"blonkConsultants2016",
|
|
128
|
-
"bafu2025",
|
|
129
|
-
"aware2-0",
|
|
130
|
-
"koble2014",
|
|
131
|
-
"schmidt2007",
|
|
132
|
-
"salca",
|
|
133
|
-
"usEpa1995"
|
|
134
|
-
],
|
|
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",
|
|
151
|
-
"cockatooFreshForage",
|
|
152
|
-
"jackfruitFreshForage",
|
|
153
|
-
"cocksfootFreshForage",
|
|
154
|
-
"safflowerFreshForage",
|
|
155
|
-
"trefoilFreshForage",
|
|
156
|
-
"kikuyuFreshForage",
|
|
157
|
-
"arrowrootFreshForage",
|
|
158
|
-
"itchgrassFreshForage",
|
|
159
|
-
"tanniaFreshForage",
|
|
160
|
-
"babulFreshForage",
|
|
161
|
-
"agatiFreshForage",
|
|
162
|
-
"nigerFreshForage",
|
|
163
|
-
"ryeFreshForage",
|
|
164
|
-
"peanutFreshForage",
|
|
165
|
-
"mulgaFreshForage",
|
|
166
|
-
"lupinFreshForage",
|
|
167
|
-
"wheatFreshForage",
|
|
168
|
-
"taroFreshForage",
|
|
169
|
-
"peaFreshForage",
|
|
170
|
-
"jaraguaFreshForage",
|
|
171
|
-
"fenugreekFreshForage",
|
|
172
|
-
"hyparrheniaFreshForage",
|
|
173
|
-
"ervilFreshForage",
|
|
174
|
-
"amaranthFreshForage",
|
|
175
|
-
"horoFreshForage",
|
|
176
|
-
"tagasasteFreshForage",
|
|
177
|
-
"oliveFreshForage",
|
|
178
|
-
"tomatoFreshForage",
|
|
179
|
-
"triticaleFreshForage",
|
|
180
|
-
"panicFreshForage",
|
|
181
|
-
"quinoaFreshForage",
|
|
182
|
-
"sorghumFreshForage",
|
|
183
|
-
"cottonFreshForage",
|
|
184
|
-
"ryegrassFreshForage",
|
|
185
|
-
"teosinteFreshForage",
|
|
186
|
-
"cerealFreshForage",
|
|
187
|
-
"alfalfaFreshForage",
|
|
188
|
-
"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",
|
|
226
|
-
"sunnHempFreshForage",
|
|
227
|
-
"signalGrassFreshForage",
|
|
228
|
-
"columbusGrassFreshForage",
|
|
229
|
-
"fingerMilletFreshForage",
|
|
230
|
-
"marvelGrassFreshForage",
|
|
231
|
-
"jungleRiceFreshForage",
|
|
232
|
-
"tallFescueFreshForage",
|
|
233
|
-
"hedgeLucerneFreshForage",
|
|
234
|
-
"guineaGrassFreshForage",
|
|
235
|
-
"riverTamarindFreshForage",
|
|
236
|
-
"hookGrassFreshForage",
|
|
237
|
-
"anthephoraNigritanaFreshForage",
|
|
238
|
-
"limpoGrassFreshForage",
|
|
239
|
-
"echinochloaHaplocladaFreshForage",
|
|
240
|
-
"winterThornFreshForage",
|
|
241
|
-
"intermediateWheatgrassFreshForage",
|
|
242
|
-
"aleppoGrassFreshForage",
|
|
243
|
-
"pearlMilletFreshForage",
|
|
244
|
-
"mountainRedtopFreshForage",
|
|
245
|
-
"kachiGrassFreshForage",
|
|
246
|
-
"indianSanburFreshForage",
|
|
247
|
-
"caribGrassFreshForage",
|
|
248
|
-
"sewanGrassFreshForage",
|
|
249
|
-
"buffelGrassFreshForage",
|
|
250
|
-
"commonVetchFreshForage",
|
|
251
|
-
"landGrassFreshForage",
|
|
252
|
-
"whiteMulberryFreshForage",
|
|
253
|
-
"sabiGrassFreshForage",
|
|
254
|
-
"tocoGrassFreshForage",
|
|
255
|
-
"congoGrassFreshForage",
|
|
256
|
-
"indianBluegrassFreshForage",
|
|
257
|
-
"mnesitheaRottboellioidesFreshForage",
|
|
258
|
-
"natalGrassFreshForage",
|
|
259
|
-
"pennisetumSquamulatumFreshForage",
|
|
260
|
-
"desertGrassFreshForage",
|
|
261
|
-
"blanketGrassFreshForage",
|
|
262
|
-
"ubaCaneFreshForage",
|
|
263
|
-
"slenderGramaFreshForage",
|
|
264
|
-
"sporobolusMarginatusFreshForage",
|
|
265
|
-
"ravennaGrassFreshForage",
|
|
266
|
-
"leptochloaOptusifloraFreshForage",
|
|
267
|
-
"chrysopogonFallaxFreshForage",
|
|
268
|
-
"mnesitheaSelloanaFreshForage",
|
|
269
|
-
"slenderBluestemFreshForage",
|
|
270
|
-
"dubiGrassFreshForage",
|
|
271
|
-
"paspalidiumDesertorumFreshForage",
|
|
272
|
-
"pennisetumStramineumFreshForage",
|
|
273
|
-
"trachypogonVestitusFreshForage",
|
|
274
|
-
"rhodesGrassFreshForage",
|
|
275
|
-
"bungomaGrassFreshForage",
|
|
276
|
-
"spearGrassFreshForage",
|
|
277
|
-
"jerusalemArtichokeFreshForage",
|
|
278
|
-
"chlorisRoxburghianaFreshForage",
|
|
279
|
-
"pangolaGrassFreshForage",
|
|
280
|
-
"slenderChlorisFreshForage",
|
|
281
|
-
"liverseedGrassFreshForage",
|
|
282
|
-
"molassesGrassFreshForage",
|
|
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
|
-
"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",
|
|
352
|
-
"yellowThatchingGrassFreshForage",
|
|
353
|
-
"africanLocustBeanFreshForage",
|
|
354
|
-
"whiteSpearGrassFreshForage",
|
|
355
|
-
"queenslandBlueGrassFreshForage",
|
|
356
|
-
"bulbousCanaryGrassFreshForage",
|
|
357
|
-
"grassCloverMixtureFreshForage",
|
|
358
|
-
"hairyHerringboneGrassFreshForage",
|
|
359
|
-
"largeLeafFlemingiaFreshForage",
|
|
360
|
-
"weepingLoveGrassFreshForage",
|
|
361
|
-
"redRhodesGrassFreshForage",
|
|
362
|
-
"lehmannLoveGrassFreshForage",
|
|
363
|
-
"stylosanthesCampoGrandeFreshForage",
|
|
364
|
-
"milanjeFingerGrassFreshForage",
|
|
365
|
-
"africanCouchGrassFreshForage",
|
|
366
|
-
"colouredGuineaGrassFreshForage",
|
|
367
|
-
"grassAlfalfaMixtureFreshForage",
|
|
368
|
-
"smallCanaryGrassFreshForage",
|
|
369
|
-
"wildSudanGrassFreshForage",
|
|
370
|
-
"woollyFingerGrassFreshForage",
|
|
371
|
-
"commonThatchingGrassFreshForage",
|
|
372
|
-
"greyLoveGrassFreshForage",
|
|
373
|
-
"cushionLoveGrassFreshForage",
|
|
374
|
-
"wireLemonGrassFreshForage",
|
|
375
|
-
"colouredHoodGrassFreshForage",
|
|
376
|
-
"falseRhodesGrassFreshForage",
|
|
377
|
-
"stAugustineGrassFreshForage",
|
|
378
|
-
"commonNeedleGrassFreshForage",
|
|
379
|
-
"bigLeafBristleGrassFreshForage"
|
|
380
|
-
],
|
|
381
|
-
"rice": [
|
|
382
|
-
"riceStraw",
|
|
383
|
-
"jungleRiceHay",
|
|
384
|
-
"riceGrainInHuskUpland",
|
|
385
|
-
"riceGrainInHuskFlooded"
|
|
386
|
-
]
|
|
387
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './validations';
|
package/src/validations.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as data from '../validation.json';
|
|
2
|
-
|
|
3
|
-
export interface IValidation {
|
|
4
|
-
function: string;
|
|
5
|
-
level: 'error' | 'warning';
|
|
6
|
-
message: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface IValidations {
|
|
10
|
-
validations: IValidation[];
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const validations = data as IValidations;
|
|
14
|
-
|
|
15
|
-
export const validationsByMessage = data.validations.reduce(
|
|
16
|
-
(prev, curr: IValidation) => {
|
|
17
|
-
prev[curr.message] = prev[curr.message] || [];
|
|
18
|
-
prev[curr.message].push(curr);
|
|
19
|
-
return prev;
|
|
20
|
-
},
|
|
21
|
-
{} as Record<string, IValidation[]>
|
|
22
|
-
);
|
package/src/version.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const DATA_VALIDATION_VERSION = '0.39.2';
|