squarefi-bff-api-module 1.26.3 → 1.26.4
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/bank-data.d.ts +4 -0
- package/dist/api/bank-data.js +7 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.js +2 -0
- package/dist/api/types/types.d.ts +6 -0
- package/package.json +1 -1
- package/src/api/bank-data.ts +9 -0
- package/src/api/index.ts +3 -1
- package/src/api/types/types.ts +6 -0
|
@@ -0,0 +1,7 @@
|
|
|
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: ({ account_number, }) => apiClientFactory_1.apiClientV2.getRequest(`/bank-data/${account_number}`),
|
|
7
|
+
};
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { auth } from './auth';
|
|
2
|
+
import { bankData } from './bank-data';
|
|
2
3
|
import { counterparties } from './counterparties';
|
|
3
4
|
import { developer } from './developer';
|
|
4
5
|
import { exchange } from './exchange';
|
|
@@ -15,6 +16,7 @@ import { virtualAccounts } from './virtual-accounts';
|
|
|
15
16
|
import { wallets } from './wallets';
|
|
16
17
|
type Api = {
|
|
17
18
|
auth: typeof auth;
|
|
19
|
+
bankData: typeof bankData;
|
|
18
20
|
counterparties: typeof counterparties;
|
|
19
21
|
developer: typeof developer;
|
|
20
22
|
exchange: typeof exchange;
|
package/dist/api/index.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.squarefi_bff_api_client = void 0;
|
|
4
4
|
const auth_1 = require("./auth");
|
|
5
|
+
const bank_data_1 = require("./bank-data");
|
|
5
6
|
const counterparties_1 = require("./counterparties");
|
|
6
7
|
const developer_1 = require("./developer");
|
|
7
8
|
const exchange_1 = require("./exchange");
|
|
@@ -18,6 +19,7 @@ const virtual_accounts_1 = require("./virtual-accounts");
|
|
|
18
19
|
const wallets_1 = require("./wallets");
|
|
19
20
|
exports.squarefi_bff_api_client = {
|
|
20
21
|
auth: auth_1.auth,
|
|
22
|
+
bankData: bank_data_1.bankData,
|
|
21
23
|
counterparties: counterparties_1.counterparties,
|
|
22
24
|
developer: developer_1.developer,
|
|
23
25
|
exchange: exchange_1.exchange,
|
|
@@ -75,6 +75,12 @@ export declare namespace API {
|
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
+
namespace BankData {
|
|
79
|
+
namespace GetBankDataByAccountNumber {
|
|
80
|
+
type Request = operations['BankDataController_getBankDataByAccountNumber']['parameters']['query'];
|
|
81
|
+
type Response = operations['BankDataController_getBankDataByAccountNumber']['responses']['200']['content']['application/json'];
|
|
82
|
+
}
|
|
83
|
+
}
|
|
78
84
|
namespace Cards {
|
|
79
85
|
namespace Config {
|
|
80
86
|
type IssuingProgramOrderType = {
|
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { apiClientV2 } from '../utils/apiClientFactory';
|
|
2
|
+
import { API } from './types/types';
|
|
3
|
+
|
|
4
|
+
export const bankData = {
|
|
5
|
+
getBankDataByAccountNumber: ({
|
|
6
|
+
account_number,
|
|
7
|
+
}: API.BankData.GetBankDataByAccountNumber.Request): Promise<API.BankData.GetBankDataByAccountNumber.Response> =>
|
|
8
|
+
apiClientV2.getRequest<API.BankData.GetBankDataByAccountNumber.Response>(`/bank-data/${account_number}`),
|
|
9
|
+
};
|
package/src/api/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { auth } from './auth';
|
|
2
|
+
import { bankData } from './bank-data';
|
|
2
3
|
import { counterparties } from './counterparties';
|
|
3
4
|
import { developer } from './developer';
|
|
4
5
|
import { exchange } from './exchange';
|
|
@@ -6,7 +7,6 @@ import { frontend } from './frontend';
|
|
|
6
7
|
import { issuing } from './issuing';
|
|
7
8
|
import { kyc } from './kyc';
|
|
8
9
|
import { list } from './list';
|
|
9
|
-
|
|
10
10
|
import { orders } from './orders';
|
|
11
11
|
import { persona } from './persona';
|
|
12
12
|
import { tenants } from './tenants';
|
|
@@ -17,6 +17,7 @@ import { wallets } from './wallets';
|
|
|
17
17
|
|
|
18
18
|
type Api = {
|
|
19
19
|
auth: typeof auth;
|
|
20
|
+
bankData: typeof bankData;
|
|
20
21
|
counterparties: typeof counterparties;
|
|
21
22
|
developer: typeof developer;
|
|
22
23
|
exchange: typeof exchange;
|
|
@@ -35,6 +36,7 @@ type Api = {
|
|
|
35
36
|
|
|
36
37
|
export const squarefi_bff_api_client: Api = {
|
|
37
38
|
auth,
|
|
39
|
+
bankData,
|
|
38
40
|
counterparties,
|
|
39
41
|
developer,
|
|
40
42
|
exchange,
|
package/src/api/types/types.ts
CHANGED
|
@@ -107,6 +107,12 @@ export namespace API {
|
|
|
107
107
|
export type Response = { access_token: string; refresh_token: string; error?: string };
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
+
export namespace BankData {
|
|
111
|
+
export namespace GetBankDataByAccountNumber {
|
|
112
|
+
export type Request = operations['BankDataController_getBankDataByAccountNumber']['parameters']['query'];
|
|
113
|
+
export type Response = operations['BankDataController_getBankDataByAccountNumber']['responses']['200']['content']['application/json'];
|
|
114
|
+
}
|
|
115
|
+
}
|
|
110
116
|
|
|
111
117
|
export namespace Cards {
|
|
112
118
|
export namespace Config {
|