seafile-js 0.2.218 → 0.2.220

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.
@@ -2041,6 +2041,17 @@ var SeafileAPI = /*#__PURE__*/function () {
2041
2041
  cancelToken: cancelToken
2042
2042
  });
2043
2043
  }
2044
+ }, {
2045
+ key: "questionAnsweringFiles",
2046
+ value: function questionAnsweringFiles(searchParams, cancelToken) {
2047
+ var url = this.server + '/api/v2.1/ai/question-answering-search-in-library/';
2048
+ var form = new FormData();
2049
+ form.append('query', searchParams.q);
2050
+ form.append('repo_id', searchParams.search_repo);
2051
+ return this.req.post(url, form, {
2052
+ cancelToken: cancelToken
2053
+ });
2054
+ }
2044
2055
  }, {
2045
2056
  key: "queryLibraryIndexState",
2046
2057
  value: function queryLibraryIndexState(repoID) {
@@ -3487,10 +3498,12 @@ var SeafileAPI = /*#__PURE__*/function () {
3487
3498
  }
3488
3499
  }, {
3489
3500
  key: "sysAdminSearchRepos",
3490
- value: function sysAdminSearchRepos(name) {
3501
+ value: function sysAdminSearchRepos(name, page, perPage) {
3491
3502
  var url = this.server + '/api/v2.1/admin/search-library/';
3492
3503
  var params = {
3493
- query: name || ''
3504
+ query: name || '',
3505
+ page: page,
3506
+ per_page: perPage
3494
3507
  };
3495
3508
  return this.req.get(url, {
3496
3509
  params: params
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seafile-js",
3
- "version": "0.2.218",
3
+ "version": "0.2.220",
4
4
  "private": false,
5
5
  "main": "lib/seafile-api.js",
6
6
  "dependencies": {
package/test/test.js CHANGED
@@ -1,4 +1,4 @@
1
- const { SeafileAPI } = require('../src/seafile-api')
1
+ const { SeafileAPI } = require('../src/seafile-api');
2
2
 
3
3
  // load config from config.json
4
4
  var fs = require("fs");