@arbiwallet/contracts 1.0.63 → 1.0.66
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/payout.ts +1 -0
- package/gen/user.ts +33 -0
- package/package.json +1 -1
- package/proto/payout.proto +1 -0
- package/proto/user.proto +19 -0
package/gen/payout.ts
CHANGED
package/gen/user.ts
CHANGED
|
@@ -162,6 +162,25 @@ export interface ListWalletExchangeRecentPairsResponse {
|
|
|
162
162
|
pairs: WalletExchangeRecentPairItem[];
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
export interface ForwardManagerChatMessageRequest {
|
|
166
|
+
forwardSecret: string;
|
|
167
|
+
text: string;
|
|
168
|
+
isEcho: boolean;
|
|
169
|
+
walletClientId: string;
|
|
170
|
+
walletManagerId?: string | undefined;
|
|
171
|
+
datetime?: string | undefined;
|
|
172
|
+
content?: string | undefined;
|
|
173
|
+
messageId?:
|
|
174
|
+
| string
|
|
175
|
+
| undefined;
|
|
176
|
+
/** JSON для reply_to: отсутствие поля — нет ответа; строка "null" — null; иначе JSON-значение. */
|
|
177
|
+
replyToJson?: string | undefined;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface ForwardManagerChatMessageResponse {
|
|
181
|
+
ok: boolean;
|
|
182
|
+
}
|
|
183
|
+
|
|
165
184
|
export interface UserBalance {
|
|
166
185
|
asset: string;
|
|
167
186
|
network: string;
|
|
@@ -215,6 +234,10 @@ export interface UserServiceClient {
|
|
|
215
234
|
listWalletExchangeRecentPairs(
|
|
216
235
|
request: ListWalletExchangeRecentPairsRequest,
|
|
217
236
|
): Observable<ListWalletExchangeRecentPairsResponse>;
|
|
237
|
+
|
|
238
|
+
/** Сообщение менеджера клиенту: публикация в Rabbit app.notification → gateway → Socket.IO `notification`. */
|
|
239
|
+
|
|
240
|
+
forwardManagerChatMessage(request: ForwardManagerChatMessageRequest): Observable<ForwardManagerChatMessageResponse>;
|
|
218
241
|
}
|
|
219
242
|
|
|
220
243
|
export interface UserServiceController {
|
|
@@ -264,6 +287,15 @@ export interface UserServiceController {
|
|
|
264
287
|
| Promise<ListWalletExchangeRecentPairsResponse>
|
|
265
288
|
| Observable<ListWalletExchangeRecentPairsResponse>
|
|
266
289
|
| ListWalletExchangeRecentPairsResponse;
|
|
290
|
+
|
|
291
|
+
/** Сообщение менеджера клиенту: публикация в Rabbit app.notification → gateway → Socket.IO `notification`. */
|
|
292
|
+
|
|
293
|
+
forwardManagerChatMessage(
|
|
294
|
+
request: ForwardManagerChatMessageRequest,
|
|
295
|
+
):
|
|
296
|
+
| Promise<ForwardManagerChatMessageResponse>
|
|
297
|
+
| Observable<ForwardManagerChatMessageResponse>
|
|
298
|
+
| ForwardManagerChatMessageResponse;
|
|
267
299
|
}
|
|
268
300
|
|
|
269
301
|
export function UserServiceControllerMethods() {
|
|
@@ -278,6 +310,7 @@ export function UserServiceControllerMethods() {
|
|
|
278
310
|
"crmExchangeHttp",
|
|
279
311
|
"submitWalletCrmExchangeOrder",
|
|
280
312
|
"listWalletExchangeRecentPairs",
|
|
313
|
+
"forwardManagerChatMessage",
|
|
281
314
|
];
|
|
282
315
|
for (const method of grpcMethods) {
|
|
283
316
|
const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
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.66",
|
|
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/payout.proto
CHANGED
package/proto/user.proto
CHANGED
|
@@ -16,6 +16,8 @@ service UserService {
|
|
|
16
16
|
rpc SubmitWalletCrmExchangeOrder (SubmitWalletCrmExchangeOrderRequest) returns (SubmitWalletCrmExchangeOrderResponse);
|
|
17
17
|
// Уникальные валютные пары из последних заявок на обмен (по БД user-service), без дубликатов пар.
|
|
18
18
|
rpc ListWalletExchangeRecentPairs (ListWalletExchangeRecentPairsRequest) returns (ListWalletExchangeRecentPairsResponse);
|
|
19
|
+
// Сообщение менеджера клиенту: публикация в Rabbit app.notification → gateway → Socket.IO `notification`.
|
|
20
|
+
rpc ForwardManagerChatMessage (ForwardManagerChatMessageRequest) returns (ForwardManagerChatMessageResponse);
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
enum UserStatus {
|
|
@@ -166,6 +168,23 @@ message ListWalletExchangeRecentPairsResponse {
|
|
|
166
168
|
repeated WalletExchangeRecentPairItem pairs = 1;
|
|
167
169
|
}
|
|
168
170
|
|
|
171
|
+
message ForwardManagerChatMessageRequest {
|
|
172
|
+
string forward_secret = 1;
|
|
173
|
+
string text = 2;
|
|
174
|
+
bool is_echo = 3;
|
|
175
|
+
string wallet_client_id = 4;
|
|
176
|
+
optional string wallet_manager_id = 5;
|
|
177
|
+
optional string datetime = 6;
|
|
178
|
+
optional string content = 7;
|
|
179
|
+
optional string message_id = 8;
|
|
180
|
+
// JSON для reply_to: отсутствие поля — нет ответа; строка "null" — null; иначе JSON-значение.
|
|
181
|
+
optional string reply_to_json = 9;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
message ForwardManagerChatMessageResponse {
|
|
185
|
+
bool ok = 1;
|
|
186
|
+
}
|
|
187
|
+
|
|
169
188
|
message UserBalance {
|
|
170
189
|
string asset = 1;
|
|
171
190
|
string network = 2;
|