Externalize audit pipeline services

This commit is contained in:
2026-06-07 23:06:31 +02:00
parent 470fb0f348
commit a45b92ea0a
42 changed files with 3141 additions and 247 deletions

View File

@@ -119,6 +119,18 @@ export const PAGE_SPEED_ERROR_TYPES = [
"api_error",
"unknown",
] as const;
export const USAGE_EVENT_PROVIDERS = [
"openrouter",
"screenshotone",
"jina",
"pagespeed",
"google_places",
] as const;
export const USAGE_EVENT_OPERATIONS = [
"audit_capture",
"audit_generation",
"lead_lookup",
] as const;
export type CampaignStatus = (typeof CAMPAIGN_STATUSES)[number];
export type LeadPriority = (typeof LEAD_PRIORITIES)[number];
@@ -143,6 +155,8 @@ export type ScreenshotViewport = (typeof SCREENSHOT_VIEWPORTS)[number];
export type PageSpeedStrategy = (typeof PAGE_SPEED_STRATEGIES)[number];
export type PageSpeedResultStatus = (typeof PAGE_SPEED_RESULT_STATUSES)[number];
export type PageSpeedErrorType = (typeof PAGE_SPEED_ERROR_TYPES)[number];
export type UsageEventProvider = (typeof USAGE_EVENT_PROVIDERS)[number];
export type UsageEventOperation = (typeof USAGE_EVENT_OPERATIONS)[number];
export type SettingsRow = {
key: string;