"""Universal 1C SQL metadata parser primitives."""

from .payload import (
    BraceNode,
    Lexer,
    Parser,
    collect_strings,
    parse_brace_text,
    payload_to_text,
    try_decompress,
)
from .dbnames import (
    DBNamesRecord,
    parse_dbnames_bytes,
    parse_dbnames_file,
    parse_dbnames_version_bytes,
    parse_dbnames_version_file,
)
from .extensions import (
    ExtensionZippedInfo,
    ManifestEntry,
    parse_extension_manifest_bytes,
    parse_extension_zipped_info,
)
from .config_object import MetadataObjectIdentity, find_identity, parse_config_object_file
from .storage import StorageRoute, group_records_by_guid, storage_route, storage_routes
from .config_sections import SectionSummary, summarize_section, summarize_sections
from .xml_metadata import XmlMetadataItem, extract_xml_metadata_items, group_xml_items
from .support_rules import (
    SupplierSupport,
    SupportRule,
    parse_parent_configurations_bytes,
    parse_parent_configurations_file,
)
from .common_command import (
    common_command_group_guid,
    index_common_command_groups,
    parse_common_command_tree,
)
from .scheduled_job import (
    decode_schedule,
    rebuild_schedule_tree,
    schedule_layout,
    schedule_write_edits,
)

__all__ = [
    "BraceNode",
    "Lexer",
    "Parser",
    "collect_strings",
    "parse_brace_text",
    "payload_to_text",
    "try_decompress",
    "DBNamesRecord",
    "parse_dbnames_bytes",
    "parse_dbnames_file",
    "parse_dbnames_version_bytes",
    "parse_dbnames_version_file",
    "ExtensionZippedInfo",
    "ManifestEntry",
    "parse_extension_manifest_bytes",
    "parse_extension_zipped_info",
    "MetadataObjectIdentity",
    "find_identity",
    "parse_config_object_file",
    "StorageRoute",
    "group_records_by_guid",
    "storage_route",
    "storage_routes",
    "SectionSummary",
    "summarize_section",
    "summarize_sections",
    "XmlMetadataItem",
    "extract_xml_metadata_items",
    "group_xml_items",
    "SupplierSupport",
    "SupportRule",
    "parse_parent_configurations_bytes",
    "parse_parent_configurations_file",
    "common_command_group_guid",
    "index_common_command_groups",
    "parse_common_command_tree",
    "decode_schedule",
    "rebuild_schedule_tree",
    "schedule_layout",
    "schedule_write_edits",
]
