squarefi-bff-api-module 1.18.3 → 1.18.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/CHANGELOG.md +6 -0
- package/dist/api/types/types.d.ts +8 -25
- package/package.json +1 -1
- package/src/api/types/types.ts +9 -34
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ 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.18.4] - 2025-05-23
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Streamlined KYC rail types by replacing interfaces with schema-based types for improved consistency and maintainability
|
|
13
|
+
|
|
8
14
|
## [1.18.3] - 2025-05-22
|
|
9
15
|
|
|
10
16
|
### Added
|
|
@@ -901,42 +901,25 @@ export declare namespace API {
|
|
|
901
901
|
}
|
|
902
902
|
}
|
|
903
903
|
namespace Rails {
|
|
904
|
-
type RailStatus = '
|
|
905
|
-
|
|
906
|
-
id: string;
|
|
907
|
-
status: API.KYC.Rails.RailStatus;
|
|
908
|
-
}
|
|
904
|
+
type RailStatus = components['schemas']['WalletKycRailDto']['status'];
|
|
905
|
+
type WalletRail = components['schemas']['WalletKycRailDto'];
|
|
909
906
|
namespace RailInfo {
|
|
910
|
-
|
|
911
|
-
id: string;
|
|
912
|
-
code: string;
|
|
913
|
-
name: string;
|
|
914
|
-
wallet_rail: WalletRail;
|
|
915
|
-
}
|
|
907
|
+
type RailInfo = components['schemas']['WalletKycRailTypeDto'];
|
|
916
908
|
namespace SingleRail {
|
|
917
|
-
|
|
918
|
-
wallet_id: string;
|
|
919
|
-
rail_id: string;
|
|
920
|
-
}
|
|
909
|
+
type Request = operations['WalletKycRailsController_findOne']['parameters']['path'];
|
|
921
910
|
type Response = RailInfo;
|
|
922
911
|
}
|
|
923
912
|
namespace List {
|
|
924
|
-
|
|
913
|
+
type Request = {
|
|
925
914
|
wallet_id: string;
|
|
926
|
-
}
|
|
927
|
-
type Response = {
|
|
928
|
-
total: number;
|
|
929
|
-
data: RailInfo[];
|
|
930
915
|
};
|
|
916
|
+
type Response = components['schemas']['GetWalletKycRailsResponseDto'];
|
|
931
917
|
}
|
|
932
918
|
}
|
|
933
919
|
namespace Submit {
|
|
934
920
|
namespace Single {
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
rail_id: string;
|
|
938
|
-
}
|
|
939
|
-
type Response = API.KYC.Rails.RailInfo.RailInfo;
|
|
921
|
+
type Request = operations['WalletKycRailsController_findOne']['parameters']['path'];
|
|
922
|
+
type Response = components['schemas']['WalletKycRailTypeDto'];
|
|
940
923
|
}
|
|
941
924
|
}
|
|
942
925
|
}
|
package/package.json
CHANGED
package/src/api/types/types.ts
CHANGED
|
@@ -1075,55 +1075,30 @@ export namespace API {
|
|
|
1075
1075
|
}
|
|
1076
1076
|
|
|
1077
1077
|
export namespace Rails {
|
|
1078
|
-
export type RailStatus =
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
| 'PENDING'
|
|
1082
|
-
| 'HOLD'
|
|
1083
|
-
| 'DOUBLE'
|
|
1084
|
-
| 'SOFT_REJECT'
|
|
1085
|
-
| 'REJECT'
|
|
1086
|
-
| 'UNVERIFIED';
|
|
1087
|
-
|
|
1088
|
-
export interface WalletRail {
|
|
1089
|
-
id: string;
|
|
1090
|
-
status: API.KYC.Rails.RailStatus;
|
|
1091
|
-
}
|
|
1078
|
+
export type RailStatus = components['schemas']['WalletKycRailDto']['status'];
|
|
1079
|
+
|
|
1080
|
+
export type WalletRail = components['schemas']['WalletKycRailDto'];
|
|
1092
1081
|
|
|
1093
1082
|
export namespace RailInfo {
|
|
1094
|
-
export
|
|
1095
|
-
id: string;
|
|
1096
|
-
code: string;
|
|
1097
|
-
name: string;
|
|
1098
|
-
wallet_rail: WalletRail;
|
|
1099
|
-
}
|
|
1083
|
+
export type RailInfo = components['schemas']['WalletKycRailTypeDto'];
|
|
1100
1084
|
|
|
1101
1085
|
export namespace SingleRail {
|
|
1102
|
-
export
|
|
1103
|
-
wallet_id: string;
|
|
1104
|
-
rail_id: string;
|
|
1105
|
-
}
|
|
1086
|
+
export type Request = operations['WalletKycRailsController_findOne']['parameters']['path'];
|
|
1106
1087
|
export type Response = RailInfo;
|
|
1107
1088
|
}
|
|
1108
1089
|
|
|
1109
1090
|
export namespace List {
|
|
1110
|
-
export
|
|
1091
|
+
export type Request = {
|
|
1111
1092
|
wallet_id: string;
|
|
1112
|
-
}
|
|
1113
|
-
export type Response = {
|
|
1114
|
-
total: number;
|
|
1115
|
-
data: RailInfo[];
|
|
1116
1093
|
};
|
|
1094
|
+
export type Response = components['schemas']['GetWalletKycRailsResponseDto'];
|
|
1117
1095
|
}
|
|
1118
1096
|
}
|
|
1119
1097
|
|
|
1120
1098
|
export namespace Submit {
|
|
1121
1099
|
export namespace Single {
|
|
1122
|
-
export
|
|
1123
|
-
|
|
1124
|
-
rail_id: string;
|
|
1125
|
-
}
|
|
1126
|
-
export type Response = API.KYC.Rails.RailInfo.RailInfo;
|
|
1100
|
+
export type Request = operations['WalletKycRailsController_findOne']['parameters']['path'];
|
|
1101
|
+
export type Response = components['schemas']['WalletKycRailTypeDto'];
|
|
1127
1102
|
}
|
|
1128
1103
|
}
|
|
1129
1104
|
}
|