"""
SEO metrics sync and query module.

Syncs data from Google Search Console, Bing Webmaster Tools, and Umami
into SQLite tables. Query functions support the admin SEO hub views.
"""

from ._bing import sync_bing
from ._gsc import sync_gsc
from ._queries import (
    cleanup_old_metrics,
    get_article_scorecard,
    get_country_breakdown,
    get_device_breakdown,
    get_funnel_metrics,
    get_search_performance,
    get_sync_status,
    get_top_pages,
    get_top_queries,
)
from ._umami import sync_umami

__all__ = [
    "sync_gsc",
    "sync_bing",
    "sync_umami",
    "get_search_performance",
    "get_top_queries",
    "get_top_pages",
    "get_country_breakdown",
    "get_device_breakdown",
    "get_funnel_metrics",
    "get_article_scorecard",
    "get_sync_status",
    "cleanup_old_metrics",
]
