seafile-js 0.2.176 → 0.2.177
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 +9 -0
- package/package.json +1 -1
package/lib/seafile-api.js
CHANGED
|
@@ -4220,6 +4220,15 @@ var SeafileAPI = /*#__PURE__*/function () {
|
|
|
4220
4220
|
params: params
|
|
4221
4221
|
});
|
|
4222
4222
|
}
|
|
4223
|
+
}, {
|
|
4224
|
+
key: "onlyofficeConvert",
|
|
4225
|
+
value: function onlyofficeConvert(repoID, filePath) {
|
|
4226
|
+
var url = this.server + '/onlyoffice-api/convert/';
|
|
4227
|
+
var formData = new FormData();
|
|
4228
|
+
formData.append('repo_id', repoID);
|
|
4229
|
+
formData.append('file_path', filePath);
|
|
4230
|
+
return this._sendPostRequest(url, formData);
|
|
4231
|
+
}
|
|
4223
4232
|
}]);
|
|
4224
4233
|
|
|
4225
4234
|
return SeafileAPI;
|