seafile-js 0.2.192 → 0.2.193

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 +16 -0
  2. package/package.json +1 -1
@@ -1978,6 +1978,22 @@ 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: "orgAdminUpdateName",
1983
+ value: function orgAdminUpdateName(orgID, orgName) {
1984
+ var url = this.server + '/api/v2.1/org/admin/info/';
1985
+ var form = new _formData["default"]();
1986
+ form.append('org_name', orgName);
1987
+ return this.req.put(url, form);
1988
+ }
1989
+ }, {
1990
+ key: "orgAdminUpdateLogo",
1991
+ value: function orgAdminUpdateLogo(orgID, file) {
1992
+ var url = this.server + '/api/v2.1/org/' + orgID + '/admin/logo/';
1993
+ var form = new _formData["default"]();
1994
+ form.append('file', file);
1995
+ return this._sendPostRequest(url, form);
1996
+ }
1981
1997
  }, {
1982
1998
  key: "orgAdminUploadIdpCertificate",
1983
1999
  value: function orgAdminUploadIdpCertificate(orgID, file) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seafile-js",
3
- "version": "0.2.192",
3
+ "version": "0.2.193",
4
4
  "private": false,
5
5
  "main": "lib/seafile-api.js",
6
6
  "dependencies": {