"""Contract domain registration"""
from ...common.registry import DomainRegistry
from schemas.contract.contract import ContractResponse
from .sync_node import ContractSyncNode
from .sync_strategy import ContractSyncStrategy
from .jsonl_handler import ContractJsonlHandler
from .api_handler import ContractApiHandler

# 注册 contract domain
DomainRegistry.register(
    node_type="contract",
    schema=ContractResponse,
    node_class=ContractSyncNode,
    strategy_class=ContractSyncStrategy,
    jsonl_handler_class=ContractJsonlHandler,
    api_handler_class=ContractApiHandler,
)