feat: add MFA/TOTP auth, PII encryption, agents/leads/inquiries modules, and comprehensive tests

- Add TOTP-based MFA with setup, verify, disable, backup codes, and challenge flow
- Add PII field encryption middleware with AES-256-GCM and deterministic search hashes
- Add agents, inquiries, and leads domain modules with entities, events, value objects
- Add web dashboard pages for inquiries and leads with detail dialogs
- Add 30+ component tests (valuation, charts, listings, search, providers, UI)
- Add Prisma migrations for encryption hash columns and MFA TOTP support
- Fix all ESLint errors (unused imports, duplicate imports, lint auto-fixes)
- Update dependencies and lock file
- Clean up obsolete exploration/QA docs, add audit documentation

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Ho Ngoc Hai
2026-04-11 23:43:20 +07:00
parent 9e2bf9a4b5
commit 1fbe2f4e73
131 changed files with 11436 additions and 2595 deletions

View File

@@ -0,0 +1,4 @@
export { CreateInquiryCommand } from './commands/create-inquiry/create-inquiry.command';
export { MarkInquiryReadCommand } from './commands/mark-inquiry-read/mark-inquiry-read.command';
export { GetInquiriesByAgentQuery } from './queries/get-inquiries-by-agent/get-inquiries-by-agent.query';
export { GetInquiriesByListingQuery } from './queries/get-inquiries-by-listing/get-inquiries-by-listing.query';

View File

@@ -0,0 +1 @@
export { InquiryEntity, type InquiryProps } from './inquiry.entity';

View File

@@ -0,0 +1,2 @@
export { InquiryCreatedEvent } from './inquiry-created.event';
export { InquiryReadEvent } from './inquiry-read.event';

View File

@@ -0,0 +1,3 @@
export * from './entities';
export * from './events';
export * from './repositories';

View File

@@ -0,0 +1,6 @@
export {
INQUIRY_REPOSITORY,
type IInquiryRepository,
type PaginatedResult,
} from './inquiry.repository';
export { type InquiryReadDto } from './inquiry-read.dto';