@arbiwallet/contracts 1.0.226 → 1.0.227

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.
@@ -190,12 +190,6 @@ export interface GetTransactionsRequest {
190
190
  pageSize?: number | undefined;
191
191
  }
192
192
 
193
- export interface GetTransactionsSummaryItem {
194
- currency: string;
195
- totalIncome: number;
196
- totalExpense: number;
197
- }
198
-
199
193
  export interface GetTransactionsItem {
200
194
  id: string;
201
195
  transactionDatetime: string;
@@ -223,6 +217,26 @@ export interface GetTransactionsItem {
223
217
  accountType: number;
224
218
  }
225
219
 
220
+ export interface GetTransactionsSummaryRequest {
221
+ authManagerContext: AuthManagerContext | undefined;
222
+ startDate?: string | undefined;
223
+ endDate?: string | undefined;
224
+ userId?: string | undefined;
225
+ currencyId?: string | undefined;
226
+ walletId?: string | undefined;
227
+ type?: number | undefined;
228
+ accountType?: number | undefined;
229
+ categoryId?: string | undefined;
230
+ businessUnitId?: string | undefined;
231
+ search?: string | undefined;
232
+ }
233
+
234
+ export interface GetTransactionsSummaryItem {
235
+ currency: string;
236
+ totalIncome: number;
237
+ totalExpense: number;
238
+ }
239
+
226
240
  export interface GetTransactionsResponse {
227
241
  count: number;
228
242
  next?: string | undefined;
@@ -231,6 +245,10 @@ export interface GetTransactionsResponse {
231
245
  summary: GetTransactionsSummaryItem[];
232
246
  }
233
247
 
248
+ export interface GetTransactionsSummaryResponse {
249
+ summary: GetTransactionsSummaryItem[];
250
+ }
251
+
234
252
  export const EXCHANGE_CORE_PACKAGE_NAME = "exchange_core";
235
253
 
236
254
  wrappers[".google.protobuf.Struct"] = { fromObject: Struct.wrap, toObject: Struct.unwrap } as any;
@@ -253,6 +271,8 @@ export interface ExchangeCoreServiceClient {
253
271
  cancelExchangeDeal(request: CancelExchangeDealRequest): Observable<CancelExchangeDealResponse>;
254
272
 
255
273
  getTransactions(request: GetTransactionsRequest): Observable<GetTransactionsResponse>;
274
+
275
+ getTransactionsSummary(request: GetTransactionsSummaryRequest): Observable<GetTransactionsSummaryResponse>;
256
276
  }
257
277
 
258
278
  /**
@@ -285,6 +305,13 @@ export interface ExchangeCoreServiceController {
285
305
  getTransactions(
286
306
  request: GetTransactionsRequest,
287
307
  ): Promise<GetTransactionsResponse> | Observable<GetTransactionsResponse> | GetTransactionsResponse;
308
+
309
+ getTransactionsSummary(
310
+ request: GetTransactionsSummaryRequest,
311
+ ):
312
+ | Promise<GetTransactionsSummaryResponse>
313
+ | Observable<GetTransactionsSummaryResponse>
314
+ | GetTransactionsSummaryResponse;
288
315
  }
289
316
 
290
317
  export function ExchangeCoreServiceControllerMethods() {
@@ -296,6 +323,7 @@ export function ExchangeCoreServiceControllerMethods() {
296
323
  "completeExchangeDeal",
297
324
  "cancelExchangeDeal",
298
325
  "getTransactions",
326
+ "getTransactionsSummary",
299
327
  ];
300
328
  for (const method of grpcMethods) {
301
329
  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.226",
4
+ "version": "1.0.227",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -20,6 +20,7 @@ service ExchangeCoreService {
20
20
  rpc CancelExchangeDeal(CancelExchangeDealRequest) returns (CancelExchangeDealResponse);
21
21
 
22
22
  rpc GetTransactions(GetTransactionsRequest) returns (GetTransactionsResponse);
23
+ rpc GetTransactionsSummary(GetTransactionsSummaryRequest) returns (GetTransactionsSummaryResponse);
23
24
  }
24
25
 
25
26
  // message CreateExchangePaymentRequest {
@@ -277,12 +278,6 @@ message GetTransactionsRequest {
277
278
  optional int32 page_size = 13;
278
279
  }
279
280
 
280
- message GetTransactionsSummaryItem {
281
- string currency = 1;
282
- double total_income = 2;
283
- double total_expense = 3;
284
- }
285
-
286
281
  message GetTransactionsItem {
287
282
  string id = 1;
288
283
  string transaction_datetime = 2;
@@ -310,6 +305,26 @@ message GetTransactionsItem {
310
305
  int32 account_type = 24;
311
306
  }
312
307
 
308
+ message GetTransactionsSummaryRequest {
309
+ AuthManagerContext auth_manager_context = 1;
310
+ optional string start_date = 2;
311
+ optional string end_date = 3;
312
+ optional string user_id = 4;
313
+ optional string currency_id = 5;
314
+ optional string wallet_id = 6;
315
+ optional int32 type = 7;
316
+ optional int32 account_type = 8;
317
+ optional string category_id = 9;
318
+ optional string business_unit_id = 10;
319
+ optional string search = 11;
320
+ }
321
+
322
+ message GetTransactionsSummaryItem {
323
+ string currency = 1;
324
+ double total_income = 2;
325
+ double total_expense = 3;
326
+ }
327
+
313
328
  message GetTransactionsResponse {
314
329
  int32 count = 1;
315
330
  optional string next = 2;
@@ -317,3 +332,7 @@ message GetTransactionsResponse {
317
332
  repeated GetTransactionsItem results = 4;
318
333
  repeated GetTransactionsSummaryItem summary = 5;
319
334
  }
335
+
336
+ message GetTransactionsSummaryResponse {
337
+ repeated GetTransactionsSummaryItem summary = 1;
338
+ }