@insignia-education/api-sdk-js 0.15.47 → 0.15.48
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 +3 -0
package/package.json
CHANGED
package/src/api/v1/Employee.js
CHANGED
|
@@ -18,6 +18,9 @@ export default class Employee {
|
|
|
18
18
|
/** Mark whether the assigned teacher showed up to a session. */
|
|
19
19
|
markTeacherPresent: (sessionId, present) =>
|
|
20
20
|
this.#client.patch(`${base}/sessions/${sessionId}/teacher-present`, { present }),
|
|
21
|
+
/** Reassign a single session's teacher (not the whole course_date — that's a course-config action). */
|
|
22
|
+
changeSessionTeacher: (sessionId, teacherId) =>
|
|
23
|
+
this.#client.patch(`${base}/sessions/${sessionId}/teacher`, { teacher_id: teacherId }),
|
|
21
24
|
/** Users with all 3 KYC files uploaded but not yet verified. */
|
|
22
25
|
kycPending: () => this.#client.get(`${base}/kyc-pending`),
|
|
23
26
|
};
|