export enum ELearningTypes {
    Module = "module",
    Question = "question",
    Exam = "exam"
}


export enum ExamAction {
    Start = "start",
    Submit = "submit",
    Result = "result",
    Other = "other",
}
export type ExamProperties = {
    id: string,
    action: "submit",
    duration: number
    meta?: any
} | {
    id: string,
    action: "result",
    score: number;
    is_passed:boolean;
    meta?: any
} | {
    id: string,
    action: "start",
    meta?: any
}

export enum ModuleAction {
    View = "view",
    Other = "other",
}
export interface ModuleProperties {
    id: string,
    progress: number,
    action: ModuleAction,
    meta?: any
}

export enum QuestionAction {
    Answer = "answer",
    Skip = "skip",
    Other = "other",
}
export interface QuestionProperties {
    id: string,
    exam_id: string,
    action: QuestionAction,
    answer_id: string,
    meta?: any
}



