ENGLISH·COURSE API
    Preparing search index...
    • Reduce a lesson to its progress slice.

      Parameters

      • lesson:
            | {
                kind: "reading";
                id: string & $brand<"LessonId">;
                courseId: string & $brand<"CourseId">;
                moduleId: string & $brand<"ModuleId">;
                sequence: number;
                title: string;
                body: string;
            }
            | {
                kind: "video";
                id: string & $brand<"LessonId">;
                courseId: string & $brand<"CourseId">;
                moduleId: string & $brand<"ModuleId">;
                sequence: number;
                title: string;
                description: string;
                source: string;
                durationSeconds: number;
                poster?: string;
                uploadDate?: string;
            }

        A video or reading lesson

        • {
              kind: "reading";
              id: string & $brand<"LessonId">;
              courseId: string & $brand<"CourseId">;
              moduleId: string & $brand<"ModuleId">;
              sequence: number;
              title: string;
              body: string;
          }
        • {
              kind: "video";
              id: string & $brand<"LessonId">;
              courseId: string & $brand<"CourseId">;
              moduleId: string & $brand<"ModuleId">;
              sequence: number;
              title: string;
              description: string;
              source: string;
              durationSeconds: number;
              poster?: string;
              uploadDate?: string;
          }
          • kind: "video"
          • id: string & $brand<"LessonId">
          • courseId: string & $brand<"CourseId">
          • moduleId: string & $brand<"ModuleId">
          • sequence: number
          • title: string
          • description: string
          • source: string
          • durationSeconds: number
          • Optionalposter?: string
          • OptionaluploadDate?: string

            When the Lecture was published, as a calendar date. Absent for most of the catalog; a delivery adapter describing the video to search engines emits nothing rather than guessing when it is missing.

      Returns LessonProgressSlice

      Its id, module and runtime; 0 seconds for a reading lesson