squarefi-bff-api-module 1.5.4 → 1.5.6

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.
@@ -256,7 +256,7 @@ export declare namespace API {
256
256
  wallet_uuid: string;
257
257
  }
258
258
  interface BySubaccountAndWalletUuid extends ByWalletUuid {
259
- filter: Array<Partial<Record<'fiat_account', Record<'type', SubAccountType>>>>;
259
+ filter?: Record<'fiat_account', Record<'type', SubAccountType>>;
260
260
  }
261
261
  type ByFiatAccountAndWalletId = ByWalletUuid & {
262
262
  fiat_account_id: string;
@@ -353,7 +353,7 @@ export declare namespace API {
353
353
  }
354
354
  namespace Filtering {
355
355
  interface Request<T> {
356
- filter: Partial<Record<keyof T, any>>[];
356
+ filter?: Partial<Record<keyof T, any>>;
357
357
  }
358
358
  }
359
359
  }
@@ -4,7 +4,7 @@ exports.deleteFromLocalStorage = exports.setToLocalStorage = exports.getFromLoca
4
4
  const getFromLocalStorage = (key) => {
5
5
  if (typeof window === 'undefined') {
6
6
  // eslint-disable-next-line no-console
7
- console.error('call getFromLocalStorage in server side');
7
+ // console.error('call getFromLocalStorage in server side');
8
8
  return null;
9
9
  }
10
10
  return localStorage.getItem(key);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "author": "Your Name",
19
19
  "license": "MIT",
20
20
  "dependencies": {
21
- "@telegram-apps/sdk-react": "3.1.2",
22
- "axios": "1.6.7"
21
+ "@telegram-apps/sdk-react": "^3.1.2",
22
+ "axios": "^1.6.7"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/jest": "^29.x.x",
@@ -2,7 +2,7 @@ import { API } from './types';
2
2
 
3
3
  import { apiClientV1 } from '../utils/apiClientFactory';
4
4
 
5
- import { defaultPaginationParams } from '../constants';
5
+ import { defaultPaginationParams, SubAccountType } from '../constants';
6
6
 
7
7
  export const issuing = {
8
8
  cards: {
package/src/api/types.ts CHANGED
@@ -294,7 +294,7 @@ export namespace API {
294
294
  }
295
295
 
296
296
  export interface BySubaccountAndWalletUuid extends ByWalletUuid {
297
- filter: Array<Partial<Record<'fiat_account', Record<'type', SubAccountType>>>>;
297
+ filter?: Record<'fiat_account', Record<'type', SubAccountType>>;
298
298
  }
299
299
 
300
300
  export type ByFiatAccountAndWalletId = ByWalletUuid & {
@@ -407,7 +407,7 @@ export namespace API {
407
407
 
408
408
  export namespace Filtering {
409
409
  export interface Request<T> {
410
- filter: Partial<Record<keyof T, any>>[];
410
+ filter?: Partial<Record<keyof T, any>>;
411
411
  }
412
412
  }
413
413
  }
@@ -1,7 +1,7 @@
1
1
  export const getFromLocalStorage = (key: string) => {
2
2
  if (typeof window === 'undefined') {
3
3
  // eslint-disable-next-line no-console
4
- console.error('call getFromLocalStorage in server side');
4
+ // console.error('call getFromLocalStorage in server side');
5
5
  return null;
6
6
  }
7
7