seafile-js 0.2.198 → 0.2.199
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.js +11 -0
- package/package.json +1 -1
package/lib/seafile-api.js
CHANGED
|
@@ -3109,6 +3109,17 @@ var SeafileAPI = /*#__PURE__*/function () {
|
|
|
3109
3109
|
|
|
3110
3110
|
return this.req.post(url, params);
|
|
3111
3111
|
}
|
|
3112
|
+
}, {
|
|
3113
|
+
key: "restoreDirents",
|
|
3114
|
+
value: function restoreDirents(repoID, commentID, paths) {
|
|
3115
|
+
var url = this.server + '/api/v2.1/repos/' + repoID + '/trash/revert-dirents/';
|
|
3116
|
+
var formData = new _formData["default"]();
|
|
3117
|
+
paths.forEach(function (path) {
|
|
3118
|
+
formData.append('path', path);
|
|
3119
|
+
});
|
|
3120
|
+
formData.append('commit_id', commentID);
|
|
3121
|
+
return this._sendPostRequest(url, formData);
|
|
3122
|
+
}
|
|
3112
3123
|
}, {
|
|
3113
3124
|
key: "deleteRepoTrash",
|
|
3114
3125
|
value: function deleteRepoTrash(repoID, days) {
|