@defra/bng-errors-lib 0.92.0 → 0.94.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.
Files changed (2) hide show
  1. package/package.json +2 -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.92.0",
3
+ "version": "0.94.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": "f951ff6e158b6b6ac8296ebf01e3bbf01dea6a75"
18
+ "gitHead": "bce93424e2c4a3a748761adc9e6f2ea7bf6fe435"
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
  }