@arbiwallet/contracts 1.0.272 → 1.0.273

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.
@@ -18,6 +18,8 @@ export interface AuthManagerContext {
18
18
  canCrossOffice: boolean;
19
19
  requestId?: string | undefined;
20
20
  clientType?: string | undefined;
21
+ permissions: string[];
22
+ isSuperAdmin: boolean;
21
23
  }
22
24
 
23
25
  export interface CreateExchangeOrderRequest {
@@ -98,6 +100,7 @@ export interface CreateExchangeDealRequest {
98
100
  customerSource?: string | undefined;
99
101
  customerReferrer?: string | undefined;
100
102
  receipts: number[];
103
+ officeId?: string | undefined;
101
104
  }
102
105
 
103
106
  export interface CreateExchangeDealResult {
@@ -345,6 +348,7 @@ export interface ExchangeCalculationsFiltersRequest {
345
348
  /** no_payment | with_payment | with_exchange | completed */
346
349
  status?: string | undefined;
347
350
  search?: string | undefined;
351
+ authManagerContext?: AuthManagerContext | undefined;
348
352
  }
349
353
 
350
354
  export interface ExchangeDealsFiltersRequest {
@@ -411,6 +415,7 @@ export interface HandlePaymentWebhookResponse {
411
415
  export interface GetExchangePaymentsRequest {
412
416
  page?: number | undefined;
413
417
  limit?: number | undefined;
418
+ authManagerContext?: AuthManagerContext | undefined;
414
419
  }
415
420
 
416
421
  export interface GetExchangePaymentsItem {
@@ -462,6 +467,7 @@ export interface GetExchangePaymentResponse {
462
467
  export interface SearchExchangePaymentRequest {
463
468
  search: string;
464
469
  limit: number;
470
+ authManagerContext?: AuthManagerContext | undefined;
465
471
  }
466
472
 
467
473
  export interface SearchExchangePaymentItem {
@@ -476,6 +482,7 @@ export interface SearchExchangePaymentResponse {
476
482
 
477
483
  export interface PrealoadExchangePaymentForSearchRequest {
478
484
  paymentId: string;
485
+ authManagerContext?: AuthManagerContext | undefined;
479
486
  }
480
487
 
481
488
  export interface PrealoadExchangePaymentForSearchResponse {
@@ -242,6 +242,8 @@ export interface AuthManagerContext {
242
242
  canCrossOffice: boolean;
243
243
  requestId?: string | undefined;
244
244
  clientType?: string | undefined;
245
+ permissions: string[];
246
+ isSuperAdmin: boolean;
245
247
  }
246
248
 
247
249
  export interface CalculateExchangeRequest {
@@ -321,6 +323,7 @@ export interface GetExchangeCalculationHistoryRequest {
321
323
  search?: string | undefined;
322
324
  page?: number | undefined;
323
325
  pageSize?: number | undefined;
326
+ authManagerContext?: AuthManagerContext | undefined;
324
327
  }
325
328
 
326
329
  export interface ExchangeCalculationFiltersRequest {
@@ -335,6 +338,7 @@ export interface ExchangeCalculationFiltersRequest {
335
338
  /** no_payment | with_payment | with_exchange | completed */
336
339
  status?: string | undefined;
337
340
  search?: string | undefined;
341
+ authManagerContext?: AuthManagerContext | undefined;
338
342
  }
339
343
 
340
344
  export interface ExchangeCalculationHistoryAppliedFilters {
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.272",
4
+ "version": "1.0.273",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -42,6 +42,8 @@ message AuthManagerContext {
42
42
  bool can_cross_office = 3;
43
43
  optional string request_id = 4;
44
44
  optional string client_type = 5;
45
+ repeated string permissions = 6;
46
+ bool is_super_admin = 7;
45
47
  }
46
48
 
47
49
  message CreateExchangeOrderRequest {
@@ -131,6 +133,7 @@ message CreateExchangeDealRequest {
131
133
  optional string customer_referrer = 24;
132
134
 
133
135
  repeated double receipts = 25;
136
+ optional string office_id = 26;
134
137
  }
135
138
 
136
139
  message CreateExchangeDealResult {
@@ -387,6 +390,7 @@ message ExchangeCalculationsFiltersRequest {
387
390
  optional string output_currency = 6;
388
391
  optional string status = 7; // no_payment | with_payment | with_exchange | completed
389
392
  optional string search = 8;
393
+ optional AuthManagerContext auth_manager_context = 9;
390
394
  }
391
395
 
392
396
  message ExchangeDealsFiltersRequest {
@@ -454,6 +458,7 @@ message HandlePaymentWebhookResponse {
454
458
  message GetExchangePaymentsRequest {
455
459
  optional int32 page = 1;
456
460
  optional int32 limit = 2;
461
+ optional AuthManagerContext auth_manager_context = 3;
457
462
  }
458
463
 
459
464
  message GetExchangePaymentsItem {
@@ -499,6 +504,7 @@ message GetExchangePaymentResponse {
499
504
  message SearchExchangePaymentRequest {
500
505
  string search = 1;
501
506
  int32 limit = 2;
507
+ optional AuthManagerContext auth_manager_context = 3;
502
508
  }
503
509
 
504
510
  message SearchExchangePaymentItem {
@@ -513,6 +519,7 @@ message SearchExchangePaymentResponse {
513
519
 
514
520
  message PrealoadExchangePaymentForSearchRequest {
515
521
  string payment_id = 1;
522
+ optional AuthManagerContext auth_manager_context = 2;
516
523
  }
517
524
 
518
525
  message PrealoadExchangePaymentForSearchResponse {
@@ -246,6 +246,8 @@ message AuthManagerContext {
246
246
  bool can_cross_office = 3;
247
247
  optional string request_id = 4;
248
248
  optional string client_type = 5;
249
+ repeated string permissions = 6;
250
+ bool is_super_admin = 7;
249
251
  }
250
252
 
251
253
  message CalculateExchangeRequest {
@@ -323,6 +325,7 @@ message GetExchangeCalculationHistoryRequest {
323
325
  optional string search = 8;
324
326
  optional int32 page = 9;
325
327
  optional int32 page_size = 10;
328
+ optional AuthManagerContext auth_manager_context = 11;
326
329
  }
327
330
 
328
331
  message ExchangeCalculationFiltersRequest {
@@ -334,6 +337,7 @@ message ExchangeCalculationFiltersRequest {
334
337
  optional string output_currency = 6;
335
338
  optional string status = 7; // no_payment | with_payment | with_exchange | completed
336
339
  optional string search = 8;
340
+ optional AuthManagerContext auth_manager_context = 9;
337
341
  }
338
342
 
339
343
  message ExchangeCalculationHistoryAppliedFilters {