seafile-js 0.2.230 → 0.2.232
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 +34 -3
- package/package.json +1 -1
package/lib/seafile-api.js
CHANGED
|
@@ -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
|
}, {
|
|
@@ -2461,7 +2492,7 @@ var SeafileAPI = /*#__PURE__*/function () {
|
|
|
2461
2492
|
}, {
|
|
2462
2493
|
key: "orgAdminDeleteDepartmentRepo",
|
|
2463
2494
|
value: function orgAdminDeleteDepartmentRepo(orgID, groupID, repoID) {
|
|
2464
|
-
var url = this.server + '/api/v2.1/org/' + orgID + '/admin/groups/' + groupID + '/group-owned-libraries/' + repoID;
|
|
2495
|
+
var url = this.server + '/api/v2.1/org/' + orgID + '/admin/groups/' + groupID + '/group-owned-libraries/' + repoID + '/';
|
|
2465
2496
|
return this.req["delete"](url);
|
|
2466
2497
|
}
|
|
2467
2498
|
}, {
|