@arbiwallet/contracts 1.0.88 → 1.0.89

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.
@@ -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
- promocodeOpenedManagerNotification: string;
164
+ promocodeCancelledText: string;
165
+ promocodeReceivedText: string;
166
+ promocodeSubmittedManagerText: string;
164
167
  }
165
168
 
166
169
  export interface GetCrmPromocodeTextsRequest {
@@ -234,6 +237,21 @@ export interface SetCrmExchangeCurrencyToCurrenciesResponse {
234
237
  item: CrmExchangeCurrencyItem | undefined;
235
238
  }
236
239
 
240
+ export interface GetCrmExchangeReceiveMethodsRequest {
241
+ }
242
+
243
+ export interface GetCrmExchangeReceiveMethodsResponse {
244
+ methods: string[];
245
+ }
246
+
247
+ export interface SetCrmExchangeReceiveMethodsRequest {
248
+ methods: string[];
249
+ }
250
+
251
+ export interface SetCrmExchangeReceiveMethodsResponse {
252
+ methods: string[];
253
+ }
254
+
237
255
  export const TELEGRAM_PACKAGE_NAME = "telegram";
238
256
 
239
257
  export interface TelegramBotServiceClient {
@@ -278,6 +296,14 @@ export interface TelegramBotServiceClient {
278
296
  setCrmExchangeCurrencyToCurrencies(
279
297
  request: SetCrmExchangeCurrencyToCurrenciesRequest,
280
298
  ): Observable<SetCrmExchangeCurrencyToCurrenciesResponse>;
299
+
300
+ getCrmExchangeReceiveMethods(
301
+ request: GetCrmExchangeReceiveMethodsRequest,
302
+ ): Observable<GetCrmExchangeReceiveMethodsResponse>;
303
+
304
+ setCrmExchangeReceiveMethods(
305
+ request: SetCrmExchangeReceiveMethodsRequest,
306
+ ): Observable<SetCrmExchangeReceiveMethodsResponse>;
281
307
  }
282
308
 
283
309
  export interface TelegramBotServiceController {
@@ -377,6 +403,20 @@ export interface TelegramBotServiceController {
377
403
  | Promise<SetCrmExchangeCurrencyToCurrenciesResponse>
378
404
  | Observable<SetCrmExchangeCurrencyToCurrenciesResponse>
379
405
  | SetCrmExchangeCurrencyToCurrenciesResponse;
406
+
407
+ getCrmExchangeReceiveMethods(
408
+ request: GetCrmExchangeReceiveMethodsRequest,
409
+ ):
410
+ | Promise<GetCrmExchangeReceiveMethodsResponse>
411
+ | Observable<GetCrmExchangeReceiveMethodsResponse>
412
+ | GetCrmExchangeReceiveMethodsResponse;
413
+
414
+ setCrmExchangeReceiveMethods(
415
+ request: SetCrmExchangeReceiveMethodsRequest,
416
+ ):
417
+ | Promise<SetCrmExchangeReceiveMethodsResponse>
418
+ | Observable<SetCrmExchangeReceiveMethodsResponse>
419
+ | SetCrmExchangeReceiveMethodsResponse;
380
420
  }
381
421
 
382
422
  export function TelegramBotServiceControllerMethods() {
@@ -401,6 +441,8 @@ export function TelegramBotServiceControllerMethods() {
401
441
  "addCrmExchangeCurrency",
402
442
  "updateCrmExchangeCurrency",
403
443
  "setCrmExchangeCurrencyToCurrencies",
444
+ "getCrmExchangeReceiveMethods",
445
+ "setCrmExchangeReceiveMethods",
404
446
  ];
405
447
  for (const method of grpcMethods) {
406
448
  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.88",
4
+ "version": "1.0.89",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -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 enter_promocode_text = 2;
170
- string promocode_opened_manager_notification = 3;
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,17 @@ message SetCrmExchangeCurrencyToCurrenciesRequest {
237
242
  message SetCrmExchangeCurrencyToCurrenciesResponse {
238
243
  CrmExchangeCurrencyItem item = 1;
239
244
  }
245
+
246
+ message GetCrmExchangeReceiveMethodsRequest {}
247
+
248
+ message GetCrmExchangeReceiveMethodsResponse {
249
+ repeated string methods = 1;
250
+ }
251
+
252
+ message SetCrmExchangeReceiveMethodsRequest {
253
+ repeated string methods = 1;
254
+ }
255
+
256
+ message SetCrmExchangeReceiveMethodsResponse {
257
+ repeated string methods = 1;
258
+ }