TypeScript interfaces shared between frontend and backend.
Request payload for the crawl API endpoint.
interface CrawlRequest {
sitemapUrl: string;
}
Response from the crawl API endpoint.
interface CrawlResult {
found: boolean; // Whether target string was found
foundUrl?: string; // URL where string was found (if any)
totalCrawled: number; // Number of pages crawled
errors: string[]; // List of error messages
crawledUrls: string[]; // All URLs that were crawled
postsSitemapUrl?: string; // URL of posts sitemap if found
postsSitemapFound: boolean; // Whether posts sitemap was found
}
Progress updates during crawling (for future real-time features).
interface CrawlProgress {
currentUrl: string; // Currently being crawled
crawledCount: number; // Number completed
totalUrls: number; // Total URLs to crawl
found?: boolean; // Whether target found
foundUrl?: string; // URL where found
}