seafile-js 0.2.232 → 0.2.233

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.
@@ -1970,48 +1970,6 @@ var SeafileAPI = /*#__PURE__*/function () {
1970
1970
  cancelToken: cancelToken
1971
1971
  });
1972
1972
  }
1973
- }, {
1974
- key: "questionAnsweringFiles",
1975
- value: function questionAnsweringFiles(searchParams, cancelToken) {
1976
- var url = this.server + '/api/v2.1/ai/question-answering-search-in-library/';
1977
- var form = new _formData["default"]();
1978
- form.append('query', searchParams.q);
1979
- form.append('repo_id', searchParams.search_repo);
1980
- return this.req.post(url, form, {
1981
- cancelToken: cancelToken
1982
- });
1983
- }
1984
- }, {
1985
- key: "queryLibraryIndexState",
1986
- value: function queryLibraryIndexState(repoID) {
1987
- var url = this.server + '/api/v2.1/ai/library-index-state/?repo_id=' + repoID;
1988
- return this.req.get(url);
1989
- }
1990
- }, {
1991
- key: "createLibraryIndex",
1992
- value: function createLibraryIndex(repoID) {
1993
- var url = this.server + '/api/v2.1/ai/library-sdoc-indexes/';
1994
- var form = new _formData["default"]();
1995
- form.append('repo_id', repoID);
1996
- return this._sendPostRequest(url, form);
1997
- }
1998
- }, {
1999
- key: "deleteLibraryIndex",
2000
- value: function deleteLibraryIndex(repoID) {
2001
- var url = this.server + '/api/v2.1/ai/library-sdoc-index/';
2002
- var params = {
2003
- repo_id: repoID
2004
- };
2005
- return this.req["delete"](url, {
2006
- data: params
2007
- });
2008
- }
2009
- }, {
2010
- key: "queryIndexTaskStatus",
2011
- value: function queryIndexTaskStatus(taskId) {
2012
- var url = this.server + '/api/v2.1/ai/task-status/?task_id=' + taskId;
2013
- return this.req.get(url);
2014
- }
2015
1973
  }, {
2016
1974
  key: "orgAdminGetOrgInfo",
2017
1975
  value: function orgAdminGetOrgInfo() {
@@ -2040,6 +1998,14 @@ var SeafileAPI = /*#__PURE__*/function () {
2040
1998
  form.append('org_name', orgName);
2041
1999
  return this.req.put(url, form);
2042
2000
  }
2001
+ }, {
2002
+ key: "orgAdminSetOrgUserDefaultQuota",
2003
+ value: function orgAdminSetOrgUserDefaultQuota(orgID, quota) {
2004
+ var url = this.server + '/api/v2.1/org/admin/info/';
2005
+ var form = new _formData["default"]();
2006
+ form.append('user_default_quota', quota);
2007
+ return this.req.put(url, form);
2008
+ }
2043
2009
  }, {
2044
2010
  key: "orgAdminUpdateLogo",
2045
2011
  value: function orgAdminUpdateLogo(orgID, file) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seafile-js",
3
- "version": "0.2.232",
3
+ "version": "0.2.233",
4
4
  "private": false,
5
5
  "main": "lib/seafile-api.js",
6
6
  "dependencies": {
@@ -0,0 +1,7 @@
1
+ {
2
+ "server": "dev.seafile.com/seahub/",
3
+ "username": "anbing@1.com",
4
+ "password": "1",
5
+ "repoID": "",
6
+ "filePath": ""
7
+ }