@insignia-education/api-sdk-js 0.15.79 → 0.15.81

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.79",
3
+ "version": "0.15.81",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -38,6 +38,16 @@ export default class Quizzes {
38
38
  delete: (id) => client.del(`${aBase}/${id}`),
39
39
  };
40
40
  },
41
+ /** Grading-rubric criteria for one question — shown to the teacher while grading an open/audio/document/link answer. */
42
+ criteria: (questionId) => {
43
+ const cBase = `${base}/${questionId}/criteria`;
44
+ return {
45
+ get: (id = null) => id ? client.get(`${cBase}/${id}`) : client.get(cBase),
46
+ create: (data) => client.put(cBase, data),
47
+ edit: (id, data) => client.patch(`${cBase}/${id}`, data),
48
+ delete: (id) => client.del(`${cBase}/${id}`),
49
+ };
50
+ },
41
51
  };
42
52
  }
43
53
  }
@@ -212,12 +212,13 @@ export default class Users {
212
212
  /** Sales-and-above: re-run the course/individual-session access reconciliation for this user on demand. */
213
213
  syncAccess(userId) { return this.#client.post(`/users/${userId}/sync-access`); }
214
214
 
215
- /** Read-only: notifications are created by internal services, not over the API. */
215
+ /** Notifications are created by internal services, not over the API — `resend()` is the one exception (sales-and-above). */
216
216
  notifications(userId) {
217
217
  const base = `/users/${userId}/notifications`;
218
218
  const client = this.#client;
219
219
  return {
220
220
  get: () => client.get(base),
221
+ resend: (id) => client.post(`${base}/${id}/resend`),
221
222
  };
222
223
  }
223
224