fix: remove enum change search account status string union
All checks were successful
Publish / Publish Job (push) Successful in 2m29s
All checks were successful
Publish / Publish Job (push) Successful in 2m29s
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user