Commit Graph

6 Commits

Author SHA1 Message Date
b535856159 feat(MCH-016): Add delivery API integration methods
- Add DeliveryZone, CoverageResult, Delivery, CreateDeliveryDto interfaces
- Implement checkDeliveryCoverage() for coordinates-based coverage check
- Implement checkDeliveryCoverageByAddress() for address/colonia-based check
- Add getDeliveryZones() to list active zones
- Add createDelivery() for order delivery creation
- Add getDelivery() and getDeliveryByOrderId() for retrieval
- Add getPendingDeliveries() for pending deliveries list
- Add updateDeliveryStatus() for status transitions

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 03:42:48 -06:00
8ba0b7ec56 feat(orders): Integrate backend API for real order creation (MCH-015)
- Add BackendApiService for communication with main backend
- Update webhook service to use backend API for orders
- Integrate real data fetching for sales, inventory, fiados
- Add order creation flow with backend persistence
- Add notification hooks for new orders

Sprint 3: MCH-015 Pedidos WhatsApp

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 03:32:21 -06:00
9a8f0cb873 feat(llm): Implement role-based chat for owner and customer
- Add UserRole type and role detection via getUserRole()
- Add OWNER_TOOLS and CUSTOMER_TOOLS permission arrays
- Implement role-based system prompts (owner vs customer)
- Add owner-specific functions: sales_summary, inventory_status, pending_fiados, etc
- Add getBusinessInfo() for tenant business information
- Add isToolAllowed() for permission validation
- Update webhook service with role-aware message handling

Sprint 2: MCH-012 Chat LLM Dueño + MCH-013 Chat LLM Cliente

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 03:08:22 -06:00
44bcabd064 chore(MCH-011): Add .gitignore for WhatsApp Service
Ignore node_modules, dist, and local env files

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 02:54:34 -06:00
7ca75455bc Migración desde michangarrito/apps/whatsapp-service - Estándar multi-repo v2
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 08:27:00 -06:00
2937c607c1 Initial commit 2026-01-16 14:05:48 +00:00