@insignia-education/api-sdk-js 0.15.55 → 0.15.56
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
|
@@ -60,6 +60,8 @@ export default class Teacher {
|
|
|
60
60
|
ungradedQuizzes: () => this.#client.get(`${base}/quizzes/ungraded`),
|
|
61
61
|
/** Mark one student's attendance (present: true/false) on one of this teacher's own sessions. */
|
|
62
62
|
markAttendance: (sessionId, studentId, present) => this.#client.patch(`${base}/sessions/${sessionId}/attendance`, { student_id: studentId, present }),
|
|
63
|
+
/** Mark the teacher's own presence (present: true/false) on one of their own sessions. */
|
|
64
|
+
markTeacherPresent: (sessionId, present) => this.#client.patch(`${base}/sessions/${sessionId}/teacher-present`, { present }),
|
|
63
65
|
/** Attendance/substitution totals. Pass { from, to } (YYYY-MM-DD) to filter, omit for all-time. */
|
|
64
66
|
stats: ({ from, to } = {}) => this.#client.get(`${base}/stats`, { from, to }),
|
|
65
67
|
/** Pay owed for sessions taught (teacher_present = 1), per course. Pass { from, to } (YYYY-MM-DD) to filter, omit for all-time. */
|