fix: Correcciones de errores y mejoras del dashboard CFO

- Corregido auth.service.ts para usar estructura multi-tenant correcta (user_tenants)
- Dashboard rediseñado para CFO digital (ingresos/egresos, CFDIs, alertas)
- Sidebar actualizado con rutas correctas (Métricas, Transacciones, CFDIs, Reportes, Asistente IA)
- Agregadas páginas de Perfil (/profile) y Configuración (/settings)
- Corregidos errores de TypeScript (strict mode, tipos duplicados)
- Actualizado docker-compose.yml a PostgreSQL 16
- Corregidas migraciones SQL (índices IMMUTABLE, constraints)
- Configuración ESM modules en packages
- CORS configurado para acceso de red local

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-01 04:24:23 +00:00
parent 45570baccc
commit 338b9c05df
24 changed files with 7758 additions and 351 deletions

View File

@@ -2,6 +2,7 @@
"name": "@horux/shared",
"version": "0.1.0",
"private": true,
"type": "module",
"description": "Shared types and utilities for Horux Strategy",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@@ -9,17 +9,9 @@ import { z } from 'zod';
// Common Validators
// ============================================================================
/**
* RFC validation (Mexican tax ID)
*/
export const rfcSchema = z
.string()
.regex(
/^([A-ZÑ&]{3,4})(\d{2})(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([A-Z\d]{2})([A\d])$/,
'El RFC no tiene un formato válido'
)
.toUpperCase()
.trim();
// Import rfcSchema from tenant schema to avoid duplicate
import { rfcSchema } from './tenant.schema';
export { rfcSchema };
/**
* CURP validation

View File

@@ -323,7 +323,7 @@ export interface InvoiceItem {
// Payment Method
// ============================================================================
export interface PaymentMethod {
export interface BillingPaymentMethod {
id: string;
tenantId: string;
type: PaymentMethodType;

View File

@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"lib": ["ES2022"],
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}