seafile-js 0.2.197 → 0.2.198

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.
Files changed (2) hide show
  1. package/lib/seafile-api.js +20 -0
  2. package/package.json +1 -1
@@ -462,6 +462,26 @@ var SeafileAPI = /*#__PURE__*/function () {
462
462
  return this._sendPostRequest(url, form);
463
463
  }
464
464
  }, {
465
+ key: "batchCreateMultiShareLink",
466
+ value: function batchCreateMultiShareLink(repoID, path, shareLinkNum, autoGeneratePassword, expirationTime, permissions) {
467
+ var url = this.server + '/api/v2.1/multi-share-links/batch/';
468
+ var form = new _formData["default"]();
469
+ form.append('path', path);
470
+ form.append('repo_id', repoID);
471
+ form.append('number', shareLinkNum);
472
+ form.append('auto_generate_password', autoGeneratePassword);
473
+
474
+ if (permissions) {
475
+ form.append('permissions', permissions);
476
+ }
477
+
478
+ if (expirationTime) {
479
+ form.append('expiration_time', expirationTime);
480
+ }
481
+
482
+ return this._sendPostRequest(url, form);
483
+ }
484
+ }, {
465
485
  key: "createShareLink",
466
486
  value: function createShareLink(repoID, path, password, expirationTime, permissions) {
467
487
  var url = this.server + '/api/v2.1/share-links/';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seafile-js",
3
- "version": "0.2.197",
3
+ "version": "0.2.198",
4
4
  "private": false,
5
5
  "main": "lib/seafile-api.js",
6
6
  "dependencies": {