@insignia-education/api-sdk-js 0.15.94 → 0.15.95
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/Files.js +5 -0
package/package.json
CHANGED
package/src/api/v1/Files.js
CHANGED
|
@@ -22,4 +22,9 @@ export default class Files {
|
|
|
22
22
|
|
|
23
23
|
/** Soft-delete a file. Pass s3=true to also remove from S3. */
|
|
24
24
|
delete(id, s3 = false) { return this.#client.del(`/files/${id}${s3 ? '?s3=1' : ''}`); }
|
|
25
|
+
|
|
26
|
+
/** Queue a zip of every file under a directory (recursive). body: { organization_id, directory }.
|
|
27
|
+
* Returns a pending FileZipRequest immediately; the zip is built asynchronously and the
|
|
28
|
+
* requester is notified when it's ready. */
|
|
29
|
+
zip(body) { return this.#client.post('/files/zip', body); }
|
|
25
30
|
}
|