This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// packages/core-api/src/services/underwriting/underwritingAnalysisOrchestrator.service.ts | |
//----------------------------------------------------------------------------- | |
// Imports | |
//----------------------------------------------------------------------------- | |
import { eq, desc } from 'drizzle-orm'; // Assuming 'desc' might be needed for latest AI analysis | |
// Database instance (imported directly as per our discussion) | |
import { db } from '../../db'; | |
// Schema imports |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File: tests/aiProcessing.spec.ts | |
// IMPORTANT: Actual schema imports must be at the very top | |
import { | |
properties as actualPropertiesTable, | |
aiBatchJobsTable as actualAiBatchJobsTable, | |
propertyListingAiAnalysisTable as actualPropertyListingAiAnalysisTable, | |
propertyImageProcessingJobsTable as actualPropertyImageProcessingJobsTable, // For handleFailedPhotoBatch | |
type AiBatchJob, | |
type PropertyListingAiAnalysis |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Testing listingSearch --- | |
[ZillowApiClient.listingSearch] Starting category: cat1 | |
[listingSearch] Fetching: Category 'cat1', Page 1 | |
[ZillowApiClient] Zod parsing error for _fetchSingleCategoryPage (URL params: {"url":"https://www.zillow.com/homes/for_sale/?searchQueryState=%7B%22isMapVisible%22%3Atrue%2C%22mapBounds%22%3A%7B%22west%22%3A-87.30071603850614%2C%22east%22%3A-86.49734079436551%2C%22south%22%3A33.219774309667805%2C%22north%22%3A33.6272392738773%7D%2C%22mapZoom%22%3A11%2C%22filterState%22%3A%7B%22sort%22%3A%7B%22value%22%3A%22globalrelevanceex%22%7D%2C%22pmf%22%3A%7B%22value%22%3Atrue%7D%2C%22pf%22%3A%7B%22value%22%3Atrue%7D%2C%22abo%22%3A%7B%22value%22%3Atrue%7D%2C%22pnd%22%3A%7B%22value%22%3Atrue%7D%2C%22price%22%3A%7B%22min%22%3A100000%2C%22max%22%3A350000%7D%2C%22mp%22%3A%7B%22min%22%3Anull%2C%22max%22%3A1789%7D%2C%22beds%22%3A%7B%22min%22%3A3%2C%22max%22%3Anull%7D%2C%22baths%22%3A%7B%22min%22%3A1.5%2C%22max%22%3Anull%7D%2C%22tow%22%3A%7B%22value%22%3Afalse%7D%2C%22mf%22%3A%7B%22value%22%3 |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12:52:15 PM Info Fetching cat1 - Page 1... | |
12:52:15 PM Info Requesting URL: https://app.scrapeak.com/v1/scrapers/zillow/listing?api_key=maskedApiKey&url=https://www.zillow.com/homes/for_sale/?searchQueryState=%7B%22isMapVisible%22%3Atrue%2C%22mapBounds%22%3A%7B%22west%22%3A-87.30071603850614%2C%22east%22%3A-86.49734079436551%2C%22south%22%3A33.219774309667805%2C%22north%22%3A33.6272392738773%7D%2C%22mapZoom%22%3A11%2C%22filterState%22%3A%7B%22sort%22%3A%7B%22value%22%3A%22globalrelevanceex%22%7D%2C%22pmf%22%3A%7B%22value%22%3Atrue%7D%2C%22pf%22%3A%7B%22value%22%3Atrue%7D%2C%22abo%22%3A%7B%22value%22%3Atrue%7D%2C%22pnd%22%3A%7B%22value%22%3Atrue%7D%2C%22price%22%3A%7B%22min%22%3A100000%2C%22max%22%3A350000%7D%2C%22mp%22%3A%7B%22min%22%3Anull%2C%22max%22%3A1789%7D%2C%22beds%22%3A%7B%22min%22%3A3%2C%22max%22%3Anull%7D%2C%22baths%22%3A%7B%22min%22%3A1.5%2C%22max%22%3Anull%7D%2C%22tow%22%3A%7B%22value%22%3Afalse%7D%2C%22mf%22%3A%7B%22value%22%3Afalse%7D%2C%22con%22%3A%7B%22value%22%3Afalse%7D%2C%22land%22%3A%7B%22 |