@arbiwallet/contracts 1.0.87 → 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/gen/user.ts CHANGED
@@ -251,6 +251,15 @@ export interface TelegramUserLanguageResponse {
251
251
  language?: string | undefined;
252
252
  }
253
253
 
254
+ export interface GetReferralLinkByTelegramIdRequest {
255
+ telegramId: string;
256
+ }
257
+
258
+ export interface GetReferralLinkByTelegramIdResponse {
259
+ referralLink: string;
260
+ refCode: string;
261
+ }
262
+
254
263
  export interface UserBalance {
255
264
  asset: string;
256
265
  network: string;
@@ -334,6 +343,12 @@ export interface UserServiceClient {
334
343
  ensureTelegramUser(request: EnsureTelegramUserRequest): Observable<TelegramUserLanguageResponse>;
335
344
 
336
345
  updateLanguageByTelegramId(request: UpdateLanguageByTelegramIdRequest): Observable<TelegramUserLanguageResponse>;
346
+
347
+ /** Реферальная ссылка MONETA: CRM customer по telegram_id → ref_code → https://arbi.exchange/contacts/qr?code=… */
348
+
349
+ getReferralLinkByTelegramId(
350
+ request: GetReferralLinkByTelegramIdRequest,
351
+ ): Observable<GetReferralLinkByTelegramIdResponse>;
337
352
  }
338
353
 
339
354
  export interface UserServiceController {
@@ -445,6 +460,15 @@ export interface UserServiceController {
445
460
  updateLanguageByTelegramId(
446
461
  request: UpdateLanguageByTelegramIdRequest,
447
462
  ): Promise<TelegramUserLanguageResponse> | Observable<TelegramUserLanguageResponse> | TelegramUserLanguageResponse;
463
+
464
+ /** Реферальная ссылка MONETA: CRM customer по telegram_id → ref_code → https://arbi.exchange/contacts/qr?code=… */
465
+
466
+ getReferralLinkByTelegramId(
467
+ request: GetReferralLinkByTelegramIdRequest,
468
+ ):
469
+ | Promise<GetReferralLinkByTelegramIdResponse>
470
+ | Observable<GetReferralLinkByTelegramIdResponse>
471
+ | GetReferralLinkByTelegramIdResponse;
448
472
  }
449
473
 
450
474
  export function UserServiceControllerMethods() {
@@ -467,6 +491,7 @@ export function UserServiceControllerMethods() {
467
491
  "setSupportChatLastRead",
468
492
  "ensureTelegramUser",
469
493
  "updateLanguageByTelegramId",
494
+ "getReferralLinkByTelegramId",
470
495
  ];
471
496
  for (const method of grpcMethods) {
472
497
  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.87",
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
+ }
package/proto/user.proto CHANGED
@@ -30,6 +30,8 @@ service UserService {
30
30
  // Telegram bot microservice: upsert user by telegram_id (registration TELEGRAM).
31
31
  rpc EnsureTelegramUser (EnsureTelegramUserRequest) returns (TelegramUserLanguageResponse);
32
32
  rpc UpdateLanguageByTelegramId (UpdateLanguageByTelegramIdRequest) returns (TelegramUserLanguageResponse);
33
+ // Реферальная ссылка MONETA: CRM customer по telegram_id → ref_code → https://arbi.exchange/contacts/qr?code=…
34
+ rpc GetReferralLinkByTelegramId (GetReferralLinkByTelegramIdRequest) returns (GetReferralLinkByTelegramIdResponse);
33
35
  }
34
36
 
35
37
  enum UserStatus {
@@ -267,6 +269,15 @@ message TelegramUserLanguageResponse {
267
269
  optional string language = 2;
268
270
  }
269
271
 
272
+ message GetReferralLinkByTelegramIdRequest {
273
+ string telegram_id = 1;
274
+ }
275
+
276
+ message GetReferralLinkByTelegramIdResponse {
277
+ string referral_link = 1;
278
+ string ref_code = 2;
279
+ }
280
+
270
281
  message UserBalance {
271
282
  string asset = 1;
272
283
  string network = 2;