from maps_adv.adv_store.lib.domain import campaign as campaign_domain
from maps_adv.adv_store.lib.schemas.base import proto_schemas
from maps_adv.adv_store.api.schemas.campaigns import (
    CampaignStatusHistorySchema,
)


@proto_schemas(output_schema=CampaignStatusHistorySchema)
async def get_status_history(campaign_id: int):
    return await campaign_domain.get_campaign_status_history(campaign_id)
