diff --git a/src/constants/ingestion/constants.ts b/src/constants/ingestion/constants.ts index 63df2e0..e300677 100644 --- a/src/constants/ingestion/constants.ts +++ b/src/constants/ingestion/constants.ts @@ -97,6 +97,7 @@ export const ValidationErrorType = { SMALL_GEOMETRY: 'Small_Geometry', SMALL_HOLES: 'Small_Holes', RESOLUTION: 'Resolution', + UNKNOWN: 'Unknown', } as const; /* eslint-enable @typescript-eslint/naming-convention */ diff --git a/src/schemas/ingestion/validationTask.schema.ts b/src/schemas/ingestion/validationTask.schema.ts index 644334e..1f6e142 100644 --- a/src/schemas/ingestion/validationTask.schema.ts +++ b/src/schemas/ingestion/validationTask.schema.ts @@ -13,6 +13,7 @@ export const featuresErrorCountSchema = z.object({ resolution: counterSchema.describe('Number of features not matching the required resolution'), smallHoles: counterSchema.describe('Number of features containing small holes'), smallGeometries: counterSchema.describe('Number of features containing small geometries'), + unknown: counterSchema.describe('Number of features with unknown errors'), }); export const thresholdsSchema = z.object({ diff --git a/src/types/ingestion/report.type.ts b/src/types/ingestion/report.type.ts index a58d6c5..d7dfc0a 100644 --- a/src/types/ingestion/report.type.ts +++ b/src/types/ingestion/report.type.ts @@ -2,8 +2,8 @@ import { ValidationErrorType } from '../../constants'; export type PolygonPartValidationErrorsType = Pick< typeof ValidationErrorType, - 'RESOLUTION' | 'GEOMETRY_VALIDITY' | 'SMALL_GEOMETRY' | 'SMALL_HOLES' ->[keyof Pick]; + 'RESOLUTION' | 'GEOMETRY_VALIDITY' | 'SMALL_GEOMETRY' | 'SMALL_HOLES' | 'UNKNOWN' +>[keyof Pick]; export interface PolygonPartValidationError { id: string;