squarefi-bff-api-module 1.30.8 → 1.30.10
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/.husky/pre-commit +1 -1
- package/dist/api/types/autogen/apiV2.types.d.ts +10 -1
- package/dist/api/types/types.d.ts +4 -4
- package/dist/api/wallets.d.ts +1 -1
- package/dist/api/wallets.js +1 -1
- package/package.json +2 -2
- package/src/api/types/autogen/apiV2.types.ts +10 -1
- package/src/api/types/types.ts +4 -4
- package/src/api/wallets.ts +2 -2
package/.husky/pre-commit
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
npm run
|
|
1
|
+
npm run update:types
|
|
2
2
|
npm run build
|
|
@@ -1200,6 +1200,7 @@ export interface components {
|
|
|
1200
1200
|
type: "personal" | "business" | "trading" | "merchant" | "staking" | "saving" | "escrow" | "exchange" | "vault" | null;
|
|
1201
1201
|
created_at: string;
|
|
1202
1202
|
};
|
|
1203
|
+
WalletsFilter: Record<string, never>;
|
|
1203
1204
|
CreateWalletDto: {
|
|
1204
1205
|
/**
|
|
1205
1206
|
* @default personal
|
|
@@ -2867,7 +2868,15 @@ export interface operations {
|
|
|
2867
2868
|
};
|
|
2868
2869
|
WalletsController_all: {
|
|
2869
2870
|
parameters: {
|
|
2870
|
-
query?:
|
|
2871
|
+
query?: {
|
|
2872
|
+
/** @description Number of records to skip */
|
|
2873
|
+
offset?: number;
|
|
2874
|
+
/** @description Number of records to return */
|
|
2875
|
+
limit?: number;
|
|
2876
|
+
sort_order?: "ASC" | "DESC";
|
|
2877
|
+
sort_by?: "created_at" | null;
|
|
2878
|
+
filter?: components["schemas"]["WalletsFilter"];
|
|
2879
|
+
};
|
|
2871
2880
|
header?: never;
|
|
2872
2881
|
path?: never;
|
|
2873
2882
|
cookie?: never;
|
|
@@ -1955,6 +1955,8 @@ export declare namespace API {
|
|
|
1955
1955
|
created_at: string;
|
|
1956
1956
|
wallet_id: string;
|
|
1957
1957
|
status: string;
|
|
1958
|
+
balance: number;
|
|
1959
|
+
total_balance: number;
|
|
1958
1960
|
account_currency: API.Currencies.Currency;
|
|
1959
1961
|
va_programs_id: string;
|
|
1960
1962
|
destination_currency: API.Currencies.Currency;
|
|
@@ -2138,10 +2140,8 @@ export declare namespace API {
|
|
|
2138
2140
|
uuid: string;
|
|
2139
2141
|
created_at: string;
|
|
2140
2142
|
}
|
|
2141
|
-
type
|
|
2142
|
-
|
|
2143
|
-
data: WalletsListItem[];
|
|
2144
|
-
};
|
|
2143
|
+
type Request = operations['WalletsController_all']['parameters']['query'];
|
|
2144
|
+
type Response = operations['WalletsController_all']['responses']['200']['content']['application/json'];
|
|
2145
2145
|
}
|
|
2146
2146
|
namespace WalletTransactions {
|
|
2147
2147
|
interface WalletTransactionMeta {
|
package/dist/api/wallets.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { API } from './types/types';
|
|
|
2
2
|
import { WalletTypeValues } from '../constants';
|
|
3
3
|
export declare const wallets: {
|
|
4
4
|
create: (type: WalletTypeValues) => Promise<void>;
|
|
5
|
-
getAll: () => Promise<API.Wallets.WalletsList.Response>;
|
|
5
|
+
getAll: (params: API.Wallets.WalletsList.Request) => Promise<API.Wallets.WalletsList.Response>;
|
|
6
6
|
getByUuid: (uuid: string) => Promise<API.Wallets.Wallet>;
|
|
7
7
|
addresses: {
|
|
8
8
|
create: (data: API.Wallets.WalletChain.Create.Request) => Promise<API.Wallets.WalletChain.Create.Response>;
|
package/dist/api/wallets.js
CHANGED
|
@@ -25,7 +25,7 @@ const apiClientFactory_1 = require("../utils/apiClientFactory");
|
|
|
25
25
|
const constants_1 = require("../constants");
|
|
26
26
|
exports.wallets = {
|
|
27
27
|
create: (type) => apiClientFactory_1.apiClientV2.postRequest('/wallets', { data: { type } }),
|
|
28
|
-
getAll: () => apiClientFactory_1.apiClientV2.getRequest('/wallets'),
|
|
28
|
+
getAll: (params) => apiClientFactory_1.apiClientV2.getRequest('/wallets', { params }),
|
|
29
29
|
getByUuid: (uuid) => apiClientFactory_1.apiClientV2.getRequest(`/wallets/${uuid}`),
|
|
30
30
|
addresses: {
|
|
31
31
|
create: (data) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "squarefi-bff-api-module",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.10",
|
|
4
4
|
"description": "Squarefi BFF API client module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"build": "tsc",
|
|
13
13
|
"prepare": "husky",
|
|
14
14
|
"test": "jest",
|
|
15
|
-
"
|
|
15
|
+
"update:types": "ts-node scripts/generate-openapi-types.ts",
|
|
16
16
|
"format": "prettier --write .",
|
|
17
17
|
"format:check": "prettier --check .",
|
|
18
18
|
"check-types": "tsc --noEmit"
|
|
@@ -1201,6 +1201,7 @@ export interface components {
|
|
|
1201
1201
|
type: "personal" | "business" | "trading" | "merchant" | "staking" | "saving" | "escrow" | "exchange" | "vault" | null;
|
|
1202
1202
|
created_at: string;
|
|
1203
1203
|
};
|
|
1204
|
+
WalletsFilter: Record<string, never>;
|
|
1204
1205
|
CreateWalletDto: {
|
|
1205
1206
|
/**
|
|
1206
1207
|
* @default personal
|
|
@@ -2868,7 +2869,15 @@ export interface operations {
|
|
|
2868
2869
|
};
|
|
2869
2870
|
WalletsController_all: {
|
|
2870
2871
|
parameters: {
|
|
2871
|
-
query?:
|
|
2872
|
+
query?: {
|
|
2873
|
+
/** @description Number of records to skip */
|
|
2874
|
+
offset?: number;
|
|
2875
|
+
/** @description Number of records to return */
|
|
2876
|
+
limit?: number;
|
|
2877
|
+
sort_order?: "ASC" | "DESC";
|
|
2878
|
+
sort_by?: "created_at" | null;
|
|
2879
|
+
filter?: components["schemas"]["WalletsFilter"];
|
|
2880
|
+
};
|
|
2872
2881
|
header?: never;
|
|
2873
2882
|
path?: never;
|
|
2874
2883
|
cookie?: never;
|
package/src/api/types/types.ts
CHANGED
|
@@ -2476,6 +2476,8 @@ export namespace API {
|
|
|
2476
2476
|
created_at: string;
|
|
2477
2477
|
wallet_id: string;
|
|
2478
2478
|
status: string;
|
|
2479
|
+
balance: number;
|
|
2480
|
+
total_balance: number;
|
|
2479
2481
|
account_currency: API.Currencies.Currency;
|
|
2480
2482
|
va_programs_id: string;
|
|
2481
2483
|
destination_currency: API.Currencies.Currency;
|
|
@@ -2688,10 +2690,8 @@ export namespace API {
|
|
|
2688
2690
|
created_at: string;
|
|
2689
2691
|
}
|
|
2690
2692
|
|
|
2691
|
-
export type
|
|
2692
|
-
|
|
2693
|
-
data: WalletsListItem[];
|
|
2694
|
-
};
|
|
2693
|
+
export type Request = operations['WalletsController_all']['parameters']['query'];
|
|
2694
|
+
export type Response = operations['WalletsController_all']['responses']['200']['content']['application/json'];
|
|
2695
2695
|
}
|
|
2696
2696
|
|
|
2697
2697
|
export namespace WalletTransactions {
|
package/src/api/wallets.ts
CHANGED
|
@@ -6,8 +6,8 @@ import { defaultPaginationParams, WalletTypeValues } from '../constants';
|
|
|
6
6
|
|
|
7
7
|
export const wallets = {
|
|
8
8
|
create: (type: WalletTypeValues): Promise<void> => apiClientV2.postRequest('/wallets', { data: { type } }),
|
|
9
|
-
getAll: (): Promise<API.Wallets.WalletsList.Response> =>
|
|
10
|
-
apiClientV2.getRequest<API.Wallets.WalletsList.Response>('/wallets'),
|
|
9
|
+
getAll: (params: API.Wallets.WalletsList.Request): Promise<API.Wallets.WalletsList.Response> =>
|
|
10
|
+
apiClientV2.getRequest<API.Wallets.WalletsList.Response>('/wallets', { params }),
|
|
11
11
|
getByUuid: (uuid: string): Promise<API.Wallets.Wallet> =>
|
|
12
12
|
apiClientV2.getRequest<API.Wallets.Wallet>(`/wallets/${uuid}`),
|
|
13
13
|
addresses: {
|