@insignia-education/api-sdk-js 0.15.55 → 0.15.57

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.55",
3
+ "version": "0.15.57",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -58,8 +58,14 @@ export default class Teacher {
58
58
  courseDateUngradedQuizzes: (courseDateId) => this.#client.get(`${base}/course-dates/${courseDateId}/quizzes/ungraded`),
59
59
  /** Ungraded quiz submissions grouped by course, for every course this teacher teaches. */
60
60
  ungradedQuizzes: () => this.#client.get(`${base}/quizzes/ungraded`),
61
+ /** Full attempt detail (all score fields, answers, quiz.questions.answers eager-loaded) for one of this teacher's own students. */
62
+ quizDetail: (id) => this.#client.get(`${base}/quizzes/${id}`),
63
+ /** 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). */
64
+ gradeQuiz: (id, data) => this.#client.patch(`${base}/quizzes/${id}/grade`, data),
61
65
  /** Mark one student's attendance (present: true/false) on one of this teacher's own sessions. */
62
66
  markAttendance: (sessionId, studentId, present) => this.#client.patch(`${base}/sessions/${sessionId}/attendance`, { student_id: studentId, present }),
67
+ /** Mark the teacher's own presence (present: true/false) on one of their own sessions. */
68
+ markTeacherPresent: (sessionId, present) => this.#client.patch(`${base}/sessions/${sessionId}/teacher-present`, { present }),
63
69
  /** Attendance/substitution totals. Pass { from, to } (YYYY-MM-DD) to filter, omit for all-time. */
64
70
  stats: ({ from, to } = {}) => this.#client.get(`${base}/stats`, { from, to }),
65
71
  /** Pay owed for sessions taught (teacher_present = 1), per course. Pass { from, to } (YYYY-MM-DD) to filter, omit for all-time. */