"""Moodle event → MEL indicator crosswalk.

Mirrors the retired REP ``EVENT_INDICATOR_MAP``. The ``pull_moodle_outcomes``
task translates Moodle Web Services results into these events and records a MEL
DataPoint per event via ``record_automated_point`` (source_module="moodle").
The indicators themselves are seeded in
``apps/mel/indicators/seeders/indicators_seeder.py``.
"""
from __future__ import annotations

MOODLE_EVENT_INDICATOR_MAP: dict[str, str] = {
    "course_completed": "moodle-courses-completed",
    "enrolment_created": "moodle-enrolments",
    "quiz_submitted": "moodle-quiz-submissions",
    "grade_recorded": "moodle-grades-recorded",
}

# Digital-competency pass threshold (percentage) — a quiz at or above this counts
# toward the digital-competency indicator, mirroring the old REP AR010 rule.
MOODLE_DIGITAL_COMPETENCY_PASS_THRESHOLD = 70.0
