@insignia-education/api-sdk-js 0.25.15 → 0.25.16

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.25.15",
3
+ "version": "0.25.16",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -40,6 +40,13 @@ export default class Users {
40
40
  };
41
41
  }
42
42
 
43
+ /**
44
+ * Direct link to the user's "constancia de estudios" PDF (a download, not a fetch: open/href this URL, same as
45
+ * payments().invoiceUrl()). Only works while the user has a course date that is current (403 otherwise) and an
46
+ * ID number on file (422 otherwise). Self or staff.
47
+ */
48
+ studyStatementUrl(userId) { return `${this.#client.baseUrl}/users/${userId}/study-statement`; }
49
+
43
50
  courses(userId) {
44
51
  const base = `/users/${userId}/courses`;
45
52
  const client = this.#client;