squarefi-bff-api-module 1.32.19 → 1.32.20
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/types.d.ts +20 -8
- package/dist/api/wallets.d.ts +2 -3
- package/dist/api/wallets.js +2 -2
- package/package.json +1 -1
|
@@ -2092,14 +2092,26 @@ export declare namespace API {
|
|
|
2092
2092
|
type Response = WalletChain;
|
|
2093
2093
|
}
|
|
2094
2094
|
}
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2095
|
+
namespace Wallet {
|
|
2096
|
+
interface Wallet {
|
|
2097
|
+
uuid: string;
|
|
2098
|
+
type: WalletType | string;
|
|
2099
|
+
created_at: string;
|
|
2100
|
+
fiat_total: number;
|
|
2101
|
+
crypto_total: number;
|
|
2102
|
+
total_amount: number;
|
|
2103
|
+
balance: WalletBalance;
|
|
2104
|
+
}
|
|
2105
|
+
namespace Create {
|
|
2106
|
+
interface Request {
|
|
2107
|
+
type: WalletType;
|
|
2108
|
+
}
|
|
2109
|
+
type Response = operations['WalletsController_create']['responses']['200']['content']['application/json'];
|
|
2110
|
+
}
|
|
2111
|
+
namespace GetByUuid {
|
|
2112
|
+
type Request = operations['WalletsController_view']['parameters']['path'];
|
|
2113
|
+
type Response = operations['WalletsController_view']['responses']['200']['content']['application/json'];
|
|
2114
|
+
}
|
|
2103
2115
|
}
|
|
2104
2116
|
namespace WalletsList {
|
|
2105
2117
|
interface WalletsListItem {
|
package/dist/api/wallets.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { API } from './types/types';
|
|
2
|
-
import { WalletTypeValues } from '../constants';
|
|
3
2
|
export declare const wallets: {
|
|
4
|
-
create: (
|
|
3
|
+
create: (data: API.Wallets.Wallet.Create.Request) => Promise<API.Wallets.Wallet.Create.Response>;
|
|
5
4
|
getAll: (params?: API.Wallets.WalletsList.Request) => Promise<API.Wallets.WalletsList.Response>;
|
|
6
|
-
getByUuid: (
|
|
5
|
+
getByUuid: ({ wallet_id }: API.Wallets.Wallet.GetByUuid.Request) => Promise<API.Wallets.Wallet.GetByUuid.Response>;
|
|
7
6
|
addresses: {
|
|
8
7
|
create: (data: API.Wallets.WalletChain.Create.Request) => Promise<API.Wallets.WalletChain.Create.Response>;
|
|
9
8
|
get: {
|
package/dist/api/wallets.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { apiClientV2 } from '../utils/apiClientFactory';
|
|
2
2
|
import { defaultPaginationParams } from '../constants';
|
|
3
3
|
export const wallets = {
|
|
4
|
-
create: (
|
|
4
|
+
create: (data) => apiClientV2.postRequest('/wallets', { data }),
|
|
5
5
|
getAll: (params) => apiClientV2.getRequest('/wallets', { params }),
|
|
6
|
-
getByUuid: (
|
|
6
|
+
getByUuid: ({ wallet_id }) => apiClientV2.getRequest(`/wallets/${wallet_id}`),
|
|
7
7
|
addresses: {
|
|
8
8
|
create: (data) => {
|
|
9
9
|
const { wallet_uuid, chain, label } = data;
|