UNPKG

@pnp/sp

Version:

pnp - provides a fluent api for working with SharePoint REST

15 lines 994 B
import { addProp } from "@pnp/queryable"; import { _Item } from "../items/types.js"; import { RoleAssignments } from "./types.js"; import { SPInstance } from "../spqueryable.js"; import { getUserEffectivePermissions, getCurrentUserEffectivePermissions, breakRoleInheritance, resetRoleInheritance, userHasPermissions, currentUserHasPermissions, hasPermissions, } from "./funcs.js"; addProp(_Item, "roleAssignments", RoleAssignments); addProp(_Item, "firstUniqueAncestorSecurableObject", SPInstance); _Item.prototype.getUserEffectivePermissions = getUserEffectivePermissions; _Item.prototype.getCurrentUserEffectivePermissions = getCurrentUserEffectivePermissions; _Item.prototype.breakRoleInheritance = breakRoleInheritance; _Item.prototype.resetRoleInheritance = resetRoleInheritance; _Item.prototype.userHasPermissions = userHasPermissions; _Item.prototype.currentUserHasPermissions = currentUserHasPermissions; _Item.prototype.hasPermissions = hasPermissions; //# sourceMappingURL=item.js.map