squarefi-bff-api-module 1.18.1 → 1.18.2

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
@@ -632,3 +632,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
632
632
  - TypeScript support
633
633
  - Authentication methods
634
634
  - Core API endpoints support
635
+
636
+ ## [1.18.2] - 2025-05-21
637
+
638
+ ### Added
639
+
640
+ - Added entity retrieval functionality to KYC module with new endpoint and types
package/dist/api/kyc.d.ts CHANGED
@@ -3,6 +3,9 @@ export declare const kyc: {
3
3
  sumsub: {
4
4
  generate_token: (data: API.KYC.Sumsub.GenerateToken.Request) => Promise<API.KYC.Sumsub.GenerateToken.Response>;
5
5
  };
6
+ entity: {
7
+ get: ({ wallet_id }: API.KYC.Entity.Get.Request) => Promise<API.KYC.Entity.Get.Response>;
8
+ };
6
9
  rails: {
7
10
  info: {
8
11
  getAll: ({ wallet_id }: API.KYC.Rails.RailInfo.List.Request) => Promise<API.KYC.Rails.RailInfo.List.Response>;
package/dist/api/kyc.js CHANGED
@@ -6,6 +6,9 @@ exports.kyc = {
6
6
  sumsub: {
7
7
  generate_token: (data) => apiClientFactory_1.apiClientV1.postRequest('/kyc/sumsub/generate_token', { data }),
8
8
  },
9
+ entity: {
10
+ get: ({ wallet_id }) => apiClientFactory_1.apiClientV2.getRequest(`/kyc/${wallet_id}/entity`),
11
+ },
9
12
  rails: {
10
13
  info: {
11
14
  getAll: ({ wallet_id }) => apiClientFactory_1.apiClientV2.getRequest(`/kyc/${wallet_id}/rails`),
@@ -1,6 +1,6 @@
1
1
  import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CounterpartyDestinationType, CounterpartyType, CurrencyType, IssuingProgramStatus, KYCStatuses, OrderStatuses, OrderType, SortingDirection, SubAccountType, WalletTransactionMethod, WalletTransactionRecordType, WalletTransactionStatus, WalletTransactionType } from '../../constants';
2
2
  import { WalletType } from '../..';
3
- import { operations } from './autogen/apiV2.types';
3
+ import { components, operations } from './autogen/apiV2.types';
4
4
  export declare namespace API {
5
5
  namespace Auth {
6
6
  namespace Telegram {
@@ -845,6 +845,13 @@ export declare namespace API {
845
845
  }
846
846
  }
847
847
  }
848
+ namespace Entity {
849
+ type Entity = components['schemas']['KycEntityDto'];
850
+ namespace Get {
851
+ type Request = operations['KycEntitiesController_findOne']['parameters']['path'];
852
+ type Response = operations['KycEntitiesController_findOne']['responses']['200']['content']['application/json'];
853
+ }
854
+ }
848
855
  namespace Forms {
849
856
  namespace FormField {
850
857
  type FormFieldType = 'text' | 'email' | 'password' | 'radio' | 'select' | 'checkbox' | 'textarea' | 'number' | 'date' | 'switch' | 'file';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.18.1",
3
+ "version": "1.18.2",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/api/kyc.ts CHANGED
@@ -7,6 +7,10 @@ export const kyc = {
7
7
  generate_token: (data: API.KYC.Sumsub.GenerateToken.Request): Promise<API.KYC.Sumsub.GenerateToken.Response> =>
8
8
  apiClientV1.postRequest<API.KYC.Sumsub.GenerateToken.Response>('/kyc/sumsub/generate_token', { data }),
9
9
  },
10
+ entity: {
11
+ get: ({ wallet_id }: API.KYC.Entity.Get.Request): Promise<API.KYC.Entity.Get.Response> =>
12
+ apiClientV2.getRequest<API.KYC.Entity.Get.Response>(`/kyc/${wallet_id}/entity`),
13
+ },
10
14
  rails: {
11
15
  info: {
12
16
  getAll: ({ wallet_id }: API.KYC.Rails.RailInfo.List.Request): Promise<API.KYC.Rails.RailInfo.List.Response> =>
@@ -19,7 +19,7 @@ import {
19
19
  WalletTransactionType,
20
20
  } from '../../constants';
21
21
  import { WalletType } from '../..';
22
- import { operations } from './autogen/apiV2.types';
22
+ import { components, operations } from './autogen/apiV2.types';
23
23
 
24
24
  export namespace API {
25
25
  export namespace Auth {
@@ -1002,6 +1002,15 @@ export namespace API {
1002
1002
  }
1003
1003
  }
1004
1004
  }
1005
+
1006
+ export namespace Entity {
1007
+ export type Entity = components['schemas']['KycEntityDto'];
1008
+ export namespace Get {
1009
+ export type Request = operations['KycEntitiesController_findOne']['parameters']['path'];
1010
+ export type Response =
1011
+ operations['KycEntitiesController_findOne']['responses']['200']['content']['application/json'];
1012
+ }
1013
+ }
1005
1014
  export namespace Forms {
1006
1015
  export namespace FormField {
1007
1016
  export type FormFieldType =