@arbiwallet/contracts 1.0.88 → 1.0.90
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/telegram_bot.ts +48 -1
- package/package.json +1 -1
- package/proto/telegram_bot.proto +26 -2
package/gen/telegram_bot.ts
CHANGED
|
@@ -159,8 +159,11 @@ export interface SetCrmExchangeTextsResponse {
|
|
|
159
159
|
|
|
160
160
|
export interface CrmPromocodeTextsItem {
|
|
161
161
|
language: string;
|
|
162
|
+
cancelButtonText: string;
|
|
162
163
|
enterPromocodeText: string;
|
|
163
|
-
|
|
164
|
+
promocodeCancelledText: string;
|
|
165
|
+
promocodeReceivedText: string;
|
|
166
|
+
promocodeSubmittedManagerText: string;
|
|
164
167
|
}
|
|
165
168
|
|
|
166
169
|
export interface GetCrmPromocodeTextsRequest {
|
|
@@ -234,6 +237,26 @@ export interface SetCrmExchangeCurrencyToCurrenciesResponse {
|
|
|
234
237
|
item: CrmExchangeCurrencyItem | undefined;
|
|
235
238
|
}
|
|
236
239
|
|
|
240
|
+
export interface CrmExchangeReceiveMethodsItem {
|
|
241
|
+
language: string;
|
|
242
|
+
methods: string[];
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export interface GetCrmExchangeReceiveMethodsRequest {
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface GetCrmExchangeReceiveMethodsResponse {
|
|
249
|
+
items: CrmExchangeReceiveMethodsItem[];
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export interface SetCrmExchangeReceiveMethodsRequest {
|
|
253
|
+
items: CrmExchangeReceiveMethodsItem[];
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export interface SetCrmExchangeReceiveMethodsResponse {
|
|
257
|
+
items: CrmExchangeReceiveMethodsItem[];
|
|
258
|
+
}
|
|
259
|
+
|
|
237
260
|
export const TELEGRAM_PACKAGE_NAME = "telegram";
|
|
238
261
|
|
|
239
262
|
export interface TelegramBotServiceClient {
|
|
@@ -278,6 +301,14 @@ export interface TelegramBotServiceClient {
|
|
|
278
301
|
setCrmExchangeCurrencyToCurrencies(
|
|
279
302
|
request: SetCrmExchangeCurrencyToCurrenciesRequest,
|
|
280
303
|
): Observable<SetCrmExchangeCurrencyToCurrenciesResponse>;
|
|
304
|
+
|
|
305
|
+
getCrmExchangeReceiveMethods(
|
|
306
|
+
request: GetCrmExchangeReceiveMethodsRequest,
|
|
307
|
+
): Observable<GetCrmExchangeReceiveMethodsResponse>;
|
|
308
|
+
|
|
309
|
+
setCrmExchangeReceiveMethods(
|
|
310
|
+
request: SetCrmExchangeReceiveMethodsRequest,
|
|
311
|
+
): Observable<SetCrmExchangeReceiveMethodsResponse>;
|
|
281
312
|
}
|
|
282
313
|
|
|
283
314
|
export interface TelegramBotServiceController {
|
|
@@ -377,6 +408,20 @@ export interface TelegramBotServiceController {
|
|
|
377
408
|
| Promise<SetCrmExchangeCurrencyToCurrenciesResponse>
|
|
378
409
|
| Observable<SetCrmExchangeCurrencyToCurrenciesResponse>
|
|
379
410
|
| SetCrmExchangeCurrencyToCurrenciesResponse;
|
|
411
|
+
|
|
412
|
+
getCrmExchangeReceiveMethods(
|
|
413
|
+
request: GetCrmExchangeReceiveMethodsRequest,
|
|
414
|
+
):
|
|
415
|
+
| Promise<GetCrmExchangeReceiveMethodsResponse>
|
|
416
|
+
| Observable<GetCrmExchangeReceiveMethodsResponse>
|
|
417
|
+
| GetCrmExchangeReceiveMethodsResponse;
|
|
418
|
+
|
|
419
|
+
setCrmExchangeReceiveMethods(
|
|
420
|
+
request: SetCrmExchangeReceiveMethodsRequest,
|
|
421
|
+
):
|
|
422
|
+
| Promise<SetCrmExchangeReceiveMethodsResponse>
|
|
423
|
+
| Observable<SetCrmExchangeReceiveMethodsResponse>
|
|
424
|
+
| SetCrmExchangeReceiveMethodsResponse;
|
|
380
425
|
}
|
|
381
426
|
|
|
382
427
|
export function TelegramBotServiceControllerMethods() {
|
|
@@ -401,6 +446,8 @@ export function TelegramBotServiceControllerMethods() {
|
|
|
401
446
|
"addCrmExchangeCurrency",
|
|
402
447
|
"updateCrmExchangeCurrency",
|
|
403
448
|
"setCrmExchangeCurrencyToCurrencies",
|
|
449
|
+
"getCrmExchangeReceiveMethods",
|
|
450
|
+
"setCrmExchangeReceiveMethods",
|
|
404
451
|
];
|
|
405
452
|
for (const method of grpcMethods) {
|
|
406
453
|
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.90",
|
|
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/telegram_bot.proto
CHANGED
|
@@ -22,6 +22,8 @@ service TelegramBotService {
|
|
|
22
22
|
rpc AddCrmExchangeCurrency (AddCrmExchangeCurrencyRequest) returns (AddCrmExchangeCurrencyResponse);
|
|
23
23
|
rpc UpdateCrmExchangeCurrency (UpdateCrmExchangeCurrencyRequest) returns (UpdateCrmExchangeCurrencyResponse);
|
|
24
24
|
rpc SetCrmExchangeCurrencyToCurrencies (SetCrmExchangeCurrencyToCurrenciesRequest) returns (SetCrmExchangeCurrencyToCurrenciesResponse);
|
|
25
|
+
rpc GetCrmExchangeReceiveMethods (GetCrmExchangeReceiveMethodsRequest) returns (GetCrmExchangeReceiveMethodsResponse);
|
|
26
|
+
rpc SetCrmExchangeReceiveMethods (SetCrmExchangeReceiveMethodsRequest) returns (SetCrmExchangeReceiveMethodsResponse);
|
|
25
27
|
}
|
|
26
28
|
|
|
27
29
|
message ForwardManagerChatMessageTgRequest {
|
|
@@ -166,8 +168,11 @@ message SetCrmExchangeTextsResponse {
|
|
|
166
168
|
|
|
167
169
|
message CrmPromocodeTextsItem {
|
|
168
170
|
string language = 1;
|
|
169
|
-
string
|
|
170
|
-
string
|
|
171
|
+
string cancel_button_text = 2;
|
|
172
|
+
string enter_promocode_text = 3;
|
|
173
|
+
string promocode_cancelled_text = 4;
|
|
174
|
+
string promocode_received_text = 5;
|
|
175
|
+
string promocode_submitted_manager_text = 6;
|
|
171
176
|
}
|
|
172
177
|
|
|
173
178
|
message GetCrmPromocodeTextsRequest {}
|
|
@@ -237,3 +242,22 @@ message SetCrmExchangeCurrencyToCurrenciesRequest {
|
|
|
237
242
|
message SetCrmExchangeCurrencyToCurrenciesResponse {
|
|
238
243
|
CrmExchangeCurrencyItem item = 1;
|
|
239
244
|
}
|
|
245
|
+
|
|
246
|
+
message CrmExchangeReceiveMethodsItem {
|
|
247
|
+
string language = 1;
|
|
248
|
+
repeated string methods = 2;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
message GetCrmExchangeReceiveMethodsRequest {}
|
|
252
|
+
|
|
253
|
+
message GetCrmExchangeReceiveMethodsResponse {
|
|
254
|
+
repeated CrmExchangeReceiveMethodsItem items = 1;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
message SetCrmExchangeReceiveMethodsRequest {
|
|
258
|
+
repeated CrmExchangeReceiveMethodsItem items = 1;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
message SetCrmExchangeReceiveMethodsResponse {
|
|
262
|
+
repeated CrmExchangeReceiveMethodsItem items = 1;
|
|
263
|
+
}
|