squarefi-bff-api-module 1.31.6 → 1.32.0
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/package.json +10 -3
- package/src/api/types/autogen/apiV2.types.ts +117 -2
- package/tsconfig.json +2 -2
- package/dist/api/auth.d.ts +0 -29
- package/dist/api/auth.js +0 -76
- package/dist/api/bank-data.d.ts +0 -4
- package/dist/api/bank-data.js +0 -9
- package/dist/api/counterparties.d.ts +0 -14
- package/dist/api/counterparties.js +0 -48
- package/dist/api/developer.d.ts +0 -12
- package/dist/api/developer.js +0 -15
- package/dist/api/exchange.d.ts +0 -14
- package/dist/api/exchange.js +0 -23
- package/dist/api/frontend.d.ts +0 -11
- package/dist/api/frontend.js +0 -14
- package/dist/api/index.d.ts +0 -38
- package/dist/api/index.js +0 -39
- package/dist/api/issuing.d.ts +0 -64
- package/dist/api/issuing.js +0 -157
- package/dist/api/kyc.d.ts +0 -21
- package/dist/api/kyc.js +0 -24
- package/dist/api/list.d.ts +0 -16
- package/dist/api/list.js +0 -19
- package/dist/api/orders.d.ts +0 -49
- package/dist/api/orders.js +0 -107
- package/dist/api/persona.d.ts +0 -7
- package/dist/api/persona.js +0 -10
- package/dist/api/storage.d.ts +0 -8
- package/dist/api/storage.js +0 -19
- package/dist/api/tenants.d.ts +0 -6
- package/dist/api/tenants.js +0 -9
- package/dist/api/totp.d.ts +0 -17
- package/dist/api/totp.js +0 -48
- package/dist/api/types/autogen/apiV2.types.d.ts +0 -4729
- package/dist/api/types/autogen/apiV2.types.js +0 -6
- package/dist/api/types/types.d.ts +0 -2258
- package/dist/api/types/types.js +0 -2
- package/dist/api/user.d.ts +0 -18
- package/dist/api/user.js +0 -21
- package/dist/api/virtual-accounts.d.ts +0 -9
- package/dist/api/virtual-accounts.js +0 -26
- package/dist/api/wallets.d.ts +0 -24
- package/dist/api/wallets.js +0 -56
- package/dist/constants.d.ts +0 -303
- package/dist/constants.js +0 -335
- package/dist/hooks/index.d.ts +0 -3
- package/dist/hooks/index.js +0 -19
- package/dist/hooks/useCalc.d.ts +0 -25
- package/dist/hooks/useCalc.js +0 -129
- package/dist/hooks/useFileUpload.d.ts +0 -49
- package/dist/hooks/useFileUpload.js +0 -113
- package/dist/hooks/useSupabaseSubscription/config.d.ts +0 -2
- package/dist/hooks/useSupabaseSubscription/config.js +0 -9
- package/dist/hooks/useSupabaseSubscription/index.d.ts +0 -3
- package/dist/hooks/useSupabaseSubscription/index.js +0 -7
- package/dist/hooks/useSupabaseSubscription/specialized.d.ts +0 -5
- package/dist/hooks/useSupabaseSubscription/specialized.js +0 -21
- package/dist/hooks/useSupabaseSubscription/types.d.ts +0 -16
- package/dist/hooks/useSupabaseSubscription/types.js +0 -2
- package/dist/hooks/useSupabaseSubscription/useSupabaseSubscription.d.ts +0 -5
- package/dist/hooks/useSupabaseSubscription/useSupabaseSubscription.js +0 -36
- package/dist/hooks/useUserFiles.d.ts +0 -49
- package/dist/hooks/useUserFiles.js +0 -118
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -26
- package/dist/utils/apiClientFactory.d.ts +0 -31
- package/dist/utils/apiClientFactory.js +0 -155
- package/dist/utils/converters.d.ts +0 -1
- package/dist/utils/converters.js +0 -5
- package/dist/utils/encrypt.d.ts +0 -10
- package/dist/utils/encrypt.js +0 -95
- package/dist/utils/fileStorage.d.ts +0 -113
- package/dist/utils/fileStorage.js +0 -344
- package/dist/utils/storage.d.ts +0 -3
- package/dist/utils/storage.js +0 -30
- package/dist/utils/supabase.d.ts +0 -1
- package/dist/utils/supabase.js +0 -15
- package/dist/utils/tokensFactory.d.ts +0 -12
- package/dist/utils/tokensFactory.js +0 -60
package/package.json
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "squarefi-bff-api-module",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.0",
|
|
4
4
|
"description": "Squarefi BFF API client module",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
7
14
|
"repository": {
|
|
8
15
|
"type": "git",
|
|
9
16
|
"url": "git+https://github.com/squarefi-tech/bff-api-module-npm.git"
|
|
@@ -106,6 +106,23 @@ export interface paths {
|
|
|
106
106
|
patch?: never;
|
|
107
107
|
trace?: never;
|
|
108
108
|
};
|
|
109
|
+
"/auth/sign-out": {
|
|
110
|
+
parameters: {
|
|
111
|
+
query?: never;
|
|
112
|
+
header?: never;
|
|
113
|
+
path?: never;
|
|
114
|
+
cookie?: never;
|
|
115
|
+
};
|
|
116
|
+
get?: never;
|
|
117
|
+
put?: never;
|
|
118
|
+
/** Revoke session and sign out */
|
|
119
|
+
post: operations["AuthController_signOut"];
|
|
120
|
+
delete?: never;
|
|
121
|
+
options?: never;
|
|
122
|
+
head?: never;
|
|
123
|
+
patch?: never;
|
|
124
|
+
trace?: never;
|
|
125
|
+
};
|
|
109
126
|
"/auth/sign-up/telegram": {
|
|
110
127
|
parameters: {
|
|
111
128
|
query?: never;
|
|
@@ -789,7 +806,8 @@ export interface paths {
|
|
|
789
806
|
get: operations["CounterpartyAccountsController_findOne"];
|
|
790
807
|
put?: never;
|
|
791
808
|
post?: never;
|
|
792
|
-
|
|
809
|
+
/** Delete counterparty account */
|
|
810
|
+
delete: operations["CounterpartyAccountsController_delete"];
|
|
793
811
|
options?: never;
|
|
794
812
|
head?: never;
|
|
795
813
|
/** Update counterparty account */
|
|
@@ -1058,6 +1076,15 @@ export interface components {
|
|
|
1058
1076
|
type: "email" | "phone";
|
|
1059
1077
|
login: string;
|
|
1060
1078
|
};
|
|
1079
|
+
SignOutDto: {
|
|
1080
|
+
access_token: string;
|
|
1081
|
+
refresh_token: string;
|
|
1082
|
+
/**
|
|
1083
|
+
* @default local
|
|
1084
|
+
* @enum {string}
|
|
1085
|
+
*/
|
|
1086
|
+
readonly scope: "global" | "local" | "others";
|
|
1087
|
+
};
|
|
1061
1088
|
TelegramSignUpByPhoneDto: {
|
|
1062
1089
|
phone: string;
|
|
1063
1090
|
tg_id: string;
|
|
@@ -1782,6 +1809,11 @@ export interface components {
|
|
|
1782
1809
|
/** @enum {string|null} */
|
|
1783
1810
|
employment_status?: "EMPLOYEE" | "SELF_EMPLOYED" | "RETIRED" | "UNEMPLOYED" | "OTHER" | null;
|
|
1784
1811
|
employment_description?: string | null;
|
|
1812
|
+
description_of_business_nature?: string | null;
|
|
1813
|
+
/** @enum {string|null} */
|
|
1814
|
+
primary_business?: "ACCOUNTANCY" | "ADULT_ENTERTAINMENT" | "ADULT_PRODUCTS" | "ADVERTISING_MARKETING_PR" | "ADVISOR" | "AEROSPACE" | "AGRICULTURE" | "ALCOHOL" | "ARCHITECTURE" | "ARTS_ANTIQUES" | "ASSET_WEALTH_MANAGEMENT" | "ATM" | "AUTOMOBILE_CAR_PARTS" | "AUTOMOBILE_LUXURY" | "BANK_FOREIGN" | "BANK_US" | "BARS_RESTAURANTS" | "BIO_SCIENCE" | "BOOKS_MAGAZINES_NEWSPAPERS" | "BROADCASTERS_RADIO_TV" | "BROKER" | "BUILDING_MATERIALS" | "CALL_CENTER" | "CASINO_GAMBLING" | "CHARITY" | "CHEMICAL_MANUFACTURING" | "CLOTHING_TEXTILES" | "COMMODITIES" | "COMPANY_FORMATION" | "CONSTRUCTION_TRADES" | "CRYPTO_MSB_FOREIGN" | "CRYPTO_MSB_US" | "CYBER_SECURITY" | "DATA_STORAGE_PROCESSING" | "DEFI_EXCHANGE" | "ECOMMERCE" | "ELECTRONICS_MOBILE_PHONES" | "ENGINEERING" | "EVENT_PLANNING" | "FITNESS_EQUIPMENT" | "FOOD_BEVERAGE" | "FOUNDATION" | "FREIGHT_LOGISTICS_SHIPPING" | "GOVERNMENT_FOREIGN" | "GOVERNMENT_US" | "HEALTH_SUPPLEMENTS" | "HEAVY_EQUIPMENT" | "HISTORICAL_CULTURAL_ARTIFACTS" | "HNWI" | "HOSPITALITY" | "HOSPITALS_CARE_FACILITIES" | "IMPORT_EXPORT" | "INDUSTRIAL_EQUIPMENT" | "INFLUENCER_SOCIAL_MEDIA" | "INSURANCE" | "INSURANCE_INSURANCE_COMPANIES" | "INVESTMENT_FIRMS" | "IT_MANAGED_SERVICES" | "LEGAL_SERVICES" | "LOAN" | "LOGGING_TIMBER_PAPER_MILLS" | "LUXURY_GOODS" | "LUXURY_GOODS_BROKER" | "MINER" | "MINING_EXTRACTION" | "MULTILEVEL_MARKETING" | "MUSIC_PRODUCTION" | "NFT" | "NON_BANK_CUSTODIAN" | "NON_CRYPTO_MSB_FOREIGN" | "NON_CRYPTO_MSB_US" | "OIL_GAS" | "PAWN_BROKERS" | "PAYMENT_PROCESSOR" | "PAYROLL" | "PENSION" | "POLITICAL_PARTY_GROUP" | "POOLED_INVESTMENT" | "PRECIOUS_METALS" | "PRIVATE_EQUITY" | "PRIVATE_JET_CHARTER" | "PROP_TRADING" | "PUBLIC" | "REAL_ESTATE_INVESTMENT" | "RETAILER_DURABLE" | "RETAILER_NON_DURABLE" | "SCHOOL_UNIVERSITY" | "SECURITY" | "SOFTWARE" | "SOFTWARE_BLOCKCHAIN_CRYPTO" | "SPORTING_PROFESSIONAL_CLUB" | "SPV" | "STATE_FOREIGN" | "STATE_US" | "SUPRANATIONAL_BODY" | "TAX_ADVISORS" | "TAXI_PRIVATE_TRANSPORT" | "TELECOMMUNICATIONS" | "TOBACCO" | "TOKEN_PROJECT" | "TRAVEL" | "TRUST_CORP" | "TRUST_PERSONAL" | "UTILITIES_WATER_GAS_ELECTRIC" | "VENTURE_CAPITAL" | "VIDEO_GAMES" | "WASTE_MANAGEMENT_RECYCLING" | "WEAPONS_MANUFACTURER" | "WEAPONS_MILITARY_SERVICES" | "WHV" | "WHOLESALER_DURABLE" | "WHOLESALER_NON_DURABLE" | null;
|
|
1815
|
+
business_jurisdictions?: string[] | null;
|
|
1816
|
+
funds_send_receive_jurisdictions?: string[] | null;
|
|
1785
1817
|
address?: components["schemas"]["KycAddressDto"] | null;
|
|
1786
1818
|
beneficial_owners?: components["schemas"]["KycBeneficialOwnerDto"][] | null;
|
|
1787
1819
|
};
|
|
@@ -1881,6 +1913,11 @@ export interface components {
|
|
|
1881
1913
|
/** @enum {string|null} */
|
|
1882
1914
|
employment_status?: "EMPLOYEE" | "SELF_EMPLOYED" | "RETIRED" | "UNEMPLOYED" | "OTHER" | null;
|
|
1883
1915
|
employment_description?: string | null;
|
|
1916
|
+
description_of_business_nature?: string | null;
|
|
1917
|
+
/** @enum {string|null} */
|
|
1918
|
+
primary_business?: "ACCOUNTANCY" | "ADULT_ENTERTAINMENT" | "ADULT_PRODUCTS" | "ADVERTISING_MARKETING_PR" | "ADVISOR" | "AEROSPACE" | "AGRICULTURE" | "ALCOHOL" | "ARCHITECTURE" | "ARTS_ANTIQUES" | "ASSET_WEALTH_MANAGEMENT" | "ATM" | "AUTOMOBILE_CAR_PARTS" | "AUTOMOBILE_LUXURY" | "BANK_FOREIGN" | "BANK_US" | "BARS_RESTAURANTS" | "BIO_SCIENCE" | "BOOKS_MAGAZINES_NEWSPAPERS" | "BROADCASTERS_RADIO_TV" | "BROKER" | "BUILDING_MATERIALS" | "CALL_CENTER" | "CASINO_GAMBLING" | "CHARITY" | "CHEMICAL_MANUFACTURING" | "CLOTHING_TEXTILES" | "COMMODITIES" | "COMPANY_FORMATION" | "CONSTRUCTION_TRADES" | "CRYPTO_MSB_FOREIGN" | "CRYPTO_MSB_US" | "CYBER_SECURITY" | "DATA_STORAGE_PROCESSING" | "DEFI_EXCHANGE" | "ECOMMERCE" | "ELECTRONICS_MOBILE_PHONES" | "ENGINEERING" | "EVENT_PLANNING" | "FITNESS_EQUIPMENT" | "FOOD_BEVERAGE" | "FOUNDATION" | "FREIGHT_LOGISTICS_SHIPPING" | "GOVERNMENT_FOREIGN" | "GOVERNMENT_US" | "HEALTH_SUPPLEMENTS" | "HEAVY_EQUIPMENT" | "HISTORICAL_CULTURAL_ARTIFACTS" | "HNWI" | "HOSPITALITY" | "HOSPITALS_CARE_FACILITIES" | "IMPORT_EXPORT" | "INDUSTRIAL_EQUIPMENT" | "INFLUENCER_SOCIAL_MEDIA" | "INSURANCE" | "INSURANCE_INSURANCE_COMPANIES" | "INVESTMENT_FIRMS" | "IT_MANAGED_SERVICES" | "LEGAL_SERVICES" | "LOAN" | "LOGGING_TIMBER_PAPER_MILLS" | "LUXURY_GOODS" | "LUXURY_GOODS_BROKER" | "MINER" | "MINING_EXTRACTION" | "MULTILEVEL_MARKETING" | "MUSIC_PRODUCTION" | "NFT" | "NON_BANK_CUSTODIAN" | "NON_CRYPTO_MSB_FOREIGN" | "NON_CRYPTO_MSB_US" | "OIL_GAS" | "PAWN_BROKERS" | "PAYMENT_PROCESSOR" | "PAYROLL" | "PENSION" | "POLITICAL_PARTY_GROUP" | "POOLED_INVESTMENT" | "PRECIOUS_METALS" | "PRIVATE_EQUITY" | "PRIVATE_JET_CHARTER" | "PROP_TRADING" | "PUBLIC" | "REAL_ESTATE_INVESTMENT" | "RETAILER_DURABLE" | "RETAILER_NON_DURABLE" | "SCHOOL_UNIVERSITY" | "SECURITY" | "SOFTWARE" | "SOFTWARE_BLOCKCHAIN_CRYPTO" | "SPORTING_PROFESSIONAL_CLUB" | "SPV" | "STATE_FOREIGN" | "STATE_US" | "SUPRANATIONAL_BODY" | "TAX_ADVISORS" | "TAXI_PRIVATE_TRANSPORT" | "TELECOMMUNICATIONS" | "TOBACCO" | "TOKEN_PROJECT" | "TRAVEL" | "TRUST_CORP" | "TRUST_PERSONAL" | "UTILITIES_WATER_GAS_ELECTRIC" | "VENTURE_CAPITAL" | "VIDEO_GAMES" | "WASTE_MANAGEMENT_RECYCLING" | "WEAPONS_MANUFACTURER" | "WEAPONS_MILITARY_SERVICES" | "WHV" | "WHOLESALER_DURABLE" | "WHOLESALER_NON_DURABLE" | null;
|
|
1919
|
+
business_jurisdictions?: string[] | null;
|
|
1920
|
+
funds_send_receive_jurisdictions?: string[] | null;
|
|
1884
1921
|
address?: components["schemas"]["KycAddressDto"] | null;
|
|
1885
1922
|
beneficial_owners?: components["schemas"]["KycBeneficialOwnerDto"][] | null;
|
|
1886
1923
|
};
|
|
@@ -2004,6 +2041,10 @@ export interface components {
|
|
|
2004
2041
|
phone?: string;
|
|
2005
2042
|
name?: string;
|
|
2006
2043
|
nickname?: string | null;
|
|
2044
|
+
/** @default false */
|
|
2045
|
+
is_pinned: boolean;
|
|
2046
|
+
/** @default false */
|
|
2047
|
+
is_self: boolean;
|
|
2007
2048
|
};
|
|
2008
2049
|
CounterpartyDestinationsFilter: {
|
|
2009
2050
|
nickname?: string | null;
|
|
@@ -2374,6 +2415,28 @@ export interface operations {
|
|
|
2374
2415
|
};
|
|
2375
2416
|
};
|
|
2376
2417
|
};
|
|
2418
|
+
AuthController_signOut: {
|
|
2419
|
+
parameters: {
|
|
2420
|
+
query?: never;
|
|
2421
|
+
header?: never;
|
|
2422
|
+
path?: never;
|
|
2423
|
+
cookie?: never;
|
|
2424
|
+
};
|
|
2425
|
+
requestBody: {
|
|
2426
|
+
content: {
|
|
2427
|
+
"application/json": components["schemas"]["SignOutDto"];
|
|
2428
|
+
};
|
|
2429
|
+
};
|
|
2430
|
+
responses: {
|
|
2431
|
+
/** @description Invalid tenant */
|
|
2432
|
+
401: {
|
|
2433
|
+
headers: {
|
|
2434
|
+
[name: string]: unknown;
|
|
2435
|
+
};
|
|
2436
|
+
content?: never;
|
|
2437
|
+
};
|
|
2438
|
+
};
|
|
2439
|
+
};
|
|
2377
2440
|
AuthTelegramController_signUp: {
|
|
2378
2441
|
parameters: {
|
|
2379
2442
|
query?: never;
|
|
@@ -4119,6 +4182,48 @@ export interface operations {
|
|
|
4119
4182
|
};
|
|
4120
4183
|
};
|
|
4121
4184
|
};
|
|
4185
|
+
CounterpartyAccountsController_delete: {
|
|
4186
|
+
parameters: {
|
|
4187
|
+
query?: never;
|
|
4188
|
+
header?: never;
|
|
4189
|
+
path: {
|
|
4190
|
+
wallet_id: string;
|
|
4191
|
+
counterparty_account_id: string;
|
|
4192
|
+
};
|
|
4193
|
+
cookie?: never;
|
|
4194
|
+
};
|
|
4195
|
+
requestBody?: never;
|
|
4196
|
+
responses: {
|
|
4197
|
+
200: {
|
|
4198
|
+
headers: {
|
|
4199
|
+
[name: string]: unknown;
|
|
4200
|
+
};
|
|
4201
|
+
content: {
|
|
4202
|
+
"application/json": components["schemas"]["CounterpartyAccountDto"];
|
|
4203
|
+
};
|
|
4204
|
+
};
|
|
4205
|
+
/** @description Unauthorized */
|
|
4206
|
+
401: {
|
|
4207
|
+
headers: {
|
|
4208
|
+
[name: string]: unknown;
|
|
4209
|
+
};
|
|
4210
|
+
content?: never;
|
|
4211
|
+
};
|
|
4212
|
+
/** @description You don`t have access to current counterparty */
|
|
4213
|
+
403: {
|
|
4214
|
+
headers: {
|
|
4215
|
+
[name: string]: unknown;
|
|
4216
|
+
};
|
|
4217
|
+
content?: never;
|
|
4218
|
+
};
|
|
4219
|
+
404: {
|
|
4220
|
+
headers: {
|
|
4221
|
+
[name: string]: unknown;
|
|
4222
|
+
};
|
|
4223
|
+
content?: never;
|
|
4224
|
+
};
|
|
4225
|
+
};
|
|
4226
|
+
};
|
|
4122
4227
|
CounterpartyAccountsController_update: {
|
|
4123
4228
|
parameters: {
|
|
4124
4229
|
query?: never;
|
|
@@ -4218,7 +4323,10 @@ export interface operations {
|
|
|
4218
4323
|
CounterpartyDestinationsController_create: {
|
|
4219
4324
|
parameters: {
|
|
4220
4325
|
query?: never;
|
|
4221
|
-
header
|
|
4326
|
+
header: {
|
|
4327
|
+
/** @description Verification request ID */
|
|
4328
|
+
"verification-request-id": string;
|
|
4329
|
+
};
|
|
4222
4330
|
path: {
|
|
4223
4331
|
counterparty_account_id: string;
|
|
4224
4332
|
wallet_id: unknown;
|
|
@@ -4239,6 +4347,13 @@ export interface operations {
|
|
|
4239
4347
|
"application/json": components["schemas"]["CounterpartyDestinationDto"];
|
|
4240
4348
|
};
|
|
4241
4349
|
};
|
|
4350
|
+
/** @description Verification request ID is required */
|
|
4351
|
+
400: {
|
|
4352
|
+
headers: {
|
|
4353
|
+
[name: string]: unknown;
|
|
4354
|
+
};
|
|
4355
|
+
content?: never;
|
|
4356
|
+
};
|
|
4242
4357
|
/** @description Unauthorized */
|
|
4243
4358
|
401: {
|
|
4244
4359
|
headers: {
|
package/tsconfig.json
CHANGED
package/dist/api/auth.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { API } from './types/types';
|
|
2
|
-
export declare const telegramSignInPath = "/auth/sign-in/telegram";
|
|
3
|
-
export declare const telegramSignUpPath = "/auth/sign-up/telegram";
|
|
4
|
-
export declare const refreshTokenPath = "/auth/refresh/refresh-token";
|
|
5
|
-
export declare const auth: {
|
|
6
|
-
otp: {
|
|
7
|
-
verify: {
|
|
8
|
-
email: (email: string, token: string) => Promise<API.Auth.VerifyOtp.Response>;
|
|
9
|
-
phone: (phone: string, token: string) => Promise<API.Auth.VerifyOtp.Response>;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
signin: {
|
|
13
|
-
omni: {
|
|
14
|
-
email: (data: API.Auth.SignIn.Omni.Email.OTP.Request) => Promise<API.Auth.Tokens>;
|
|
15
|
-
phone: ({ phone, ...data }: API.Auth.SignIn.Omni.Phone.OTP.Request) => Promise<API.Auth.Tokens>;
|
|
16
|
-
};
|
|
17
|
-
byType: (data: API.Auth.SignIn.ByType.Request) => Promise<API.Auth.Tokens>;
|
|
18
|
-
telegram: (data: API.Auth.Telegram.Signin.Request) => Promise<API.Auth.Telegram.Signin.Response>;
|
|
19
|
-
password: (email: string, password: string) => Promise<API.Auth.Tokens>;
|
|
20
|
-
};
|
|
21
|
-
signup: {
|
|
22
|
-
byType: (data: API.Auth.SignUp.ByType.Request) => Promise<API.Auth.Tokens>;
|
|
23
|
-
password: (email: string, password: string) => Promise<API.Auth.Tokens>;
|
|
24
|
-
telegram: (data: API.Auth.Telegram.Signup.Request) => Promise<API.Auth.Telegram.Signup.Response>;
|
|
25
|
-
};
|
|
26
|
-
refresh: {
|
|
27
|
-
refresh_token: (data: API.Auth.RefreshToken.Request) => Promise<API.Auth.RefreshToken.Response>;
|
|
28
|
-
};
|
|
29
|
-
};
|
package/dist/api/auth.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.auth = exports.refreshTokenPath = exports.telegramSignUpPath = exports.telegramSignInPath = void 0;
|
|
15
|
-
const apiClientFactory_1 = require("../utils/apiClientFactory");
|
|
16
|
-
const converters_1 = require("../utils/converters");
|
|
17
|
-
exports.telegramSignInPath = '/auth/sign-in/telegram'; // V2 path
|
|
18
|
-
// export const telegramSignInPath = '/auth/signin/telegram'; // V1 path
|
|
19
|
-
exports.telegramSignUpPath = '/auth/sign-up/telegram';
|
|
20
|
-
exports.refreshTokenPath = '/auth/refresh/refresh-token';
|
|
21
|
-
exports.auth = {
|
|
22
|
-
otp: {
|
|
23
|
-
verify: {
|
|
24
|
-
email: (email, token) => apiClientFactory_1.apiClientV2.postRequest('/auth/verify/email/otp', {
|
|
25
|
-
data: { email, token, type: 'email' },
|
|
26
|
-
context: { bypassUnauthorizedHandler: true },
|
|
27
|
-
}),
|
|
28
|
-
phone: (phone, token) => apiClientFactory_1.apiClientV2.postRequest('/auth/verify/phone/otp', {
|
|
29
|
-
data: {
|
|
30
|
-
phone: (0, converters_1.convertPhoneToSupabaseFormat)(phone),
|
|
31
|
-
token,
|
|
32
|
-
type: 'sms',
|
|
33
|
-
},
|
|
34
|
-
context: { bypassUnauthorizedHandler: true },
|
|
35
|
-
}),
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
signin: {
|
|
39
|
-
omni: {
|
|
40
|
-
email: (data) => apiClientFactory_1.apiClientV2.postRequest('/auth/sign-in/omni/email/otp', {
|
|
41
|
-
data,
|
|
42
|
-
context: { bypassUnauthorizedHandler: true },
|
|
43
|
-
}),
|
|
44
|
-
phone: (_a) => {
|
|
45
|
-
var { phone } = _a, data = __rest(_a, ["phone"]);
|
|
46
|
-
return apiClientFactory_1.apiClientV2.postRequest('/auth/sign-in/omni/phone/otp', {
|
|
47
|
-
data: Object.assign({ phone: (0, converters_1.convertPhoneToSupabaseFormat)(phone) }, data),
|
|
48
|
-
context: { bypassUnauthorizedHandler: true },
|
|
49
|
-
});
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
byType: (data) => apiClientFactory_1.apiClientV2.postRequest('/auth/sign-in', {
|
|
53
|
-
data,
|
|
54
|
-
context: { bypassUnauthorizedHandler: true },
|
|
55
|
-
}),
|
|
56
|
-
telegram: (data) => apiClientFactory_1.apiClientV2.postRequest(exports.telegramSignInPath, { data }),
|
|
57
|
-
password: (email, password) => apiClientFactory_1.apiClientV2.postRequest('/auth/sign-in/password/email', {
|
|
58
|
-
data: { email, password },
|
|
59
|
-
context: { bypassUnauthorizedHandler: true },
|
|
60
|
-
}),
|
|
61
|
-
},
|
|
62
|
-
signup: {
|
|
63
|
-
byType: (data) => apiClientFactory_1.apiClientV2.postRequest('/auth/sign-up', {
|
|
64
|
-
data,
|
|
65
|
-
context: { bypassUnauthorizedHandler: true },
|
|
66
|
-
}),
|
|
67
|
-
password: (email, password) => apiClientFactory_1.apiClientV2.postRequest('/auth/sign-up/password/email', {
|
|
68
|
-
data: { email, password },
|
|
69
|
-
context: { bypassUnauthorizedHandler: true },
|
|
70
|
-
}),
|
|
71
|
-
telegram: (data) => apiClientFactory_1.apiClientV2.postRequest(exports.telegramSignUpPath, { data }),
|
|
72
|
-
},
|
|
73
|
-
refresh: {
|
|
74
|
-
refresh_token: (data) => apiClientFactory_1.apiClientV2.postRequest(exports.refreshTokenPath, { data }),
|
|
75
|
-
},
|
|
76
|
-
};
|
package/dist/api/bank-data.d.ts
DELETED
package/dist/api/bank-data.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bankData = void 0;
|
|
4
|
-
const apiClientFactory_1 = require("../utils/apiClientFactory");
|
|
5
|
-
exports.bankData = {
|
|
6
|
-
getBankDataByAccountNumber: (params) => apiClientFactory_1.apiClientV2.getRequest(`/bank-data`, {
|
|
7
|
-
params,
|
|
8
|
-
}),
|
|
9
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { API } from './types/types';
|
|
2
|
-
export declare const counterparties: {
|
|
3
|
-
getAll: ({ wallet_id, ...params }: API.Counterparties.List.Request) => Promise<API.Counterparties.List.Response>;
|
|
4
|
-
getById: ({ wallet_id, counterparty_account_id, }: API.Counterparties.GetById.Request) => Promise<API.Counterparties.GetById.Response>;
|
|
5
|
-
create: ({ wallet_id, ...data }: API.Counterparties.Create.Request) => Promise<API.Counterparties.Create.Response>;
|
|
6
|
-
update: ({ wallet_id, counterparty_account_id, ...data }: API.Counterparties.Update.Request) => Promise<API.Counterparties.Update.Response>;
|
|
7
|
-
destinations: {
|
|
8
|
-
getAll: ({ wallet_id, counterparty_account_id, ...params }: API.Counterparties.Destination.List.Request) => Promise<API.Counterparties.Destination.List.Response>;
|
|
9
|
-
getById: ({ wallet_id, counterparty_account_id, counterparty_destination_id, }: API.Counterparties.Destination.Detail.Request) => Promise<API.Counterparties.Destination.Detail.Response>;
|
|
10
|
-
create: ({ wallet_id, counterparty_account_id, ...data }: API.Counterparties.Destination.Create.Request) => Promise<API.Counterparties.Destination.Create.Response>;
|
|
11
|
-
update: ({ wallet_id, counterparty_account_id, counterparty_destination_id, ...data }: API.Counterparties.Destination.Update.Request) => Promise<API.Counterparties.Destination.Update.Response>;
|
|
12
|
-
delete: ({ wallet_id, counterparty_account_id, counterparty_destination_id, }: API.Counterparties.Destination.Delete.Request) => Promise<void>;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.counterparties = void 0;
|
|
15
|
-
const apiClientFactory_1 = require("../utils/apiClientFactory");
|
|
16
|
-
exports.counterparties = {
|
|
17
|
-
getAll: (_a) => {
|
|
18
|
-
var { wallet_id } = _a, params = __rest(_a, ["wallet_id"]);
|
|
19
|
-
return apiClientFactory_1.apiClientV2.getRequest(`/counterparties/${wallet_id}`, {
|
|
20
|
-
params,
|
|
21
|
-
});
|
|
22
|
-
},
|
|
23
|
-
getById: ({ wallet_id, counterparty_account_id, }) => apiClientFactory_1.apiClientV2.getRequest(`/counterparties/${wallet_id}/${counterparty_account_id}`),
|
|
24
|
-
create: (_a) => {
|
|
25
|
-
var { wallet_id } = _a, data = __rest(_a, ["wallet_id"]);
|
|
26
|
-
return apiClientFactory_1.apiClientV2.postRequest(`/counterparties/${wallet_id}`, { data });
|
|
27
|
-
},
|
|
28
|
-
update: (_a) => {
|
|
29
|
-
var { wallet_id, counterparty_account_id } = _a, data = __rest(_a, ["wallet_id", "counterparty_account_id"]);
|
|
30
|
-
return apiClientFactory_1.apiClientV2.patchRequest(`/counterparties/${wallet_id}/${counterparty_account_id}`, { data });
|
|
31
|
-
},
|
|
32
|
-
destinations: {
|
|
33
|
-
getAll: (_a) => {
|
|
34
|
-
var { wallet_id, counterparty_account_id } = _a, params = __rest(_a, ["wallet_id", "counterparty_account_id"]);
|
|
35
|
-
return apiClientFactory_1.apiClientV2.getRequest(`/counterparties/${wallet_id}/${counterparty_account_id}/destinations`, { params });
|
|
36
|
-
},
|
|
37
|
-
getById: ({ wallet_id, counterparty_account_id, counterparty_destination_id, }) => apiClientFactory_1.apiClientV2.getRequest(`/counterparties/${wallet_id}/${counterparty_account_id}/destinations/${counterparty_destination_id}`),
|
|
38
|
-
create: (_a) => {
|
|
39
|
-
var { wallet_id, counterparty_account_id } = _a, data = __rest(_a, ["wallet_id", "counterparty_account_id"]);
|
|
40
|
-
return apiClientFactory_1.apiClientV2.postRequest(`/counterparties/${wallet_id}/${counterparty_account_id}/destinations`, { data });
|
|
41
|
-
},
|
|
42
|
-
update: (_a) => {
|
|
43
|
-
var { wallet_id, counterparty_account_id, counterparty_destination_id } = _a, data = __rest(_a, ["wallet_id", "counterparty_account_id", "counterparty_destination_id"]);
|
|
44
|
-
return apiClientFactory_1.apiClientV2.patchRequest(`/counterparties/${wallet_id}/${counterparty_account_id}/destinations/${counterparty_destination_id}`, { data });
|
|
45
|
-
},
|
|
46
|
-
delete: ({ wallet_id, counterparty_account_id, counterparty_destination_id, }) => apiClientFactory_1.apiClientV2.deleteRequest(`/counterparties/${wallet_id}/${counterparty_account_id}/destinations/${counterparty_destination_id}`),
|
|
47
|
-
},
|
|
48
|
-
};
|
package/dist/api/developer.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { API } from './types/types';
|
|
2
|
-
export declare const developer: {
|
|
3
|
-
apiKeys: {
|
|
4
|
-
getAll: () => Promise<API.Developer.ApiCode.ApiCode[]>;
|
|
5
|
-
create: (data: API.Developer.ApiCode.Create.Request) => Promise<API.Developer.ApiCode.Create.Response>;
|
|
6
|
-
rotate: (data: API.Developer.ApiCode.Rotate.Request) => Promise<API.Developer.ApiCode.Rotate.Response>;
|
|
7
|
-
update: (data: API.Developer.ApiCode.Update.Request) => Promise<void>;
|
|
8
|
-
};
|
|
9
|
-
vendors: {
|
|
10
|
-
list: () => Promise<API.Developer.Vendors.Vendor[]>;
|
|
11
|
-
};
|
|
12
|
-
};
|
package/dist/api/developer.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.developer = void 0;
|
|
4
|
-
const apiClientFactory_1 = require("../utils/apiClientFactory");
|
|
5
|
-
exports.developer = {
|
|
6
|
-
apiKeys: {
|
|
7
|
-
getAll: () => apiClientFactory_1.apiClientV1.getRequest('/developer/access/list'),
|
|
8
|
-
create: (data) => apiClientFactory_1.apiClientV1.postRequest('/developer/access/create', { data }),
|
|
9
|
-
rotate: (data) => apiClientFactory_1.apiClientV1.postRequest(`/developer/access/rotate`, { data }),
|
|
10
|
-
update: (data) => apiClientFactory_1.apiClientV1.postRequest(`/developer/access/update`, { data }),
|
|
11
|
-
},
|
|
12
|
-
vendors: {
|
|
13
|
-
list: () => apiClientFactory_1.apiClientV1.getRequest('/developer/vendors/list'),
|
|
14
|
-
},
|
|
15
|
-
};
|
package/dist/api/exchange.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { API } from './types/types';
|
|
2
|
-
import { OrderType } from '../constants';
|
|
3
|
-
type IExchangeByOrderType = {
|
|
4
|
-
getByFromCurrency: (from_uuid: string) => Promise<API.Exchange.Exchange[]>;
|
|
5
|
-
getByToCurrency: (to_uuid: string) => Promise<API.Exchange.Exchange[]>;
|
|
6
|
-
getByOrderType: () => Promise<API.Exchange.Exchange[]>;
|
|
7
|
-
};
|
|
8
|
-
type IExchangeModule = {
|
|
9
|
-
byOrderType: {
|
|
10
|
-
[key in OrderType]: IExchangeByOrderType;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export declare const exchange: IExchangeModule;
|
|
14
|
-
export {};
|
package/dist/api/exchange.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.exchange = void 0;
|
|
4
|
-
const apiClientFactory_1 = require("../utils/apiClientFactory");
|
|
5
|
-
const constants_1 = require("../constants");
|
|
6
|
-
const createOrderTypeMethods = (orderType) => ({
|
|
7
|
-
getByFromCurrency: (from_uuid) => apiClientFactory_1.apiClientV1.getRequest('/exchange/', {
|
|
8
|
-
params: { from_uuid, order_type: orderType },
|
|
9
|
-
}),
|
|
10
|
-
getByToCurrency: (to_uuid) => apiClientFactory_1.apiClientV1.getRequest('/exchange/', {
|
|
11
|
-
params: { to_uuid, order_type: orderType },
|
|
12
|
-
}),
|
|
13
|
-
getByOrderType: () => apiClientFactory_1.apiClientV1.getRequest('/exchange/', {
|
|
14
|
-
params: { order_type: orderType },
|
|
15
|
-
}),
|
|
16
|
-
});
|
|
17
|
-
const orderTypes = Object.values(constants_1.OrderType);
|
|
18
|
-
exports.exchange = {
|
|
19
|
-
byOrderType: orderTypes.reduce((acc, orderType) => {
|
|
20
|
-
acc[orderType] = createOrderTypeMethods(orderType);
|
|
21
|
-
return acc;
|
|
22
|
-
}, {}),
|
|
23
|
-
};
|
package/dist/api/frontend.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { API } from './types/types';
|
|
2
|
-
export declare const frontend: {
|
|
3
|
-
access: {
|
|
4
|
-
keys: {
|
|
5
|
-
create: (data: API.Frontend.Access.Keys.Create.Request) => Promise<API.Frontend.Access.Keys.Create.Response>;
|
|
6
|
-
list: () => Promise<API.Frontend.Access.Keys.List.Response>;
|
|
7
|
-
regenerate: (key_id: string) => Promise<API.Frontend.Access.Keys.Regenerate.Response>;
|
|
8
|
-
revoke: (key_id: string) => Promise<API.Frontend.Access.Keys.Revoke.Response>;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
};
|
package/dist/api/frontend.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.frontend = void 0;
|
|
4
|
-
const apiClientFactory_1 = require("../utils/apiClientFactory");
|
|
5
|
-
exports.frontend = {
|
|
6
|
-
access: {
|
|
7
|
-
keys: {
|
|
8
|
-
create: (data) => apiClientFactory_1.apiClientV1.postRequest('/frontend/access/keys', { data }),
|
|
9
|
-
list: () => apiClientFactory_1.apiClientV1.getRequest('/frontend/access/keys'),
|
|
10
|
-
regenerate: (key_id) => apiClientFactory_1.apiClientV1.postRequest(`/frontend/access/keys/${key_id}/regenerate`),
|
|
11
|
-
revoke: (key_id) => apiClientFactory_1.apiClientV1.deleteRequest(`/frontend/access/keys/${key_id}`),
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
};
|
package/dist/api/index.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { auth } from './auth';
|
|
2
|
-
import { bankData } from './bank-data';
|
|
3
|
-
import { counterparties } from './counterparties';
|
|
4
|
-
import { developer } from './developer';
|
|
5
|
-
import { exchange } from './exchange';
|
|
6
|
-
import { frontend } from './frontend';
|
|
7
|
-
import { issuing } from './issuing';
|
|
8
|
-
import { kyc } from './kyc';
|
|
9
|
-
import { list } from './list';
|
|
10
|
-
import { orders } from './orders';
|
|
11
|
-
import { persona } from './persona';
|
|
12
|
-
import { storage } from './storage';
|
|
13
|
-
import { tenants } from './tenants';
|
|
14
|
-
import { totp } from './totp';
|
|
15
|
-
import { user } from './user';
|
|
16
|
-
import { virtualAccounts } from './virtual-accounts';
|
|
17
|
-
import { wallets } from './wallets';
|
|
18
|
-
type Api = {
|
|
19
|
-
auth: typeof auth;
|
|
20
|
-
bankData: typeof bankData;
|
|
21
|
-
counterparties: typeof counterparties;
|
|
22
|
-
developer: typeof developer;
|
|
23
|
-
exchange: typeof exchange;
|
|
24
|
-
frontend: typeof frontend;
|
|
25
|
-
issuing: typeof issuing;
|
|
26
|
-
kyc: typeof kyc;
|
|
27
|
-
list: typeof list;
|
|
28
|
-
orders: typeof orders;
|
|
29
|
-
persona: typeof persona;
|
|
30
|
-
storage: typeof storage;
|
|
31
|
-
tenants: typeof tenants;
|
|
32
|
-
totp: typeof totp;
|
|
33
|
-
user: typeof user;
|
|
34
|
-
virtualAccounts: typeof virtualAccounts;
|
|
35
|
-
wallets: typeof wallets;
|
|
36
|
-
};
|
|
37
|
-
export declare const squarefi_bff_api_client: Api;
|
|
38
|
-
export {};
|
package/dist/api/index.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.squarefi_bff_api_client = void 0;
|
|
4
|
-
const auth_1 = require("./auth");
|
|
5
|
-
const bank_data_1 = require("./bank-data");
|
|
6
|
-
const counterparties_1 = require("./counterparties");
|
|
7
|
-
const developer_1 = require("./developer");
|
|
8
|
-
const exchange_1 = require("./exchange");
|
|
9
|
-
const frontend_1 = require("./frontend");
|
|
10
|
-
const issuing_1 = require("./issuing");
|
|
11
|
-
const kyc_1 = require("./kyc");
|
|
12
|
-
const list_1 = require("./list");
|
|
13
|
-
const orders_1 = require("./orders");
|
|
14
|
-
const persona_1 = require("./persona");
|
|
15
|
-
const storage_1 = require("./storage");
|
|
16
|
-
const tenants_1 = require("./tenants");
|
|
17
|
-
const totp_1 = require("./totp");
|
|
18
|
-
const user_1 = require("./user");
|
|
19
|
-
const virtual_accounts_1 = require("./virtual-accounts");
|
|
20
|
-
const wallets_1 = require("./wallets");
|
|
21
|
-
exports.squarefi_bff_api_client = {
|
|
22
|
-
auth: auth_1.auth,
|
|
23
|
-
bankData: bank_data_1.bankData,
|
|
24
|
-
counterparties: counterparties_1.counterparties,
|
|
25
|
-
developer: developer_1.developer,
|
|
26
|
-
exchange: exchange_1.exchange,
|
|
27
|
-
frontend: frontend_1.frontend,
|
|
28
|
-
issuing: issuing_1.issuing,
|
|
29
|
-
kyc: kyc_1.kyc,
|
|
30
|
-
list: list_1.list,
|
|
31
|
-
orders: orders_1.orders,
|
|
32
|
-
persona: persona_1.persona,
|
|
33
|
-
storage: storage_1.storage,
|
|
34
|
-
tenants: tenants_1.tenants,
|
|
35
|
-
totp: totp_1.totp,
|
|
36
|
-
user: user_1.user,
|
|
37
|
-
virtualAccounts: virtual_accounts_1.virtualAccounts,
|
|
38
|
-
wallets: wallets_1.wallets,
|
|
39
|
-
};
|
package/dist/api/issuing.d.ts
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { API } from './types/types';
|
|
2
|
-
export declare const issuing: {
|
|
3
|
-
cards: {
|
|
4
|
-
create: {
|
|
5
|
-
standAloneCard: {
|
|
6
|
-
prepaid: (data: API.Cards.Create.StandAloneRequest) => Promise<API.Cards.Create.StandAloneResponse>;
|
|
7
|
-
balance: (data: API.Cards.Create.StandAloneRequest) => Promise<API.Cards.Create.ExtendedSubAccountResponse>;
|
|
8
|
-
};
|
|
9
|
-
subAccountCard: (data: API.Cards.Create.SubAccountRequest) => Promise<API.Cards.Create.ExtendedSubAccountResponse>;
|
|
10
|
-
};
|
|
11
|
-
byWalletUuid: {
|
|
12
|
-
getAll: (params: API.Cards.CardsList.Request.ByWalletUuid) => Promise<API.Cards.CardsList.Response>;
|
|
13
|
-
getBySubaccountType: (params: API.Cards.CardsList.Request.BySubaccountAndWalletUuid) => Promise<API.Cards.CardsList.Response>;
|
|
14
|
-
getBySubAccount: (params: API.Cards.CardsList.Request.BySubAccountAndWalletId) => Promise<API.Cards.CardsList.Response>;
|
|
15
|
-
};
|
|
16
|
-
getById: (card_id: string) => Promise<API.Cards.IssuingCardDetailItem>;
|
|
17
|
-
sensitiveData: {
|
|
18
|
-
encrypted: {
|
|
19
|
-
secretKey: {
|
|
20
|
-
get: (card_id: string) => Promise<API.Cards.SensitiveData>;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
otp: {
|
|
24
|
-
get: (card_id: string) => Promise<API.Cards.OTP>;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
freeze: (card_id: string) => Promise<API.Cards.IssuingCardDetailItem>;
|
|
28
|
-
unfreeze: (card_id: string) => Promise<API.Cards.IssuingCardDetailItem>;
|
|
29
|
-
close: (card_id: string) => Promise<void>;
|
|
30
|
-
limits: {
|
|
31
|
-
update: (card_id: string, data: API.Cards.Limits.UpdateRequest) => Promise<API.Cards.IssuingCardDetailItem>;
|
|
32
|
-
};
|
|
33
|
-
rename: (card_id: string, nick_name: string) => Promise<API.Cards.IssuingCardDetailItem>;
|
|
34
|
-
};
|
|
35
|
-
transactions: {
|
|
36
|
-
getByCardId: (card_id: string, limit?: number, offset?: number) => Promise<API.Cards.TransactionsList>;
|
|
37
|
-
getBySubAccountId: (fiat_account_id: string, limit?: number, offset?: number) => Promise<API.Cards.TransactionsList>;
|
|
38
|
-
csv: {
|
|
39
|
-
getByCardId: (card_id: string) => Promise<string>;
|
|
40
|
-
getBySubAccountId: (sub_account_id: string) => Promise<string>;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
sub_accounts: {
|
|
44
|
-
list: {
|
|
45
|
-
withCards: {
|
|
46
|
-
getSinglecards: (wallet_uuid: string, limit: number, offset: number) => Promise<API.Issuing.SubAccounts.WithCards.Response>;
|
|
47
|
-
getAll: (wallet_uuid: string, limit: number, offset: number) => Promise<API.Issuing.SubAccounts.WithCards.Response>;
|
|
48
|
-
};
|
|
49
|
-
withoutCards: {
|
|
50
|
-
getAll: ({ wallet_uuid, ...params }: API.Issuing.SubAccounts.WithoutCards.Request) => Promise<API.Issuing.SubAccounts.WithoutCards.Response>;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
getByUuid: (uuid: string) => Promise<API.Issuing.SubAccounts.SubAccount>;
|
|
54
|
-
create: (wallet_id: string, program_id: string) => Promise<API.Issuing.SubAccounts.SubAccount>;
|
|
55
|
-
transactions: {
|
|
56
|
-
get: ({ sub_account_id, ...params }: API.Issuing.SubAccounts.TransactionList.Request) => Promise<API.Issuing.SubAccounts.TransactionList.Response>;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
config: {
|
|
60
|
-
programs: {
|
|
61
|
-
getAll: (params: API.Issuing.Programs.Request) => Promise<API.Issuing.Programs.Response>;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
};
|