@insignia-education/api-sdk-js 0.25.11 → 0.25.12
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/Employee.js +2 -0
package/package.json
CHANGED
package/src/api/v1/Employee.js
CHANGED
|
@@ -20,6 +20,8 @@ export default class Employee {
|
|
|
20
20
|
courseDateSessions: (courseDateId) => this.#client.get(`${base}/course-dates/${courseDateId}/sessions`),
|
|
21
21
|
/** Ranked roster ({id, name, email, rank}) of any course_date. */
|
|
22
22
|
courseDateStudents: (courseDateId) => this.#client.get(`${base}/course-dates/${courseDateId}/students`),
|
|
23
|
+
/** One enrolled student's quiz attempts in this course_date's course (any teacher's date) — same shape as Teacher.dashboard().courseDateStudentQuizzes(). Grade them with Users.quizzes(studentId).detail()/grade(). Not enrolled → 403. */
|
|
24
|
+
courseDateStudentQuizzes: (courseDateId, studentId) => this.#client.get(`${base}/course-dates/${courseDateId}/students/${studentId}/quizzes`),
|
|
23
25
|
/** Save the ranking of one course_date's students: `studentIds` in order, first = rank 1. Returns the re-ranked roster. Ids not enrolled → 422. */
|
|
24
26
|
rankCourseDateStudents: (courseDateId, studentIds) => this.#client.put(`${base}/course-dates/${courseDateId}/students/ranking`, { student_ids: studentIds }),
|
|
25
27
|
/** Mark a student's attendance on any teacher's session. */
|