@insignia-education/api-sdk-js 0.15.117 → 0.15.119
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/Admin.js +5 -0
- package/src/api/v1/Teacher.js +1 -1
package/package.json
CHANGED
package/src/api/v1/Admin.js
CHANGED
|
@@ -69,6 +69,11 @@ export default class Admin {
|
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
/** Direct link to a repo's CI-generated test-coverage HTML report ('api' | 'front' | 'api-sdk-js') — open with <a href>/<iframe src>, cookie-authenticated, not fetch. */
|
|
73
|
+
coverageUrl(repo) {
|
|
74
|
+
return `${this.#client.baseUrl}/admin/coverage/${repo}/`;
|
|
75
|
+
}
|
|
76
|
+
|
|
72
77
|
static #buildUrl(baseUrl, path, params) {
|
|
73
78
|
const qs = new URLSearchParams(
|
|
74
79
|
Object.entries(params).filter(([, v]) => v !== undefined && v !== null && v !== '')
|
package/src/api/v1/Teacher.js
CHANGED
|
@@ -50,7 +50,7 @@ export default class Teacher {
|
|
|
50
50
|
return {
|
|
51
51
|
/** Own scheduled sessions for a given date (YYYY-MM-DD), each with a `students` roster ({id, name, present}). */
|
|
52
52
|
sessions: (date) => this.#client.get(`${base}/sessions`, { date }),
|
|
53
|
-
/** Every CourseDate this teacher is assigned to. */
|
|
53
|
+
/** Every CourseDate this teacher is assigned to, each with a `students_count` (enrolled non-teacher rows). Groups nobody is enrolled in are included, with `students_count: 0`. */
|
|
54
54
|
courseDates: () => this.#client.get(`${base}/course-dates`),
|
|
55
55
|
/** All sessions for one CourseDate, each with a `students` roster ({id, name, present}). */
|
|
56
56
|
courseDateSessions: (courseDateId) => this.#client.get(`${base}/course-dates/${courseDateId}/sessions`),
|