- Add unit tests for all core services (identity, intake, finance, dataroom) - Create integration test framework with shared setup utilities - Add E2E test suite for complete user workflows - Add test utilities package (server factory) - Configure Prometheus alert rules (service health, infrastructure, database, Azure) - Add alert rules ConfigMap for Kubernetes - Update Prometheus deployment with alert rules - Fix tsconfig.json to include test files - Add tests/tsconfig.json for integration/E2E tests - Fix server-factory.ts linting issues
Dataroom Service
Service for secure VDR (Virtual Data Room), deal rooms, and document access control.
Features
- Deal space management
- Folder ACLs (OPA policies)
- Watermarking
- Expiring links
- Activity logs
- Integration with finance service for deal states
Development
# Install dependencies
pnpm install
# Run development server
pnpm dev
# Build
pnpm build
# Start production server
pnpm start
API Endpoints
GET /health- Health checkPOST /deals- Create deal roomGET /deals/:dealId- Get deal roomPOST /deals/:dealId/documents- Upload documentGET /deals/:dealId/documents/:documentId/url- Get presigned URL
Environment Variables
PORT- Server port (default: 4004)DATABASE_URL- PostgreSQL connection stringSTORAGE_BUCKET- Storage bucket for documentsOPA_URL- Open Policy Agent URL for access control