UNPKG

@causalfoundry/js-sdk

Version:

Causal Foundry WEB SDK (JS/TS)

48 lines (41 loc) 827 B
export enum ELearningTypes { Module = "module", Question = "question", Exam = "exam", } export enum ExamAction { Start = "start", Submit = "submit", Result = "result", Other = "other", } export interface ExamProperties { exam_id: string; action: ExamAction; duration?: number; score?: number; is_passed?: boolean; meta?: any; } export enum ModuleAction { View = "view", Other = "other", } export interface ModuleProperties { module_id: string; progress: number; action: ModuleAction; meta?: any; } export enum QuestionAction { Answer = "answer", Skip = "skip", Other = "other", } export interface QuestionProperties { question_id: string; exam_id: string; action: QuestionAction; answer_id: string; meta?: any; }