squarefi-bff-api-module 1.30.8 → 1.30.9
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 +2 -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 +2 -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;
|
|
@@ -2138,10 +2138,8 @@ export declare namespace API {
|
|
|
2138
2138
|
uuid: string;
|
|
2139
2139
|
created_at: string;
|
|
2140
2140
|
}
|
|
2141
|
-
type
|
|
2142
|
-
|
|
2143
|
-
data: WalletsListItem[];
|
|
2144
|
-
};
|
|
2141
|
+
type Request = operations['WalletsController_all']['parameters']['query'];
|
|
2142
|
+
type Response = operations['WalletsController_all']['responses']['200']['content']['application/json'];
|
|
2145
2143
|
}
|
|
2146
2144
|
namespace WalletTransactions {
|
|
2147
2145
|
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.9",
|
|
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
|
@@ -2688,10 +2688,8 @@ export namespace API {
|
|
|
2688
2688
|
created_at: string;
|
|
2689
2689
|
}
|
|
2690
2690
|
|
|
2691
|
-
export type
|
|
2692
|
-
|
|
2693
|
-
data: WalletsListItem[];
|
|
2694
|
-
};
|
|
2691
|
+
export type Request = operations['WalletsController_all']['parameters']['query'];
|
|
2692
|
+
export type Response = operations['WalletsController_all']['responses']['200']['content']['application/json'];
|
|
2695
2693
|
}
|
|
2696
2694
|
|
|
2697
2695
|
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: {
|