Sistema NEXUS v3.4 migrado con: Estructura principal: - core/orchestration: Sistema SIMCO + CAPVED (27 directivas, 28 perfiles) - core/catalog: Catalogo de funcionalidades reutilizables - shared/knowledge-base: Base de conocimiento compartida - devtools/scripts: Herramientas de desarrollo - control-plane/registries: Control de servicios y CI/CD - orchestration/: Configuracion de orquestacion de agentes Proyectos incluidos (11): - gamilit (submodule -> GitHub) - trading-platform (OrbiquanTIA) - erp-suite con 5 verticales: - erp-core, construccion, vidrio-templado - mecanicas-diesel, retail, clinicas - betting-analytics - inmobiliaria-analytics - platform_marketing_content - pos-micro, erp-basico Configuracion: - .gitignore completo para Node.js/Python/Docker - gamilit como submodule (git@github.com:rckrdmrd/gamilit-workspace.git) - Sistema de puertos estandarizado (3005-3199) Generated with NEXUS v3.4 Migration System EPIC-010: Configuracion Git y Repositorios
1.1 KiB
1.1 KiB
ET-PRE-003: Motor de Licitaciones
ID: ET-PRE-003 | Módulo: MAI-018
Tender Service
@Injectable()
export class TenderService {
async createTender(dto: CreateTenderDto): Promise<Tender> {
const numero = await this.generateTenderNumber(dto.type);
const tender = await this.tenderRepo.save({ ...dto, numero, status: 'draft' });
return tender;
}
async publish(tenderId: string): Promise<Tender> {
const tender = await this.findOne(tenderId);
this.validateTenderDates(tender);
tender.status = 'published';
await this.notifyVendors(tender);
return this.tenderRepo.save(tender);
}
async receiveProposal(tenderId: string, dto: CreateProposalDto): Promise<Proposal> {
const tender = await this.findOne(tenderId);
if (tender.status !== 'receiving' && tender.status !== 'published') {
throw new BadRequestException('Tender not accepting proposals');
}
if (new Date() > tender.fechaLimitePropuestas) {
throw new BadRequestException('Deadline exceeded');
}
return this.proposalRepo.save({ tenderId, ...dto });
}
}
Generado: 2025-11-20