From 943111e905f22154e4efb0504813471f4ef66630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Sat, 11 Apr 2026 10:12:40 +0300 Subject: [PATCH] feat: add sync users db for elastic search --- package.json | 2 +- proto/sso/account.proto | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 330ac85..2246099 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lendry-erp/contracts", - "version": "1.1.7", + "version": "1.1.8", "description": "Protobuf definitions and generated TypeScript types", "type": "commonjs", "main": "./dist/index.js", diff --git a/proto/sso/account.proto b/proto/sso/account.proto index de2c942..a67d48c 100644 --- a/proto/sso/account.proto +++ b/proto/sso/account.proto @@ -22,6 +22,8 @@ service AccountService { rpc UnblockUser(UnblockUserRequest) returns (UnblockUserResponse); rpc BlockIp(BlockIpRequest) returns (BlockIpResponse); rpc UnblockIp(UnblockIpRequest) returns (UnblockIpResponse); + + rpc SyncUsersToSearch (SyncUsersToSearchRequest) returns (SyncUsersToSearchResponse); } message GetAccountRequest { @@ -196,4 +198,13 @@ message UnblockIpRequest { string ip_address = 1; string admin_id = 2; } -message UnblockIpResponse { bool success = 1; string message = 2; } \ No newline at end of file +message UnblockIpResponse { bool success = 1; string message = 2; } + +message SyncUsersToSearchRequest { + // Можно оставить пустым, так как нам не нужны входные данные +} + +message SyncUsersToSearchResponse { + bool success = 1; + string message = 2; +} \ No newline at end of file