@defikitdotnet/education-module-ai
Version:
AI Education Module using Agent Framework
40 lines (39 loc) • 1.09 kB
TypeScript
import { Lecture } from "../models/Lecture";
import { LectureRepository } from "../repositories/LectureRepository";
export interface CreateLectureDTO {
sectionId: string;
title: string;
content: string;
type: "text" | "h5p" | "presentation";
orderIndex?: number;
}
export interface UpdateLectureDTO {
title?: string;
content?: string;
type?: "text" | "h5p" | "presentation";
orderIndex?: number;
}
export declare class LectureService {
private lectureRepository;
constructor(lectureRepository: LectureRepository);
/**
* Create a new lecture
*/
createLecture(data: CreateLectureDTO): Promise<Lecture>;
/**
* Get a lecture by ID
*/
getLecture(id: string): Promise<Lecture | null>;
/**
* Get all lectures for a section
*/
getLecturesBySectionId(sectionId: string): Promise<Lecture[]>;
/**
* Update a lecture
*/
updateLecture(id: string, data: UpdateLectureDTO): Promise<Lecture | null>;
/**
* Delete a lecture
*/
deleteLecture(id: string): Promise<boolean>;
}