counties, pagination, filter count, show total results

This commit is contained in:
2024-07-19 18:06:56 +02:00
parent abcde3991d
commit 9db23c2177
25 changed files with 67207 additions and 509 deletions

View File

@@ -57,7 +57,6 @@ export interface ListCriteria {
start: number;
length: number;
page: number;
pageCount: number;
types: string[];
city: string;
prompt: string;
@@ -230,6 +229,12 @@ export interface GeoResult {
state: string;
state_code: string;
}
export interface CountyResult {
id: number;
name: string;
state: string;
state_code: string;
}
export function isEmpty(value: any): boolean {
// Check for undefined or null
if (value === undefined || value === null) {

View File

@@ -61,3 +61,12 @@ export interface Timezone {
abbreviation: string;
tzName: string;
}
export interface CountyData {
state: string;
state_full: string;
counties: string[];
}
export interface CountyRequest {
prefix: string;
states: string[];
}