squarefi-bff-api-module 1.17.29 → 1.17.30

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/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.17.30] - 2025-05-18
9
+
10
+ ### Fixed
11
+
12
+ - Corrected persona inquiries endpoint path for initialization
13
+ - Changed persona inquiries initialization method from GET to POST
14
+ - Updated endpoint paths for currencies and chains in the API client to support nonAuth users
15
+
8
16
  ## [1.17.27] - 2025-05-16
9
17
 
10
18
  ### Added
package/dist/api/list.js CHANGED
@@ -5,10 +5,10 @@ exports.list = void 0;
5
5
  const apiClientFactory_1 = require("../utils/apiClientFactory");
6
6
  exports.list = {
7
7
  currencies: {
8
- getAll: (params) => apiClientFactory_1.apiClientV2.getRequest('/system/currencies', params),
8
+ getAll: (params) => apiClientFactory_1.apiClientV2.getRequest('/currencies', params),
9
9
  },
10
10
  chains: {
11
- getAll: (params) => apiClientFactory_1.apiClientV2.getRequest('/system/chains', params),
11
+ getAll: (params) => apiClientFactory_1.apiClientV2.getRequest('/chains', params),
12
12
  },
13
13
  countries: {
14
14
  getAll: (params) => apiClientFactory_1.apiClientV2.getRequest('/system/countries', params),
@@ -1649,6 +1649,96 @@ export interface components {
1649
1649
  address?: components["schemas"]["KycAddressDto"] | null;
1650
1650
  };
1651
1651
  KycEntityDto: {
1652
+ /** @enum {string} */
1653
+ type: "individual" | "business";
1654
+ id_number?: string | null;
1655
+ /** @enum {string|null} */
1656
+ id_type?: "PASSPORT" | "ID_CARD" | "DRIVERS" | "NIN" | null;
1657
+ additional_id_number?: string | null;
1658
+ additional_id_type?: string | null;
1659
+ aml_questionnaire?: components["schemas"]["KycEntityAmlQuestionnaireEntity"] | null;
1660
+ articles_of_association_url?: string | null;
1661
+ business_description?: string | null;
1662
+ business_industry?: string | null;
1663
+ business_name?: string | null;
1664
+ business_name_local?: string | null;
1665
+ business_registration_doc_url?: string | null;
1666
+ /** @enum {string|null} */
1667
+ business_type?: "cooperative" | "s_corporation" | "b_corporation" | "c_corporation" | "close_corporation" | "nonprofit_corporation" | "general_partnership" | "limited_partnership" | "limited_liability_company" | "other" | "sole_proprietorship" | "trust" | null;
1668
+ certificate_number?: string | null;
1669
+ certificate_of_incumbency_url?: string | null;
1670
+ /** @enum {string|null} */
1671
+ certificate_of_registration_doc_type?: "ACRA" | "GST" | "MSME" | "CERTIFICATE_OF_REGISTRATION" | null;
1672
+ certificate_of_registration_doc_url?: string | null;
1673
+ compliance_screening_explanation?: string | null;
1674
+ constitution_or_annual_report_url?: string | null;
1675
+ country_of_birth?: string | null;
1676
+ /** @default false */
1677
+ dao_status: boolean | null;
1678
+ date_of_birth?: string | null;
1679
+ due_diligence_form?: components["schemas"]["KycEntityDueDiligenceFormEntity"] | null;
1680
+ email?: string | null;
1681
+ export_country?: string | null;
1682
+ first_name?: string | null;
1683
+ first_name_local?: string | null;
1684
+ formation_date?: string | null;
1685
+ formation_doc_url?: string | null;
1686
+ gov_id_back_url?: string | null;
1687
+ gov_id_country?: string | null;
1688
+ gov_id_expiration_date?: string | null;
1689
+ gov_id_front_url?: string | null;
1690
+ gov_id_hand_hold_url?: string | null;
1691
+ gov_id_issuance_authority?: string | null;
1692
+ gov_id_issuance_date?: string | null;
1693
+ gov_id_number?: string | null;
1694
+ /** @enum {string|null} */
1695
+ gov_id_type?: "PASSPORT" | "ID_CARD" | "DRIVERS" | null;
1696
+ incorporation_number?: string | null;
1697
+ last_name?: string | null;
1698
+ last_name_local?: string | null;
1699
+ license_expiration_date?: string | null;
1700
+ middle_name?: string | null;
1701
+ middle_name_local?: string | null;
1702
+ nationality?: string | null;
1703
+ partnership_deed_url?: string | null;
1704
+ partnership_mins_of_meeting_url?: string | null;
1705
+ phone?: string | null;
1706
+ product_service_category?: string | null;
1707
+ /** @enum {string|null} */
1708
+ proof_of_address_type?: "UTILITY_BILL" | "BANK_STATEMENT" | "RENTAL_AGREEMENT" | "TAX_DOCUMENT" | null;
1709
+ proof_of_address_url?: string | null;
1710
+ proof_of_ownership_url?: string | null;
1711
+ /** @enum {string|null} */
1712
+ purpose?: "PAY_SUPPLIERS" | "PAY_SERVICE_PROVIDERS" | "GOODS_MERCHANDISE_COMMODITIES" | "FREELANCERS_CONTRACTORS_PAYROLL" | "FINANCIAL_SERVICES_LOANS_INVESTMENTS" | "TAX_REGULATORY_FEES" | "LEGAL_SERVICES" | "OPERATIONAL_EXPENSES" | "SUBSCRIPTIONS" | "TRAVEL_RELATED_EXPENSES" | "INSURANCE" | "ADVERTISING_MARKETING_EXPENSES" | "EQUIPMENT_MACHINERY" | "TECHNOLOGY_SERVICES" | "EDUCATION_RELATED_EXPENSES" | "TREASURY_PAYMENTS" | "FX_SERVICES" | "OTHER" | "ONLINE_MARKETPLACE_TRADING" | "OFFLINE_TRADING" | null;
1713
+ registration_number?: string | null;
1714
+ share_structure_url?: string | null;
1715
+ sof_eu_questionnaire?: components["schemas"]["KycEntitySofEuQuestionnaireEntity"] | null;
1716
+ source_of_funds?: string | null;
1717
+ supplementary_info?: string | null;
1718
+ supplementary_url?: string | null;
1719
+ tax_identification_number?: string | null;
1720
+ /** @enum {string|null} */
1721
+ tax_identification_number_type?: "EIN" | "SSN" | "VAT" | "TIN" | "UTR" | null;
1722
+ trade_name?: string | null;
1723
+ /** @enum {string|null} */
1724
+ trade_type?: "00" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31" | "32" | "33" | "34" | "35" | "36" | "37" | "38" | "39" | "40" | "41" | null;
1725
+ /** @default false */
1726
+ transmits_customer_funds: boolean | null;
1727
+ ubo_declaration_url?: string | null;
1728
+ website?: string | null;
1729
+ selfie_url?: string | null;
1730
+ annual_salary?: string | null;
1731
+ expected_monthly_volume?: string | null;
1732
+ occupation?: string | null;
1733
+ /**
1734
+ * @default UNVERIFIED
1735
+ * @enum {string}
1736
+ */
1737
+ status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED";
1738
+ address?: components["schemas"]["KycAddressDto"] | null;
1739
+ beneficial_owners?: components["schemas"]["KycBeneficialOwnerDto"][] | null;
1740
+ };
1741
+ CreateOrUpdateKycEntityDto: {
1652
1742
  /** @enum {string} */
1653
1743
  type: "individual" | "business";
1654
1744
  id_number?: string | null;
@@ -3501,7 +3591,7 @@ export interface operations {
3501
3591
  };
3502
3592
  requestBody: {
3503
3593
  content: {
3504
- "application/json": components["schemas"]["KycEntityDto"];
3594
+ "application/json": components["schemas"]["CreateOrUpdateKycEntityDto"];
3505
3595
  };
3506
3596
  };
3507
3597
  responses: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.17.29",
3
+ "version": "1.17.30",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/api/list.ts CHANGED
@@ -8,11 +8,10 @@ import { apiClientV2 } from '../utils/apiClientFactory';
8
8
 
9
9
  export const list = {
10
10
  currencies: {
11
- getAll: (params?: AxiosRequestConfig) =>
12
- apiClientV2.getRequest<API.Currencies.CurrencyList>('/system/currencies', params),
11
+ getAll: (params?: AxiosRequestConfig) => apiClientV2.getRequest<API.Currencies.CurrencyList>('/currencies', params),
13
12
  },
14
13
  chains: {
15
- getAll: (params?: AxiosRequestConfig) => apiClientV2.getRequest<API.Chains.ChainList>('/system/chains', params),
14
+ getAll: (params?: AxiosRequestConfig) => apiClientV2.getRequest<API.Chains.ChainList>('/chains', params),
16
15
  },
17
16
  countries: {
18
17
  getAll: (params?: AxiosRequestConfig) =>
@@ -1650,6 +1650,96 @@ export interface components {
1650
1650
  address?: components["schemas"]["KycAddressDto"] | null;
1651
1651
  };
1652
1652
  KycEntityDto: {
1653
+ /** @enum {string} */
1654
+ type: "individual" | "business";
1655
+ id_number?: string | null;
1656
+ /** @enum {string|null} */
1657
+ id_type?: "PASSPORT" | "ID_CARD" | "DRIVERS" | "NIN" | null;
1658
+ additional_id_number?: string | null;
1659
+ additional_id_type?: string | null;
1660
+ aml_questionnaire?: components["schemas"]["KycEntityAmlQuestionnaireEntity"] | null;
1661
+ articles_of_association_url?: string | null;
1662
+ business_description?: string | null;
1663
+ business_industry?: string | null;
1664
+ business_name?: string | null;
1665
+ business_name_local?: string | null;
1666
+ business_registration_doc_url?: string | null;
1667
+ /** @enum {string|null} */
1668
+ business_type?: "cooperative" | "s_corporation" | "b_corporation" | "c_corporation" | "close_corporation" | "nonprofit_corporation" | "general_partnership" | "limited_partnership" | "limited_liability_company" | "other" | "sole_proprietorship" | "trust" | null;
1669
+ certificate_number?: string | null;
1670
+ certificate_of_incumbency_url?: string | null;
1671
+ /** @enum {string|null} */
1672
+ certificate_of_registration_doc_type?: "ACRA" | "GST" | "MSME" | "CERTIFICATE_OF_REGISTRATION" | null;
1673
+ certificate_of_registration_doc_url?: string | null;
1674
+ compliance_screening_explanation?: string | null;
1675
+ constitution_or_annual_report_url?: string | null;
1676
+ country_of_birth?: string | null;
1677
+ /** @default false */
1678
+ dao_status: boolean | null;
1679
+ date_of_birth?: string | null;
1680
+ due_diligence_form?: components["schemas"]["KycEntityDueDiligenceFormEntity"] | null;
1681
+ email?: string | null;
1682
+ export_country?: string | null;
1683
+ first_name?: string | null;
1684
+ first_name_local?: string | null;
1685
+ formation_date?: string | null;
1686
+ formation_doc_url?: string | null;
1687
+ gov_id_back_url?: string | null;
1688
+ gov_id_country?: string | null;
1689
+ gov_id_expiration_date?: string | null;
1690
+ gov_id_front_url?: string | null;
1691
+ gov_id_hand_hold_url?: string | null;
1692
+ gov_id_issuance_authority?: string | null;
1693
+ gov_id_issuance_date?: string | null;
1694
+ gov_id_number?: string | null;
1695
+ /** @enum {string|null} */
1696
+ gov_id_type?: "PASSPORT" | "ID_CARD" | "DRIVERS" | null;
1697
+ incorporation_number?: string | null;
1698
+ last_name?: string | null;
1699
+ last_name_local?: string | null;
1700
+ license_expiration_date?: string | null;
1701
+ middle_name?: string | null;
1702
+ middle_name_local?: string | null;
1703
+ nationality?: string | null;
1704
+ partnership_deed_url?: string | null;
1705
+ partnership_mins_of_meeting_url?: string | null;
1706
+ phone?: string | null;
1707
+ product_service_category?: string | null;
1708
+ /** @enum {string|null} */
1709
+ proof_of_address_type?: "UTILITY_BILL" | "BANK_STATEMENT" | "RENTAL_AGREEMENT" | "TAX_DOCUMENT" | null;
1710
+ proof_of_address_url?: string | null;
1711
+ proof_of_ownership_url?: string | null;
1712
+ /** @enum {string|null} */
1713
+ purpose?: "PAY_SUPPLIERS" | "PAY_SERVICE_PROVIDERS" | "GOODS_MERCHANDISE_COMMODITIES" | "FREELANCERS_CONTRACTORS_PAYROLL" | "FINANCIAL_SERVICES_LOANS_INVESTMENTS" | "TAX_REGULATORY_FEES" | "LEGAL_SERVICES" | "OPERATIONAL_EXPENSES" | "SUBSCRIPTIONS" | "TRAVEL_RELATED_EXPENSES" | "INSURANCE" | "ADVERTISING_MARKETING_EXPENSES" | "EQUIPMENT_MACHINERY" | "TECHNOLOGY_SERVICES" | "EDUCATION_RELATED_EXPENSES" | "TREASURY_PAYMENTS" | "FX_SERVICES" | "OTHER" | "ONLINE_MARKETPLACE_TRADING" | "OFFLINE_TRADING" | null;
1714
+ registration_number?: string | null;
1715
+ share_structure_url?: string | null;
1716
+ sof_eu_questionnaire?: components["schemas"]["KycEntitySofEuQuestionnaireEntity"] | null;
1717
+ source_of_funds?: string | null;
1718
+ supplementary_info?: string | null;
1719
+ supplementary_url?: string | null;
1720
+ tax_identification_number?: string | null;
1721
+ /** @enum {string|null} */
1722
+ tax_identification_number_type?: "EIN" | "SSN" | "VAT" | "TIN" | "UTR" | null;
1723
+ trade_name?: string | null;
1724
+ /** @enum {string|null} */
1725
+ trade_type?: "00" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "09" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "25" | "26" | "27" | "28" | "29" | "30" | "31" | "32" | "33" | "34" | "35" | "36" | "37" | "38" | "39" | "40" | "41" | null;
1726
+ /** @default false */
1727
+ transmits_customer_funds: boolean | null;
1728
+ ubo_declaration_url?: string | null;
1729
+ website?: string | null;
1730
+ selfie_url?: string | null;
1731
+ annual_salary?: string | null;
1732
+ expected_monthly_volume?: string | null;
1733
+ occupation?: string | null;
1734
+ /**
1735
+ * @default UNVERIFIED
1736
+ * @enum {string}
1737
+ */
1738
+ status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED";
1739
+ address?: components["schemas"]["KycAddressDto"] | null;
1740
+ beneficial_owners?: components["schemas"]["KycBeneficialOwnerDto"][] | null;
1741
+ };
1742
+ CreateOrUpdateKycEntityDto: {
1653
1743
  /** @enum {string} */
1654
1744
  type: "individual" | "business";
1655
1745
  id_number?: string | null;
@@ -3502,7 +3592,7 @@ export interface operations {
3502
3592
  };
3503
3593
  requestBody: {
3504
3594
  content: {
3505
- "application/json": components["schemas"]["KycEntityDto"];
3595
+ "application/json": components["schemas"]["CreateOrUpdateKycEntityDto"];
3506
3596
  };
3507
3597
  };
3508
3598
  responses: {