@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.
Files changed (86) hide show
  1. package/LICENSE +13 -10
  2. package/README.md +41 -42
  3. package/android/build.gradle +42 -11
  4. package/android/gradle.properties +7 -1
  5. package/android/settings.gradle +53 -0
  6. package/android/src/main/java/finos/sdk/ekyc/EKYCModule.kt +778 -81
  7. package/dist/EKYCModule.d.ts +72 -0
  8. package/dist/EKYCModule.js +650 -71
  9. package/dist/finos_sdk-sdk-ekyc-1.2.8.tgz +0 -0
  10. package/dist/index.d.ts +6 -1
  11. package/dist/index.js +5 -1
  12. package/dist/package.json +31 -21
  13. package/dist/src/modules/FinosEKYCModule.d.ts +144 -0
  14. package/dist/src/modules/FinosEKYCModule.js +468 -2
  15. package/dist/src/modules/FinosESignModule.d.ts +270 -0
  16. package/dist/src/modules/FinosESignModule.js +752 -0
  17. package/dist/src/types/ekycESignType.d.ts +67 -0
  18. package/dist/src/types/ekycESignType.js +2 -0
  19. package/dist/src/types/ekycSmsOtpType.d.ts +52 -0
  20. package/dist/src/types/ekycSmsOtpType.js +2 -0
  21. package/package.json +31 -21
  22. package/src/modules/FinosEKYCModule.ts +554 -2
  23. package/src/modules/FinosESignModule.ts +919 -0
  24. package/src/modules/README.md +3 -3
  25. package/src/types/ekycESignType.ts +76 -0
  26. package/src/types/ekycSmsOtpType.ts +59 -0
  27. package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.2/c06-1.2.2-sources.jar +0 -0
  28. package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.2/c06-1.2.2.aar +0 -0
  29. package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.2/c06-1.2.2.module +0 -110
  30. package/android/SDKeKYC/finos/sdk/ekyc/c06/1.2.2/c06-1.2.2.pom +0 -37
  31. package/android/SDKeKYC/finos/sdk/ekyc/c06/maven-metadata-local.xml +0 -13
  32. package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.2/ekyc-1.2.2-sources.jar +0 -0
  33. package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.2/ekyc-1.2.2.aar +0 -0
  34. package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.2/ekyc-1.2.2.module +0 -201
  35. package/android/SDKeKYC/finos/sdk/ekyc/ekyc/1.2.2/ekyc-1.2.2.pom +0 -73
  36. package/android/SDKeKYC/finos/sdk/ekyc/ekyc/maven-metadata-local.xml +0 -13
  37. package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.2/ekycui-1.2.2-sources.jar +0 -0
  38. package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.2/ekycui-1.2.2.aar +0 -0
  39. package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.2/ekycui-1.2.2.module +0 -131
  40. package/android/SDKeKYC/finos/sdk/ekyc/ekycui/1.2.2/ekycui-1.2.2.pom +0 -43
  41. package/android/SDKeKYC/finos/sdk/ekyc/ekycui/maven-metadata-local.xml +0 -13
  42. package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.2/faceservice-1.2.2-sources.jar +0 -0
  43. package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.2/faceservice-1.2.2.aar +0 -0
  44. package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.2/faceservice-1.2.2.module +0 -110
  45. package/android/SDKeKYC/finos/sdk/ekyc/faceservice/1.2.2/faceservice-1.2.2.pom +0 -37
  46. package/android/SDKeKYC/finos/sdk/ekyc/faceservice/maven-metadata-local.xml +0 -13
  47. package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.2/liveness-1.2.2-sources.jar +0 -0
  48. package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.2/liveness-1.2.2.aar +0 -0
  49. package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.2/liveness-1.2.2.module +0 -138
  50. package/android/SDKeKYC/finos/sdk/ekyc/liveness/1.2.2/liveness-1.2.2.pom +0 -55
  51. package/android/SDKeKYC/finos/sdk/ekyc/liveness/maven-metadata-local.xml +0 -13
  52. package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.2/nfc-1.2.2-sources.jar +0 -0
  53. package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.2/nfc-1.2.2.aar +0 -0
  54. package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.2/nfc-1.2.2.module +0 -131
  55. package/android/SDKeKYC/finos/sdk/ekyc/nfc/1.2.2/nfc-1.2.2.pom +0 -55
  56. package/android/SDKeKYC/finos/sdk/ekyc/nfc/maven-metadata-local.xml +0 -13
  57. package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.2/ocr-1.2.2-sources.jar +0 -0
  58. package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.2/ocr-1.2.2.aar +0 -0
  59. package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.2/ocr-1.2.2.module +0 -124
  60. package/android/SDKeKYC/finos/sdk/ekyc/ocr/1.2.2/ocr-1.2.2.pom +0 -43
  61. package/android/SDKeKYC/finos/sdk/ekyc/ocr/maven-metadata-local.xml +0 -13
  62. package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.2/qrcode-1.2.2-sources.jar +0 -0
  63. package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.2/qrcode-1.2.2.aar +0 -0
  64. package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.2/qrcode-1.2.2.module +0 -138
  65. package/android/SDKeKYC/finos/sdk/ekyc/qrcode/1.2.2/qrcode-1.2.2.pom +0 -55
  66. package/android/SDKeKYC/finos/sdk/ekyc/qrcode/maven-metadata-local.xml +0 -13
  67. package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.2/sdkcore-1.2.2-sources.jar +0 -0
  68. package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.2/sdkcore-1.2.2.aar +0 -0
  69. package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.2/sdkcore-1.2.2.module +0 -341
  70. package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/1.2.2/sdkcore-1.2.2.pom +0 -139
  71. package/android/SDKeKYC/finos/sdk/ekyc/sdkcore/maven-metadata-local.xml +0 -13
  72. package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.2/sdkcorecamera-1.2.2-sources.jar +0 -0
  73. package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.2/sdkcorecamera-1.2.2.aar +0 -0
  74. package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.2/sdkcorecamera-1.2.2.module +0 -201
  75. package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/1.2.2/sdkcorecamera-1.2.2.pom +0 -85
  76. package/android/SDKeKYC/finos/sdk/ekyc/sdkcorecamera/maven-metadata-local.xml +0 -13
  77. package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.2/sdkui-1.2.2-sources.jar +0 -0
  78. package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.2/sdkui-1.2.2.aar +0 -0
  79. package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.2/sdkui-1.2.2.module +0 -208
  80. package/android/SDKeKYC/finos/sdk/ekyc/sdkui/1.2.2/sdkui-1.2.2.pom +0 -103
  81. package/android/SDKeKYC/finos/sdk/ekyc/sdkui/maven-metadata-local.xml +0 -13
  82. package/android/src/main/AndroidManifest.xml +0 -22
  83. package/android/src/main/build.gradle +0 -31
  84. package/dist/App.d.ts +0 -3
  85. package/dist/App.js +0 -497
  86. package/dist/finos_sdk-sdk-ekyc-1.2.2.tgz +0 -0
@@ -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;