2 Commits

Author SHA1 Message Date
Дмитрий
bf518104e4 fix: rename change data request id -> user_id
All checks were successful
Publish / Publish Job (push) Successful in 2m42s
2026-04-04 18:41:11 +03:00
Дмитрий
2eaed0a1c5 fix: rename change data request id -> user_id 2026-04-04 18:40:59 +03:00
2 changed files with 19 additions and 1 deletions

View File

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

View File

@@ -7,6 +7,7 @@ option go_package = "git.lendry.ru/lendry-erp/proto.git/go;pb";
service AccountService {
rpc GetAccount(GetAccountRequest) returns (GetAccountResponse);
rpc ChangePassword (ChangePasswordRequest) returns (ChangePasswordResponse);
rpc ChangeData(ChangeDataRequest) returns (ChangeDataResponse);
rpc SetPin (SetPinRequest) returns (SetPinResponse);
rpc UnlockPin (UnlockPinRequest) returns (UnlockPinResponse);
rpc GetPinStatus (GetPinStatusRequest) returns (GetPinStatusResponse);
@@ -51,6 +52,23 @@ message ChangePasswordResponse {
string message = 2;
}
message ChangeDataRequest {
string user_id = 1;
string session_id = 2;
optional string email = 3;
optional string phone = 4;
optional string full_name = 5;
optional string avatar_url = 6;
optional string custom_status_text = 7;
optional string custom_status_emoji = 8;
optional string timezone = 9;
optional string language = 10;
}
message ChangeDataResponse {
bool success = 1;
string message = 2;
}
message SetPinRequest {
string user_id = 1;