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.
- package/dist/api/types.d.ts +2 -2
- package/dist/utils/storage.js +1 -1
- package/package.json +3 -3
- package/src/api/issuing.ts +1 -1
- package/src/api/types.ts +2 -2
- package/src/utils/storage.ts +1 -1
package/dist/api/types.d.ts
CHANGED
|
@@ -256,7 +256,7 @@ export declare namespace API {
|
|
|
256
256
|
wallet_uuid: string;
|
|
257
257
|
}
|
|
258
258
|
interface BySubaccountAndWalletUuid extends ByWalletUuid {
|
|
259
|
-
filter
|
|
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
|
|
356
|
+
filter?: Partial<Record<keyof T, any>>;
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
}
|
package/dist/utils/storage.js
CHANGED
|
@@ -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.
|
|
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",
|
package/src/api/issuing.ts
CHANGED
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
|
|
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
|
|
410
|
+
filter?: Partial<Record<keyof T, any>>;
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
}
|
package/src/utils/storage.ts
CHANGED
|
@@ -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
|
|