"""Requests to ows-abacus-state.""" import httpx from src.connectors.requests import post SERVICE = 'ows-abacus-event' ADJUSTMENT_FILE_UPLOAD_EVENT = 'adjustment_file_upload' ADJUSTMENT_FILE_UPLOAD_TARGET_TYPE = 'statement_period_adjustment_file' def create_abacus_event( event_name: str, target_id: str | int, target_type: str, ) -> httpx.Response: """Create abacus state.""" path = '/abacus-event' response = post( SERVICE, path, {'event_name': event_name, 'target_id': target_id, 'target_type': target_type}, ) return response