@insignia-education/api-sdk-js 0.15.34 → 0.15.35

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.34",
3
+ "version": "0.15.35",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -40,8 +40,8 @@ export default class Courses {
40
40
  createTelegramGroup: (id) => this.#client.post(`${base}/${id}/telegram-group`),
41
41
  /** Re-copy this date's telegram_link/telegram_id onto every UserCourse assigned to it. */
42
42
  syncTelegramToUsers: (id) => this.#client.post(`${base}/${id}/sync-user-courses`),
43
- /** Bootstrap this date's recurring sessions (owned by its teacher) from the config set's weekly schedule. */
44
- generateSessions: (id) => this.#client.post(`${base}/${id}/generate-sessions`),
43
+ /** Reconciles this date's sessions with its current teacher/config set: creates missing ones, reassigns the teacher on existing ones, deletes untouched ones that no longer match the schedule. Safe to re-run any time the config, date range or teacher changes. */
44
+ syncSessions: (id) => this.#client.post(`${base}/${id}/sync-sessions`),
45
45
  /** Sessions already generated for this date. */
46
46
  sessions: (id) => this.#client.get(`${base}/${id}/sessions`),
47
47
  /** Create a Zoom meeting for one of this date's generated sessions. */