UNPKG

1.65 kBJavaScriptView Raw
1import { _Folder, } from "../folders/types.js";
2import { SharingRole, } from "./types.js";
3_Folder.prototype.shareWith = async function (loginNames, role = SharingRole.View, requireSignin = false, shareEverything = false, emailData) {
4 const shareable = await this.getShareable();
5 return shareable.shareWith(loginNames, role, requireSignin, shareEverything, emailData);
6};
7_Folder.prototype.getShareLink = async function (kind, expiration = null) {
8 const shareable = await this.getShareable();
9 return shareable.getShareLink(kind, expiration);
10};
11_Folder.prototype.checkSharingPermissions = async function (recipients) {
12 const shareable = await this.getShareable();
13 return shareable.checkSharingPermissions(recipients);
14};
15_Folder.prototype.getSharingInformation = async function (request, expands) {
16 const shareable = await this.getShareable();
17 return shareable.getSharingInformation(request, expands);
18};
19_Folder.prototype.getObjectSharingSettings = async function (useSimplifiedRoles = true) {
20 const shareable = await this.getShareable();
21 return shareable.getObjectSharingSettings(useSimplifiedRoles);
22};
23_Folder.prototype.unshare = async function () {
24 const shareable = await this.getShareable();
25 return shareable.unshare();
26};
27_Folder.prototype.deleteSharingLinkByKind = async function (kind) {
28 const shareable = await this.getShareable();
29 return shareable.deleteSharingLinkByKind(kind);
30};
31_Folder.prototype.unshareLink = async function (kind, shareId) {
32 const shareable = await this.getShareable();
33 return shareable.unshareLink(kind, shareId);
34};
35//# sourceMappingURL=folder.js.map
\No newline at end of file