restructures project for maintainability

This commit is contained in:
Sampson committed 2025-06-18 12:18:22 -05:00
1 parent 62cd97c5a0
commit 486d4f06f5
6 files changed
+295 -285

No files matched your search

+48
View File
@@ -0,0 +1,48 @@
export interface WebResponse {
web?: {
results?: Array<{
title: string;
description: string;
url: string;
language?: string;
published?: string;
rank?: number;
}>;
};
locations?: {
results?: Array<{
id: string; // Required by API
title?: string;
}>;
};
}
export interface BraveLocation {
id: string;
name: string;
address: {
streetAddress?: string;
addressLocality?: string;
addressRegion?: string;
postalCode?: string;
};
coordinates?: {
latitude: number;
longitude: number;
};
phone?: string;
rating?: {
ratingValue?: number;
ratingCount?: number;
};
openingHours?: string[];
priceRange?: string;
}
export interface BravePoiResponse {
results: BraveLocation[];
}
export interface BraveDescription {
descriptions: { [id: string]: string };
}