seafile-js 0.2.194 → 0.2.196

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 -6
  2. package/package.json +1 -1
@@ -485,9 +485,9 @@ var SeafileAPI = /*#__PURE__*/function () {
485
485
  return this.req["delete"](url);
486
486
  }
487
487
  }, {
488
- key: "cleanOrphanShareLinks",
489
- value: function cleanOrphanShareLinks() {
490
- var url = this.server + '/api/v2.1/share-links/clean-orphan/';
488
+ key: "cleanInvalidShareLinks",
489
+ value: function cleanInvalidShareLinks() {
490
+ var url = this.server + '/api/v2.1/share-links/clean-invalid/';
491
491
  return this.req["delete"](url);
492
492
  }
493
493
  }, {
@@ -595,9 +595,9 @@ var SeafileAPI = /*#__PURE__*/function () {
595
595
  return this.req["delete"](url);
596
596
  }
597
597
  }, {
598
- key: "cleanOrphanUploadLinks",
599
- value: function cleanOrphanUploadLinks() {
600
- var url = this.server + '/api/v2.1/upload-links/clean-orphan/';
598
+ key: "cleanInvalidUploadLinks",
599
+ value: function cleanInvalidUploadLinks() {
600
+ var url = this.server + '/api/v2.1/upload-links/clean-invalid/';
601
601
  return this.req["delete"](url);
602
602
  }
603
603
  }, {
@@ -1978,6 +1978,20 @@ var SeafileAPI = /*#__PURE__*/function () {
1978
1978
  var url = this.server + '/api/v2.1/org/admin/info/';
1979
1979
  return this.req.get(url);
1980
1980
  }
1981
+ }, {
1982
+ key: "orgAdminGetSysSettingInfo",
1983
+ value: function orgAdminGetSysSettingInfo(orgID) {
1984
+ var url = this.server + '/api/v2.1/org/' + orgID + '/admin/web-settings/';
1985
+ return this.req.get(url);
1986
+ }
1987
+ }, {
1988
+ key: "orgAdminSetSysSettingInfo",
1989
+ value: function orgAdminSetSysSettingInfo(orgID, key, value) {
1990
+ var url = this.server + '/api/v2.1/org/' + orgID + '/admin/web-settings/';
1991
+ var formData = new _formData["default"]();
1992
+ formData.append(key, value);
1993
+ return this.req.put(url, formData);
1994
+ }
1981
1995
  }, {
1982
1996
  key: "orgAdminUpdateName",
1983
1997
  value: function orgAdminUpdateName(orgID, orgName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seafile-js",
3
- "version": "0.2.194",
3
+ "version": "0.2.196",
4
4
  "private": false,
5
5
  "main": "lib/seafile-api.js",
6
6
  "dependencies": {