Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/schemas/ingestion/validationTask.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const thresholdsSchema = z.object({
count: counterSchema,
}),
smallGeometries: thresholdCheckSchema.describe('Small geometries threshold check result'),
resolution: thresholdCheckSchema.describe('Resolution threshold check result'),
});

export const validationAggregatedErrorsSchema = z.object({
Expand Down
13 changes: 12 additions & 1 deletion src/types/ingestion/report.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,20 @@ export type PolygonPartValidationErrorsType = Pick<
'RESOLUTION' | 'GEOMETRY_VALIDITY' | 'SMALL_GEOMETRY' | 'SMALL_HOLES' | 'UNKNOWN'
>[keyof Pick<typeof ValidationErrorType, 'GEOMETRY_VALIDITY' | 'RESOLUTION' | 'SMALL_GEOMETRY' | 'SMALL_HOLES' | 'UNKNOWN'>];

export interface PolygonPartValidationResolutionErrorItem {
code: (typeof ValidationErrorType)['RESOLUTION'];
isExceeded: boolean;
}

export interface PolygonPartValidationGeneralErrorItem {
code: Exclude<PolygonPartValidationErrorsType, (typeof ValidationErrorType)['RESOLUTION']>;
}

export type PolygonPartValidationErrorItem = PolygonPartValidationResolutionErrorItem | PolygonPartValidationGeneralErrorItem;

export interface PolygonPartValidationError {
id: string;
errors: PolygonPartValidationErrorsType[];
errors: PolygonPartValidationErrorItem[];
}
export interface PolygonPartsChunkValidationResult {
parts: PolygonPartValidationError[];
Expand Down
Loading