@causalfoundry/js-sdk
Version:
Causal Foundry WEB SDK (JS/TS)
50 lines (49 loc) • 948 B
TypeScript
export declare enum ELearningTypes {
Module = "module",
Question = "question",
Exam = "exam"
}
export declare enum ExamAction {
Start = "start",
Submit = "submit",
Result = "result",
Other = "other"
}
export declare 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 declare enum ModuleAction {
View = "view",
Other = "other"
}
export interface ModuleProperties {
id: string;
progress: number;
action: ModuleAction;
meta?: any;
}
export declare enum QuestionAction {
Answer = "answer",
Skip = "skip",
Other = "other"
}
export interface QuestionProperties {
id: string;
exam_id: string;
action: QuestionAction;
answer_id: string;
meta?: any;
}