Files
supermarket/package.json
Mc Smog 3299cca574 feat: add product detail enrichment for Magnit products
- Add isDetailsFetched field to Product model
- Add fetchProductDetails() and fetchProductObjectInfo() methods to MagnitApiScraper
- Add ProductParser methods for detail parsing
- Add ProductService methods: getProductsNeedingDetails(), updateProductDetails(), markAsDetailsFetched()
- Add enrich-product-details.ts script with statistics tracking
- Update package.json with "enrich" script command
- Add E2E_GUIDE.md documentation
- Exclude debug scripts from tsconfig type-check (temporary)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-22 01:52:50 +05:00

43 lines
1.2 KiB
JSON

{
"name": "supermarket-scraper",
"version": "1.0.0",
"description": "Скрапер товаров из магазинов Магнит и Пятёрочка",
"main": "dist/index.js",
"type": "module",
"scripts": {
"build": "tsc",
"type-check": "tsc --noEmit",
"dev": "tsx src/scripts/scrape-magnit-products.ts",
"enrich": "tsx src/scripts/enrich-product-details.ts",
"test-db": "tsx src/scripts/test-db-connection.ts",
"test-detail-endpoint": "tsx src/scripts/test-all-detail-endpoints.ts",
"prisma:generate": "prisma generate",
"prisma:migrate": "prisma migrate dev",
"prisma:studio": "prisma studio --config=prisma.config.ts",
"prisma:format": "prisma format"
},
"keywords": [
"scraper",
"magnit",
"supermarket"
],
"author": "",
"license": "ISC",
"dependencies": {
"@prisma/adapter-pg": "^7.2.0",
"@prisma/client": "^7.2.0",
"axios": "^1.13.2",
"dotenv": "^17.2.3",
"pg": "^8.16.3",
"playwright": "^1.57.0"
},
"devDependencies": {
"@types/node": "^25.0.3",
"@types/pg": "^8.16.0",
"prisma": "^7.2.0",
"ts-node": "^10.9.2",
"tsx": "^4.21.0",
"typescript": "^5.9.3"
}
}