@insignia-education/api-sdk-js 0.19.1 → 0.19.2

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.19.1",
3
+ "version": "0.19.2",
4
4
  "description": "JavaScript SDK for the Insignia Education API",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -27,4 +27,8 @@ export default class Files {
27
27
  * Returns a pending FileZipRequest immediately; the zip is built asynchronously and the
28
28
  * requester is notified when it's ready. */
29
29
  zip(body) { return this.#client.post('/files/zip', body); }
30
+
31
+ /** Invalidate CloudFront's cache for every object under a directory (recursive).
32
+ * body: { organization_id, directory }. Returns { directory, invalidated: true }. */
33
+ invalidateCache(body) { return this.#client.post('/files/invalidate-cache', body); }
30
34
  }