Commit Graph

5 Commits

Author SHA1 Message Date
Adrian Flores Cortes
e5f63495e8 feat(quality): Add missing services for quality module
Implement four new services for the quality module (MAI-009):
- CorrectiveActionService: CAPA (Corrective and Preventive Actions)
  workflow with create, start, complete, verify, and reopen operations
- NonConformityService: NC lifecycle management with severity-based
  SLA, contractor assignment, and status workflow
- InspectionResultService: Recording and batch recording of inspection
  results with summary statistics
- TicketAssignmentService: Ticket assignment, reassignment, scheduling,
  and technician workload tracking

All services follow the ServiceContext pattern with tenantId.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 19:27:35 -06:00
Adrian Flores Cortes
6a71183121 feat(MAI-002,MAI-004,MAI-009): Add missing controllers and services
- construction/torre: Service + Controller for vertical buildings
- construction/nivel: Service + Controller for floor levels
- construction/departamento: Service + Controller for units
- purchase/purchase-order-construction: Controller for PO extensions
- purchase/supplier-construction: Controller for supplier extensions
- quality/checklist: Controller for inspection templates

All endpoints follow existing patterns with multi-tenancy support.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 17:39:51 -06:00
Adrian Flores Cortes
598c3215e1 feat(FASE-4A): Complete vertical modules for construction
- MAI-018 Bidding module: entities, services, controllers, DTOs
  - Opportunity, Tender, Proposal, Vendor management
  - Bid calendar, documents, analytics
- Earned Value Management: Curva S, SPI/CPI reports
  - earned-value.service.ts with EV, PV, AC calculations
  - earned-value.controller.ts with 9 endpoints
- DTOs for modules: assets, contracts, documents, purchase, quality
  - 28 new DTO files with class-validator decorators
- Storage module: service and controller implementation
  - Multi-provider support (local, S3, GCS, Azure)
  - File management, upload/download URLs
- Multiple entity and service fixes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 07:00:18 -06:00
Adrian Flores Cortes
60782a3cac [MAI-009] feat: Complete quality module with schema fixes and ChecklistService
- Fix 8 entities schema from 'quality' to 'construction' to match DDL
- Create ChecklistService with full CRUD, duplication, item management
- Fix InspectionService and TicketService to use local ServiceContext
- Fix InspectionController and TicketController pagination structure
- Update services/index.ts to export ChecklistService

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 08:54:18 -06:00
7c1480a819 Migración desde erp-construccion/backend - Estándar multi-repo v2
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 08:11:14 -06:00