squarefi-bff-api-module 1.26.2 → 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.
@@ -0,0 +1,4 @@
1
+ import { API } from './types/types';
2
+ export declare const bankData: {
3
+ getBankDataByAccountNumber: ({ account_number, }: API.BankData.GetBankDataByAccountNumber.Request) => Promise<API.BankData.GetBankDataByAccountNumber.Response>;
4
+ };
@@ -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
+ };
@@ -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,
@@ -2,5 +2,6 @@ import { API } from './types/types';
2
2
  export declare const persona: {
3
3
  inquiries: {
4
4
  init: ({ wallet_id, type }: API.Persona.Inquiries.Init.Request) => Promise<API.Persona.Inquiries.Init.Response>;
5
+ resume: ({ wallet_id, inquiry_id, }: API.Persona.Inquiries.Resume.Request) => Promise<API.Persona.Inquiries.Resume.Response>;
5
6
  };
6
7
  };
@@ -5,5 +5,6 @@ const apiClientFactory_1 = require("../utils/apiClientFactory");
5
5
  exports.persona = {
6
6
  inquiries: {
7
7
  init: ({ wallet_id, type }) => apiClientFactory_1.apiClientV2.postRequest(`/persona/inquiries/init/${wallet_id}/${type}`),
8
+ resume: ({ wallet_id, inquiry_id, }) => apiClientFactory_1.apiClientV2.postRequest(`/persona/inquiries/${wallet_id}/${inquiry_id}/resume`),
8
9
  },
9
10
  };
@@ -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 = {
@@ -1829,6 +1835,10 @@ export declare namespace API {
1829
1835
  type Request = operations['PersonaController_initInquiry']['parameters']['path'];
1830
1836
  type Response = operations['PersonaController_initInquiry']['responses']['200']['content']['application/json'];
1831
1837
  }
1838
+ namespace Resume {
1839
+ type Request = operations['PersonaController_resumeInquiry']['parameters']['path'];
1840
+ type Response = operations['PersonaController_resumeInquiry']['responses']['200']['content']['application/json'];
1841
+ }
1832
1842
  }
1833
1843
  }
1834
1844
  namespace TOTP {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.26.2",
3
+ "version": "1.26.4",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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,
@@ -5,5 +5,12 @@ export const persona = {
5
5
  inquiries: {
6
6
  init: ({ wallet_id, type }: API.Persona.Inquiries.Init.Request): Promise<API.Persona.Inquiries.Init.Response> =>
7
7
  apiClientV2.postRequest<API.Persona.Inquiries.Init.Response>(`/persona/inquiries/init/${wallet_id}/${type}`),
8
+ resume: ({
9
+ wallet_id,
10
+ inquiry_id,
11
+ }: API.Persona.Inquiries.Resume.Request): Promise<API.Persona.Inquiries.Resume.Response> =>
12
+ apiClientV2.postRequest<API.Persona.Inquiries.Resume.Response>(
13
+ `/persona/inquiries/${wallet_id}/${inquiry_id}/resume`
14
+ ),
8
15
  },
9
16
  };
@@ -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 {
@@ -2304,6 +2310,11 @@ export namespace API {
2304
2310
  export type Response =
2305
2311
  operations['PersonaController_initInquiry']['responses']['200']['content']['application/json'];
2306
2312
  }
2313
+ export namespace Resume {
2314
+ export type Request = operations['PersonaController_resumeInquiry']['parameters']['path'];
2315
+ export type Response =
2316
+ operations['PersonaController_resumeInquiry']['responses']['200']['content']['application/json'];
2317
+ }
2307
2318
  }
2308
2319
  }
2309
2320