26 lines
422 B
TypeScript
26 lines
422 B
TypeScript
export type VisitId = string;
|
|
|
|
export interface VisitLocation {
|
|
country: string;
|
|
city?: string;
|
|
lat: number;
|
|
lng: number;
|
|
}
|
|
|
|
export interface VisitDateRange {
|
|
start: string;
|
|
end?: string;
|
|
}
|
|
|
|
export interface VisitDto {
|
|
id: VisitId;
|
|
categoryId?: string;
|
|
location: VisitLocation;
|
|
date: VisitDateRange;
|
|
notes?: string;
|
|
tags?: string[];
|
|
photos?: string[];
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}
|