seafile-js 0.2.196 → 0.2.197

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 +22 -0
  2. package/package.json +1 -1
@@ -439,6 +439,28 @@ var SeafileAPI = /*#__PURE__*/function () {
439
439
  var url = this.server + '/api/v2.1/share-links/?repo_id=' + repoID + '&path=' + path;
440
440
  return this.req.get(url);
441
441
  }
442
+ }, {
443
+ key: "createMultiShareLink",
444
+ value: function createMultiShareLink(repoID, path, password, expirationTime, permissions) {
445
+ var url = this.server + '/api/v2.1/multi-share-links/';
446
+ var form = new _formData["default"]();
447
+ form.append('path', path);
448
+ form.append('repo_id', repoID);
449
+
450
+ if (permissions) {
451
+ form.append('permissions', permissions);
452
+ }
453
+
454
+ if (password) {
455
+ form.append('password', password);
456
+ }
457
+
458
+ if (expirationTime) {
459
+ form.append('expiration_time', expirationTime);
460
+ }
461
+
462
+ return this._sendPostRequest(url, form);
463
+ }
442
464
  }, {
443
465
  key: "createShareLink",
444
466
  value: function createShareLink(repoID, path, password, expirationTime, permissions) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seafile-js",
3
- "version": "0.2.196",
3
+ "version": "0.2.197",
4
4
  "private": false,
5
5
  "main": "lib/seafile-api.js",
6
6
  "dependencies": {