@insignia-education/api-sdk-js 0.19.0 → 0.19.1
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
|
@@ -76,6 +76,12 @@ export default class Users {
|
|
|
76
76
|
fd.append('file', file);
|
|
77
77
|
return client.upload(`${base}/${courseId}/certificate/upload`, fd);
|
|
78
78
|
},
|
|
79
|
+
/**
|
|
80
|
+
* Employee-only: invalidate just this enrollment's certificate PDF on CloudFront —
|
|
81
|
+
* for when the S3 object was replaced (e.g. a legacy-certificate restore) but the
|
|
82
|
+
* CDN is still serving the old cached copy. Returns { invalidated: true }.
|
|
83
|
+
*/
|
|
84
|
+
invalidateCertificateCache: (courseId) => client.post(`${base}/${courseId}/certificate/invalidate-cache`),
|
|
79
85
|
};
|
|
80
86
|
}
|
|
81
87
|
|