seafile-js 0.2.225 → 0.2.227

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 +12 -1
  2. package/package.json +1 -1
@@ -2070,6 +2070,17 @@ var SeafileAPI = /*#__PURE__*/function () {
2070
2070
  form.append('repo_id', repoID);
2071
2071
  return this._sendPostRequest(url, form);
2072
2072
  }
2073
+ }, {
2074
+ key: "deleteLibraryIndex",
2075
+ value: function deleteLibraryIndex(repoID) {
2076
+ var url = this.server + '/api/v2.1/ai/library-sdoc-index/';
2077
+ var params = {
2078
+ repo_id: repoID
2079
+ };
2080
+ return this.req["delete"](url, {
2081
+ data: params
2082
+ });
2083
+ }
2073
2084
  }, {
2074
2085
  key: "queryIndexTaskStatus",
2075
2086
  value: function queryIndexTaskStatus(taskId) {
@@ -2400,7 +2411,7 @@ var SeafileAPI = /*#__PURE__*/function () {
2400
2411
  }, {
2401
2412
  key: "orgAdminInviteOrgUsers",
2402
2413
  value: function orgAdminInviteOrgUsers(orgID, email) {
2403
- var url = this.server + '/api/v2.1/org/' + orgID + '/admin/invite-user/';
2414
+ var url = this.server + '/api/v2.1/org/' + orgID + '/admin/invite-users/';
2404
2415
  var form = new _formData["default"]();
2405
2416
  if (Array.isArray(email)) {
2406
2417
  email.forEach(function (item) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seafile-js",
3
- "version": "0.2.225",
3
+ "version": "0.2.227",
4
4
  "private": false,
5
5
  "main": "lib/seafile-api.js",
6
6
  "dependencies": {