seafile-js 0.2.194 → 0.2.195

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 +14 -0
  2. package/package.json +1 -1
@@ -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.195",
4
4
  "private": false,
5
5
  "main": "lib/seafile-api.js",
6
6
  "dependencies": {