UNPKG

1.05 kBJavaScriptView Raw
1import { addProp } from "@pnp/queryable";
2import { _Web } from "../webs/types.js";
3import { RoleDefinitions, RoleAssignments } from "./types.js";
4import { SPInstance } from "../spqueryable.js";
5import { getUserEffectivePermissions, getCurrentUserEffectivePermissions, breakRoleInheritance, resetRoleInheritance, userHasPermissions, currentUserHasPermissions, hasPermissions, } from "./funcs.js";
6addProp(_Web, "roleDefinitions", RoleDefinitions);
7addProp(_Web, "roleAssignments", RoleAssignments);
8addProp(_Web, "firstUniqueAncestorSecurableObject", SPInstance);
9_Web.prototype.getUserEffectivePermissions = getUserEffectivePermissions;
10_Web.prototype.getCurrentUserEffectivePermissions = getCurrentUserEffectivePermissions;
11_Web.prototype.breakRoleInheritance = breakRoleInheritance;
12_Web.prototype.resetRoleInheritance = resetRoleInheritance;
13_Web.prototype.userHasPermissions = userHasPermissions;
14_Web.prototype.currentUserHasPermissions = currentUserHasPermissions;
15_Web.prototype.hasPermissions = hasPermissions;
16//# sourceMappingURL=web.js.map
\No newline at end of file