Integrate PageSpeed Insights audits
This commit is contained in:
@@ -95,6 +95,16 @@ export const RUN_STATUSES = [
|
||||
] as const;
|
||||
export const RUN_EVENT_LEVELS = ["info", "warning", "error"] as const;
|
||||
export const SCREENSHOT_VIEWPORTS = ["desktop", "mobile"] as const;
|
||||
export const PAGE_SPEED_STRATEGIES = ["mobile", "desktop"] as const;
|
||||
export const PAGE_SPEED_RESULT_STATUSES = ["succeeded", "failed"] as const;
|
||||
export const PAGE_SPEED_ERROR_TYPES = [
|
||||
"quota",
|
||||
"timeout",
|
||||
"unavailable",
|
||||
"invalid_url",
|
||||
"api_error",
|
||||
"unknown",
|
||||
] as const;
|
||||
|
||||
export type CampaignStatus = (typeof CAMPAIGN_STATUSES)[number];
|
||||
export type LeadPriority = (typeof LEAD_PRIORITIES)[number];
|
||||
@@ -114,6 +124,9 @@ export type RunType = (typeof RUN_TYPES)[number];
|
||||
export type RunStatus = (typeof RUN_STATUSES)[number];
|
||||
export type RunEventLevel = (typeof RUN_EVENT_LEVELS)[number];
|
||||
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 SettingsRow = {
|
||||
key: string;
|
||||
|
||||
Reference in New Issue
Block a user