seafile-js 0.2.203 → 0.2.205
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 +6 -6
- package/package.json +1 -1
package/lib/seafile-api.js
CHANGED
|
@@ -3304,17 +3304,17 @@ var SeafileAPI = /*#__PURE__*/function () {
|
|
|
3304
3304
|
return this.req.post(url, data);
|
|
3305
3305
|
}
|
|
3306
3306
|
}, {
|
|
3307
|
-
key: "
|
|
3308
|
-
value: function
|
|
3309
|
-
var url = this.server + '/api/v2.1/seadoc/
|
|
3307
|
+
key: "sdocMarkAsDraft",
|
|
3308
|
+
value: function sdocMarkAsDraft(repoID, path) {
|
|
3309
|
+
var url = this.server + '/api/v2.1/seadoc/mark-as-draft/' + repoID + '/';
|
|
3310
3310
|
var form = new _formData["default"]();
|
|
3311
3311
|
form.append('p', path);
|
|
3312
3312
|
return this._sendPostRequest(url, form);
|
|
3313
3313
|
}
|
|
3314
3314
|
}, {
|
|
3315
|
-
key: "
|
|
3316
|
-
value: function
|
|
3317
|
-
var url = this.server + '/api/v2.1/seadoc/
|
|
3315
|
+
key: "sdocUnmarkAsDraft",
|
|
3316
|
+
value: function sdocUnmarkAsDraft(repoID, path) {
|
|
3317
|
+
var url = this.server + '/api/v2.1/seadoc/mark-as-draft/' + repoID + '/';
|
|
3318
3318
|
var params = {
|
|
3319
3319
|
'p': path
|
|
3320
3320
|
};
|