fix: remove enum change search account status string union
All checks were successful
Publish / Publish Job (push) Successful in 2m29s

This commit is contained in:
Дмитрий
2026-04-11 10:30:47 +03:00
parent d84bf70b98
commit 6486ae9982
2 changed files with 3 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@lendry-erp/contracts", "name": "@lendry-erp/contracts",
"version": "1.1.8", "version": "1.1.9",
"description": "Protobuf definitions and generated TypeScript types", "description": "Protobuf definitions and generated TypeScript types",
"type": "commonjs", "type": "commonjs",
"main": "./dist/index.js", "main": "./dist/index.js",

View File

@@ -1,11 +1,4 @@
// @lendry-erp/contracts/events/search.events.ts export type SearchAccountStatus = "ACTIVE" | "PENDING" | "BLOCKED" | "DELETED";
export enum AccountStatus {
ACTIVE = "ACTIVE",
PENDING = "PENDING",
BLOCKED = "BLOCKED",
DELETED = "DELETED",
}
export interface SearchUsersEvent { export interface SearchUsersEvent {
/** * ID профиля или аккаунта (будет использоваться как _id документа в Elasticsearch) /** * ID профиля или аккаунта (будет использоваться как _id документа в Elasticsearch)
@@ -25,6 +18,6 @@ export interface SearchUsersEvent {
/** * Метаданные для фильтрации и безопасности (RBAC) /** * Метаданные для фильтрации и безопасности (RBAC)
*/ */
status: AccountStatus; status: SearchAccountStatus;
isPublic: boolean; isPublic: boolean;
} }