mirror of
https://gitlab.com/comunic/comunicconsole
synced 2025-06-20 00:25:19 +00:00
Ready to display user information page
This commit is contained in:
@ -14,6 +14,27 @@ export interface SearchResult {
|
||||
account_image: string;
|
||||
}
|
||||
|
||||
export interface ComunicUser {
|
||||
id: number;
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
email: string;
|
||||
account_creation_time: number;
|
||||
last_activity: number;
|
||||
page_visibilty: "private" | "public" | "open";
|
||||
directory?: string;
|
||||
account_image: string;
|
||||
friend_list_public: string;
|
||||
is_email_public: boolean;
|
||||
personal_website?: string;
|
||||
public_note?: string;
|
||||
location?: string;
|
||||
block_commments: boolean;
|
||||
allow_posts_from_friends: boolean;
|
||||
allow_mails: boolean;
|
||||
lang: string;
|
||||
}
|
||||
|
||||
export class ComunicUsersHelper {
|
||||
/**
|
||||
* Search for Comunic users
|
||||
@ -30,4 +51,13 @@ export class ComunicUsersHelper {
|
||||
email: email,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Get information about a single user
|
||||
*/
|
||||
static async GetSingle(id: number): Promise<ComunicUser> {
|
||||
return await serverRequest("users/info", {
|
||||
user_id: id,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user