"""Catalog Engine — event declarations."""

from __future__ import annotations

from simorgh.apps.events.bus import register_event


def register_all() -> None:
    register_event("catalog.category_created", description="A catalog category was created")
    register_event("catalog.category_updated", description="A catalog category was updated")
    register_event("catalog.category_deleted", description="A catalog category was deleted")

    register_event("catalog.item_created", description="A catalog item was created (draft)")
    register_event("catalog.item_updated", description="A catalog item was updated")
    register_event("catalog.item_submitted_for_review", description="Catalog item submitted for review")
    register_event("catalog.item_published", description="Catalog item was published")
    register_event("catalog.item_retired", description="Catalog item was retired")
    register_event("catalog.item_reverted_to_draft", description="Catalog item reverted to draft")

    register_event("catalog.version_created", description="A new catalog item version snapshot was created")
