mirror of
https://gitlab.com/mobicoop/v3/service/matcher.git
synced 2026-01-01 08:22:41 +00:00
refactor; create ad request validation
This commit is contained in:
4
src/modules/geography/domain/types/coordinates.type.ts
Normal file
4
src/modules/geography/domain/types/coordinates.type.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export type Coordinates = {
|
||||
lon: number;
|
||||
lat: number;
|
||||
};
|
||||
7
src/modules/geography/domain/types/point-type.enum.ts
Normal file
7
src/modules/geography/domain/types/point-type.enum.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export enum PointType {
|
||||
HOUSE_NUMBER = 'HOUSE_NUMBER',
|
||||
STREET_ADDRESS = 'STREET_ADDRESS',
|
||||
LOCALITY = 'LOCALITY',
|
||||
VENUE = 'VENUE',
|
||||
OTHER = 'OTHER',
|
||||
}
|
||||
6
src/modules/geography/domain/types/point.type.ts
Normal file
6
src/modules/geography/domain/types/point.type.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { PointType } from './point-type.enum';
|
||||
import { Coordinates } from './coordinates.type';
|
||||
|
||||
export type Point = Coordinates & {
|
||||
type?: PointType;
|
||||
};
|
||||
Reference in New Issue
Block a user