@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 +1 -1
- package/src/api/v1/Employee.js +3 -2
- package/src/api/v1/Sales.js +3 -0
package/package.json
CHANGED
package/src/api/v1/Employee.js
CHANGED
|
@@ -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
|
-
/**
|
|
22
|
-
|
|
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
|
}
|
package/src/api/v1/Sales.js
CHANGED
|
@@ -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
|
}
|