@arbiwallet/contracts 1.0.242 → 1.0.244
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 +21 -1
- package/gen/user.ts +31 -0
- package/package.json +1 -1
- package/proto/exchange_core.proto +21 -1
- package/proto/user.proto +22 -0
package/gen/exchange_core.ts
CHANGED
|
@@ -66,7 +66,7 @@ export interface CreateExchangeDealResponse {
|
|
|
66
66
|
|
|
67
67
|
export interface GetExchangeDealsRequest {
|
|
68
68
|
authManagerContext: AuthManagerContext | undefined;
|
|
69
|
-
filter:
|
|
69
|
+
filter: ExchangeDealsFiltersRequest | undefined;
|
|
70
70
|
page?: number | undefined;
|
|
71
71
|
pageSize?: number | undefined;
|
|
72
72
|
}
|
|
@@ -259,6 +259,26 @@ export interface ExchangeCalculationsFiltersRequest {
|
|
|
259
259
|
search?: string | undefined;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
+
export interface ExchangeDealsFiltersRequest {
|
|
263
|
+
customers?: string | undefined;
|
|
264
|
+
managers?: string | undefined;
|
|
265
|
+
inputCurrency?: string | undefined;
|
|
266
|
+
outputCurrency?: string | undefined;
|
|
267
|
+
status?: string | undefined;
|
|
268
|
+
startDate?: string | undefined;
|
|
269
|
+
endDate?: string | undefined;
|
|
270
|
+
source?: string | undefined;
|
|
271
|
+
referrer?: string | undefined;
|
|
272
|
+
isPartner?: boolean | undefined;
|
|
273
|
+
oneCurrency?: boolean | undefined;
|
|
274
|
+
includeInTotalCalculation?: boolean | undefined;
|
|
275
|
+
amountMin?: number | undefined;
|
|
276
|
+
amountMax?: number | undefined;
|
|
277
|
+
search?: string | undefined;
|
|
278
|
+
sort?: string | undefined;
|
|
279
|
+
office?: string | undefined;
|
|
280
|
+
}
|
|
281
|
+
|
|
262
282
|
export interface CreateExchangePaymentRequest {
|
|
263
283
|
authManagerContext: AuthManagerContext | undefined;
|
|
264
284
|
calculationId?: string | undefined;
|
package/gen/user.ts
CHANGED
|
@@ -430,6 +430,26 @@ export interface BatchGetUserIdsBySearchResponse {
|
|
|
430
430
|
totalMatches: number;
|
|
431
431
|
}
|
|
432
432
|
|
|
433
|
+
export interface SearchUserRequest {
|
|
434
|
+
search: string;
|
|
435
|
+
/** По умолчанию 50, максимум 50. */
|
|
436
|
+
limit: number;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
export interface SearchUserItem {
|
|
440
|
+
id: number;
|
|
441
|
+
uid: number;
|
|
442
|
+
firstName?: string | undefined;
|
|
443
|
+
lastName?: string | undefined;
|
|
444
|
+
email?: string | undefined;
|
|
445
|
+
phone?: string | undefined;
|
|
446
|
+
telegramUsername?: string | undefined;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
export interface SearchUserResponse {
|
|
450
|
+
items: SearchUserItem[];
|
|
451
|
+
}
|
|
452
|
+
|
|
433
453
|
export interface BatchGetUsersByIdsRequest {
|
|
434
454
|
userIds: number[];
|
|
435
455
|
}
|
|
@@ -587,6 +607,10 @@ export interface UserServiceClient {
|
|
|
587
607
|
|
|
588
608
|
batchGetUserIdsBySearch(request: BatchGetUserIdsBySearchRequest): Observable<BatchGetUserIdsBySearchResponse>;
|
|
589
609
|
|
|
610
|
+
/** Поиск пользователей по строке: возвращает до 50 совпадений с полями, по которым ведется поиск. */
|
|
611
|
+
|
|
612
|
+
searchUser(request: SearchUserRequest): Observable<SearchUserResponse>;
|
|
613
|
+
|
|
590
614
|
/** Батч-получение публичных данных пользователей по списку id (для enrichment в других сервисах). */
|
|
591
615
|
|
|
592
616
|
batchGetUsersByIds(request: BatchGetUsersByIdsRequest): Observable<BatchGetUsersByIdsResponse>;
|
|
@@ -800,6 +824,12 @@ export interface UserServiceController {
|
|
|
800
824
|
| Observable<BatchGetUserIdsBySearchResponse>
|
|
801
825
|
| BatchGetUserIdsBySearchResponse;
|
|
802
826
|
|
|
827
|
+
/** Поиск пользователей по строке: возвращает до 50 совпадений с полями, по которым ведется поиск. */
|
|
828
|
+
|
|
829
|
+
searchUser(
|
|
830
|
+
request: SearchUserRequest,
|
|
831
|
+
): Promise<SearchUserResponse> | Observable<SearchUserResponse> | SearchUserResponse;
|
|
832
|
+
|
|
803
833
|
/** Батч-получение публичных данных пользователей по списку id (для enrichment в других сервисах). */
|
|
804
834
|
|
|
805
835
|
batchGetUsersByIds(
|
|
@@ -842,6 +872,7 @@ export function UserServiceControllerMethods() {
|
|
|
842
872
|
"requestChangePhoneCode",
|
|
843
873
|
"verifyChangePhoneCode",
|
|
844
874
|
"batchGetUserIdsBySearch",
|
|
875
|
+
"searchUser",
|
|
845
876
|
"batchGetUsersByIds",
|
|
846
877
|
];
|
|
847
878
|
for (const method of grpcMethods) {
|
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.244",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
|
@@ -93,7 +93,7 @@ message CreateExchangeDealResponse {
|
|
|
93
93
|
|
|
94
94
|
message GetExchangeDealsRequest {
|
|
95
95
|
AuthManagerContext auth_manager_context = 1;
|
|
96
|
-
|
|
96
|
+
ExchangeDealsFiltersRequest filter = 2;
|
|
97
97
|
optional int32 page = 3;
|
|
98
98
|
optional int32 page_size = 4;
|
|
99
99
|
}
|
|
@@ -285,6 +285,26 @@ message ExchangeCalculationsFiltersRequest {
|
|
|
285
285
|
optional string search = 8;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
+
message ExchangeDealsFiltersRequest {
|
|
289
|
+
optional string customers = 1;
|
|
290
|
+
optional string managers = 2;
|
|
291
|
+
optional string input_currency = 3;
|
|
292
|
+
optional string output_currency = 4;
|
|
293
|
+
optional string status = 5;
|
|
294
|
+
optional string start_date = 6;
|
|
295
|
+
optional string end_date = 7;
|
|
296
|
+
optional string source = 8;
|
|
297
|
+
optional string referrer = 9;
|
|
298
|
+
optional bool is_partner = 10;
|
|
299
|
+
optional bool one_currency = 11;
|
|
300
|
+
optional bool include_in_total_calculation = 12;
|
|
301
|
+
optional double amount_min = 13;
|
|
302
|
+
optional double amount_max = 14;
|
|
303
|
+
optional string search = 15;
|
|
304
|
+
optional string sort = 16;
|
|
305
|
+
optional string office = 17;
|
|
306
|
+
}
|
|
307
|
+
|
|
288
308
|
message CreateExchangePaymentRequest {
|
|
289
309
|
AuthManagerContext auth_manager_context = 1;
|
|
290
310
|
|
package/proto/user.proto
CHANGED
|
@@ -55,6 +55,8 @@ service UserService {
|
|
|
55
55
|
rpc VerifyChangePhoneCode (VerifyChangePhoneCodeRequest) returns (UserResponse);
|
|
56
56
|
// Батч-поиск пользователей по строке: возвращает только id (с защитой от слишком широкого поиска).
|
|
57
57
|
rpc BatchGetUserIdsBySearch (BatchGetUserIdsBySearchRequest) returns (BatchGetUserIdsBySearchResponse);
|
|
58
|
+
// Поиск пользователей по строке: возвращает до 50 совпадений с полями, по которым ведется поиск.
|
|
59
|
+
rpc SearchUser (SearchUserRequest) returns (SearchUserResponse);
|
|
58
60
|
// Батч-получение публичных данных пользователей по списку id (для enrichment в других сервисах).
|
|
59
61
|
rpc BatchGetUsersByIds (BatchGetUsersByIdsRequest) returns (BatchGetUsersByIdsResponse);
|
|
60
62
|
}
|
|
@@ -472,6 +474,26 @@ message BatchGetUserIdsBySearchResponse {
|
|
|
472
474
|
int32 total_matches = 3;
|
|
473
475
|
}
|
|
474
476
|
|
|
477
|
+
message SearchUserRequest {
|
|
478
|
+
string search = 1;
|
|
479
|
+
// По умолчанию 50, максимум 50.
|
|
480
|
+
int32 limit = 2;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
message SearchUserItem {
|
|
484
|
+
int32 id = 1;
|
|
485
|
+
int32 uid = 2;
|
|
486
|
+
optional string first_name = 3;
|
|
487
|
+
optional string last_name = 4;
|
|
488
|
+
optional string email = 5;
|
|
489
|
+
optional string phone = 6;
|
|
490
|
+
optional string telegram_username = 7;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
message SearchUserResponse {
|
|
494
|
+
repeated SearchUserItem items = 1;
|
|
495
|
+
}
|
|
496
|
+
|
|
475
497
|
message BatchGetUsersByIdsRequest {
|
|
476
498
|
repeated int32 user_ids = 1;
|
|
477
499
|
}
|