seafile-js 0.2.231 → 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.
- package/coverage/clover.xml +1764 -0
- package/coverage/coverage-final.json +2 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +116 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/seafile-api.js.html +11626 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov.info +3033 -0
- package/lib/seafile-api.js +9 -43
- package/package.json +1 -1
- package/test/config.json +7 -0
package/lib/seafile-api.js
CHANGED
|
@@ -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) {
|
|
@@ -2492,7 +2458,7 @@ var SeafileAPI = /*#__PURE__*/function () {
|
|
|
2492
2458
|
}, {
|
|
2493
2459
|
key: "orgAdminDeleteDepartmentRepo",
|
|
2494
2460
|
value: function orgAdminDeleteDepartmentRepo(orgID, groupID, repoID) {
|
|
2495
|
-
var url = this.server + '/api/v2.1/org/' + orgID + '/admin/groups/' + groupID + '/group-owned-libraries/' + repoID;
|
|
2461
|
+
var url = this.server + '/api/v2.1/org/' + orgID + '/admin/groups/' + groupID + '/group-owned-libraries/' + repoID + '/';
|
|
2496
2462
|
return this.req["delete"](url);
|
|
2497
2463
|
}
|
|
2498
2464
|
}, {
|
package/package.json
CHANGED