@finos_sdk/sdk-ekyc 1.2.2 → 1.2.8
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/LICENSE +13 -10
- package/README.md +41 -42
- package/android/build.gradle +42 -11
- package/android/gradle.properties +7 -1
- package/android/settings.gradle +53 -0
- package/android/src/main/java/finos/sdk/ekyc/EKYCModule.kt +778 -81
- package/dist/EKYCModule.d.ts +72 -0
- package/dist/EKYCModule.js +650 -71
- package/dist/finos_sdk-sdk-ekyc-1.2.8.tgz +0 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +5 -1
- package/dist/package.json +31 -21
- package/dist/src/modules/FinosEKYCModule.d.ts +144 -0
- package/dist/src/modules/FinosEKYCModule.js +468 -2
- package/dist/src/modules/FinosESignModule.d.ts +270 -0
- package/dist/src/modules/FinosESignModule.js +752 -0
- package/dist/src/types/ekycESignType.d.ts +67 -0
- package/dist/src/types/ekycESignType.js +2 -0
- package/dist/src/types/ekycSmsOtpType.d.ts +52 -0
- package/dist/src/types/ekycSmsOtpType.js +2 -0
- package/package.json +31 -21
- package/src/modules/FinosEKYCModule.ts +554 -2
- package/src/modules/FinosESignModule.ts +919 -0
- package/src/modules/README.md +3 -3
- package/src/types/ekycESignType.ts +76 -0
- package/src/types/ekycSmsOtpType.ts +59 -0
- package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.2/c06-1.2.2-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.2/c06-1.2.2.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.2/c06-1.2.2.module +0 -110
- package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.2/c06-1.2.2.pom +0 -37
- package/android/SDKeKYC/finos/sdk/ekyc/c06/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.2/ekyc-1.2.2-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.2/ekyc-1.2.2.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.2/ekyc-1.2.2.module +0 -201
- package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.2/ekyc-1.2.2.pom +0 -73
- package/android/SDKeKYC/finos/sdk/ekyc/ekyc/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.2/ekycui-1.2.2-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.2/ekycui-1.2.2.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.2/ekycui-1.2.2.module +0 -131
- package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.2/ekycui-1.2.2.pom +0 -43
- package/android/SDKeKYC/finos/sdk/ekyc/ekycui/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.2/faceservice-1.2.2-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.2/faceservice-1.2.2.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.2/faceservice-1.2.2.module +0 -110
- package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.2/faceservice-1.2.2.pom +0 -37
- package/android/SDKeKYC/finos/sdk/ekyc/faceservice/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.2/liveness-1.2.2-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.2/liveness-1.2.2.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.2/liveness-1.2.2.module +0 -138
- package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.2/liveness-1.2.2.pom +0 -55
- package/android/SDKeKYC/finos/sdk/ekyc/liveness/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.2/nfc-1.2.2-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.2/nfc-1.2.2.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.2/nfc-1.2.2.module +0 -131
- package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.2/nfc-1.2.2.pom +0 -55
- package/android/SDKeKYC/finos/sdk/ekyc/nfc/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.2/ocr-1.2.2-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.2/ocr-1.2.2.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.2/ocr-1.2.2.module +0 -124
- package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.2/ocr-1.2.2.pom +0 -43
- package/android/SDKeKYC/finos/sdk/ekyc/ocr/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.2/qrcode-1.2.2-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.2/qrcode-1.2.2.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.2/qrcode-1.2.2.module +0 -138
- package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.2/qrcode-1.2.2.pom +0 -55
- package/android/SDKeKYC/finos/sdk/ekyc/qrcode/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.2/sdkcore-1.2.2-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.2/sdkcore-1.2.2.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.2/sdkcore-1.2.2.module +0 -341
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.2/sdkcore-1.2.2.pom +0 -139
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.2/sdkcorecamera-1.2.2-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.2/sdkcorecamera-1.2.2.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.2/sdkcorecamera-1.2.2.module +0 -201
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.2/sdkcorecamera-1.2.2.pom +0 -85
- package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/maven-metadata-local.xml +0 -13
- package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.2/sdkui-1.2.2-sources.jar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.2/sdkui-1.2.2.aar +0 -0
- package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.2/sdkui-1.2.2.module +0 -208
- package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.2/sdkui-1.2.2.pom +0 -103
- package/android/SDKeKYC/finos/sdk/ekyc/sdkui/maven-metadata-local.xml +0 -13
- package/android/src/main/AndroidManifest.xml +0 -22
- package/android/src/main/build.gradle +0 -31
- package/dist/App.d.ts +0 -3
- package/dist/App.js +0 -497
- package/dist/finos_sdk-sdk-ekyc-1.2.2.tgz +0 -0
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import sdkEKYC, { SDKeKYC, SDK_VERSION, SDK_NAME } from './EKYCModule';
|
|
2
2
|
import { FinosEKYC, FinosEKYCModule } from './src/modules/FinosEKYCModule';
|
|
3
|
+
import { FinosESign, FinosESignModule } from './src/modules/FinosESignModule';
|
|
3
4
|
export default sdkEKYC;
|
|
4
5
|
export { sdkEKYC, SDKeKYC };
|
|
5
6
|
export { FinosEKYC, FinosEKYCModule };
|
|
6
|
-
export
|
|
7
|
+
export { FinosESign, FinosESignModule };
|
|
8
|
+
export type { NfcConfig, NFCData, NfcInfo } from './src/types/ekycNFCType';
|
|
7
9
|
export type { C06Config } from './src/types/ekycC06Type';
|
|
8
10
|
export type { OcrConfig } from './src/types/ekycOCRType';
|
|
9
11
|
export type { LivenessConfig } from './src/types/ekycLivenessType';
|
|
10
12
|
export type { FaceServiceConfig } from './src/types/ekycFaceType';
|
|
11
13
|
export type { SDKEkycResultWithEvent, SDKEkycResultStringWithEvent } from './src/types/ekycType';
|
|
12
14
|
export type { NfcError } from './src/types/ekycNFCType';
|
|
15
|
+
export type { SDKTransactionResponse } from './src/types/ekycTransactionType';
|
|
16
|
+
export type { SmsOtpConfig, SmsOtpResult, SmsOtpError } from './src/types/ekycSmsOtpType';
|
|
17
|
+
export type { UserEsignModel, ESignInitResult, ESignOpenSessionResult, ESignCertificate, ESignSignRequest, ESignError, ESignAuthenticateResult } from './src/types/ekycESignType';
|
|
13
18
|
export { parseNfcResponse } from './src/utils/utils';
|
|
14
19
|
export { SDK_VERSION, SDK_NAME };
|
package/dist/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.SDK_NAME = exports.SDK_VERSION = exports.parseNfcResponse = exports.FinosEKYCModule = exports.FinosEKYC = exports.SDKeKYC = exports.sdkEKYC = void 0;
|
|
26
|
+
exports.SDK_NAME = exports.SDK_VERSION = exports.parseNfcResponse = exports.FinosESignModule = exports.FinosESign = exports.FinosEKYCModule = exports.FinosEKYC = exports.SDKeKYC = exports.sdkEKYC = void 0;
|
|
27
27
|
const EKYCModule_1 = __importStar(require("./EKYCModule"));
|
|
28
28
|
exports.sdkEKYC = EKYCModule_1.default;
|
|
29
29
|
Object.defineProperty(exports, "SDKeKYC", { enumerable: true, get: function () { return EKYCModule_1.SDKeKYC; } });
|
|
@@ -32,6 +32,10 @@ Object.defineProperty(exports, "SDK_NAME", { enumerable: true, get: function ()
|
|
|
32
32
|
const FinosEKYCModule_1 = require("./src/modules/FinosEKYCModule");
|
|
33
33
|
Object.defineProperty(exports, "FinosEKYC", { enumerable: true, get: function () { return FinosEKYCModule_1.FinosEKYC; } });
|
|
34
34
|
Object.defineProperty(exports, "FinosEKYCModule", { enumerable: true, get: function () { return FinosEKYCModule_1.FinosEKYCModule; } });
|
|
35
|
+
const FinosESignModule_1 = require("./src/modules/FinosESignModule");
|
|
36
|
+
Object.defineProperty(exports, "FinosESign", { enumerable: true, get: function () { return FinosESignModule_1.FinosESign; } });
|
|
37
|
+
Object.defineProperty(exports, "FinosESignModule", { enumerable: true, get: function () { return FinosESignModule_1.FinosESignModule; } });
|
|
38
|
+
console.log('✅ SDK modules loaded successfully');
|
|
35
39
|
// Export main SDK instance and class (legacy)
|
|
36
40
|
exports.default = EKYCModule_1.default;
|
|
37
41
|
// Export utility functions
|
package/dist/package.json
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos_sdk/sdk-ekyc",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "React Native SDK for eKYC - Vietnamese CCCD NFC reading, OCR, Liveness detection, Face matching, and C06 residence verification",
|
|
3
|
+
"version": "1.2.8",
|
|
4
|
+
"description": "React Native SDK for eKYC - Vietnamese CCCD NFC reading, OCR, Liveness detection, Face matching, and C06, eSign, SmsOTP residence verification",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
9
9
|
"react-native.config.js",
|
|
10
|
-
"android/src",
|
|
10
|
+
"android/src/main/java",
|
|
11
11
|
"android/build.gradle",
|
|
12
|
+
"android/settings.gradle",
|
|
12
13
|
"android/gradle.properties",
|
|
13
14
|
"android/gradle/wrapper/**",
|
|
14
15
|
"android/gradlew",
|
|
15
16
|
"android/gradlew.bat",
|
|
16
17
|
"android/consumer-rules.pro",
|
|
17
|
-
"android/SDKeKYC/**",
|
|
18
18
|
"src/**"
|
|
19
19
|
],
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "git+https://github.com/finos
|
|
22
|
+
"url": "git+https://github.com/finosvn/finos.ekyc.sdk.git"
|
|
23
23
|
},
|
|
24
24
|
"author": "FinOS",
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"bugs": {
|
|
27
|
-
"url": "https://github.com/finos
|
|
27
|
+
"url": "https://github.com/finosvn/finos.ekyc.sdk/issues"
|
|
28
28
|
},
|
|
29
|
-
"homepage": "https://github.com/finos
|
|
29
|
+
"homepage": "https://github.com/finosvn/finos.ekyc.sdk#readme",
|
|
30
30
|
"keywords": [
|
|
31
31
|
"react-native",
|
|
32
32
|
"ekyc",
|
|
@@ -42,36 +42,46 @@
|
|
|
42
42
|
"typescript"
|
|
43
43
|
],
|
|
44
44
|
"scripts": {
|
|
45
|
-
"android": "npx react-native run-android",
|
|
45
|
+
"android": "npm run build && npm run bundle:android && npx react-native run-android",
|
|
46
|
+
"bundle:android": "mkdir -p android/app/src/main/assets && curl -s \"http://localhost:8081/index.bundle?platform=android&dev=false&minify=false\" -o android/app/src/main/assets/index.android.bundle || echo \"⚠️ Metro không chạy, bỏ qua bundle\"",
|
|
47
|
+
"android:log": "npm run build && npm run bundle:android && npx react-native run-android && sleep 8 && npm run log:all",
|
|
48
|
+
"reload": "npm run log:reload",
|
|
46
49
|
"ios": "react-native run-ios",
|
|
47
|
-
"start": "react-native start
|
|
50
|
+
"start": "react-native start",
|
|
51
|
+
"reset": "react-native start --reset-cache",
|
|
48
52
|
"clean": "cd android && ./gradlew clean && cd ..",
|
|
49
53
|
"npm-install": "npm install",
|
|
50
|
-
"build": "tsc",
|
|
54
|
+
"build": "npx --package=typescript tsc",
|
|
51
55
|
"prepare": "npm run build",
|
|
52
56
|
"publish-sdk-local": "npm pack",
|
|
53
57
|
"publish-sdk": "npm run build && npm publish --access public",
|
|
54
58
|
"publish-sdk-version": "npm run build && npm version patch --force && npm publish --access public",
|
|
55
59
|
"prepublishOnly": "npm run build",
|
|
56
|
-
"unpublish:1.2.2": "node -e \"if(process.env.CONFIRM_UNPUBLISH==='YES'){process.exit(0)}else{console.error('Set CONFIRM_UNPUBLISH=YES to confirm');process.exit(1)}\" && npm unpublish @finos_sdk/sdk-ekyc@1.2.2"
|
|
60
|
+
"unpublish:1.2.2": "node -e \"if(process.env.CONFIRM_UNPUBLISH==='YES'){process.exit(0)}else{console.error('Set CONFIRM_UNPUBLISH=YES to confirm');process.exit(1)}\" && npm unpublish @finos_sdk/sdk-ekyc@1.2.2",
|
|
61
|
+
"log:android": "npx react-native log-android",
|
|
62
|
+
"log:ios": "npx react-native log-ios",
|
|
63
|
+
"log:sdk": "./watch-sdk-logs.sh",
|
|
64
|
+
"log:buffer": "./watch-logs-with-buffer.sh",
|
|
65
|
+
"log:native": "./watch-native-logs.sh",
|
|
66
|
+
"log:all": "./watch-all-logs.sh",
|
|
67
|
+
"log:reload": "./reload-and-watch.sh",
|
|
68
|
+
"log:clear": "adb logcat -c && echo '✅ Logs cleared'"
|
|
57
69
|
},
|
|
58
70
|
"dependencies": {
|
|
59
71
|
"react": "18.3.1",
|
|
60
|
-
"react-native": "0.
|
|
61
|
-
"
|
|
62
|
-
"
|
|
72
|
+
"react-native": "0.77.0",
|
|
73
|
+
"reflect-metadata": "^0.2.1",
|
|
74
|
+
"tsyringe": "^4.10.0"
|
|
63
75
|
},
|
|
64
76
|
"devDependencies": {
|
|
65
77
|
"@babel/core": "^7.25.2",
|
|
66
78
|
"@babel/preset-env": "^7.25.3",
|
|
67
79
|
"@babel/runtime": "^7.25.0",
|
|
68
|
-
"@react-native-community/cli": "
|
|
69
|
-
"@react-native
|
|
70
|
-
"@react-native
|
|
71
|
-
"@react-native/
|
|
72
|
-
"@react-native/
|
|
73
|
-
"@react-native/metro-config": "0.76.9",
|
|
74
|
-
"@react-native/typescript-config": "0.76.9",
|
|
80
|
+
"@react-native-community/cli": "16.0.3",
|
|
81
|
+
"@react-native/babel-preset": "0.77.0",
|
|
82
|
+
"@react-native/eslint-config": "0.77.0",
|
|
83
|
+
"@react-native/metro-config": "0.77.0",
|
|
84
|
+
"@react-native/typescript-config": "0.77.0",
|
|
75
85
|
"@types/react": "^18.2.6",
|
|
76
86
|
"@types/react-test-renderer": "^18.0.0",
|
|
77
87
|
"babel-jest": "^29.6.3",
|
|
@@ -5,6 +5,8 @@ import { C06Config } from '../types/ekycC06Type';
|
|
|
5
5
|
import { OcrConfig } from '../types/ekycOCRType';
|
|
6
6
|
import { LivenessConfig } from '../types/ekycLivenessType';
|
|
7
7
|
import { FaceServiceConfig } from '../types/ekycFaceType';
|
|
8
|
+
import { SmsOtpConfig, SmsOtpResult, SmsOtpError } from '../types/ekycSmsOtpType';
|
|
9
|
+
import { UserEsignModel, ESignInitResult, ESignOpenSessionResult, ESignCertificate, ESignSignRequest, ESignError, ESignAuthenticateResult } from '../types/ekycESignType';
|
|
8
10
|
/**
|
|
9
11
|
* Finos eKYC SDK Module
|
|
10
12
|
*
|
|
@@ -134,6 +136,146 @@ export declare class FinosEKYCModule {
|
|
|
134
136
|
* Remove all event listeners
|
|
135
137
|
*/
|
|
136
138
|
removeAllListeners(): void;
|
|
139
|
+
/**
|
|
140
|
+
* Send SMS OTP
|
|
141
|
+
* @param config SMS OTP configuration
|
|
142
|
+
*/
|
|
143
|
+
sendOtp(config: SmsOtpConfig): Promise<SmsOtpResult>;
|
|
144
|
+
/**
|
|
145
|
+
* Verify SMS OTP
|
|
146
|
+
* @param config SMS OTP configuration (must include requestId)
|
|
147
|
+
* @param otpCode OTP code from SMS
|
|
148
|
+
*/
|
|
149
|
+
verifyOtp(config: SmsOtpConfig, otpCode: string): Promise<SmsOtpResult>;
|
|
150
|
+
/**
|
|
151
|
+
* Resend SMS OTP
|
|
152
|
+
* @param config SMS OTP configuration (must include requestId)
|
|
153
|
+
*/
|
|
154
|
+
resendOtp(config: SmsOtpConfig): Promise<SmsOtpResult>;
|
|
155
|
+
onSmsOtpSendSuccess(callback: (data: SmsOtpResult) => void): import("react-native").EmitterSubscription | null;
|
|
156
|
+
onSmsOtpVerifySuccess(callback: (data: SmsOtpResult) => void): import("react-native").EmitterSubscription | null;
|
|
157
|
+
onSmsOtpResendSuccess(callback: (data: SmsOtpResult) => void): import("react-native").EmitterSubscription | null;
|
|
158
|
+
onSmsOtpError(callback: (error: SmsOtpError) => void): import("react-native").EmitterSubscription | null;
|
|
159
|
+
/**
|
|
160
|
+
* Initialize eSign SDK
|
|
161
|
+
*/
|
|
162
|
+
initializeESign(): Promise<ESignInitResult>;
|
|
163
|
+
/**
|
|
164
|
+
* Open eSign session
|
|
165
|
+
* @param accessToken JWT access token (optional if using userEsignModel)
|
|
166
|
+
* @param username Optional username
|
|
167
|
+
* @param rememberMe Remember session
|
|
168
|
+
* @param userEsignModel User info for auto token creation (optional if using accessToken)
|
|
169
|
+
* @param privateKeyFilePath Path to private key file in assets (required if using userEsignModel)
|
|
170
|
+
*/
|
|
171
|
+
openSessionId(accessToken?: string, username?: string, rememberMe?: boolean, userEsignModel?: UserEsignModel, privateKeyFilePath?: string): Promise<ESignOpenSessionResult>;
|
|
172
|
+
/**
|
|
173
|
+
* Register device for eSign
|
|
174
|
+
* @param recoverCode 8-digit recovery code
|
|
175
|
+
* @param pinCode 6-digit PIN code
|
|
176
|
+
* @param fcmToken Optional FCM token
|
|
177
|
+
*/
|
|
178
|
+
registerDevice(recoverCode: string, pinCode: string, fcmToken?: string): Promise<{
|
|
179
|
+
code: string;
|
|
180
|
+
message: string;
|
|
181
|
+
}>;
|
|
182
|
+
/**
|
|
183
|
+
* List eSign certificates
|
|
184
|
+
* @param pageNumber Page number (default: 1)
|
|
185
|
+
* @param pageSize Page size (default: 10)
|
|
186
|
+
*/
|
|
187
|
+
listCerts(pageNumber?: number, pageSize?: number): Promise<{
|
|
188
|
+
certs: ESignCertificate[];
|
|
189
|
+
}>;
|
|
190
|
+
/**
|
|
191
|
+
* Verify eSign certificate
|
|
192
|
+
* @param serial Certificate serial number
|
|
193
|
+
*/
|
|
194
|
+
verifyCert(serial: string): Promise<{
|
|
195
|
+
code: string;
|
|
196
|
+
message: string;
|
|
197
|
+
}>;
|
|
198
|
+
/**
|
|
199
|
+
* List eSign sign requests
|
|
200
|
+
* @param pageNumber Page number (default: 1)
|
|
201
|
+
* @param pageSize Page size (default: 10)
|
|
202
|
+
*/
|
|
203
|
+
listSignRequest(pageNumber?: number, pageSize?: number): Promise<{
|
|
204
|
+
requests: ESignSignRequest[];
|
|
205
|
+
}>;
|
|
206
|
+
/**
|
|
207
|
+
* Confirm eSign signature
|
|
208
|
+
* @param signRequestId Sign request ID
|
|
209
|
+
* @param pinCode 6-digit PIN code
|
|
210
|
+
* @param authId Optional auth ID
|
|
211
|
+
* @param authData Optional auth data
|
|
212
|
+
* @param confirm Confirm the signature (default: true)
|
|
213
|
+
*/
|
|
214
|
+
confirmSign(signRequestId: string, pinCode: string, authId?: string, authData?: string, confirm?: boolean): Promise<{
|
|
215
|
+
code: string;
|
|
216
|
+
message: string;
|
|
217
|
+
}>;
|
|
218
|
+
/**
|
|
219
|
+
* Authenticate with eSign
|
|
220
|
+
* @param username eSign username
|
|
221
|
+
* @param password eSign password
|
|
222
|
+
*/
|
|
223
|
+
authenticate(username: string, password: string): Promise<ESignAuthenticateResult>;
|
|
224
|
+
/**
|
|
225
|
+
* Register remote signing certificate
|
|
226
|
+
* @param accessToken JWT access token
|
|
227
|
+
* @param requestJson JSON request body
|
|
228
|
+
*/
|
|
229
|
+
registerRemoteSigning(accessToken: string, requestJson: string): Promise<{
|
|
230
|
+
response: string;
|
|
231
|
+
}>;
|
|
232
|
+
/**
|
|
233
|
+
* Sign PDF document
|
|
234
|
+
* @param accessToken JWT access token
|
|
235
|
+
* @param requestJson JSON request body
|
|
236
|
+
*/
|
|
237
|
+
signPdf(accessToken: string, requestJson: string): Promise<{
|
|
238
|
+
response: string;
|
|
239
|
+
}>;
|
|
240
|
+
/**
|
|
241
|
+
* Send confirmation document
|
|
242
|
+
* @param accessToken JWT access token
|
|
243
|
+
* @param requestJson JSON string containing request data
|
|
244
|
+
*/
|
|
245
|
+
sendConfirmationDocument(accessToken: string, requestJson: string): Promise<{
|
|
246
|
+
response: string;
|
|
247
|
+
}>;
|
|
248
|
+
onESignInitSuccess(callback: (data: ESignInitResult) => void): import("react-native").EmitterSubscription | null;
|
|
249
|
+
onESignOpenSessionSuccess(callback: (data: ESignOpenSessionResult) => void): import("react-native").EmitterSubscription | null;
|
|
250
|
+
onESignRegisterDeviceSuccess(callback: (data: {
|
|
251
|
+
code: string;
|
|
252
|
+
message: string;
|
|
253
|
+
}) => void): import("react-native").EmitterSubscription | null;
|
|
254
|
+
onESignListCertsSuccess(callback: (data: {
|
|
255
|
+
certs: ESignCertificate[];
|
|
256
|
+
}) => void): import("react-native").EmitterSubscription | null;
|
|
257
|
+
onESignVerifyCertSuccess(callback: (data: {
|
|
258
|
+
code: string;
|
|
259
|
+
message: string;
|
|
260
|
+
}) => void): import("react-native").EmitterSubscription | null;
|
|
261
|
+
onESignListSignRequestSuccess(callback: (data: {
|
|
262
|
+
requests: ESignSignRequest[];
|
|
263
|
+
}) => void): import("react-native").EmitterSubscription | null;
|
|
264
|
+
onESignConfirmSignSuccess(callback: (data: {
|
|
265
|
+
code: string;
|
|
266
|
+
message: string;
|
|
267
|
+
}) => void): import("react-native").EmitterSubscription | null;
|
|
268
|
+
onESignAuthenticateSuccess(callback: (data: ESignAuthenticateResult) => void): import("react-native").EmitterSubscription | null;
|
|
269
|
+
onESignRegisterRemoteSigningSuccess(callback: (data: {
|
|
270
|
+
response: string;
|
|
271
|
+
}) => void): import("react-native").EmitterSubscription | null;
|
|
272
|
+
onESignSignPdfSuccess(callback: (data: {
|
|
273
|
+
response: string;
|
|
274
|
+
}) => void): import("react-native").EmitterSubscription | null;
|
|
275
|
+
onESignSendConfirmationDocumentSuccess(callback: (data: {
|
|
276
|
+
response: string;
|
|
277
|
+
}) => void): import("react-native").EmitterSubscription | null;
|
|
278
|
+
onESignError(callback: (error: ESignError) => void): import("react-native").EmitterSubscription | null;
|
|
137
279
|
/**
|
|
138
280
|
* Start eKYC UI with flow (like MainActivity.kt)
|
|
139
281
|
* @param appKey Main app key
|
|
@@ -203,5 +345,7 @@ export type { OcrConfig } from '../types/ekycOCRType';
|
|
|
203
345
|
export type { LivenessConfig } from '../types/ekycLivenessType';
|
|
204
346
|
export type { FaceServiceConfig } from '../types/ekycFaceType';
|
|
205
347
|
export type { SDKEkycResultWithEvent, SDKEkycResultStringWithEvent } from '../types/ekycType';
|
|
348
|
+
export type { SmsOtpConfig, SmsOtpResult, SmsOtpError } from '../types/ekycSmsOtpType';
|
|
349
|
+
export type { UserEsignModel, ESignInitResult, ESignOpenSessionResult, ESignCertificate, ESignSignRequest, ESignError, ESignAuthenticateResult } from '../types/ekycESignType';
|
|
206
350
|
export { SDK_VERSION, SDK_NAME };
|
|
207
351
|
export default FinosEKYC;
|