@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
package/dist/EKYCModule.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ import { C06Config } from './src/types/ekycC06Type';
|
|
|
5
5
|
import { OcrConfig } from './src/types/ekycOCRType';
|
|
6
6
|
import { LivenessConfig } from './src/types/ekycLivenessType';
|
|
7
7
|
import { FaceServiceConfig } from './src/types/ekycFaceType';
|
|
8
|
+
import { SmsOtpConfig, SmsOtpResult, SmsOtpError } from './src/types/ekycSmsOtpType';
|
|
9
|
+
import { UserEsignModel, ESignInitResult, ESignOpenSessionResult, ESignCertificate, ESignSignRequest, ESignError, ESignAuthenticateResult } from './src/types/ekycESignType';
|
|
8
10
|
export declare const SDK_VERSION: string;
|
|
9
11
|
export declare const SDK_NAME: string;
|
|
10
12
|
declare class SDKeKYC {
|
|
@@ -12,6 +14,7 @@ declare class SDKeKYC {
|
|
|
12
14
|
private listeners;
|
|
13
15
|
private isInitialized;
|
|
14
16
|
constructor();
|
|
17
|
+
private ensureEventEmitter;
|
|
15
18
|
getVersion(): Promise<string>;
|
|
16
19
|
getSDKInfo(): Promise<{
|
|
17
20
|
name: string;
|
|
@@ -20,6 +23,7 @@ declare class SDKeKYC {
|
|
|
20
23
|
}>;
|
|
21
24
|
initSdkEkyc(): Promise<string>;
|
|
22
25
|
isSDKInitialized(): boolean;
|
|
26
|
+
private ensureNativeModule;
|
|
23
27
|
private validateConfig;
|
|
24
28
|
startOcr(config: OcrConfig): Promise<SDKEkycResultStringWithEvent>;
|
|
25
29
|
startNfcScan(config: NfcConfig): Promise<SDKEkycResultStringWithEvent>;
|
|
@@ -40,6 +44,74 @@ declare class SDKeKYC {
|
|
|
40
44
|
onFaceCompareSuccess(callback: (data: SDKEkycResultWithEvent) => void): EmitterSubscription | null;
|
|
41
45
|
onFaceCompareError(callback: (error: any) => void): EmitterSubscription | null;
|
|
42
46
|
removeAllListeners(): void;
|
|
47
|
+
sendOtp(config: SmsOtpConfig): Promise<SmsOtpResult>;
|
|
48
|
+
verifyOtp(config: SmsOtpConfig, otpCode: string): Promise<SmsOtpResult>;
|
|
49
|
+
resendOtp(config: SmsOtpConfig): Promise<SmsOtpResult>;
|
|
50
|
+
onSmsOtpSendSuccess(callback: (data: SmsOtpResult) => void): EmitterSubscription | null;
|
|
51
|
+
onSmsOtpVerifySuccess(callback: (data: SmsOtpResult) => void): EmitterSubscription | null;
|
|
52
|
+
onSmsOtpResendSuccess(callback: (data: SmsOtpResult) => void): EmitterSubscription | null;
|
|
53
|
+
onSmsOtpError(callback: (error: SmsOtpError) => void): EmitterSubscription | null;
|
|
54
|
+
initializeESign(): Promise<ESignInitResult>;
|
|
55
|
+
openSessionId(accessToken?: string, username?: string, rememberMe?: boolean, userEsignModel?: UserEsignModel, privateKeyFilePath?: string): Promise<ESignOpenSessionResult>;
|
|
56
|
+
registerDevice(recoverCode: string, pinCode: string, fcmToken?: string): Promise<{
|
|
57
|
+
code: string;
|
|
58
|
+
message: string;
|
|
59
|
+
}>;
|
|
60
|
+
listCerts(pageNumber?: number, pageSize?: number): Promise<{
|
|
61
|
+
certs: ESignCertificate[];
|
|
62
|
+
}>;
|
|
63
|
+
verifyCert(serial: string): Promise<{
|
|
64
|
+
code: string;
|
|
65
|
+
message: string;
|
|
66
|
+
}>;
|
|
67
|
+
listSignRequest(pageNumber?: number, pageSize?: number): Promise<{
|
|
68
|
+
requests: ESignSignRequest[];
|
|
69
|
+
}>;
|
|
70
|
+
confirmSign(signRequestId: string, pinCode: string, authId?: string, authData?: string, confirm?: boolean): Promise<{
|
|
71
|
+
code: string;
|
|
72
|
+
message: string;
|
|
73
|
+
}>;
|
|
74
|
+
authenticate(username: string, password: string): Promise<ESignAuthenticateResult>;
|
|
75
|
+
registerRemoteSigning(accessToken: string, requestJson: string): Promise<{
|
|
76
|
+
response: string;
|
|
77
|
+
}>;
|
|
78
|
+
signPdf(accessToken: string, requestJson: string): Promise<{
|
|
79
|
+
response: string;
|
|
80
|
+
}>;
|
|
81
|
+
sendConfirmationDocument(accessToken: string, requestJson: string): Promise<{
|
|
82
|
+
response: string;
|
|
83
|
+
}>;
|
|
84
|
+
onESignInitSuccess(callback: (data: ESignInitResult) => void): EmitterSubscription | null;
|
|
85
|
+
onESignOpenSessionSuccess(callback: (data: ESignOpenSessionResult) => void): EmitterSubscription | null;
|
|
86
|
+
onESignRegisterDeviceSuccess(callback: (data: {
|
|
87
|
+
code: string;
|
|
88
|
+
message: string;
|
|
89
|
+
}) => void): EmitterSubscription | null;
|
|
90
|
+
onESignListCertsSuccess(callback: (data: {
|
|
91
|
+
certs: ESignCertificate[];
|
|
92
|
+
}) => void): EmitterSubscription | null;
|
|
93
|
+
onESignVerifyCertSuccess(callback: (data: {
|
|
94
|
+
code: string;
|
|
95
|
+
message: string;
|
|
96
|
+
}) => void): EmitterSubscription | null;
|
|
97
|
+
onESignListSignRequestSuccess(callback: (data: {
|
|
98
|
+
requests: ESignSignRequest[];
|
|
99
|
+
}) => void): EmitterSubscription | null;
|
|
100
|
+
onESignConfirmSignSuccess(callback: (data: {
|
|
101
|
+
code: string;
|
|
102
|
+
message: string;
|
|
103
|
+
}) => void): EmitterSubscription | null;
|
|
104
|
+
onESignAuthenticateSuccess(callback: (data: ESignAuthenticateResult) => void): EmitterSubscription | null;
|
|
105
|
+
onESignRegisterRemoteSigningSuccess(callback: (data: {
|
|
106
|
+
response: string;
|
|
107
|
+
}) => void): EmitterSubscription | null;
|
|
108
|
+
onESignSignPdfSuccess(callback: (data: {
|
|
109
|
+
response: string;
|
|
110
|
+
}) => void): EmitterSubscription | null;
|
|
111
|
+
onESignSendConfirmationDocumentSuccess(callback: (data: {
|
|
112
|
+
response: string;
|
|
113
|
+
}) => void): EmitterSubscription | null;
|
|
114
|
+
onESignError(callback: (error: ESignError) => void): EmitterSubscription | null;
|
|
43
115
|
startEkycUI(appKey: string, flowSDK: string[], language: string, transactionId: string, appKeyConfig: {
|
|
44
116
|
appKey: string;
|
|
45
117
|
appKeyNfc: string;
|