@insignia-education/api-sdk-js 0.15.106 → 0.15.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api/v1/Teacher.js +2 -0
package/package.json
CHANGED
package/src/api/v1/Teacher.js
CHANGED
|
@@ -70,6 +70,8 @@ export default class Teacher {
|
|
|
70
70
|
courseGradedQuizzes: (courseId, quizId = null) => this.#client.get(`${base}/courses/${courseId}/quizzes/graded`, quizId ? { quiz_id: quizId } : {}),
|
|
71
71
|
/** Quizzes needing correction under this course, each with `lesson.level` eager-loaded — feeds both the graded-tab quiz filter and the pending-tab's level/lesson picker. */
|
|
72
72
|
courseCorrectableQuizzes: (courseId) => this.#client.get(`${base}/courses/${courseId}/quizzes/correctable`),
|
|
73
|
+
/** Attempts in this course matching a student's name/email (min 2 chars), across every lesson's quiz — unlike courseUngradedQuizzes/courseGradedQuizzes, not scoped to one quiz_id. `graded` selects fully-graded vs not-yet-fully-graded attempts. */
|
|
74
|
+
courseSearchQuizzes: (courseId, q, graded = false) => this.#client.get(`${base}/courses/${courseId}/quizzes/search`, { q, graded: graded ? 1 : 0 }),
|
|
73
75
|
/** Full attempt detail (all score fields, answers, quiz.questions.answers eager-loaded) for one of this teacher's own students. */
|
|
74
76
|
quizDetail: (id) => this.#client.get(`${base}/quizzes/${id}`),
|
|
75
77
|
/**
|