@arbiwallet/contracts 1.0.264 → 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/exchange_core.ts +1 -0
- package/gen/user.ts +6 -4
- package/package.json +1 -1
- package/proto/exchange_core.proto +18 -17
- package/proto/user.proto +4 -2
package/gen/exchange_core.ts
CHANGED
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
|
-
/** Батч-поиск пользователей по
|
|
616
|
+
/** Батч-поиск пользователей по строке (telegram_username, email, phone, whatsapp): возвращает только id. */
|
|
615
617
|
|
|
616
618
|
batchGetUserIdsBySearch(request: BatchGetUserIdsBySearchRequest): Observable<BatchGetUserIdsBySearchResponse>;
|
|
617
619
|
|
|
618
|
-
/** Поиск пользователей по
|
|
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
|
-
/** Батч-поиск пользователей по
|
|
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
|
-
/** Поиск пользователей по
|
|
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.
|
|
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
|
},
|
|
@@ -182,23 +182,24 @@ message GetExchangeDealsItem {
|
|
|
182
182
|
string output_currency_id = 12;
|
|
183
183
|
string output_wallet_id = 13;
|
|
184
184
|
string exchange_status_id = 14;
|
|
185
|
-
|
|
186
|
-
bool
|
|
187
|
-
|
|
188
|
-
optional string
|
|
189
|
-
optional string
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
optional
|
|
193
|
-
string
|
|
194
|
-
string
|
|
195
|
-
|
|
196
|
-
optional
|
|
197
|
-
optional double
|
|
198
|
-
optional double
|
|
199
|
-
optional double
|
|
200
|
-
|
|
201
|
-
bool
|
|
185
|
+
string exchange_status_name = 15;
|
|
186
|
+
bool status = 16;
|
|
187
|
+
bool payed = 17;
|
|
188
|
+
optional string referrer_id = 18;
|
|
189
|
+
optional string referrer_text = 19;
|
|
190
|
+
optional string office_id = 20;
|
|
191
|
+
repeated GetExchangeDealsReceipt receipts = 21;
|
|
192
|
+
optional GetExchangeDealsManager manager = 22;
|
|
193
|
+
optional string payment_id = 23;
|
|
194
|
+
string payer_name = 24;
|
|
195
|
+
string payer_data = 25;
|
|
196
|
+
optional string calculation_source_id = 26;
|
|
197
|
+
optional double exchange_rate_1_iter = 27;
|
|
198
|
+
optional double exchange_rate_2_iter = 28;
|
|
199
|
+
optional double usdt_rate = 29;
|
|
200
|
+
optional double output_amount_in_usdt = 30;
|
|
201
|
+
bool include_in_total_calculation = 31;
|
|
202
|
+
bool one_currency_exchange = 32;
|
|
202
203
|
}
|
|
203
204
|
|
|
204
205
|
message GetExchangeDealsResponse {
|
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
|
-
// Батч-поиск пользователей по
|
|
56
|
+
// Батч-поиск пользователей по строке (telegram_username, email, phone, whatsapp): возвращает только id.
|
|
57
57
|
rpc BatchGetUserIdsBySearch (BatchGetUserIdsBySearchRequest) returns (BatchGetUserIdsBySearchResponse);
|
|
58
|
-
// Поиск пользователей по
|
|
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 {
|