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>
This commit is contained in:
2026-01-22 01:52:50 +05:00
parent 5a763a4e13
commit 3299cca574
11 changed files with 795 additions and 88 deletions

View File

@@ -17,7 +17,18 @@
"noEmit": false
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "generated"],
"exclude": [
"node_modules",
"dist",
"generated",
"src/scripts/extract-product-from-html.ts",
"src/scripts/find-product-detail-api.ts",
"src/scripts/find-product-detail-endpoint-v1.ts",
"src/scripts/test-detail-endpoint.ts",
"src/scripts/test-all-detail-endpoints.ts",
"src/scripts/test-object-reviews-endpoint.ts",
"src/scripts/debug-detail-response.ts"
],
"ts-node": {
"esm": true
}