- Created driver.entity.ts with DriverStatus enum
- Created delivery-status-history.entity.ts with Delivery relation
- Updated delivery.module.ts imports for TypeOrmModule
Resolves: TASK-2026-01-20-002 audit P0 gap
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implement export functionality for four report types:
- Sales: Daily/period sales with totals and items
- Inventory: Current stock with value calculations
- Fiados: Customer credit accounts and balances
- Movements: Inventory entries/exits with references
Features:
- PDF exports using pdfkit with formatted tables and summaries
- Excel exports using exceljs with styling and formulas
- Filter support: date ranges, status, category, etc.
- Proper content-type headers for file downloads
- JWT authentication on all endpoints
Endpoints:
GET /api/v1/exports/sales/:format
GET /api/v1/exports/inventory/:format
GET /api/v1/exports/fiados/:format
GET /api/v1/exports/movements/:format
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Implement settings module with endpoints for tenant configuration:
- GET /api/v1/settings - Get tenant settings
- PATCH /api/v1/settings - Update tenant settings
- GET /api/v1/settings/whatsapp - WhatsApp connection status
- POST /api/v1/settings/whatsapp/test - Test WhatsApp connection
- GET /api/v1/settings/subscription - Subscription information
Includes:
- TenantSettings entity for fiado, WhatsApp and notification preferences
- DTOs for business, fiado, WhatsApp and notification settings
- Service with full CRUD operations
- Integration with existing Tenant, Subscription and WhatsApp entities
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Crear entidades OnboardingSession y ProductScan
- Implementar OcrService con Google Vision API
- Implementar WhisperService para transcripcion de audio
- Crear OnboardingService con flujo completo
- Agregar 12 endpoints para gestion de onboarding
- Soporte para procesamiento de fotos y audios
- Deteccion automatica de productos y precios
- Integracion con TemplatesService para matching
Sprint 5 - Inteligencia (2/2 epicas)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add DeliveryZone entity with radius/polygon zone types
- Add Delivery entity with status tracking and proof of delivery
- Implement DeliveryService with zone management and coverage check
- Add Haversine distance calculation for radius zones
- Add ray casting algorithm for polygon zone containment
- Create DeliveryController with REST endpoints
- Register DeliveryModule in app.module.ts
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>