API Reference
Firestore Collections
infrastructureItems: All equipment/devices
- Fields: id, name, category, type, model, manufacturer, serialNumber, location, status, photos, issues, etc.
users: User profiles (if implemented)
Service Layer
dashboardService.ts: Aggregates and filters items for dashboard
invoiceService.ts: Handles invoice data
geminiService.ts: Handles Gemini API integration
External APIs
- Google Maps API: Mapping and geolocation
- Gemini API: (if enabled)
Adding New APIs
- Add new service in
/services
- Document endpoints and usage here