@insignia-education/api-sdk-js 0.15.59 → 0.15.60

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.59",
3
+ "version": "0.15.60",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -58,12 +58,14 @@ export default class Users {
58
58
  edit: (id, data) => client.patch(`${base}/${id}`, data),
59
59
  delete: (id) => client.del(`${base}/${id}`),
60
60
  /**
61
- * Upload the PDF a student attaches as their answer to a
62
- * document_upload question (formData must contain `file`). The
63
- * server derives the storage path/filename nothing else to pass.
61
+ * Upload the file a student attaches as their answer to a
62
+ * document_upload (PDF) or audio_answer (recording) question
63
+ * (formData must contain `file`)the kind is derived server-side
64
+ * from the question's own flags. The server derives the storage
65
+ * path/filename — nothing else to pass.
64
66
  */
65
- uploadAnswerDocument: (quizId, answerId, formData) =>
66
- client.upload(`${base}/${quizId}/answers/${answerId}/document`, formData),
67
+ uploadQuestionFile: (quizId, questionId, formData) =>
68
+ client.upload(`${base}/${quizId}/questions/${questionId}/file`, formData),
67
69
  };
68
70
  }
69
71