Files
url_tracker_tool/apps/api/dist/services/seo-analyzer.service.d.ts
Andrei 58f8093689 Rebrand from 'Redirect Intelligence v2' to 'URL Tracker Tool V2' throughout UI
- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
2025-08-19 19:12:23 +00:00

70 lines
1.7 KiB
TypeScript

export interface RobotsAnalysis {
status: 'found' | 'not_found' | 'error';
rules: {
userAgent: string;
allow: string[];
disallow: string[];
crawlDelay?: number;
}[];
sitemaps: string[];
}
export interface MetaTagsAnalysis {
title?: string;
description?: string;
robots?: string;
canonical?: string;
viewport?: string;
openGraph: {
title?: string;
description?: string;
image?: string;
url?: string;
type?: string;
};
twitter: {
card?: string;
title?: string;
description?: string;
image?: string;
};
}
export interface SEOFlags {
robotsTxtStatus: 'found' | 'not_found' | 'error';
robotsTxtRules: RobotsAnalysis;
metaRobots?: string;
canonicalUrl?: string;
sitemapPresent: boolean;
noindex: boolean;
nofollow: boolean;
hasTitle: boolean;
hasDescription: boolean;
titleLength?: number;
descriptionLength?: number;
openGraphPresent: boolean;
twitterCardPresent: boolean;
}
export interface SEOAnalysisResult {
url: string;
flags: SEOFlags;
metaTags: MetaTagsAnalysis;
recommendations: string[];
warnings: string[];
score: number;
}
export declare class SEOAnalyzerService {
analyzeSEO(url: string): Promise<SEOAnalysisResult>;
private analyzeRobotsTxt;
private parseRobotsTxt;
private analyzePageContent;
private parseHTMLContent;
private parseAttributes;
private cleanText;
private generateSEORecommendations;
quickSEOCheck(url: string): Promise<{
noindex: boolean;
nofollow: boolean;
robotsBlocked: boolean;
hasTitle: boolean;
}>;
}
//# sourceMappingURL=seo-analyzer.service.d.ts.map