save search users event
Some checks failed
Publish / Publish Job (push) Failing after 2m28s

This commit is contained in:
Дмитрий
2026-04-11 08:17:43 +03:00
parent 1f830aa764
commit 3e00ffeaf4

View File

@@ -1,10 +1,30 @@
// @lendry-erp/contracts/events/search.events.ts
export enum AccountStatus {
ACTIVE = "ACTIVE",
PENDING = "PENDING",
BLOCKED = "BLOCKED",
DELETED = "DELETED",
}
export interface SearchUsersEvent {
/** * ID профиля или аккаунта (будет использоваться как _id документа в Elasticsearch)
*/
profileId: string;
/** * Базовые данные для полнотекстового поиска
*/
username: string;
fullName?: string;
email?: string;
phone?: string;
fullName?: string;
customStatusText?: string;
isPublic?: boolean;
status?: string;
/** * Метаданные для отображения на фронтенде (чтобы не ходить в базу за аватаркой)
*/
avatarUrl?: string;
/** * Метаданные для фильтрации и безопасности (RBAC)
*/
status: AccountStatus;
isPublic: boolean;
}