Files
url_tracker_tool/apps/worker/package.json
Andrei 9626863917 feat(phase-6): Bulk CSV processing and background worker implementation
- Add BulkJob model to Prisma schema with relations
- Implement BulkProcessorService for CSV parsing and job management
- Create BulkTrackingWorker for background processing with BullMQ
- Add comprehensive bulk API routes (upload, jobs, progress, export)
- Integrate multer for CSV file uploads with validation
- Add job progress tracking and estimation
- Implement CSV export functionality for results
- Add queue statistics and cleanup endpoints
- Create shared types for bulk processing
- Add comprehensive test suite for all bulk functionality
- Implement graceful worker shutdown and error handling
- Add rate limiting and authentication for all bulk endpoints

Backward compatibility: Maintained for /api/track and /api/v1/track
2025-08-18 14:18:13 +00:00

35 lines
813 B
JSON

{
"name": "@redirect-intelligence/worker",
"version": "2.0.0",
"private": true,
"scripts": {
"dev": "tsx watch --clear-screen=false src/index.ts",
"build": "tsc",
"start": "node dist/index.js",
"test": "jest",
"lint": "eslint src --ext .ts",
"lint:fix": "eslint src --ext .ts --fix",
"clean": "rm -rf dist"
},
"dependencies": {
"bullmq": "^4.15.4",
"ioredis": "^5.3.2",
"@prisma/client": "*",
"axios": "^1.6.7",
"playwright": "^1.40.1",
"dotenv": "^16.3.1",
"winston": "^3.11.0",
"undici": "^6.2.1",
"zod": "^3.22.4",
"csv-writer": "^1.6.0"
},
"devDependencies": {
"@types/node": "^20.10.0",
"tsx": "^4.6.2",
"typescript": "^5.3.0",
"jest": "^29.7.0",
"@types/jest": "^29.5.8",
"ts-jest": "^29.1.1"
}
}