ENGLISH·COURSE API
    Preparing search index...
    FindNextLesson: (
        input: { courseId: CourseId; currentLessonId: LessonId },
    ) => ResultAsync<Lesson | null, FindNextLessonErrors>

    Use case: given a course and a current lesson, recommend the next lesson in the course. Crosses module boundaries — when the current lesson is the last in its module, returns the first lesson of the next module; returns null when the learner just finished the last lesson of the last module.

    Type Declaration