@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 +1 -1
- package/src/api/v1/Users.js +6 -0
package/package.json
CHANGED
package/src/api/v1/Users.js
CHANGED
|
@@ -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
|
|