Commit Graph

3 Commits

Author SHA1 Message Date
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
e441e9c626 [MAE-016] feat: Complete documents module with REST controller
- Convert services from NestJS to Express pattern
- Remove unused ServiceContext interfaces
- Add DocumentController with full CRUD endpoints:
  - GET /documents (list with filters)
  - GET /documents/:id (get by ID)
  - GET /documents/statistics
  - GET /documents/generate-code
  - GET /documents/project/:projectId
  - GET /documents/:id/access-history
  - GET /documents/:id/versions
  - GET /documents/:id/versions/statistics
  - POST /documents (create)
  - POST /documents/:id/versions (create version)
  - POST /documents/:id/status (change status)
  - POST /documents/:id/lock
  - POST /documents/:id/unlock
  - POST /documents/versions/:versionId/set-current
  - POST /documents/versions/:versionId/archive
  - PUT /documents/:id (update)
  - DELETE /documents/:id (soft delete)
- Add controllers/index.ts export

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 09:31:21 -06:00
Adrian Flores Cortes
22b9692e3a [MAE-016] feat: Add Documents module (Gestion Documental)
- Create 11 entities matching DDL:
  - DocumentCategory: Hierarchical categories
  - Document: Main document registry
  - DocumentVersion: Version control with files
  - DocumentPermission: Granular permissions
  - ApprovalWorkflow: Workflow definitions
  - ApprovalInstance: Active workflow instances
  - ApprovalStep: Steps per instance
  - ApprovalActionEntity: Actions taken
  - Annotation: Comments and markups
  - AccessLog: Access history
  - DocumentShare: External sharing links
- Create DocumentService with full CRUD
- Create DocumentVersionService for version management
- All entities follow ERP-Construction patterns

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 08:22:49 -06:00