@finos_sdk/sdk-ekyc 1.4.2 → 1.4.5
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/README.md +26 -9
- package/android/build.gradle +1 -1
- package/android/src/main/java/finos/sdk/ekyc/EKYCModule.kt +107 -71
- package/dist/EKYCModule.d.ts +2 -0
- package/dist/EKYCModule.js +33 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +24 -10
- package/dist/package.json +2 -2
- package/dist/src/modules/FinosEKYCModule.d.ts +8 -0
- package/dist/src/modules/FinosEKYCModule.js +29 -10
- package/dist/src/modules/FinosESignModule.js +17 -7
- package/dist/src/services/sharingService.js +2 -2
- package/dist/src/types/EKYCErrorResult.d.ts +34 -0
- package/dist/src/types/EKYCErrorResult.js +57 -7
- package/dist/src/types/EKYCEvent.d.ts +60 -0
- package/dist/src/types/EKYCEvent.js +65 -0
- package/dist/src/types/ekycESignType.d.ts +2 -0
- package/dist/src/types/ekycESignType.js +1 -1
- package/dist/src/types/ekycFlowType.js +3 -3
- package/dist/src/types/ekycLivenessType.d.ts +1 -2
- package/dist/src/types/ekycLivenessType.js +3 -3
- package/dist/src/types/ekycType.js +3 -3
- package/dist/src/utils/utils.js +1 -2
- package/ios/EKYCModule.swift +5 -4
- package/ios/EKYCModuleBridge.m +8 -8
- package/package.json +2 -2
- package/src/modules/FinosEKYCModule.ts +14 -5
- package/src/types/EKYCErrorResult.ts +51 -0
- package/src/types/EKYCEvent.ts +76 -0
- package/src/types/ekycESignType.ts +2 -0
- package/src/types/ekycLivenessType.ts +1 -2
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
React Native SDK for eKYC (electronic Know Your Customer) and eSign. Features include Vietnamese CCCD NFC reading, OCR, Liveness detection, Face matching, C06 residence verification, SMS OTP verification, and Electronic Signature (eSign) capabilities.
|
|
7
7
|
|
|
8
|
-
**Version**: 1.4.
|
|
8
|
+
**Version**: 1.4.2
|
|
9
9
|
|
|
10
10
|
## Features
|
|
11
11
|
|
|
@@ -49,6 +49,7 @@ import {
|
|
|
49
49
|
getEkycError,
|
|
50
50
|
SDKFaceDetectStatus,
|
|
51
51
|
SDKFlowType,
|
|
52
|
+
AppIDType,
|
|
52
53
|
} from '@finos_sdk/sdk-ekyc';
|
|
53
54
|
|
|
54
55
|
import type {
|
|
@@ -138,6 +139,7 @@ const result = await FinosEKYC.startEkycUI(
|
|
|
138
139
|
SDKFaceDetectStatus.STRAIGHT,
|
|
139
140
|
],
|
|
140
141
|
activeActionCount: 3, // Random action count 1-10 (if customActions is null)
|
|
142
|
+
appIDType: AppIDType.VIKKI, // App ID type: NONE | HD_BANK | VIKKI
|
|
141
143
|
},
|
|
142
144
|
|
|
143
145
|
// --- styleConfig: UI customization ---
|
|
@@ -249,6 +251,7 @@ SDK behavior and runtime settings.
|
|
|
249
251
|
| `isShowCameraFont` | `boolean` | `true` | Show instruction text on camera screen |
|
|
250
252
|
| `customActions` | `SDKFaceDetectStatus[]` | `undefined` | Custom liveness action sequence |
|
|
251
253
|
| `activeActionCount` | `number` | `2` | Number of random actions (1-10, used when `customActions` is null) |
|
|
254
|
+
| `appIDType` | `AppIDType` | `NONE` | App ID type for branding: `NONE`, `HD_BANK`, or `VIKKI` |
|
|
252
255
|
|
|
253
256
|
```typescript
|
|
254
257
|
// Minimal
|
|
@@ -270,9 +273,27 @@ const optionConfig = {
|
|
|
270
273
|
SDKFaceDetectStatus.STRAIGHT,
|
|
271
274
|
],
|
|
272
275
|
activeActionCount: 3,
|
|
276
|
+
appIDType: AppIDType.VIKKI,
|
|
273
277
|
};
|
|
274
278
|
```
|
|
275
279
|
|
|
280
|
+
### AppIDType
|
|
281
|
+
|
|
282
|
+
Determines the branding/skin of SDK screens.
|
|
283
|
+
|
|
284
|
+
| Value | Description |
|
|
285
|
+
|-------|-------------|
|
|
286
|
+
| `NONE` | Default, no branding |
|
|
287
|
+
| `HD_BANK` | HD Bank branding |
|
|
288
|
+
| `VIKKI` | Vikki branding |
|
|
289
|
+
|
|
290
|
+
```typescript
|
|
291
|
+
import { AppIDType } from '@finos_sdk/sdk-ekyc';
|
|
292
|
+
|
|
293
|
+
// In optionConfig
|
|
294
|
+
{ appIDType: AppIDType.VIKKI }
|
|
295
|
+
```
|
|
296
|
+
|
|
276
297
|
### StyleConfig
|
|
277
298
|
|
|
278
299
|
UI appearance customization. All color values use ARGB integer format (e.g., `0xFFRRGGBB`).
|
|
@@ -822,17 +843,13 @@ useEffect(() => {
|
|
|
822
843
|
|
|
823
844
|
## What's New
|
|
824
845
|
|
|
825
|
-
### v1.4.
|
|
846
|
+
### v1.4.2
|
|
847
|
+
- `AppIDType` enum (NONE, HD_BANK, VIKKI) for branding/skin selection
|
|
826
848
|
- `captureButtonColor` and `captureButtonDisabledColor` in StyleConfig
|
|
827
|
-
- Android responsive layouts for camera preview screens
|
|
828
|
-
|
|
829
|
-
### v1.4.3
|
|
830
849
|
- `USER_CANCEL` error code (999) for user cancellation detection
|
|
831
|
-
- Auto-detect user cancellation when activity closed without completing
|
|
832
|
-
|
|
833
|
-
### v1.4.2
|
|
834
850
|
- User cancellation callback support across all modules
|
|
835
|
-
-
|
|
851
|
+
- Android responsive layouts for camera preview screens
|
|
852
|
+
- Refactored StyleConfig JSON parsing with proper JSONObject
|
|
836
853
|
|
|
837
854
|
### v1.4.1
|
|
838
855
|
- Full iOS native bridge support
|
package/android/build.gradle
CHANGED
|
@@ -65,7 +65,7 @@ dependencies {
|
|
|
65
65
|
implementation 'com.facebook.react:react-android'
|
|
66
66
|
|
|
67
67
|
// Finos eKYC SDK dependencies from GitHub Packages Maven repository
|
|
68
|
-
def sdkVersion = "1.4.
|
|
68
|
+
def sdkVersion = "1.4.5.2"
|
|
69
69
|
implementation("finos.sdk.ekyc:ekyc:$sdkVersion")
|
|
70
70
|
implementation("finos.sdk.ekyc:ekycui:$sdkVersion")
|
|
71
71
|
implementation("finos.sdk.ekyc:nfc:$sdkVersion")
|