squarefi-bff-api-module 1.32.26 → 1.32.28
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.
|
@@ -1221,20 +1221,27 @@ export interface components {
|
|
|
1221
1221
|
/** @description Has more data flag */
|
|
1222
1222
|
readonly has_more: boolean;
|
|
1223
1223
|
};
|
|
1224
|
+
WalletKycInfoDto: {
|
|
1225
|
+
/** @enum {string} */
|
|
1226
|
+
type: "individual" | "business" | "universal";
|
|
1227
|
+
/**
|
|
1228
|
+
* @default UNVERIFIED
|
|
1229
|
+
* @enum {string}
|
|
1230
|
+
*/
|
|
1231
|
+
status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS" | "WAITING_ON_REVIEW";
|
|
1232
|
+
readonly business_name?: string;
|
|
1233
|
+
readonly first_name?: string;
|
|
1234
|
+
readonly last_name?: string;
|
|
1235
|
+
};
|
|
1224
1236
|
WalletDto: {
|
|
1225
1237
|
uuid: string;
|
|
1226
|
-
/** @enum {string|null} */
|
|
1227
|
-
type: "personal" | "business" | "trading" | "merchant" | "staking" | "saving" | "escrow" | "exchange" | "vault" | null;
|
|
1228
1238
|
created_at: string;
|
|
1239
|
+
/** @enum {string} */
|
|
1240
|
+
role: "owner" | "admin" | "moderator" | "user";
|
|
1241
|
+
readonly kyc_info?: components["schemas"]["WalletKycInfoDto"];
|
|
1229
1242
|
};
|
|
1230
1243
|
WalletsFilter: Record<string, never>;
|
|
1231
|
-
CreateWalletDto:
|
|
1232
|
-
/**
|
|
1233
|
-
* @default personal
|
|
1234
|
-
* @enum {string}
|
|
1235
|
-
*/
|
|
1236
|
-
type: "personal" | "business" | "trading" | "merchant" | "staking" | "saving" | "escrow" | "exchange" | "vault";
|
|
1237
|
-
};
|
|
1244
|
+
CreateWalletDto: Record<string, never>;
|
|
1238
1245
|
AggregatedBalanceDetailsDto: {
|
|
1239
1246
|
uuid: string;
|
|
1240
1247
|
amount: number;
|
|
@@ -1253,9 +1260,10 @@ export interface components {
|
|
|
1253
1260
|
};
|
|
1254
1261
|
WalletExtendedDto: {
|
|
1255
1262
|
uuid: string;
|
|
1256
|
-
/** @enum {string|null} */
|
|
1257
|
-
type: "personal" | "business" | "trading" | "merchant" | "staking" | "saving" | "escrow" | "exchange" | "vault" | null;
|
|
1258
1263
|
created_at: string;
|
|
1264
|
+
/** @enum {string} */
|
|
1265
|
+
role: "owner" | "admin" | "moderator" | "user";
|
|
1266
|
+
readonly kyc_info?: components["schemas"]["WalletKycInfoDto"];
|
|
1259
1267
|
fiat_total: number;
|
|
1260
1268
|
crypto_total: number;
|
|
1261
1269
|
total_amount: number;
|
|
@@ -2947,6 +2955,7 @@ export interface operations {
|
|
|
2947
2955
|
sort_order?: "ASC" | "DESC";
|
|
2948
2956
|
sort_by?: "created_at" | null;
|
|
2949
2957
|
filter?: components["schemas"]["WalletsFilter"];
|
|
2958
|
+
include_shared?: boolean;
|
|
2950
2959
|
};
|
|
2951
2960
|
header?: never;
|
|
2952
2961
|
path?: never;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CurrencyType, IssuingProgramStatus, OrderStatuses, OrderType, SortingDirection, SubAccountType, WalletTransactionMethod, WalletTransactionRecordType, WalletTransactionStatus, WalletTransactionType } from '../../constants';
|
|
2
|
-
import { WalletType } from '../..';
|
|
3
2
|
import { components, operations } from './autogen/apiV2.types';
|
|
4
3
|
export declare namespace API {
|
|
5
4
|
namespace Auth {
|
|
@@ -2095,7 +2094,6 @@ export declare namespace API {
|
|
|
2095
2094
|
namespace Wallet {
|
|
2096
2095
|
interface Wallet {
|
|
2097
2096
|
uuid: string;
|
|
2098
|
-
type: components['schemas']['WalletDto']['type'];
|
|
2099
2097
|
created_at: string;
|
|
2100
2098
|
fiat_total: number;
|
|
2101
2099
|
crypto_total: number;
|
|
@@ -2113,9 +2111,10 @@ export declare namespace API {
|
|
|
2113
2111
|
}
|
|
2114
2112
|
namespace WalletsList {
|
|
2115
2113
|
interface WalletsListItem {
|
|
2116
|
-
type: WalletType | string;
|
|
2117
2114
|
uuid: string;
|
|
2118
2115
|
created_at: string;
|
|
2116
|
+
role: components['schemas']['WalletDto']['role'];
|
|
2117
|
+
kyc_info: components['schemas']['WalletKycInfoDto'];
|
|
2119
2118
|
}
|
|
2120
2119
|
type Request = operations['WalletsController_all']['parameters']['query'];
|
|
2121
2120
|
type Response = {
|
package/dist/constants.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export type ValueWithLabel = {
|
|
|
4
4
|
value: string;
|
|
5
5
|
label: string;
|
|
6
6
|
};
|
|
7
|
-
export type
|
|
7
|
+
export type WalletTypeData = {
|
|
8
8
|
[key: string]: ValueWithLabel;
|
|
9
9
|
};
|
|
10
10
|
export declare const falsyValues: (string | number | boolean | null | undefined)[];
|
|
@@ -217,7 +217,7 @@ export declare enum WalletTypeValues {
|
|
|
217
217
|
STAKING = "staking",
|
|
218
218
|
VAULT = "vault"
|
|
219
219
|
}
|
|
220
|
-
export declare const
|
|
220
|
+
export declare const walletTypeData: WalletTypeData;
|
|
221
221
|
export declare const defaultPaginationParams: {
|
|
222
222
|
limit: number;
|
|
223
223
|
offset: number;
|
package/dist/constants.js
CHANGED
|
@@ -223,7 +223,7 @@ export var WalletTypeValues;
|
|
|
223
223
|
WalletTypeValues["STAKING"] = "staking";
|
|
224
224
|
WalletTypeValues["VAULT"] = "vault";
|
|
225
225
|
})(WalletTypeValues || (WalletTypeValues = {}));
|
|
226
|
-
export const
|
|
226
|
+
export const walletTypeData = {
|
|
227
227
|
personal: { value: WalletTypeValues.PERSONAL, label: 'Personal' },
|
|
228
228
|
p2p: { value: 'p2p', label: 'P2P' },
|
|
229
229
|
escrow: { value: WalletTypeValues.ESCROW, label: 'Escrow' },
|