- Add audit controller and routes - Add audit middleware and services - Add MFA controller, routes and service - Add feature flags controller, routes, middleware and services - Update package.json dependencies - Update app.ts with new modules Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
22 lines
665 B
TypeScript
22 lines
665 B
TypeScript
import { AppDataSource } from '../../../config/typeorm.js';
|
|
import {
|
|
AuditLog,
|
|
EntityChange,
|
|
LoginHistory,
|
|
SensitiveDataAccess,
|
|
DataExport,
|
|
PermissionChange,
|
|
ConfigChange,
|
|
} from '../entities/index.js'; // Ajustar path de entities
|
|
import { AuditService } from './audit.service.js';
|
|
|
|
export const auditService = new AuditService(
|
|
AppDataSource.getRepository(AuditLog),
|
|
AppDataSource.getRepository(EntityChange),
|
|
AppDataSource.getRepository(LoginHistory),
|
|
AppDataSource.getRepository(SensitiveDataAccess),
|
|
AppDataSource.getRepository(DataExport),
|
|
AppDataSource.getRepository(PermissionChange),
|
|
AppDataSource.getRepository(ConfigChange)
|
|
);
|