@insignia-education/api-sdk-js 0.25.13 → 0.25.14

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.25.13",
3
+ "version": "0.25.14",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -26,4 +26,22 @@ export default class Sales {
26
26
 
27
27
  /** Course dates starting within the current calendar week (Mon–Sun). */
28
28
  coursesStartingThisWeek() { return this.#client.get('/sales/courses/starting-this-week'); }
29
+
30
+ /**
31
+ * Read-only course-date views for the Sales "Course dates" tab — same payloads as the matching
32
+ * Employee.dashboard() methods, minus every write action (ranking, attendance, grading, teacher changes).
33
+ */
34
+ courseDates() {
35
+ const base = '/sales/course-dates';
36
+ return {
37
+ /** All sessions of a course date, each with its student roster ({id, name, email, username, present}). */
38
+ sessions: (courseDateId) => this.#client.get(`${base}/${courseDateId}/sessions`),
39
+ /** Ranked roster ({id, name, email, username, rank}). */
40
+ students: (courseDateId) => this.#client.get(`${base}/${courseDateId}/students`),
41
+ /** Per-student progress keyed by student id (quiz_progress, level_exams, next_course). */
42
+ studentOverviews: (courseDateId) => this.#client.get(`${base}/${courseDateId}/students/overview`),
43
+ /** One enrolled student's quiz attempts in the course date's course. */
44
+ studentQuizzes: (courseDateId, studentId) => this.#client.get(`${base}/${courseDateId}/students/${studentId}/quizzes`),
45
+ };
46
+ }
29
47
  }