seafile-js 0.2.210 → 0.2.212
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 +17 -0
- package/package.json +1 -1
package/lib/seafile-api.js
CHANGED
|
@@ -1597,6 +1597,14 @@ var SeafileAPI = /*#__PURE__*/function () {
|
|
|
1597
1597
|
value: function deleteFileExtendedProperties(repoID, path) {
|
|
1598
1598
|
var url = this.server + '/api/v2.1/repos/' + repoID + '/extended-properties/?path=' + path;
|
|
1599
1599
|
return this.req["delete"](url);
|
|
1600
|
+
}
|
|
1601
|
+
}, {
|
|
1602
|
+
key: "applyFolderExtendedProperties",
|
|
1603
|
+
value: function applyFolderExtendedProperties(repoID, path) {
|
|
1604
|
+
var url = this.server + '/api/v2.1/repos/' + repoID + '/apply-folder-extended-properties/';
|
|
1605
|
+
var form = new FormData();
|
|
1606
|
+
form.append('path', path);
|
|
1607
|
+
return this.req.post(url, form);
|
|
1600
1608
|
} // file commit api
|
|
1601
1609
|
|
|
1602
1610
|
}, {
|
|
@@ -1776,6 +1784,15 @@ var SeafileAPI = /*#__PURE__*/function () {
|
|
|
1776
1784
|
form.append('color', color);
|
|
1777
1785
|
return this._sendPostRequest(url, form);
|
|
1778
1786
|
}
|
|
1787
|
+
}, {
|
|
1788
|
+
key: "createRepoTags",
|
|
1789
|
+
value: function createRepoTags(repoID, tags) {
|
|
1790
|
+
var url = this.server + '/api/v2.1/repos/' + repoID + '/repo-tags/';
|
|
1791
|
+
var params = {
|
|
1792
|
+
tags: tags
|
|
1793
|
+
};
|
|
1794
|
+
return this.req.put(url, params);
|
|
1795
|
+
}
|
|
1779
1796
|
}, {
|
|
1780
1797
|
key: "deleteRepoTag",
|
|
1781
1798
|
value: function deleteRepoTag(repoID, repo_tag_id) {
|