seafile-js 0.2.182 → 0.2.184

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 +18 -2
  2. package/package.json +1 -1
@@ -317,6 +317,11 @@ var SeafileAPI = /*#__PURE__*/function () {
317
317
  }
318
318
 
319
319
  form.append('permission', permission);
320
+
321
+ if (repo.library_template) {
322
+ form.append("library_template", repo.library_template);
323
+ }
324
+
320
325
  return this._sendPostRequest(url, form);
321
326
  }
322
327
  }, {
@@ -801,6 +806,11 @@ var SeafileAPI = /*#__PURE__*/function () {
801
806
  }
802
807
 
803
808
  form.append("permission", repo.permission);
809
+
810
+ if (repo.library_template) {
811
+ form.append("library_template", repo.library_template);
812
+ }
813
+
804
814
  return this._sendPostRequest(url, form);
805
815
  }
806
816
  }, {
@@ -3013,9 +3023,15 @@ var SeafileAPI = /*#__PURE__*/function () {
3013
3023
  }
3014
3024
  }, {
3015
3025
  key: "sysAdminListDeviceErrors",
3016
- value: function sysAdminListDeviceErrors() {
3026
+ value: function sysAdminListDeviceErrors(page, per_page) {
3017
3027
  var url = this.server + '/api/v2.1/admin/device-errors/';
3018
- return this.req.get(url);
3028
+ var params = {
3029
+ page: page,
3030
+ per_page: per_page
3031
+ };
3032
+ return this.req.get(url, {
3033
+ params: params
3034
+ });
3019
3035
  }
3020
3036
  }, {
3021
3037
  key: "sysAdminClearDeviceErrors",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seafile-js",
3
- "version": "0.2.182",
3
+ "version": "0.2.184",
4
4
  "private": false,
5
5
  "main": "lib/seafile-api.js",
6
6
  "dependencies": {