1 | import type { DefaultElements, BasicMetaSysProps, MakeRequest } from '../common-types';
|
2 | export type UserProps = {
|
3 | |
4 |
|
5 |
|
6 | sys: BasicMetaSysProps;
|
7 | |
8 |
|
9 |
|
10 | firstName: string;
|
11 | |
12 |
|
13 |
|
14 | lastName: string;
|
15 | |
16 |
|
17 |
|
18 | avatarUrl: string;
|
19 | |
20 |
|
21 |
|
22 | email: string;
|
23 | |
24 |
|
25 |
|
26 | activated: boolean;
|
27 | |
28 |
|
29 |
|
30 | signInCount: number;
|
31 | |
32 |
|
33 |
|
34 | confirmed: boolean;
|
35 | '2faEnabled': boolean;
|
36 | cookieConsentData: string;
|
37 | };
|
38 | export interface User extends UserProps, DefaultElements<UserProps> {
|
39 | }
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | export declare function wrapUser<T = UserProps>(_makeRequest: MakeRequest, data: T): T & {
|
47 | toPlainObject(): T;
|
48 | };
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 | export declare const wrapUserCollection: <T = UserProps>(makeRequest: MakeRequest, data: import("../common-types").CollectionProp<T>) => import("../common-types").Collection<T & {
|
56 | toPlainObject(): T;
|
57 | }, T>;
|