@arbiwallet/contracts 1.0.267 → 1.0.269
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/exchange_rates.ts +16 -1
- package/gen/ledger.ts +2 -1
- package/gen/user.ts +23 -0
- package/package.json +1 -1
- package/proto/exchange_core.proto +1 -0
- package/proto/exchange_rates.proto +16 -1
- package/proto/ledger.proto +2 -1
- package/proto/user.proto +11 -0
package/gen/exchange_core.ts
CHANGED
|
@@ -410,6 +410,7 @@ export interface GetExchangePaymentsItem {
|
|
|
410
410
|
customerName?: string | undefined;
|
|
411
411
|
managerName?: string | undefined;
|
|
412
412
|
calculationId?: string | undefined;
|
|
413
|
+
cryptoNetwork?: string | undefined;
|
|
413
414
|
}
|
|
414
415
|
|
|
415
416
|
export interface GetExchangePaymentsResponse {
|
package/gen/exchange_rates.ts
CHANGED
|
@@ -80,9 +80,24 @@ export interface UpdateCurrencySettingResponse {
|
|
|
80
80
|
export interface GetExchangeRatesRequest {
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
export interface ExchangeRate {
|
|
84
|
+
id: string;
|
|
85
|
+
pair: string;
|
|
86
|
+
firstCurrency: string;
|
|
87
|
+
secondCurrency: string;
|
|
88
|
+
exchangeRate?: number | undefined;
|
|
89
|
+
realExchangeRate?: number | undefined;
|
|
90
|
+
isNew: boolean;
|
|
91
|
+
buyPrices?: { [key: string]: any } | undefined;
|
|
92
|
+
sellPrices?: { [key: string]: any } | undefined;
|
|
93
|
+
percents?: { [key: string]: any } | undefined;
|
|
94
|
+
createdAt: string;
|
|
95
|
+
updatedAt: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
83
98
|
export interface GetExchangeRatesResponse {
|
|
84
99
|
exist: boolean;
|
|
85
|
-
|
|
100
|
+
rates: ExchangeRate[];
|
|
86
101
|
}
|
|
87
102
|
|
|
88
103
|
export interface MarketRate {
|
package/gen/ledger.ts
CHANGED
|
@@ -341,7 +341,8 @@ export interface GetTransactionFeedRequest {
|
|
|
341
341
|
| string
|
|
342
342
|
| undefined;
|
|
343
343
|
/**
|
|
344
|
-
* Фильтр
|
|
344
|
+
* Фильтр для UI: "wallet" | "card" | "withdrawal" | "deposit" | "internal_transfer".
|
|
345
|
+
* wallet — UNION transaction_feed_items + card_operation; card — только card_operation (+ reference_id = cardId).
|
|
345
346
|
* deposit включает записи reference_type deposit и deposit_hold.
|
|
346
347
|
*/
|
|
347
348
|
referenceKind?:
|
package/gen/user.ts
CHANGED
|
@@ -202,6 +202,15 @@ export interface ForwardManagerChatMessageResponse {
|
|
|
202
202
|
ok: boolean;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
+
export interface DeleteManagerChatMessageRequest {
|
|
206
|
+
messageId: string;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export interface DeleteManagerChatMessageResponse {
|
|
210
|
+
ok: boolean;
|
|
211
|
+
message?: string | undefined;
|
|
212
|
+
}
|
|
213
|
+
|
|
205
214
|
export interface PostArbiWalletChatMessageRequest {
|
|
206
215
|
walletUserId: number;
|
|
207
216
|
/** Частичное тело от клиента: text, content, reply_to, datetime (ISO UTC). */
|
|
@@ -541,6 +550,10 @@ export interface UserServiceClient {
|
|
|
541
550
|
|
|
542
551
|
forwardManagerChatMessage(request: ForwardManagerChatMessageRequest): Observable<ForwardManagerChatMessageResponse>;
|
|
543
552
|
|
|
553
|
+
/** Удаление сообщения из Monica CRM: soft-delete по message_id + Socket.IO `notification` с is_deleted. */
|
|
554
|
+
|
|
555
|
+
deleteManagerChatMessage(request: DeleteManagerChatMessageRequest): Observable<DeleteManagerChatMessageResponse>;
|
|
556
|
+
|
|
544
557
|
/** Чат AlexAI (chat-analytics): POST /api/v1/arbi-wallet/messages; CRM session только на user-service. */
|
|
545
558
|
|
|
546
559
|
postArbiWalletChatMessage(request: PostArbiWalletChatMessageRequest): Observable<PostArbiWalletChatMessageResponse>;
|
|
@@ -693,6 +706,15 @@ export interface UserServiceController {
|
|
|
693
706
|
| Observable<ForwardManagerChatMessageResponse>
|
|
694
707
|
| ForwardManagerChatMessageResponse;
|
|
695
708
|
|
|
709
|
+
/** Удаление сообщения из Monica CRM: soft-delete по message_id + Socket.IO `notification` с is_deleted. */
|
|
710
|
+
|
|
711
|
+
deleteManagerChatMessage(
|
|
712
|
+
request: DeleteManagerChatMessageRequest,
|
|
713
|
+
):
|
|
714
|
+
| Promise<DeleteManagerChatMessageResponse>
|
|
715
|
+
| Observable<DeleteManagerChatMessageResponse>
|
|
716
|
+
| DeleteManagerChatMessageResponse;
|
|
717
|
+
|
|
696
718
|
/** Чат AlexAI (chat-analytics): POST /api/v1/arbi-wallet/messages; CRM session только на user-service. */
|
|
697
719
|
|
|
698
720
|
postArbiWalletChatMessage(
|
|
@@ -871,6 +893,7 @@ export function UserServiceControllerMethods() {
|
|
|
871
893
|
"submitWalletCrmExchangeOrder",
|
|
872
894
|
"listWalletExchangeRecentPairs",
|
|
873
895
|
"forwardManagerChatMessage",
|
|
896
|
+
"deleteManagerChatMessage",
|
|
874
897
|
"postArbiWalletChatMessage",
|
|
875
898
|
"listArbiWalletChatMessages",
|
|
876
899
|
"proxyArbiWalletChatMedia",
|
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.269",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
|
|
7
7
|
},
|
|
@@ -88,9 +88,24 @@ message UpdateCurrencySettingResponse {
|
|
|
88
88
|
|
|
89
89
|
message GetExchangeRatesRequest {}
|
|
90
90
|
|
|
91
|
+
message ExchangeRate {
|
|
92
|
+
string id = 1;
|
|
93
|
+
string pair = 2;
|
|
94
|
+
string first_currency = 3;
|
|
95
|
+
string second_currency = 4;
|
|
96
|
+
optional double exchange_rate = 5;
|
|
97
|
+
optional double real_exchange_rate = 6;
|
|
98
|
+
bool is_new = 7;
|
|
99
|
+
optional google.protobuf.Struct buy_prices = 8;
|
|
100
|
+
optional google.protobuf.Struct sell_prices = 9;
|
|
101
|
+
optional google.protobuf.Struct percents = 10;
|
|
102
|
+
string created_at = 11;
|
|
103
|
+
string updated_at = 12;
|
|
104
|
+
}
|
|
105
|
+
|
|
91
106
|
message GetExchangeRatesResponse {
|
|
92
107
|
bool exist = 1;
|
|
93
|
-
|
|
108
|
+
repeated ExchangeRate rates = 2;
|
|
94
109
|
}
|
|
95
110
|
|
|
96
111
|
message MarketRate {
|
package/proto/ledger.proto
CHANGED
|
@@ -301,7 +301,8 @@ message GetTransactionFeedRequest {
|
|
|
301
301
|
optional int32 offset = 4;
|
|
302
302
|
optional string asset = 5; // Фильтр по активу, напр. USDT.
|
|
303
303
|
optional string network = 6; // Фильтр по сети, напр. TRON, BSC.
|
|
304
|
-
// Фильтр
|
|
304
|
+
// Фильтр для UI: "wallet" | "card" | "withdrawal" | "deposit" | "internal_transfer".
|
|
305
|
+
// wallet — UNION transaction_feed_items + card_operation; card — только card_operation (+ reference_id = cardId).
|
|
305
306
|
// deposit включает записи reference_type deposit и deposit_hold.
|
|
306
307
|
optional string reference_kind = 7;
|
|
307
308
|
// true: все события по выводу (RESERVED, WITHDRAWAL_STATUS, FINALIZED, …). По умолчанию — одна строка на вывод (последнее событие).
|
package/proto/user.proto
CHANGED
|
@@ -20,6 +20,8 @@ service UserService {
|
|
|
20
20
|
rpc ListWalletExchangeRecentPairs (ListWalletExchangeRecentPairsRequest) returns (ListWalletExchangeRecentPairsResponse);
|
|
21
21
|
// Сообщение менеджера клиенту: публикация в Rabbit app.notification → gateway → Socket.IO `notification`.
|
|
22
22
|
rpc ForwardManagerChatMessage (ForwardManagerChatMessageRequest) returns (ForwardManagerChatMessageResponse);
|
|
23
|
+
// Удаление сообщения из Monica CRM: soft-delete по message_id + Socket.IO `notification` с is_deleted.
|
|
24
|
+
rpc DeleteManagerChatMessage (DeleteManagerChatMessageRequest) returns (DeleteManagerChatMessageResponse);
|
|
23
25
|
// Чат AlexAI (chat-analytics): POST /api/v1/arbi-wallet/messages; CRM session только на user-service.
|
|
24
26
|
rpc PostArbiWalletChatMessage (PostArbiWalletChatMessageRequest) returns (PostArbiWalletChatMessageResponse);
|
|
25
27
|
// Чат AlexAI (chat-analytics): GET /api/v1/arbi-wallet/messages?wallet_client_id=… — список сообщений пользователя.
|
|
@@ -249,6 +251,15 @@ message ForwardManagerChatMessageResponse {
|
|
|
249
251
|
bool ok = 1;
|
|
250
252
|
}
|
|
251
253
|
|
|
254
|
+
message DeleteManagerChatMessageRequest {
|
|
255
|
+
string message_id = 1;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
message DeleteManagerChatMessageResponse {
|
|
259
|
+
bool ok = 1;
|
|
260
|
+
optional string message = 2;
|
|
261
|
+
}
|
|
262
|
+
|
|
252
263
|
message PostArbiWalletChatMessageRequest {
|
|
253
264
|
int32 wallet_user_id = 1;
|
|
254
265
|
// Частичное тело от клиента: text, content, reply_to, datetime (ISO UTC).
|