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:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -323,7 +323,7 @@ export interface InvoiceItem {
|
||||
// Payment Method
|
||||
// ============================================================================
|
||||
|
||||
export interface PaymentMethod {
|
||||
export interface BillingPaymentMethod {
|
||||
id: string;
|
||||
tenantId: string;
|
||||
type: PaymentMethodType;
|
||||
|
||||
25
packages/shared/tsconfig.json
Normal file
25
packages/shared/tsconfig.json
Normal 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"]
|
||||
}
|
||||
Reference in New Issue
Block a user