from simorgh.apps.modules.registry import CapabilitySpec, FeatureSpec, ModuleManifest, register_module

register_module(
    ModuleManifest(
        name="organizations",
        version=1,
        domain="platform",
        label_key="organizations.module_label",
        description="Organizations — hierarchical org-node structure with tree management",
        capabilities=(
            CapabilitySpec(slug="structure", label_key="organizations.capabilities.structure",
                          description="Organizational structure and hierarchy", icon="sitemap"),
        ),
        features=(
            FeatureSpec(code="structure.org_structure", label_key="organizations.features.org_structure", scope="tenant", default_enabled=True, is_always_on=True, is_platform_internal=True, description="Hierarchical organisation tree with depth tracking"),
            FeatureSpec(code="structure.org_import", label_key="organizations.features.org_import", scope="tenant", description="Bulk import organisation hierarchy from CSV/LDAP"),
        ),
    )
)
