Überarbeitung

This commit is contained in:
2024-08-09 17:59:49 +02:00
parent 6d1c50d5df
commit 1e1d5cea57
27 changed files with 135 additions and 112 deletions

View File

@@ -1,4 +1,5 @@
import { BusinessListing, CommercialPropertyListing, Sender, User } from './db.model.js';
import { State } from './server.model.js';
export interface StatesResult {
state: string;
@@ -59,7 +60,7 @@ export interface ListCriteria {
page: number;
types: string[];
state: string;
city: string;
city: GeoResult;
prompt: string;
searchType: 'exact' | 'radius';
// radius: '5' | '20' | '50' | '100' | '200' | '300' | '400' | '500';
@@ -224,18 +225,23 @@ export interface UploadParams {
}
export interface GeoResult {
id: number;
city: string;
name: string;
state: string;
// state_code: string;
latitude: number;
longitude: number;
}
export interface CityAndStateResult {
interface CityResult {
id: number;
name: string;
type: string;
state: string;
type: 'city';
content: GeoResult;
}
interface StateResult {
id: number;
type: 'state';
content: State;
}
export type CityAndStateResult = CityResult | StateResult;
export interface CountyResult {
id: number;
name: string;