1 | import { _SPCollection, _SPInstance, IDeleteable } from "../spqueryable.js";
|
2 | import { ISiteGroups } from "../site-groups/types.js";
|
3 | import { PrincipalType } from "../types.js";
|
4 | export declare class _SiteUsers extends _SPCollection<ISiteUserInfo[]> {
|
5 | |
6 |
|
7 |
|
8 |
|
9 |
|
10 | getById(id: number): ISiteUser;
|
11 | |
12 |
|
13 |
|
14 |
|
15 |
|
16 | getByEmail(email: string): ISiteUser;
|
17 | |
18 |
|
19 |
|
20 |
|
21 |
|
22 | getByLoginName(loginName: string): ISiteUser;
|
23 | |
24 |
|
25 |
|
26 |
|
27 |
|
28 | removeById(id: number): Promise<any>;
|
29 | |
30 |
|
31 |
|
32 |
|
33 |
|
34 | removeByLoginName(loginName: string): Promise<any>;
|
35 | |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 | add(loginName: string): Promise<ISiteUser>;
|
42 | }
|
43 | export interface ISiteUsers extends _SiteUsers {
|
44 | }
|
45 | export declare const SiteUsers: import("../spqueryable.js").ISPInvokableFactory<ISiteUsers>;
|
46 |
|
47 |
|
48 |
|
49 |
|
50 | export declare class _SiteUser extends _SPInstance<ISiteUserInfo> {
|
51 | delete: (this: import("../spqueryable.js").ISPQueryable<any>) => Promise<void>;
|
52 | |
53 |
|
54 |
|
55 |
|
56 | get groups(): ISiteGroups;
|
57 | |
58 |
|
59 |
|
60 |
|
61 |
|
62 | update(props: Partial<ISiteUserInfo>): Promise<IUserUpdateResult>;
|
63 | }
|
64 | export interface ISiteUser extends _SiteUser, IDeleteable {
|
65 | }
|
66 | export declare const SiteUser: import("../spqueryable.js").ISPInvokableFactory<ISiteUser>;
|
67 | export interface ISiteUserInfo extends ISiteUserProps {
|
68 | Expiration: string;
|
69 | IsEmailAuthenticationGuestUser: boolean;
|
70 | UserId: {
|
71 | NameId: string;
|
72 | NameIdIssuer: string;
|
73 | };
|
74 | UserPrincipalName: string | null;
|
75 | }
|
76 |
|
77 |
|
78 |
|
79 |
|
80 | export interface ISiteUserProps {
|
81 | |
82 |
|
83 |
|
84 |
|
85 | Email: string;
|
86 | |
87 |
|
88 |
|
89 |
|
90 | Id: number;
|
91 | |
92 |
|
93 |
|
94 |
|
95 | IsHiddenInUI: boolean;
|
96 | |
97 |
|
98 |
|
99 |
|
100 | IsShareByEmailGuestUser: boolean;
|
101 | |
102 |
|
103 |
|
104 |
|
105 | IsSiteAdmin: boolean;
|
106 | |
107 |
|
108 |
|
109 |
|
110 | LoginName: string;
|
111 | |
112 |
|
113 |
|
114 |
|
115 | PrincipalType: number | PrincipalType;
|
116 | |
117 |
|
118 |
|
119 |
|
120 | Title: string;
|
121 | }
|
122 |
|
123 |
|
124 |
|
125 |
|
126 | export interface IUserUpdateResult {
|
127 | user: ISiteUser;
|
128 | data: any;
|
129 | }
|
130 |
|
131 |
|
132 |
|
133 |
|
134 | export interface IWebEnsureUserResult {
|
135 | data: ISiteUserProps;
|
136 | user: ISiteUser;
|
137 | }
|
138 |
|
\ | No newline at end of file |