refactor; create ad request validation

This commit is contained in:
sbriat
2023-04-26 12:10:22 +02:00
parent aeead7fb62
commit 5865464c53
28 changed files with 173 additions and 86 deletions

View File

@@ -0,0 +1,4 @@
export type Coordinates = {
lon: number;
lat: number;
};

View File

@@ -0,0 +1,7 @@
export enum PointType {
HOUSE_NUMBER = 'HOUSE_NUMBER',
STREET_ADDRESS = 'STREET_ADDRESS',
LOCALITY = 'LOCALITY',
VENUE = 'VENUE',
OTHER = 'OTHER',
}

View File

@@ -0,0 +1,6 @@
import { PointType } from './point-type.enum';
import { Coordinates } from './coordinates.type';
export type Point = Coordinates & {
type?: PointType;
};