@arbiwallet/contracts 1.0.265 → 1.0.266

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/gen/user.ts CHANGED
@@ -431,6 +431,7 @@ export interface BatchGetUserIdsBySearchResponse {
431
431
  }
432
432
 
433
433
  export interface SearchUserRequest {
434
+ /** Строка поиска по полям: telegram_username, email, phone, whatsapp. */
434
435
  search: string;
435
436
  /** По умолчанию 50, максимум 50. */
436
437
  limit: number;
@@ -444,6 +445,7 @@ export interface SearchUserItem {
444
445
  email?: string | undefined;
445
446
  phone?: string | undefined;
446
447
  telegramUsername?: string | undefined;
448
+ whatsapp?: string | undefined;
447
449
  }
448
450
 
449
451
  export interface SearchUserResponse {
@@ -611,11 +613,11 @@ export interface UserServiceClient {
611
613
 
612
614
  verifyChangePhoneCode(request: VerifyChangePhoneCodeRequest): Observable<UserResponse>;
613
615
 
614
- /** Батч-поиск пользователей по строке: возвращает только id защитой от слишком широкого поиска). */
616
+ /** Батч-поиск пользователей по строке (telegram_username, email, phone, whatsapp): возвращает только id. */
615
617
 
616
618
  batchGetUserIdsBySearch(request: BatchGetUserIdsBySearchRequest): Observable<BatchGetUserIdsBySearchResponse>;
617
619
 
618
- /** Поиск пользователей по строке: возвращает до 50 совпадений с полями, по которым ведется поиск. */
620
+ /** Поиск пользователей по строке (telegram_username, email, phone, whatsapp): возвращает до 50 совпадений. */
619
621
 
620
622
  searchUser(request: SearchUserRequest): Observable<SearchUserResponse>;
621
623
 
@@ -827,7 +829,7 @@ export interface UserServiceController {
827
829
  request: VerifyChangePhoneCodeRequest,
828
830
  ): Promise<UserResponse> | Observable<UserResponse> | UserResponse;
829
831
 
830
- /** Батч-поиск пользователей по строке: возвращает только id защитой от слишком широкого поиска). */
832
+ /** Батч-поиск пользователей по строке (telegram_username, email, phone, whatsapp): возвращает только id. */
831
833
 
832
834
  batchGetUserIdsBySearch(
833
835
  request: BatchGetUserIdsBySearchRequest,
@@ -836,7 +838,7 @@ export interface UserServiceController {
836
838
  | Observable<BatchGetUserIdsBySearchResponse>
837
839
  | BatchGetUserIdsBySearchResponse;
838
840
 
839
- /** Поиск пользователей по строке: возвращает до 50 совпадений с полями, по которым ведется поиск. */
841
+ /** Поиск пользователей по строке (telegram_username, email, phone, whatsapp): возвращает до 50 совпадений. */
840
842
 
841
843
  searchUser(
842
844
  request: SearchUserRequest,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arbiwallet/contracts",
3
3
  "descriptions": "Generate and manage smart contracts for ArbiWallet",
4
- "version": "1.0.265",
4
+ "version": "1.0.266",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
package/proto/user.proto CHANGED
@@ -53,9 +53,9 @@ service UserService {
53
53
  // Смена phone: отправка SMS-кода через Twilio.
54
54
  rpc RequestChangePhoneCode (RequestChangePhoneCodeRequest) returns (ContactChangeMessageResponse);
55
55
  rpc VerifyChangePhoneCode (VerifyChangePhoneCodeRequest) returns (UserResponse);
56
- // Батч-поиск пользователей по строке: возвращает только id защитой от слишком широкого поиска).
56
+ // Батч-поиск пользователей по строке (telegram_username, email, phone, whatsapp): возвращает только id.
57
57
  rpc BatchGetUserIdsBySearch (BatchGetUserIdsBySearchRequest) returns (BatchGetUserIdsBySearchResponse);
58
- // Поиск пользователей по строке: возвращает до 50 совпадений с полями, по которым ведется поиск.
58
+ // Поиск пользователей по строке (telegram_username, email, phone, whatsapp): возвращает до 50 совпадений.
59
59
  rpc SearchUser (SearchUserRequest) returns (SearchUserResponse);
60
60
  // Прелоад выбранного пользователя по id для поиска пользователей: возвращает один элемент.
61
61
  rpc PrealoadUserForSearch (PrealoadUserForSearchRequest) returns (PrealoadUserForSearchResponse);
@@ -477,6 +477,7 @@ message BatchGetUserIdsBySearchResponse {
477
477
  }
478
478
 
479
479
  message SearchUserRequest {
480
+ // Строка поиска по полям: telegram_username, email, phone, whatsapp.
480
481
  string search = 1;
481
482
  // По умолчанию 50, максимум 50.
482
483
  int32 limit = 2;
@@ -490,6 +491,7 @@ message SearchUserItem {
490
491
  optional string email = 5;
491
492
  optional string phone = 6;
492
493
  optional string telegram_username = 7;
494
+ optional string whatsapp = 8;
493
495
  }
494
496
 
495
497
  message SearchUserResponse {