@insignia-education/api-sdk-js 0.15.29 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insignia-education/api-sdk-js",
3
- "version": "0.15.29",
3
+ "version": "0.15.31",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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
 
@@ -22,6 +22,9 @@ export default class Forums {
22
22
  edit: (id, data) => this.#client.patch(`${base}/${id}`, data),
23
23
  delete: (id) => this.#client.del(`${base}/${id}`),
24
24
  approve: (id) => this.#client.post(`${base}/${id}/approve`),
25
+ reject: (id) => this.#client.post(`${base}/${id}/reject`),
26
+ like: (id) => this.#client.post(`${base}/${id}/like`),
27
+ dislike: (id) => this.#client.post(`${base}/${id}/dislike`),
25
28
  };
26
29
  }
27
30
  }