1 | import { _SPCollection, _SPInstance } from "../spqueryable.js";
|
2 | import { ISiteUsers } from "../site-users/types.js";
|
3 | export declare class _SiteGroups extends _SPCollection<ISiteGroupInfo[]> {
|
4 | |
5 |
|
6 |
|
7 |
|
8 |
|
9 | getById(id: number): ISiteGroup;
|
10 | |
11 |
|
12 |
|
13 |
|
14 |
|
15 | add(properties: Partial<ISiteGroupInfo>): Promise<IGroupAddResult>;
|
16 | |
17 |
|
18 |
|
19 |
|
20 |
|
21 | getByName(groupName: string): ISiteGroup;
|
22 | |
23 |
|
24 |
|
25 |
|
26 |
|
27 | removeById(id: number): Promise<void>;
|
28 | |
29 |
|
30 |
|
31 |
|
32 |
|
33 | removeByLoginName(loginName: string): Promise<any>;
|
34 | }
|
35 | export interface ISiteGroups extends _SiteGroups {
|
36 | }
|
37 | export declare const SiteGroups: import("../spqueryable.js").ISPInvokableFactory<ISiteGroups>;
|
38 | export declare class _SiteGroup extends _SPInstance<ISiteGroupInfo> {
|
39 | |
40 |
|
41 |
|
42 |
|
43 | get users(): ISiteUsers;
|
44 | |
45 |
|
46 |
|
47 | update(props: Partial<ISiteGroupInfo>): Promise<IGroupUpdateResult>;
|
48 | |
49 |
|
50 |
|
51 |
|
52 | setUserAsOwner(userId: number): Promise<any>;
|
53 | }
|
54 | export interface ISiteGroup extends _SiteGroup {
|
55 | }
|
56 | export declare const SiteGroup: import("../spqueryable.js").ISPInvokableFactory<ISiteGroup>;
|
57 |
|
58 |
|
59 |
|
60 |
|
61 | export interface IGroupUpdateResult {
|
62 | group: ISiteGroup;
|
63 | data: any;
|
64 | }
|
65 |
|
66 |
|
67 |
|
68 |
|
69 | export interface IGroupAddResult {
|
70 | group: ISiteGroup;
|
71 | data: any;
|
72 | }
|
73 | export interface ISiteGroupInfo {
|
74 | AllowMembersEditMembership: boolean;
|
75 | AllowRequestToJoinLeave: boolean;
|
76 | AutoAcceptRequestToJoinLeave: boolean;
|
77 | Description: string;
|
78 | Id: number;
|
79 | IsHiddenInUI: boolean;
|
80 | LoginName: string;
|
81 | OnlyAllowMembersViewMembership: boolean;
|
82 | OwnerTitle: string;
|
83 | PrincipalType: number;
|
84 | RequestToJoinLeaveEmailSetting: string | null;
|
85 | Title: string;
|
86 | }
|
87 |
|
\ | No newline at end of file |