@pnp/sp
Version:
pnp - provides a fluent api for working with SharePoint REST
35 lines • 1.65 kB
JavaScript
import { _Folder, } from "../folders/types.js";
import { SharingRole, } from "./types.js";
_Folder.prototype.shareWith = async function (loginNames, role = SharingRole.View, requireSignin = false, shareEverything = false, emailData) {
const shareable = await this.getShareable();
return shareable.shareWith(loginNames, role, requireSignin, shareEverything, emailData);
};
_Folder.prototype.getShareLink = async function (kind, expiration = null) {
const shareable = await this.getShareable();
return shareable.getShareLink(kind, expiration);
};
_Folder.prototype.checkSharingPermissions = async function (recipients) {
const shareable = await this.getShareable();
return shareable.checkSharingPermissions(recipients);
};
_Folder.prototype.getSharingInformation = async function (request, expands) {
const shareable = await this.getShareable();
return shareable.getSharingInformation(request, expands);
};
_Folder.prototype.getObjectSharingSettings = async function (useSimplifiedRoles = true) {
const shareable = await this.getShareable();
return shareable.getObjectSharingSettings(useSimplifiedRoles);
};
_Folder.prototype.unshare = async function () {
const shareable = await this.getShareable();
return shareable.unshare();
};
_Folder.prototype.deleteSharingLinkByKind = async function (kind) {
const shareable = await this.getShareable();
return shareable.deleteSharingLinkByKind(kind);
};
_Folder.prototype.unshareLink = async function (kind, shareId) {
const shareable = await this.getShareable();
return shareable.unshareLink(kind, shareId);
};
//# sourceMappingURL=folder.js.map