seafile-js 0.2.230 → 0.2.231

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 +33 -2
  2. package/package.json +1 -1
@@ -2353,10 +2353,11 @@ var SeafileAPI = /*#__PURE__*/function () {
2353
2353
  }
2354
2354
  }, {
2355
2355
  key: "orgAdminListOrgRepos",
2356
- value: function orgAdminListOrgRepos(orgID, page, orderBy) {
2356
+ value: function orgAdminListOrgRepos(orgID, page, perPage, orderBy) {
2357
2357
  var url = this.server + '/api/v2.1/org/' + orgID + '/admin/repos/';
2358
2358
  var params = {
2359
- page: page
2359
+ page: page,
2360
+ per_page: perPage
2360
2361
  };
2361
2362
  if (orderBy) {
2362
2363
  params.order_by = orderBy;
@@ -2379,6 +2380,36 @@ var SeafileAPI = /*#__PURE__*/function () {
2379
2380
  form.append('email', email);
2380
2381
  return this.req.put(url, form);
2381
2382
  }
2383
+ }, {
2384
+ key: "orgAdminListTrashRepos",
2385
+ value: function orgAdminListTrashRepos(orgID, page, perPage) {
2386
+ var url = this.server + '/api/v2.1/org/' + orgID + '/admin/trash-libraries/';
2387
+ var params = {
2388
+ page: page,
2389
+ per_page: perPage
2390
+ };
2391
+ return this.req.get(url, {
2392
+ params: params
2393
+ });
2394
+ }
2395
+ }, {
2396
+ key: "orgAdminDeleteTrashRepo",
2397
+ value: function orgAdminDeleteTrashRepo(orgID, repoID) {
2398
+ var url = this.server + '/api/v2.1/org/' + orgID + '/admin/trash-libraries/' + repoID + '/';
2399
+ return this.req["delete"](url);
2400
+ }
2401
+ }, {
2402
+ key: "orgAdminRestoreTrashRepo",
2403
+ value: function orgAdminRestoreTrashRepo(orgID, repoID) {
2404
+ var url = this.server + '/api/v2.1/org/' + orgID + '/admin/trash-libraries/' + repoID + '/';
2405
+ return this.req.put(url);
2406
+ }
2407
+ }, {
2408
+ key: "orgAdminCleanTrashRepo",
2409
+ value: function orgAdminCleanTrashRepo(orgID) {
2410
+ var url = this.server + '/api/v2.1/org/' + orgID + '/admin/trash-libraries/';
2411
+ return this.req["delete"](url);
2412
+ }
2382
2413
 
2383
2414
  // org links
2384
2415
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seafile-js",
3
- "version": "0.2.230",
3
+ "version": "0.2.231",
4
4
  "private": false,
5
5
  "main": "lib/seafile-api.js",
6
6
  "dependencies": {