@insignia-education/api-sdk-js 0.15.30 → 0.15.31
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/Courses.js +2 -0
package/package.json
CHANGED
package/src/api/v1/Courses.js
CHANGED
|
@@ -38,6 +38,8 @@ export default class Courses {
|
|
|
38
38
|
delete: (id) => this.#client.del(`${base}/${id}`),
|
|
39
39
|
/** Create (or reuse) a Telegram group for this date. */
|
|
40
40
|
createTelegramGroup: (id) => this.#client.post(`${base}/${id}/telegram-group`),
|
|
41
|
+
/** Re-copy this date's telegram_link/telegram_id onto every UserCourse assigned to it. */
|
|
42
|
+
syncTelegramToUsers: (id) => this.#client.post(`${base}/${id}/sync-user-courses`),
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
45
|
|