seafile-js 0.2.201 → 0.2.202
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 +19 -0
- package/package.json +1 -1
package/lib/seafile-api.js
CHANGED
|
@@ -4612,6 +4612,25 @@ var SeafileAPI = /*#__PURE__*/function () {
|
|
|
4612
4612
|
};
|
|
4613
4613
|
return this.req.post(url, data);
|
|
4614
4614
|
}
|
|
4615
|
+
}, {
|
|
4616
|
+
key: "sdocMaskAsDraft",
|
|
4617
|
+
value: function sdocMaskAsDraft(repoID, path) {
|
|
4618
|
+
var url = this.server + '/api/v2.1/seadoc/mask-as-draft/' + repoID + '/';
|
|
4619
|
+
var form = new _formData["default"]();
|
|
4620
|
+
form.append('p', path);
|
|
4621
|
+
return this._sendPostRequest(url, form);
|
|
4622
|
+
}
|
|
4623
|
+
}, {
|
|
4624
|
+
key: "sdocUnmaskAsDraft",
|
|
4625
|
+
value: function sdocUnmaskAsDraft(repoID, path) {
|
|
4626
|
+
var url = this.server + '/api/v2.1/seadoc/mask-as-draft/' + repoID + '/';
|
|
4627
|
+
var params = {
|
|
4628
|
+
'p': path
|
|
4629
|
+
};
|
|
4630
|
+
return this.req["delete"](url, {
|
|
4631
|
+
data: params
|
|
4632
|
+
});
|
|
4633
|
+
}
|
|
4615
4634
|
}]);
|
|
4616
4635
|
|
|
4617
4636
|
return SeafileAPI;
|