squarefi-bff-api-module 1.26.12 → 1.26.13
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/auth.d.ts +0 -0
- package/dist/api/auth.js +0 -0
- package/dist/api/counterparties.d.ts +0 -0
- package/dist/api/counterparties.js +0 -0
- package/dist/api/developer.d.ts +0 -0
- package/dist/api/developer.js +0 -0
- package/dist/api/exchange.d.ts +0 -0
- package/dist/api/exchange.js +0 -0
- package/dist/api/frontend.d.ts +0 -0
- package/dist/api/frontend.js +0 -0
- package/dist/api/index.d.ts +0 -0
- package/dist/api/index.js +0 -0
- package/dist/api/issuing.d.ts +0 -0
- package/dist/api/issuing.js +0 -0
- package/dist/api/kyc.d.ts +0 -0
- package/dist/api/kyc.js +0 -0
- package/dist/api/list.d.ts +0 -0
- package/dist/api/list.js +0 -0
- package/dist/api/orders.d.ts +0 -0
- package/dist/api/orders.js +0 -0
- package/dist/api/persona.d.ts +0 -0
- package/dist/api/persona.js +0 -0
- package/dist/api/tenants.d.ts +0 -0
- package/dist/api/tenants.js +0 -0
- package/dist/api/totp.d.ts +0 -0
- package/dist/api/totp.js +0 -0
- package/dist/api/types/autogen/apiV2.types.d.ts +42 -70
- package/dist/api/types/autogen/apiV2.types.js +0 -0
- package/dist/api/types/types.d.ts +40 -30
- package/dist/api/types/types.js +0 -0
- package/dist/api/user.d.ts +0 -0
- package/dist/api/user.js +0 -0
- package/dist/api/virtual-accounts.d.ts +0 -0
- package/dist/api/virtual-accounts.js +0 -0
- package/dist/api/wallets.d.ts +0 -0
- package/dist/api/wallets.js +0 -0
- package/dist/constants.d.ts +0 -0
- package/dist/constants.js +0 -0
- package/dist/hooks/index.d.ts +0 -0
- package/dist/hooks/index.js +0 -0
- package/dist/hooks/useCalc.d.ts +0 -0
- package/dist/hooks/useCalc.js +0 -0
- package/dist/hooks/useSupabaseSubscription/config.d.ts +0 -0
- package/dist/hooks/useSupabaseSubscription/config.js +0 -0
- package/dist/hooks/useSupabaseSubscription/index.d.ts +0 -0
- package/dist/hooks/useSupabaseSubscription/index.js +0 -0
- package/dist/hooks/useSupabaseSubscription/specialized.d.ts +0 -0
- package/dist/hooks/useSupabaseSubscription/specialized.js +0 -0
- package/dist/hooks/useSupabaseSubscription/types.d.ts +0 -0
- package/dist/hooks/useSupabaseSubscription/types.js +0 -0
- package/dist/hooks/useSupabaseSubscription/useSupabaseSubscription.d.ts +0 -0
- package/dist/hooks/useSupabaseSubscription/useSupabaseSubscription.js +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +0 -0
- package/dist/utils/apiClientFactory.d.ts +0 -0
- package/dist/utils/apiClientFactory.js +0 -0
- package/dist/utils/converters.d.ts +0 -0
- package/dist/utils/converters.js +0 -0
- package/dist/utils/encrypt.d.ts +0 -0
- package/dist/utils/encrypt.js +0 -0
- package/dist/utils/storage.d.ts +0 -0
- package/dist/utils/storage.js +0 -0
- package/dist/utils/supabase.d.ts +0 -0
- package/dist/utils/supabase.js +0 -0
- package/dist/utils/tokensFactory.d.ts +0 -0
- package/dist/utils/tokensFactory.js +0 -0
- package/package.json +1 -1
- package/src/api/types/autogen/apiV2.types.ts +42 -70
- package/src/api/types/types.ts +42 -31
- package/dist/api/config.d.ts +0 -37
- package/dist/api/config.js +0 -40
- package/dist/api/fetch_api.d.ts +0 -1
- package/dist/api/fetch_api.js +0 -122
- package/dist/api/fiat_accounts.d.ts +0 -32
- package/dist/api/fiat_accounts.js +0 -51
- package/dist/api/location.d.ts +0 -6
- package/dist/api/location.js +0 -9
- package/dist/api/types.d.ts +0 -1674
- package/dist/api/types.js +0 -2
- package/dist/utils/common.d.ts +0 -5
- package/dist/utils/common.js +0 -48
package/dist/api/auth.d.ts
CHANGED
|
File without changes
|
package/dist/api/auth.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/api/developer.d.ts
CHANGED
|
File without changes
|
package/dist/api/developer.js
CHANGED
|
File without changes
|
package/dist/api/exchange.d.ts
CHANGED
|
File without changes
|
package/dist/api/exchange.js
CHANGED
|
File without changes
|
package/dist/api/frontend.d.ts
CHANGED
|
File without changes
|
package/dist/api/frontend.js
CHANGED
|
File without changes
|
package/dist/api/index.d.ts
CHANGED
|
File without changes
|
package/dist/api/index.js
CHANGED
|
File without changes
|
package/dist/api/issuing.d.ts
CHANGED
|
File without changes
|
package/dist/api/issuing.js
CHANGED
|
File without changes
|
package/dist/api/kyc.d.ts
CHANGED
|
File without changes
|
package/dist/api/kyc.js
CHANGED
|
File without changes
|
package/dist/api/list.d.ts
CHANGED
|
File without changes
|
package/dist/api/list.js
CHANGED
|
File without changes
|
package/dist/api/orders.d.ts
CHANGED
|
File without changes
|
package/dist/api/orders.js
CHANGED
|
File without changes
|
package/dist/api/persona.d.ts
CHANGED
|
File without changes
|
package/dist/api/persona.js
CHANGED
|
File without changes
|
package/dist/api/tenants.d.ts
CHANGED
|
File without changes
|
package/dist/api/tenants.js
CHANGED
|
File without changes
|
package/dist/api/totp.d.ts
CHANGED
|
File without changes
|
package/dist/api/totp.js
CHANGED
|
File without changes
|
|
@@ -1042,8 +1042,8 @@ export interface paths {
|
|
|
1042
1042
|
path?: never;
|
|
1043
1043
|
cookie?: never;
|
|
1044
1044
|
};
|
|
1045
|
-
/** Returns bank data by
|
|
1046
|
-
get: operations["
|
|
1045
|
+
/** Returns bank data by code */
|
|
1046
|
+
get: operations["BankDataController_getBankDataByCode"];
|
|
1047
1047
|
put?: never;
|
|
1048
1048
|
post?: never;
|
|
1049
1049
|
delete?: never;
|
|
@@ -1238,6 +1238,8 @@ export interface components {
|
|
|
1238
1238
|
total: number;
|
|
1239
1239
|
/** @description Data */
|
|
1240
1240
|
data: Record<string, never>[];
|
|
1241
|
+
/** @description Has more data flag */
|
|
1242
|
+
readonly has_more: boolean;
|
|
1241
1243
|
};
|
|
1242
1244
|
WalletDto: {
|
|
1243
1245
|
uuid: string;
|
|
@@ -1359,6 +1361,7 @@ export interface components {
|
|
|
1359
1361
|
AllChainsResponseDto: {
|
|
1360
1362
|
total: number;
|
|
1361
1363
|
data: components["schemas"]["ChainDto"][];
|
|
1364
|
+
readonly has_more: boolean;
|
|
1362
1365
|
};
|
|
1363
1366
|
CryptoCurrencyMetaDto: {
|
|
1364
1367
|
icon: string;
|
|
@@ -1958,6 +1961,8 @@ export interface components {
|
|
|
1958
1961
|
total: number;
|
|
1959
1962
|
/** @description Data */
|
|
1960
1963
|
data: components["schemas"]["WalletKycRailTypeDto"][];
|
|
1964
|
+
/** @description Has more data flag */
|
|
1965
|
+
readonly has_more: boolean;
|
|
1961
1966
|
};
|
|
1962
1967
|
CountryDto: {
|
|
1963
1968
|
id: number;
|
|
@@ -2010,12 +2015,16 @@ export interface components {
|
|
|
2010
2015
|
/** @enum {string} */
|
|
2011
2016
|
type: "INDIVIDUAL" | "BUSINESS";
|
|
2012
2017
|
created_at: string;
|
|
2018
|
+
/** @default false */
|
|
2019
|
+
is_pinned: boolean;
|
|
2013
2020
|
};
|
|
2014
2021
|
FindAllCounterpartyAccountsResponseDto: {
|
|
2015
2022
|
/** @example 20 */
|
|
2016
2023
|
total: number;
|
|
2017
2024
|
/** @description Data */
|
|
2018
2025
|
data: components["schemas"]["CounterpartyAccountDto"][];
|
|
2026
|
+
/** @description Has more data flag */
|
|
2027
|
+
readonly has_more: boolean;
|
|
2019
2028
|
};
|
|
2020
2029
|
CreateCounterpartyAccountDto: {
|
|
2021
2030
|
email: string;
|
|
@@ -2025,6 +2034,8 @@ export interface components {
|
|
|
2025
2034
|
nickname?: string | null;
|
|
2026
2035
|
/** @enum {string} */
|
|
2027
2036
|
type: "INDIVIDUAL" | "BUSINESS";
|
|
2037
|
+
/** @default false */
|
|
2038
|
+
is_pinned: boolean;
|
|
2028
2039
|
};
|
|
2029
2040
|
UpdateCounterpartyAccountDto: {
|
|
2030
2041
|
email?: string;
|
|
@@ -2114,6 +2125,8 @@ export interface components {
|
|
|
2114
2125
|
total: number;
|
|
2115
2126
|
/** @description Data */
|
|
2116
2127
|
data: components["schemas"]["CounterpartyDestinationDto"][];
|
|
2128
|
+
/** @description Has more data flag */
|
|
2129
|
+
readonly has_more: boolean;
|
|
2117
2130
|
};
|
|
2118
2131
|
CreateCounterpartyExternalBankingDataAddressDto: {
|
|
2119
2132
|
city?: string | null;
|
|
@@ -2162,6 +2175,7 @@ export interface components {
|
|
|
2162
2175
|
SystemChainsResponseDto: {
|
|
2163
2176
|
total: number;
|
|
2164
2177
|
data: components["schemas"]["ChainDto"][];
|
|
2178
|
+
readonly has_more: boolean;
|
|
2165
2179
|
};
|
|
2166
2180
|
SystemCurrenciesResponseDto: {
|
|
2167
2181
|
total: number;
|
|
@@ -2215,6 +2229,8 @@ export interface components {
|
|
|
2215
2229
|
total: number;
|
|
2216
2230
|
/** @description Data */
|
|
2217
2231
|
data: components["schemas"]["IntegrationPersonaTemplateEntityDto"][];
|
|
2232
|
+
/** @description Has more data flag */
|
|
2233
|
+
readonly has_more: boolean;
|
|
2218
2234
|
};
|
|
2219
2235
|
SyncDataFromHifibridgeDto: {
|
|
2220
2236
|
/** @description Wallet to load data from Hifibridge */
|
|
@@ -2222,70 +2238,20 @@ export interface components {
|
|
|
2222
2238
|
/** @description Hifibridge ID to load data to wallet */
|
|
2223
2239
|
hifibridge_id: string;
|
|
2224
2240
|
};
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
country_id
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
country_id: string;
|
|
2233
|
-
code: string;
|
|
2234
|
-
name: string;
|
|
2235
|
-
};
|
|
2236
|
-
SwiftDto: {
|
|
2237
|
-
id: string;
|
|
2238
|
-
address: string;
|
|
2239
|
-
postcode: string;
|
|
2240
|
-
branch_name: string;
|
|
2241
|
-
branch_code: string;
|
|
2242
|
-
country: components["schemas"]["CountryDto"];
|
|
2243
|
-
city: components["schemas"]["CityDto"];
|
|
2244
|
-
bank: components["schemas"]["BankDto"];
|
|
2245
|
-
};
|
|
2246
|
-
IbanDataDto: {
|
|
2247
|
-
id: string;
|
|
2248
|
-
account_number: string;
|
|
2249
|
-
national_bank_code: string;
|
|
2250
|
-
national_branch_code: string;
|
|
2251
|
-
swift: components["schemas"]["SwiftDto"];
|
|
2252
|
-
country: components["schemas"]["CountryDto"];
|
|
2253
|
-
};
|
|
2254
|
-
WireDto: {
|
|
2255
|
-
telegraphic_name: string;
|
|
2256
|
-
is_funds_transfer_allowed: boolean;
|
|
2257
|
-
is_settlement_only: boolean;
|
|
2258
|
-
is_securities_transfer_allowed: boolean;
|
|
2259
|
-
change_date: Record<string, never> | null;
|
|
2260
|
-
bank: components["schemas"]["BankDto"];
|
|
2261
|
-
city: components["schemas"]["CityDto"];
|
|
2262
|
-
};
|
|
2263
|
-
AchDto: {
|
|
2264
|
-
new_id: Record<string, never> | null;
|
|
2265
|
-
servicing_frb_id: string;
|
|
2266
|
-
address: string;
|
|
2267
|
-
postcode: string;
|
|
2268
|
-
phone: string;
|
|
2269
|
-
record_type_code: number;
|
|
2270
|
-
is_main_office: boolean;
|
|
2271
|
-
change_date: Record<string, never> | null;
|
|
2272
|
-
bank: components["schemas"]["BankDto"];
|
|
2273
|
-
city: components["schemas"]["CityDto"];
|
|
2274
|
-
};
|
|
2275
|
-
RtnDataDto: {
|
|
2276
|
-
id: string;
|
|
2277
|
-
wire: components["schemas"]["WireDto"];
|
|
2278
|
-
ach: components["schemas"]["AchDto"];
|
|
2241
|
+
BankDataAddressDto: {
|
|
2242
|
+
city?: string | null;
|
|
2243
|
+
country_id?: number | null;
|
|
2244
|
+
postcode?: string | null;
|
|
2245
|
+
street1?: string | null;
|
|
2246
|
+
street2?: string | null;
|
|
2247
|
+
state_id?: number | null;
|
|
2279
2248
|
};
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
address:
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
country: components["schemas"]["CountryDto"];
|
|
2287
|
-
city: components["schemas"]["CityDto"];
|
|
2288
|
-
bank: components["schemas"]["BankDto"];
|
|
2249
|
+
GetBankDataByCodeResponseDto: {
|
|
2250
|
+
bank_name: string;
|
|
2251
|
+
address: components["schemas"]["BankDataAddressDto"];
|
|
2252
|
+
routing_number?: string;
|
|
2253
|
+
iban?: string;
|
|
2254
|
+
swift_bic?: string;
|
|
2289
2255
|
};
|
|
2290
2256
|
};
|
|
2291
2257
|
responses: never;
|
|
@@ -4805,11 +4771,11 @@ export interface operations {
|
|
|
4805
4771
|
};
|
|
4806
4772
|
};
|
|
4807
4773
|
};
|
|
4808
|
-
|
|
4774
|
+
BankDataController_getBankDataByCode: {
|
|
4809
4775
|
parameters: {
|
|
4810
4776
|
query: {
|
|
4811
|
-
/** @description
|
|
4812
|
-
|
|
4777
|
+
/** @description Bank code string must be a valid IBAN, RTN or SWIFT */
|
|
4778
|
+
code: string;
|
|
4813
4779
|
};
|
|
4814
4780
|
header?: never;
|
|
4815
4781
|
path?: never;
|
|
@@ -4817,15 +4783,21 @@ export interface operations {
|
|
|
4817
4783
|
};
|
|
4818
4784
|
requestBody?: never;
|
|
4819
4785
|
responses: {
|
|
4820
|
-
/** @description Bank data */
|
|
4821
4786
|
200: {
|
|
4822
4787
|
headers: {
|
|
4823
4788
|
[name: string]: unknown;
|
|
4824
4789
|
};
|
|
4825
4790
|
content: {
|
|
4826
|
-
"application/json": components["schemas"]["
|
|
4791
|
+
"application/json": components["schemas"]["GetBankDataByCodeResponseDto"];
|
|
4827
4792
|
};
|
|
4828
4793
|
};
|
|
4794
|
+
/** @description No data by code */
|
|
4795
|
+
400: {
|
|
4796
|
+
headers: {
|
|
4797
|
+
[name: string]: unknown;
|
|
4798
|
+
};
|
|
4799
|
+
content?: never;
|
|
4800
|
+
};
|
|
4829
4801
|
/** @description Unauthorized */
|
|
4830
4802
|
401: {
|
|
4831
4803
|
headers: {
|
|
File without changes
|
|
@@ -77,8 +77,8 @@ export declare namespace API {
|
|
|
77
77
|
}
|
|
78
78
|
namespace BankData {
|
|
79
79
|
namespace GetBankDataByAccountNumber {
|
|
80
|
-
type Request = operations["
|
|
81
|
-
type Response = operations["
|
|
80
|
+
type Request = operations["BankDataController_getBankDataByCode"]["parameters"]["query"];
|
|
81
|
+
type Response = operations["BankDataController_getBankDataByCode"]["responses"]["200"]["content"]["application/json"];
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
namespace Cards {
|
|
@@ -2051,34 +2051,45 @@ export declare namespace API {
|
|
|
2051
2051
|
currency: string;
|
|
2052
2052
|
walletAddress: string;
|
|
2053
2053
|
}
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
interface HifiResponse {
|
|
2076
|
-
message: string;
|
|
2077
|
-
accountInfo: API.VirtualAccounts.VirtualAccount.AccountInfo;
|
|
2054
|
+
namespace DepositInstruction {
|
|
2055
|
+
type InstructionType = "ACH" | "FEDWIRE" | "SWIFT";
|
|
2056
|
+
interface Address {
|
|
2057
|
+
city: string;
|
|
2058
|
+
state: string;
|
|
2059
|
+
postal_code: string;
|
|
2060
|
+
country_code: string;
|
|
2061
|
+
address_line1: string;
|
|
2062
|
+
address_line2: string;
|
|
2063
|
+
}
|
|
2064
|
+
interface Common {
|
|
2065
|
+
memo: string;
|
|
2066
|
+
asset_type_id: string;
|
|
2067
|
+
account_number: string;
|
|
2068
|
+
institution_name: string;
|
|
2069
|
+
instruction_type: InstructionType;
|
|
2070
|
+
account_holder_address?: Address;
|
|
2071
|
+
institution_address?: Address;
|
|
2072
|
+
account_holder_name?: string;
|
|
2073
|
+
account_routing_number?: string;
|
|
2074
|
+
swift_bic?: string;
|
|
2078
2075
|
}
|
|
2079
|
-
interface
|
|
2080
|
-
|
|
2076
|
+
interface ACH extends Common {
|
|
2077
|
+
instruction_type: "ACH";
|
|
2078
|
+
}
|
|
2079
|
+
interface FEDWIRE extends Common {
|
|
2080
|
+
instruction_type: "FEDWIRE";
|
|
2081
|
+
account_holder_name: string;
|
|
2082
|
+
account_routing_number: string;
|
|
2083
|
+
institution_address: Address;
|
|
2084
|
+
account_holder_address: Address;
|
|
2085
|
+
}
|
|
2086
|
+
interface SWIFT extends Common {
|
|
2087
|
+
instruction_type: "SWIFT";
|
|
2088
|
+
swift_bic: string;
|
|
2089
|
+
institution_address: Address;
|
|
2090
|
+
account_holder_address: Address;
|
|
2081
2091
|
}
|
|
2092
|
+
type DepositInstruction = ACH | FEDWIRE | SWIFT | Common;
|
|
2082
2093
|
}
|
|
2083
2094
|
interface OrderType {
|
|
2084
2095
|
order_type_id: string;
|
|
@@ -2094,9 +2105,9 @@ export declare namespace API {
|
|
|
2094
2105
|
destination_address: string;
|
|
2095
2106
|
integration_vendor_id: string;
|
|
2096
2107
|
vendor_account_id: string;
|
|
2097
|
-
meta: API.VirtualAccounts.VirtualAccount.Meta.Meta;
|
|
2098
2108
|
account_details: API.VirtualAccounts.VirtualAccount.AccountDetails;
|
|
2099
2109
|
virtual_accounts_program: API.VirtualAccounts.Programs.Program;
|
|
2110
|
+
deposit_instructions: API.VirtualAccounts.VirtualAccount.DepositInstruction.DepositInstruction[];
|
|
2100
2111
|
}
|
|
2101
2112
|
interface VirtualAccountDetailItem {
|
|
2102
2113
|
account_currency: string;
|
|
@@ -2114,7 +2125,6 @@ export declare namespace API {
|
|
|
2114
2125
|
destination_currency_details: API.Currencies.Currency;
|
|
2115
2126
|
id: string;
|
|
2116
2127
|
integration_vendor_id: string;
|
|
2117
|
-
meta: API.VirtualAccounts.VirtualAccount.Meta.Meta;
|
|
2118
2128
|
order_types: string[];
|
|
2119
2129
|
status: string;
|
|
2120
2130
|
total_balance: number;
|
package/dist/api/types/types.js
CHANGED
|
File without changes
|
package/dist/api/user.d.ts
CHANGED
|
File without changes
|
package/dist/api/user.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/api/wallets.d.ts
CHANGED
|
File without changes
|
package/dist/api/wallets.js
CHANGED
|
File without changes
|
package/dist/constants.d.ts
CHANGED
|
File without changes
|
package/dist/constants.js
CHANGED
|
File without changes
|
package/dist/hooks/index.d.ts
CHANGED
|
File without changes
|
package/dist/hooks/index.js
CHANGED
|
File without changes
|
package/dist/hooks/useCalc.d.ts
CHANGED
|
File without changes
|
package/dist/hooks/useCalc.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/utils/converters.js
CHANGED
|
File without changes
|
package/dist/utils/encrypt.d.ts
CHANGED
|
File without changes
|
package/dist/utils/encrypt.js
CHANGED
|
File without changes
|
package/dist/utils/storage.d.ts
CHANGED
|
File without changes
|
package/dist/utils/storage.js
CHANGED
|
File without changes
|
package/dist/utils/supabase.d.ts
CHANGED
|
File without changes
|
package/dist/utils/supabase.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|