@insignia-education/api-sdk-js 0.15.47 → 0.15.49

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.15.47",
3
+ "version": "0.15.49",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -18,8 +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
- /** Users with all 3 KYC files uploaded but not yet verified. */
22
- kycPending: () => this.#client.get(`${base}/kyc-pending`),
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 }),
23
24
  };
24
25
  }
25
26
  }
@@ -15,4 +15,7 @@ export default class Sales {
15
15
  mySales({ page, perPage } = {}) {
16
16
  return this.#client.get('/sales/my-sales', { page, per_page: perPage });
17
17
  }
18
+
19
+ /** Sellers and above: users with all 3 KYC files uploaded but not yet verified. */
20
+ kycPending() { return this.#client.get('/sales/kyc-pending'); }
18
21
  }