@defra/bng-errors-lib 0.91.0 → 0.93.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 +2 -2
- package/src/errors.js +8 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defra/bng-errors-lib",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.93.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Custom errors for Biodiversity Net Gain",
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
},
|
|
16
16
|
"author": "Department for Environment, Food and Rural Affairs <https://www.gov.uk/government/organisations/department-for-environment-food-rural-affairs>",
|
|
17
17
|
"license": "OGL-UK-3.0",
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "cc26fd2d850c33fa5192c83f716f497505320d1b"
|
|
19
19
|
}
|
package/src/errors.js
CHANGED
|
@@ -11,6 +11,7 @@ const INVALID_LAYER_COUNT = 'INVALID-LAYER-COUNT'
|
|
|
11
11
|
const INVALID_UPLOAD = 'INVALID-UPLOAD'
|
|
12
12
|
const MISSING_COORDINATE_SYSTEM = 'MISSING-COORDINATE-SYSTEM'
|
|
13
13
|
const OUTSIDE_ENGLAND = 'OUTSIDE_ENGLAND'
|
|
14
|
+
const EMPTY_FILE_UPLOAD = 'EMPTY_FILE_UPLOAD'
|
|
14
15
|
|
|
15
16
|
const uploadGeospatialLandBoundaryErrorCodes = Object.freeze({
|
|
16
17
|
INVALID_COORDINATE_SYSTEM,
|
|
@@ -21,6 +22,11 @@ const uploadGeospatialLandBoundaryErrorCodes = Object.freeze({
|
|
|
21
22
|
OUTSIDE_ENGLAND
|
|
22
23
|
})
|
|
23
24
|
|
|
25
|
+
const uploadWrittenConsentErrorCodes = Object.freeze({
|
|
26
|
+
INVALID_UPLOAD,
|
|
27
|
+
EMPTY_FILE_UPLOAD
|
|
28
|
+
})
|
|
29
|
+
|
|
24
30
|
export {
|
|
25
31
|
CoordinateSystemValidationError,
|
|
26
32
|
ThreatScreeningError,
|
|
@@ -28,5 +34,6 @@ export {
|
|
|
28
34
|
UploadTypeValidationError,
|
|
29
35
|
ValidationError,
|
|
30
36
|
DuplicateApplicationReferenceError,
|
|
31
|
-
uploadGeospatialLandBoundaryErrorCodes
|
|
37
|
+
uploadGeospatialLandBoundaryErrorCodes,
|
|
38
|
+
uploadWrittenConsentErrorCodes
|
|
32
39
|
}
|