seafile-js 0.2.230-alpha1 → 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.
- package/lib/seafile-api.js +33 -17
- package/package.json +1 -1
- package/coverage/clover.xml +0 -1764
- package/coverage/coverage-final.json +0 -2
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -116
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/seafile-api.js.html +0 -11626
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov.info +0 -3033
- package/test/config.json +0 -7
package/lib/seafile-api.js
CHANGED
|
@@ -1945,21 +1945,6 @@ var SeafileAPI = /*#__PURE__*/function () {
|
|
|
1945
1945
|
var url = this.server + '/api/v2.1/wikis/' + slug + '/';
|
|
1946
1946
|
return this.req["delete"](url);
|
|
1947
1947
|
}
|
|
1948
|
-
}, {
|
|
1949
|
-
key: "updateWikiConfig",
|
|
1950
|
-
value: function updateWikiConfig(wikiSlug, wikiConfig) {
|
|
1951
|
-
var url = this.server + '/api/v2.1/wikis/' + wikiSlug + '/';
|
|
1952
|
-
var params = {
|
|
1953
|
-
wiki_config: wikiConfig
|
|
1954
|
-
};
|
|
1955
|
-
return this.req.put(url, params);
|
|
1956
|
-
}
|
|
1957
|
-
}, {
|
|
1958
|
-
key: "getWiki",
|
|
1959
|
-
value: function getWiki(wikiSlug) {
|
|
1960
|
-
var url = this.server + '/api/v2.1/wikis/' + wikiSlug + '/';
|
|
1961
|
-
return this.req.get(url);
|
|
1962
|
-
}
|
|
1963
1948
|
|
|
1964
1949
|
//----MetaData API
|
|
1965
1950
|
}, {
|
|
@@ -2368,10 +2353,11 @@ var SeafileAPI = /*#__PURE__*/function () {
|
|
|
2368
2353
|
}
|
|
2369
2354
|
}, {
|
|
2370
2355
|
key: "orgAdminListOrgRepos",
|
|
2371
|
-
value: function orgAdminListOrgRepos(orgID, page, orderBy) {
|
|
2356
|
+
value: function orgAdminListOrgRepos(orgID, page, perPage, orderBy) {
|
|
2372
2357
|
var url = this.server + '/api/v2.1/org/' + orgID + '/admin/repos/';
|
|
2373
2358
|
var params = {
|
|
2374
|
-
page: page
|
|
2359
|
+
page: page,
|
|
2360
|
+
per_page: perPage
|
|
2375
2361
|
};
|
|
2376
2362
|
if (orderBy) {
|
|
2377
2363
|
params.order_by = orderBy;
|
|
@@ -2394,6 +2380,36 @@ var SeafileAPI = /*#__PURE__*/function () {
|
|
|
2394
2380
|
form.append('email', email);
|
|
2395
2381
|
return this.req.put(url, form);
|
|
2396
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
|
+
}
|
|
2397
2413
|
|
|
2398
2414
|
// org links
|
|
2399
2415
|
}, {
|