@insignia-education/api-sdk-js 0.15.41 → 0.15.42
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/Teacher.js +2 -0
package/package.json
CHANGED
package/src/api/v1/Teacher.js
CHANGED
|
@@ -54,6 +54,8 @@ export default class Teacher {
|
|
|
54
54
|
markAttendance: (sessionId, present) => this.#client.patch(`${base}/sessions/${sessionId}/attendance`, { present }),
|
|
55
55
|
/** Attendance/substitution totals. Pass { from, to } (YYYY-MM-DD) to filter, omit for all-time. */
|
|
56
56
|
stats: ({ from, to } = {}) => this.#client.get(`${base}/stats`, { from, to }),
|
|
57
|
+
/** Pay owed for sessions taught (teacher_present = 1), per course. Pass { from, to } (YYYY-MM-DD) to filter, omit for all-time. */
|
|
58
|
+
earnings: ({ from, to } = {}) => this.#client.get(`${base}/earnings`, { from, to }),
|
|
57
59
|
};
|
|
58
60
|
}
|
|
59
61
|
}
|