seafile-js 0.2.220 → 0.2.221
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 +14 -0
- package/package.json +1 -1
package/lib/seafile-api.js
CHANGED
|
@@ -2393,6 +2393,20 @@ var SeafileAPI = /*#__PURE__*/function () {
|
|
|
2393
2393
|
formData.append('file', file);
|
|
2394
2394
|
return this._sendPostRequest(url, formData);
|
|
2395
2395
|
}
|
|
2396
|
+
}, {
|
|
2397
|
+
key: "orgAdminInviteOrgUser",
|
|
2398
|
+
value: function orgAdminInviteOrgUser(orgID, email) {
|
|
2399
|
+
var url = this.server + '/api/v2.1/org/' + orgID + '/admin/invite-user/';
|
|
2400
|
+
var form = new FormData();
|
|
2401
|
+
if (Array.isArray(email)) {
|
|
2402
|
+
email.forEach(function (item) {
|
|
2403
|
+
form.append('email', item);
|
|
2404
|
+
});
|
|
2405
|
+
} else {
|
|
2406
|
+
form.append('email', email);
|
|
2407
|
+
}
|
|
2408
|
+
return this._sendPostRequest(url, form);
|
|
2409
|
+
}
|
|
2396
2410
|
}, {
|
|
2397
2411
|
key: "orgAdminSetOrgAdmin",
|
|
2398
2412
|
value: function orgAdminSetOrgAdmin(orgID, email, isStaff) {
|