/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { CourseCompletion } from './CourseCompletion'; import type { EnrollmentInfo } from './EnrollmentInfo'; export type CourseDetail = { course_id: string; name?: string | null; platform?: string | null; enrollment: EnrollmentInfo; completion?: CourseCompletion | null; /** * Total time spent on this course in human-readable format (e.g., '1h 30m') */ time_spent?: string; /** * Total time spent on this course in seconds */ time_spent_secs?: number; /** * Timestamp of the user's most recent recorded activity on this course; null if the user has no tracked time on it. */ last_activity?: string | null; /** * Full edX Progress-page payload (completion summary, grade, grade summary) for this learner in this course. Only present when the request scopes a single `course_id` with `include_edx_progress` enabled; null if the edX call fails. */ edx_progress?: any; };