apps/recallassess/recallassess-api/src/api/client/learning-group/events/course-progress.events.ts
Event emitted when E-Learning is completed
Properties |
|
constructor(learningGroupParticipantId: number, participantId: number, courseId: number)
|
| Public Readonly courseId |
Type : number
|
| Public Readonly learningGroupParticipantId |
Type : number
|
| Public Readonly participantId |
Type : number
|
export const COURSE_PROGRESS_EVENTS = {
PRE_BAT_COMPLETED: "course.progress.pre_bat.completed",
E_LEARNING_COMPLETED: "course.progress.e_learning.completed",
KNOWLEDGE_REVIEW_COMPLETED: "course.progress.knowledge_review.completed",
POST_BAT_COMPLETED: "course.progress.post_bat.completed",
COURSE_COMPLETED: "course.progress.course.completed",
} as const;
/**
* Event emitted when PRE BAT assessment is completed
*/
export class PreBatCompletedEvent {
constructor(
public readonly learningGroupParticipantId: number,
public readonly participantId: number,
public readonly courseId: number,
public readonly assessmentParticipantId: number,
) {}
}
/**
* Event emitted when E-Learning is completed
*/
export class ELearningCompletedEvent {
constructor(
public readonly learningGroupParticipantId: number,
public readonly participantId: number,
public readonly courseId: number,
) {}
}
/**
* Event emitted when Knowledge Review Quiz is completed
*/
export class KnowledgeReviewCompletedEvent {
constructor(
public readonly learningGroupParticipantId: number,
public readonly participantId: number,
public readonly courseId: number,
public readonly knowledgeReviewParticipantId: number,
) {}
}
/**
* Event emitted when POST BAT assessment is completed
*/
export class PostBatCompletedEvent {
constructor(
public readonly learningGroupParticipantId: number,
public readonly participantId: number,
public readonly courseId: number,
public readonly assessmentParticipantId: number,
) {}
}
/**
* Event emitted when entire course is completed (all stages done)
*/
export class CourseCompletedEvent {
constructor(
public readonly learningGroupParticipantId: number,
public readonly participantId: number,
public readonly courseId: number,
) {}
}