seafile-js 0.2.221 → 0.2.223
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/lib/seafile-api-0.js +4684 -0
- package/lib/seafile-api.js +4 -10
- package/package.json +2 -2
package/lib/seafile-api.js
CHANGED
|
@@ -1508,12 +1508,6 @@ var SeafileAPI = /*#__PURE__*/function () {
|
|
|
1508
1508
|
var url = this.server + '/api2/' + 'repos/' + repoID + '/file' + '/revision/?p=' + encodeURIComponent(filePath) + '&commit_id=' + commitID;
|
|
1509
1509
|
return this.req.get(url);
|
|
1510
1510
|
}
|
|
1511
|
-
}, {
|
|
1512
|
-
key: "getNextFileRevision",
|
|
1513
|
-
value: function getNextFileRevision(repoID, currentID, currentFilePath) {
|
|
1514
|
-
var url = this.server + '/api2/' + 'repos/' + repoID + '/file' + '/next-revision/' + currentID + '/?p=' + encodeURIComponent(currentFilePath);
|
|
1515
|
-
return this.req.get(url);
|
|
1516
|
-
}
|
|
1517
1511
|
|
|
1518
1512
|
// file extended properties
|
|
1519
1513
|
}, {
|
|
@@ -2031,12 +2025,12 @@ var SeafileAPI = /*#__PURE__*/function () {
|
|
|
2031
2025
|
return this.req.get(url);
|
|
2032
2026
|
}
|
|
2033
2027
|
}, {
|
|
2034
|
-
key: "
|
|
2035
|
-
value: function
|
|
2036
|
-
var url = this.server + '/api/v2.1/ai/
|
|
2028
|
+
key: "aiSearchFiles",
|
|
2029
|
+
value: function aiSearchFiles(searchParams, cancelToken) {
|
|
2030
|
+
var url = this.server + '/api/v2.1/ai/search/';
|
|
2037
2031
|
var form = new FormData();
|
|
2038
2032
|
form.append('query', searchParams.q);
|
|
2039
|
-
form.append('
|
|
2033
|
+
form.append('search_repo', searchParams.search_repo);
|
|
2040
2034
|
return this.req.post(url, form, {
|
|
2041
2035
|
cancelToken: cancelToken
|
|
2042
2036
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "seafile-js",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.223",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "lib/seafile-api.js",
|
|
6
6
|
"dependencies": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"build": "node_modules/.bin/babel src --out-dir lib",
|
|
13
13
|
"prepublishOnly": "npm run build"
|
|
14
14
|
},
|
|
15
|
-
"jest": {},
|
|
15
|
+
"jest": { },
|
|
16
16
|
"author": "Seafile",
|
|
17
17
|
"license": "ISC",
|
|
18
18
|
"devDependencies": {
|