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.
Files changed (2) hide show
  1. package/lib/seafile-api.js +19 -0
  2. package/package.json +1 -1
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seafile-js",
3
- "version": "0.2.201",
3
+ "version": "0.2.202",
4
4
  "private": false,
5
5
  "main": "lib/seafile-api.js",
6
6
  "dependencies": {