@arbiwallet/contracts 1.0.235 → 1.0.237

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.
@@ -304,18 +304,30 @@ export interface GetWalletsResponse {
304
304
  }
305
305
 
306
306
  export interface GetWalletsMonikaRequest {
307
- authManagerContext: AuthManagerContext | undefined;
308
- search?: string | undefined;
309
- isActive?: boolean | undefined;
310
- page?: number | undefined;
311
- pageSize?: number | undefined;
307
+ currencyId?: string | undefined;
308
+ isActive?: string | undefined;
309
+ }
310
+
311
+ export interface WalletMonikaCurrency {
312
+ id: number;
313
+ shortName: string;
314
+ name: string;
315
+ }
316
+
317
+ export interface WalletMonikaItem {
318
+ id: number;
319
+ name: string;
320
+ currencies: WalletMonikaCurrency[];
321
+ balance: number;
322
+ status: boolean;
323
+ isActive: boolean;
324
+ cryptoAddress?: string | undefined;
325
+ cryptoNetwork?: number | undefined;
326
+ isGeneral: boolean;
312
327
  }
313
328
 
314
329
  export interface GetWalletsMonikaResponse {
315
- count: number;
316
- next?: string | undefined;
317
- previous?: string | undefined;
318
- results: WalletItem[];
330
+ wallets: WalletMonikaItem[];
319
331
  }
320
332
 
321
333
  export interface CreateWalletRequest {
package/gen/user.ts CHANGED
@@ -291,6 +291,48 @@ export interface FindMonikaCustomerResponse {
291
291
  jwt?: string | undefined;
292
292
  }
293
293
 
294
+ export interface CreateMonikaSessionUtmRequest {
295
+ utmDataJson?: string | undefined;
296
+ clientId?: string | undefined;
297
+ gClientId?: string | undefined;
298
+ gclid?: string | undefined;
299
+ }
300
+
301
+ export interface CreateMonikaSessionUtmResponse {
302
+ success: boolean;
303
+ jwt: string;
304
+ }
305
+
306
+ export interface GetMonikaSessionUtmByIdRequest {
307
+ id: number;
308
+ }
309
+
310
+ export interface GetMonikaSessionUtmByIdResponse {
311
+ success: boolean;
312
+ jwt: string;
313
+ }
314
+
315
+ export interface ListMonikaSessionUtmsRequest {
316
+ }
317
+
318
+ export interface ListMonikaSessionUtmsResponse {
319
+ success: boolean;
320
+ jwt: string;
321
+ }
322
+
323
+ export interface PatchMonikaSessionUtmRequest {
324
+ id: number;
325
+ utmDataJson?: string | undefined;
326
+ clientId?: string | undefined;
327
+ gClientId?: string | undefined;
328
+ gclid?: string | undefined;
329
+ }
330
+
331
+ export interface PatchMonikaSessionUtmResponse {
332
+ success: boolean;
333
+ jwt: string;
334
+ }
335
+
294
336
  export interface UpdateLanguageByTelegramIdRequest {
295
337
  telegramId: string;
296
338
  language: string;
@@ -501,6 +543,16 @@ export interface UserServiceClient {
501
543
 
502
544
  findMonikaCustomer(request: FindMonikaCustomerRequest): Observable<FindMonikaCustomerResponse>;
503
545
 
546
+ /** Monika-compatible UTM session create/get. */
547
+
548
+ createMonikaSessionUtm(request: CreateMonikaSessionUtmRequest): Observable<CreateMonikaSessionUtmResponse>;
549
+
550
+ getMonikaSessionUtmById(request: GetMonikaSessionUtmByIdRequest): Observable<GetMonikaSessionUtmByIdResponse>;
551
+
552
+ listMonikaSessionUtms(request: ListMonikaSessionUtmsRequest): Observable<ListMonikaSessionUtmsResponse>;
553
+
554
+ patchMonikaSessionUtm(request: PatchMonikaSessionUtmRequest): Observable<PatchMonikaSessionUtmResponse>;
555
+
504
556
  updateLanguageByTelegramId(request: UpdateLanguageByTelegramIdRequest): Observable<TelegramUserLanguageResponse>;
505
557
 
506
558
  /** Реферальная ссылка MONETA по telegram_id → ref_code → https://arbi.exchange/contacts/qr?code=… */
@@ -664,6 +716,30 @@ export interface UserServiceController {
664
716
  request: FindMonikaCustomerRequest,
665
717
  ): Promise<FindMonikaCustomerResponse> | Observable<FindMonikaCustomerResponse> | FindMonikaCustomerResponse;
666
718
 
719
+ /** Monika-compatible UTM session create/get. */
720
+
721
+ createMonikaSessionUtm(
722
+ request: CreateMonikaSessionUtmRequest,
723
+ ):
724
+ | Promise<CreateMonikaSessionUtmResponse>
725
+ | Observable<CreateMonikaSessionUtmResponse>
726
+ | CreateMonikaSessionUtmResponse;
727
+
728
+ getMonikaSessionUtmById(
729
+ request: GetMonikaSessionUtmByIdRequest,
730
+ ):
731
+ | Promise<GetMonikaSessionUtmByIdResponse>
732
+ | Observable<GetMonikaSessionUtmByIdResponse>
733
+ | GetMonikaSessionUtmByIdResponse;
734
+
735
+ listMonikaSessionUtms(
736
+ request: ListMonikaSessionUtmsRequest,
737
+ ): Promise<ListMonikaSessionUtmsResponse> | Observable<ListMonikaSessionUtmsResponse> | ListMonikaSessionUtmsResponse;
738
+
739
+ patchMonikaSessionUtm(
740
+ request: PatchMonikaSessionUtmRequest,
741
+ ): Promise<PatchMonikaSessionUtmResponse> | Observable<PatchMonikaSessionUtmResponse> | PatchMonikaSessionUtmResponse;
742
+
667
743
  updateLanguageByTelegramId(
668
744
  request: UpdateLanguageByTelegramIdRequest,
669
745
  ): Promise<TelegramUserLanguageResponse> | Observable<TelegramUserLanguageResponse> | TelegramUserLanguageResponse;
@@ -753,6 +829,10 @@ export function UserServiceControllerMethods() {
753
829
  "ensureTelegramUser",
754
830
  "createMonikaCustomer",
755
831
  "findMonikaCustomer",
832
+ "createMonikaSessionUtm",
833
+ "getMonikaSessionUtmById",
834
+ "listMonikaSessionUtms",
835
+ "patchMonikaSessionUtm",
756
836
  "updateLanguageByTelegramId",
757
837
  "getReferralLinkByTelegramId",
758
838
  "getReferralLinkByUserId",
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.235",
4
+ "version": "1.0.237",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -327,18 +327,30 @@ message GetWalletsResponse {
327
327
  }
328
328
 
329
329
  message GetWalletsMonikaRequest {
330
- AuthManagerContext auth_manager_context = 1;
331
- optional string search = 2;
332
- optional bool is_active = 3;
333
- optional int32 page = 4;
334
- optional int32 page_size = 5;
330
+ optional string currency_id = 1;
331
+ optional string is_active = 2;
332
+ }
333
+
334
+ message WalletMonikaCurrency {
335
+ int64 id = 1;
336
+ string short_name = 2;
337
+ string name = 3;
338
+ }
339
+
340
+ message WalletMonikaItem {
341
+ int64 id = 1;
342
+ string name = 2;
343
+ repeated WalletMonikaCurrency currencies = 3;
344
+ double balance = 4;
345
+ bool status = 5;
346
+ bool is_active = 6;
347
+ optional string crypto_address = 7;
348
+ optional int32 crypto_network = 8;
349
+ bool is_general = 9;
335
350
  }
336
351
 
337
352
  message GetWalletsMonikaResponse {
338
- int32 count = 1;
339
- optional string next = 2;
340
- optional string previous = 3;
341
- repeated WalletItem results = 4;
353
+ repeated WalletMonikaItem wallets = 2;
342
354
  }
343
355
 
344
356
  message CreateWalletRequest {
package/proto/user.proto CHANGED
@@ -35,6 +35,11 @@ service UserService {
35
35
  rpc CreateMonikaCustomer (CreateMonikaCustomerRequest) returns (CreateMonikaCustomerResponse);
36
36
  // Monika-compatible customer lookup by filter_by or customer id.
37
37
  rpc FindMonikaCustomer (FindMonikaCustomerRequest) returns (FindMonikaCustomerResponse);
38
+ // Monika-compatible UTM session create/get.
39
+ rpc CreateMonikaSessionUtm (CreateMonikaSessionUtmRequest) returns (CreateMonikaSessionUtmResponse);
40
+ rpc GetMonikaSessionUtmById (GetMonikaSessionUtmByIdRequest) returns (GetMonikaSessionUtmByIdResponse);
41
+ rpc ListMonikaSessionUtms (ListMonikaSessionUtmsRequest) returns (ListMonikaSessionUtmsResponse);
42
+ rpc PatchMonikaSessionUtm (PatchMonikaSessionUtmRequest) returns (PatchMonikaSessionUtmResponse);
38
43
  rpc UpdateLanguageByTelegramId (UpdateLanguageByTelegramIdRequest) returns (TelegramUserLanguageResponse);
39
44
  // Реферальная ссылка MONETA по telegram_id → ref_code → https://arbi.exchange/contacts/qr?code=…
40
45
  rpc GetReferralLinkByTelegramId (GetReferralLinkByTelegramIdRequest) returns (GetReferralLinkByTelegramIdResponse);
@@ -329,6 +334,47 @@ message FindMonikaCustomerResponse {
329
334
  optional string jwt = 2;
330
335
  }
331
336
 
337
+ message CreateMonikaSessionUtmRequest {
338
+ optional string utm_data_json = 1;
339
+ optional string client_id = 2;
340
+ optional string g_client_id = 3;
341
+ optional string gclid = 4;
342
+ }
343
+
344
+ message CreateMonikaSessionUtmResponse {
345
+ bool success = 1;
346
+ string jwt = 2;
347
+ }
348
+
349
+ message GetMonikaSessionUtmByIdRequest {
350
+ int32 id = 1;
351
+ }
352
+
353
+ message GetMonikaSessionUtmByIdResponse {
354
+ bool success = 1;
355
+ string jwt = 2;
356
+ }
357
+
358
+ message ListMonikaSessionUtmsRequest {}
359
+
360
+ message ListMonikaSessionUtmsResponse {
361
+ bool success = 1;
362
+ string jwt = 2;
363
+ }
364
+
365
+ message PatchMonikaSessionUtmRequest {
366
+ int32 id = 1;
367
+ optional string utm_data_json = 2;
368
+ optional string client_id = 3;
369
+ optional string g_client_id = 4;
370
+ optional string gclid = 5;
371
+ }
372
+
373
+ message PatchMonikaSessionUtmResponse {
374
+ bool success = 1;
375
+ string jwt = 2;
376
+ }
377
+
332
378
  message UpdateLanguageByTelegramIdRequest {
333
379
  string telegram_id = 1;
334
380
  string language = 2;