UNPKG

1.37 kBTypeScriptView Raw
1import { PermissionScopes } from '../extensibility';
2import { SharePoint } from "./ISharePoint";
3export declare module Security {
4 interface IPermissionRoleDefinition {
5 name?: string;
6 scope?: PermissionScopes;
7 extensionPackageId?: string;
8 label?: string;
9 useDefaultUserText?: string;
10 description?: string;
11 }
12 interface IPermissionRoleGroup {
13 name: string;
14 children: Array<IPermissionRole>;
15 }
16 interface IPermissionRole {
17 name?: string;
18 url?: string;
19 scope?: PermissionScopes;
20 extensionPackageId?: string;
21 users?: Array<SharePoint.IPeoplePickerPrincipal>;
22 defaultUsers?: Array<SharePoint.IPeoplePickerPrincipal>;
23 isUseDefaultUsers?: boolean;
24 definition?: IPermissionRoleDefinition;
25 }
26 interface IListItemPermission {
27 canViewListItem?: boolean;
28 canEditListItem?: boolean;
29 }
30 interface IGroupPermission {
31 canCurrentUserViewMembership?: boolean;
32 canCurrentUserManageGroup?: boolean;
33 canCurrentUserEditMembership?: boolean;
34 groupNotExist?: boolean;
35 }
36 interface IWebAssociatedGroupsPermission {
37 ownerGroup?: IGroupPermission;
38 memberGroup?: IGroupPermission;
39 visitorGroup?: IGroupPermission;
40 }
41}