@insignia-education/api-sdk-js 0.15.74 → 0.15.75

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insignia-education/api-sdk-js",
3
- "version": "0.15.74",
3
+ "version": "0.15.75",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -62,6 +62,12 @@ export default class Teacher {
62
62
  courseDateCorrectableQuizzes: (courseDateId) => this.#client.get(`${base}/course-dates/${courseDateId}/quizzes/correctable`),
63
63
  /** Ungraded quiz submissions grouped by course, for every course this teacher teaches. */
64
64
  ungradedQuizzes: () => this.#client.get(`${base}/quizzes/ungraded`),
65
+ /** Ungraded quiz submissions for one course (any student, not just one CourseDate's) — for courses with no cohort scheduling, e.g. placement exams. */
66
+ courseUngradedQuizzes: (courseId) => this.#client.get(`${base}/courses/${courseId}/quizzes/ungraded`),
67
+ /** Already-graded quiz submissions for one course, optionally narrowed to one quiz. */
68
+ courseGradedQuizzes: (courseId, quizId = null) => this.#client.get(`${base}/courses/${courseId}/quizzes/graded`, quizId ? { quiz_id: quizId } : {}),
69
+ /** Distinct { id, title } quizzes needing correction under this course — for the graded-tab quiz filter. */
70
+ courseCorrectableQuizzes: (courseId) => this.#client.get(`${base}/courses/${courseId}/quizzes/correctable`),
65
71
  /** Full attempt detail (all score fields, answers, quiz.questions.answers eager-loaded) for one of this teacher's own students. */
66
72
  quizDetail: (id) => this.#client.get(`${base}/quizzes/${id}`),
67
73
  /** Grade (or partially grade) an attempt: any field omitted keeps its current value, so open/audio/session can be saved independently of finalizing (teacher_graded_at). */