@insignia-education/api-sdk-js 0.15.121 → 0.15.122

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.121",
3
+ "version": "0.15.122",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -55,6 +55,12 @@ export default class Users {
55
55
  * reloaded UserCourse (with certificate_url set), same shape as rebuildInvoice().
56
56
  */
57
57
  rebuildCertificate: (courseId) => client.post(`${base}/${courseId}/certificate/rebuild`),
58
+ /**
59
+ * Employee-only: point the certificate at a file already picked from the general
60
+ * File Manager (MediaPickerModal), instead of an auto-rendered PDF. Pass url: null
61
+ * to clear the override. Returns the reloaded UserCourse, same shape as rebuildCertificate().
62
+ */
63
+ setCustomCertificate: (courseId, url) => client.post(`${base}/${courseId}/certificate/custom`, { url }),
58
64
  };
59
65
  }
60
66