"""Supplier domain registration"""
from ...common.registry import DomainRegistry
from schemas.supplier.supplier import SupplierDetailResponse
from .sync_node import SupplierSyncNode
from .sync_strategy import SupplierSyncStrategy
from .jsonl_handler import SupplierJsonlHandler
from .api_handler import SupplierApiHandler

# 注册 supplier domain
DomainRegistry.register(
    node_type="supplier",
    schema=SupplierDetailResponse,
    node_class=SupplierSyncNode,
    strategy_class=SupplierSyncStrategy,
    jsonl_handler_class=SupplierJsonlHandler,
    api_handler_class=SupplierApiHandler,
)