squarefi-bff-api-module 1.17.8 → 1.17.10

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,19 @@ 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.10] - 2025-04-23
9
+
10
+ ### Changed
11
+
12
+ - Integrated location functionality into list module
13
+ - Updated README documentation to reflect module changes
14
+
15
+ ## [1.17.9] - 2025-04-23
16
+
17
+ ### Changed
18
+
19
+ - Updated Location.Countries.List.Response type to include total count and data array
20
+
8
21
  ## [1.17.8] - 2025-04-23
9
22
 
10
23
  ### Changed
package/README.md CHANGED
@@ -54,6 +54,11 @@ const cards = await squarefi_bff_api_client.issuing.cards.byWalletUuid.getAll({
54
54
  const exchangeRates = await squarefi_bff_api_client.exchange.byOrderType[OrderType.DEPOSIT_FIAT_SEPA].getByFromCurrency(
55
55
  'from_uuid'
56
56
  );
57
+
58
+ // System operations (currencies, chains, countries)
59
+ const currencies = await squarefi_bff_api_client.list.currencies.getAll();
60
+ const chains = await squarefi_bff_api_client.list.chains.getAll();
61
+ const countries = await squarefi_bff_api_client.list.countries.getAll();
57
62
  ```
58
63
 
59
64
  ## 📚 Available API Modules
@@ -81,14 +86,14 @@ Access different API functionalities through the client:
81
86
  - Card status management
82
87
  - `squarefi_bff_api_client.kyc` - Know Your Customer procedures
83
88
  - Sumsub integration
84
- - `squarefi_bff_api_client.list` - Listing and pagination utilities
85
- - Currencies list
86
- - Chains list
87
- - `squarefi_bff_api_client.location` - Location services
88
- - Countries list
89
+ - `squarefi_bff_api_client.list` - System data operations
90
+ - Currencies list (`/system/currencies`)
91
+ - Chains list (`/system/chains`)
92
+ - Countries list (`/system/countries`)
89
93
  - `squarefi_bff_api_client.orders` - Order management
90
94
  - Create orders by type
91
95
  - Calculate exchange rates
96
+ - Support for INTERNAL_TRANSFER order type
92
97
  - `squarefi_bff_api_client.tenants` - Tenant management operations
93
98
  - Tenant configuration
94
99
  - `squarefi_bff_api_client.user` - User profile operations
@@ -17,7 +17,6 @@ type Api = {
17
17
  issuing: typeof issuing;
18
18
  kyc: typeof kyc;
19
19
  list: typeof list;
20
- location: typeof location;
21
20
  orders: typeof orders;
22
21
  tenants: typeof tenants;
23
22
  user: typeof user;
package/dist/api/index.js CHANGED
@@ -20,7 +20,6 @@ exports.squarefi_bff_api_client = {
20
20
  issuing: issuing_1.issuing,
21
21
  kyc: kyc_1.kyc,
22
22
  list: list_1.list,
23
- location,
24
23
  orders: orders_1.orders,
25
24
  tenants: tenants_1.tenants,
26
25
  user: user_1.user,
@@ -852,7 +852,10 @@ export declare namespace API {
852
852
  wikiDataId: string;
853
853
  }
854
854
  namespace List {
855
- type Response = API.Location.Countries.Country[];
855
+ type Response = {
856
+ total: number;
857
+ data: Country[];
858
+ };
856
859
  }
857
860
  }
858
861
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.17.8",
3
+ "version": "1.17.10",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/api/index.ts CHANGED
@@ -19,7 +19,6 @@ type Api = {
19
19
  issuing: typeof issuing;
20
20
  kyc: typeof kyc;
21
21
  list: typeof list;
22
- location: typeof location;
23
22
  orders: typeof orders;
24
23
  tenants: typeof tenants;
25
24
  user: typeof user;
@@ -34,7 +33,6 @@ export const squarefi_bff_api_client: Api = {
34
33
  issuing,
35
34
  kyc,
36
35
  list,
37
- location,
38
36
  orders,
39
37
  tenants,
40
38
  user,
package/src/api/types.ts CHANGED
@@ -1008,7 +1008,10 @@ export namespace API {
1008
1008
  }
1009
1009
 
1010
1010
  export namespace List {
1011
- export type Response = API.Location.Countries.Country[];
1011
+ export type Response = {
1012
+ total: number;
1013
+ data: Country[];
1014
+ };
1012
1015
  }
1013
1016
  }
1014
1017
  }