assentify-sdk-react-native 0.0.1
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 +3 -0
- package/README.md +65 -0
- package/android/build.gradle +111 -0
- package/android/gradle.properties +9 -0
- package/android/src/main/AndroidManifest.xml +55 -0
- package/android/src/main/java/com/assentifysdk/AndroidProgressBarModule.kt +33 -0
- package/android/src/main/java/com/assentifysdk/AssentifySdkBaseModule.kt +39 -0
- package/android/src/main/java/com/assentifysdk/AssentifySdkModule.kt +432 -0
- package/android/src/main/java/com/assentifysdk/AssentifySdkPackage.kt +19 -0
- package/android/src/main/java/com/assentifysdk/FaceMatchActivity.kt +309 -0
- package/android/src/main/java/com/assentifysdk/ImageToBase64Converter.kt +40 -0
- package/android/src/main/java/com/assentifysdk/ReactApplicationContextObject.kt +14 -0
- package/android/src/main/java/com/assentifysdk/ScanIDActivity.kt +431 -0
- package/android/src/main/java/com/assentifysdk/ScanOtherActivity.kt +328 -0
- package/android/src/main/java/com/assentifysdk/ScanPassportActivity.kt +364 -0
- package/android/src/main/java/com/assentifysdk/StepsKeys.kt +91 -0
- package/android/src/main/res/drawable/back_icon.png +0 -0
- package/android/src/main/res/drawable/button_rounded_background.xml +6 -0
- package/android/src/main/res/drawable/card.gif +0 -0
- package/android/src/main/res/drawable/expire.png +0 -0
- package/android/src/main/res/drawable/id.gif +0 -0
- package/android/src/main/res/drawable/id_warning.png +0 -0
- package/android/src/main/res/drawable/info_icon.png +0 -0
- package/android/src/main/res/drawable/info_rounded_background.xml +6 -0
- package/android/src/main/res/drawable/passport.gif +0 -0
- package/android/src/main/res/drawable/rounded_background.xml +3 -0
- package/android/src/main/res/drawable/sending.png +0 -0
- package/android/src/main/res/drawable/warning.png +0 -0
- package/android/src/main/res/drawable/zoom_in.png +0 -0
- package/android/src/main/res/drawable/zoom_out.png +0 -0
- package/android/src/main/res/layout/activity_face_scan.xml +242 -0
- package/android/src/main/res/layout/activity_scan.xml +297 -0
- package/android/src/main/res/raw/sending_video.MP4 +0 -0
- package/android/src/main/res/values/colors.xml +8 -0
- package/android/src/main/res/values/strings.xml +3 -0
- package/android/src/main/res/values/styles.xml +4 -0
- package/assentify-sdk.podspec +43 -0
- package/ios/AssentifySdkBaseModule.swift +15 -0
- package/ios/Info.plist +27 -0
- package/ios/NativeAssentifySdk-Bridging-Header.h +3 -0
- package/ios/NativeAssentifySdk.mm +45 -0
- package/ios/NativeAssentifySdk.swift +460 -0
- package/ios/Resources/card.gif +0 -0
- package/ios/Resources/expire.png +0 -0
- package/ios/Resources/id.gif +0 -0
- package/ios/Resources/id_warning.png +0 -0
- package/ios/Resources/info_icon.png +0 -0
- package/ios/Resources/passport.gif +0 -0
- package/ios/Resources/sending.png +0 -0
- package/ios/Resources/warning.png +0 -0
- package/ios/Resources/zoom_in.png +0 -0
- package/ios/Resources/zoom_out.png +0 -0
- package/ios/UIComponents/RNIOSProgressBar.h +4 -0
- package/ios/UIComponents/RNIOSProgressBar.m +34 -0
- package/ios/UIComponents/RNPassportScanner.m +26 -0
- package/ios/UIComponents/RNPassportScanner.swift +245 -0
- package/ios/UIComponents/RNTMapManager.h +4 -0
- package/ios/UIComponents/RNTMapManager.m +19 -0
- package/ios/View/DataDecoder.swift +469 -0
- package/ios/View/FaceMatchController.swift +258 -0
- package/ios/View/IDCardController.swift +360 -0
- package/ios/View/OtherController.swift +283 -0
- package/ios/View/PassportController.swift +302 -0
- package/ios/View/UI.swift +298 -0
- package/lib/commonjs/AssentifyProvider.js +202 -0
- package/lib/commonjs/AssentifyProvider.js.map +1 -0
- package/lib/commonjs/AssentifyWrapper.js +76 -0
- package/lib/commonjs/AssentifyWrapper.js.map +1 -0
- package/lib/commonjs/Language.js +27 -0
- package/lib/commonjs/Language.js.map +1 -0
- package/lib/commonjs/helpers/index.js +2 -0
- package/lib/commonjs/helpers/index.js.map +1 -0
- package/lib/commonjs/helpers/parsers/FaceMatchParser.js +27 -0
- package/lib/commonjs/helpers/parsers/FaceMatchParser.js.map +1 -0
- package/lib/commonjs/helpers/parsers/IDCardParser.js +25 -0
- package/lib/commonjs/helpers/parsers/IDCardParser.js.map +1 -0
- package/lib/commonjs/helpers/parsers/OtherIDParser.js +29 -0
- package/lib/commonjs/helpers/parsers/OtherIDParser.js.map +1 -0
- package/lib/commonjs/helpers/parsers/PassportParser.js +25 -0
- package/lib/commonjs/helpers/parsers/PassportParser.js.map +1 -0
- package/lib/commonjs/index.js +49 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/types.js +42 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/module/AssentifyProvider.js +193 -0
- package/lib/module/AssentifyProvider.js.map +1 -0
- package/lib/module/AssentifyWrapper.js +70 -0
- package/lib/module/AssentifyWrapper.js.map +1 -0
- package/lib/module/Language.js +21 -0
- package/lib/module/Language.js.map +1 -0
- package/lib/module/helpers/index.js +2 -0
- package/lib/module/helpers/index.js.map +1 -0
- package/lib/module/helpers/parsers/FaceMatchParser.js +21 -0
- package/lib/module/helpers/parsers/FaceMatchParser.js.map +1 -0
- package/lib/module/helpers/parsers/IDCardParser.js +19 -0
- package/lib/module/helpers/parsers/IDCardParser.js.map +1 -0
- package/lib/module/helpers/parsers/OtherIDParser.js +23 -0
- package/lib/module/helpers/parsers/OtherIDParser.js.map +1 -0
- package/lib/module/helpers/parsers/PassportParser.js +19 -0
- package/lib/module/helpers/parsers/PassportParser.js.map +1 -0
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/types.js +36 -0
- package/lib/module/types.js.map +1 -0
- package/lib/typescript/babel.config.d.ts +3 -0
- package/lib/typescript/babel.config.d.ts.map +1 -0
- package/lib/typescript/commitlint.config.d.ts +7 -0
- package/lib/typescript/commitlint.config.d.ts.map +1 -0
- package/lib/typescript/example/babel.config.d.ts +8 -0
- package/lib/typescript/example/babel.config.d.ts.map +1 -0
- package/lib/typescript/example/index.d.ts +2 -0
- package/lib/typescript/example/index.d.ts.map +1 -0
- package/lib/typescript/example/jest.config.d.ts +2 -0
- package/lib/typescript/example/jest.config.d.ts.map +1 -0
- package/lib/typescript/example/metro.config.d.ts +3 -0
- package/lib/typescript/example/metro.config.d.ts.map +1 -0
- package/lib/typescript/example/react-native.config.d.ts +6 -0
- package/lib/typescript/example/react-native.config.d.ts.map +1 -0
- package/lib/typescript/example/src/App.d.ts +3 -0
- package/lib/typescript/example/src/App.d.ts.map +1 -0
- package/lib/typescript/example/src/Home.d.ts +4 -0
- package/lib/typescript/example/src/Home.d.ts.map +1 -0
- package/lib/typescript/example/src/navigator.d.ts +4 -0
- package/lib/typescript/example/src/navigator.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/AssentifyProvider.d.ts +3 -0
- package/lib/typescript/lib/commonjs/AssentifyProvider.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts +11 -0
- package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Language.d.ts +22 -0
- package/lib/typescript/lib/commonjs/Language.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/helpers/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/helpers/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/helpers/parsers/FaceMatchParser.d.ts +12 -0
- package/lib/typescript/lib/commonjs/helpers/parsers/FaceMatchParser.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/helpers/parsers/IDCardParser.d.ts +11 -0
- package/lib/typescript/lib/commonjs/helpers/parsers/IDCardParser.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/helpers/parsers/OtherIDParser.d.ts +13 -0
- package/lib/typescript/lib/commonjs/helpers/parsers/OtherIDParser.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/helpers/parsers/PassportParser.d.ts +11 -0
- package/lib/typescript/lib/commonjs/helpers/parsers/PassportParser.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/index.d.ts +2 -0
- package/lib/typescript/lib/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/types.d.ts +18 -0
- package/lib/typescript/lib/commonjs/types.d.ts.map +1 -0
- package/lib/typescript/lib/module/AssentifyProvider.d.ts +3 -0
- package/lib/typescript/lib/module/AssentifyProvider.d.ts.map +1 -0
- package/lib/typescript/lib/module/AssentifyWrapper.d.ts +10 -0
- package/lib/typescript/lib/module/AssentifyWrapper.d.ts.map +1 -0
- package/lib/typescript/lib/module/Language.d.ts +21 -0
- package/lib/typescript/lib/module/Language.d.ts.map +1 -0
- package/lib/typescript/lib/module/helpers/index.d.ts +1 -0
- package/lib/typescript/lib/module/helpers/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/helpers/parsers/FaceMatchParser.d.ts +11 -0
- package/lib/typescript/lib/module/helpers/parsers/FaceMatchParser.d.ts.map +1 -0
- package/lib/typescript/lib/module/helpers/parsers/IDCardParser.d.ts +10 -0
- package/lib/typescript/lib/module/helpers/parsers/IDCardParser.d.ts.map +1 -0
- package/lib/typescript/lib/module/helpers/parsers/OtherIDParser.d.ts +12 -0
- package/lib/typescript/lib/module/helpers/parsers/OtherIDParser.d.ts.map +1 -0
- package/lib/typescript/lib/module/helpers/parsers/PassportParser.d.ts +10 -0
- package/lib/typescript/lib/module/helpers/parsers/PassportParser.d.ts.map +1 -0
- package/lib/typescript/lib/module/index.d.ts +12 -0
- package/lib/typescript/lib/module/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/types.d.ts +17 -0
- package/lib/typescript/lib/module/types.d.ts.map +1 -0
- package/lib/typescript/src/AssentifyProvider.d.ts +4 -0
- package/lib/typescript/src/AssentifyProvider.d.ts.map +1 -0
- package/lib/typescript/src/AssentifyWrapper.d.ts +12 -0
- package/lib/typescript/src/AssentifyWrapper.d.ts.map +1 -0
- package/lib/typescript/src/Language.d.ts +22 -0
- package/lib/typescript/src/Language.d.ts.map +1 -0
- package/lib/typescript/src/helpers/index.d.ts +1 -0
- package/lib/typescript/src/helpers/index.d.ts.map +1 -0
- package/lib/typescript/src/helpers/parsers/FaceMatchParser.d.ts +4 -0
- package/lib/typescript/src/helpers/parsers/FaceMatchParser.d.ts.map +1 -0
- package/lib/typescript/src/helpers/parsers/IDCardParser.d.ts +4 -0
- package/lib/typescript/src/helpers/parsers/IDCardParser.d.ts.map +1 -0
- package/lib/typescript/src/helpers/parsers/OtherIDParser.d.ts +4 -0
- package/lib/typescript/src/helpers/parsers/OtherIDParser.d.ts.map +1 -0
- package/lib/typescript/src/helpers/parsers/PassportParser.d.ts +4 -0
- package/lib/typescript/src/helpers/parsers/PassportParser.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +12 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +308 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/package.json +201 -0
- package/src/AssentifyProvider.tsx +189 -0
- package/src/AssentifyWrapper.ts +142 -0
- package/src/Language.ts +22 -0
- package/src/helpers/index.ts +1 -0
- package/src/helpers/parsers/FaceMatchParser.ts +28 -0
- package/src/helpers/parsers/IDCardParser.ts +27 -0
- package/src/helpers/parsers/OtherIDParser.ts +31 -0
- package/src/helpers/parsers/PassportParser.ts +27 -0
- package/src/index.ts +6 -0
- package/src/types.ts +373 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './Language';
|
|
3
|
+
export declare const Assentify: {
|
|
4
|
+
initialize: (apiKey: string, tenantIdentifier: string, instanceHash: string, processMrz?: boolean, storeCapturedDocument?: boolean, performLivenessDocument?: boolean, performLivenessFace?: boolean, storeImageStream?: boolean, saveCapturedVideoID?: boolean, saveCapturedVideoFace?: boolean, ENV_CustomColor?: string, enableDetect?: boolean, enableGuide?: boolean) => void;
|
|
5
|
+
startScanPassport: (language: import("./Language").LanguageCode) => void;
|
|
6
|
+
startScanOther: (language: import("./Language").LanguageCode) => void;
|
|
7
|
+
startScanIDCard: (kycDocumentDetailsList: import("./types").KycDocumentDetails[], language: import("./Language").LanguageCode, flippingCard: boolean) => void;
|
|
8
|
+
startFaceMatch: (imageUrl: String, showCountDown: boolean) => void;
|
|
9
|
+
submitData: (dataMap: Record<string, string>) => void;
|
|
10
|
+
};
|
|
11
|
+
export * from './AssentifyProvider';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAEA,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,eAAO,MAAM,SAAS;;;;;;;CAAmB,CAAC;AAC1C,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { type LanguageCode } from './Language';
|
|
2
|
+
export interface AssentifySdkCallback {
|
|
3
|
+
onAssentifySdkInitError: (message: string) => string;
|
|
4
|
+
onAssentifySdkInitSuccess: (stepDefinitions: any[]) => string;
|
|
5
|
+
}
|
|
6
|
+
export type EnvironmentalConditions = {
|
|
7
|
+
BRIGHTNESS_HIGH_THRESHOLD: number;
|
|
8
|
+
BRIGHTNESS_LOW_THRESHOLD: number;
|
|
9
|
+
PREDICTION_LOW_PERCENTAGE: number;
|
|
10
|
+
PREDICTION_HIGH_PERCENTAGE: number;
|
|
11
|
+
CustomColor: string;
|
|
12
|
+
HoldHandColor: string;
|
|
13
|
+
};
|
|
14
|
+
export interface Assentify {
|
|
15
|
+
initialize: (apiKey: string, tenantIdentifier: string, instanceHash: string, processMrz?: boolean, storeCapturedDocument?: boolean, performLivenessDetection?: boolean, storeImageStream?: boolean, saveCapturedVideoID?: boolean, saveCapturedVideoFace?: boolean, ENV_CustomColor?: string, enableDetect?: boolean, enableGuide?: boolean) => void;
|
|
16
|
+
startScanPassport: (language: LanguageCode) => void;
|
|
17
|
+
startScanOther: (language: LanguageCode) => void;
|
|
18
|
+
startScanIDCard: (kycDocumentDetailsList: KycDocumentDetails[], language: LanguageCode, flippingCard: boolean) => void;
|
|
19
|
+
startFaceMatch: (imageUrl: String, showCountDown: boolean) => void;
|
|
20
|
+
submitData: (dataMap: Map<string, string>) => void;
|
|
21
|
+
}
|
|
22
|
+
export type MrzFields = {
|
|
23
|
+
mrz_type?: string;
|
|
24
|
+
mrz_ocr?: string;
|
|
25
|
+
surname?: string;
|
|
26
|
+
name?: string;
|
|
27
|
+
country?: string;
|
|
28
|
+
nationality?: string;
|
|
29
|
+
birth_date?: string;
|
|
30
|
+
birth_date_hash?: string;
|
|
31
|
+
expiry_date?: string;
|
|
32
|
+
expiry_date_hash?: string;
|
|
33
|
+
sex?: string;
|
|
34
|
+
document_type?: string;
|
|
35
|
+
document_number?: string;
|
|
36
|
+
country_of_issuance?: string;
|
|
37
|
+
department_of_issuance?: string;
|
|
38
|
+
office_of_issuance?: string;
|
|
39
|
+
year_of_issuance?: string;
|
|
40
|
+
month_of_issuance?: string;
|
|
41
|
+
management_center_unique_id?: string;
|
|
42
|
+
management_center_unique_id_hash?: string;
|
|
43
|
+
optional_data?: string;
|
|
44
|
+
};
|
|
45
|
+
export type MrzReading = {
|
|
46
|
+
MrzFields: MrzFields;
|
|
47
|
+
MrzType?: string;
|
|
48
|
+
};
|
|
49
|
+
export type FaceCoordinates = {
|
|
50
|
+
Angle?: number;
|
|
51
|
+
Confidence?: number;
|
|
52
|
+
CroppedFace?: string;
|
|
53
|
+
Height?: number;
|
|
54
|
+
TopLeftX?: number;
|
|
55
|
+
TopLeftY?: number;
|
|
56
|
+
Width?: number;
|
|
57
|
+
};
|
|
58
|
+
export type Faces = {
|
|
59
|
+
FaceBytes?: string;
|
|
60
|
+
FaceImageType?: number;
|
|
61
|
+
FaceUrl?: string;
|
|
62
|
+
Id?: string;
|
|
63
|
+
FaceCoordinates: FaceCoordinates;
|
|
64
|
+
};
|
|
65
|
+
export type IdentificationDocument = {
|
|
66
|
+
mrz_reading?: MrzReading;
|
|
67
|
+
faces?: Faces[];
|
|
68
|
+
imageUrl?: string;
|
|
69
|
+
videoUrl?: string;
|
|
70
|
+
};
|
|
71
|
+
export type FaceMatchModel = {
|
|
72
|
+
baseImageFace: string;
|
|
73
|
+
secondImageFace: string;
|
|
74
|
+
percentageMatch: number;
|
|
75
|
+
};
|
|
76
|
+
export type IdCardComponentListItem = {
|
|
77
|
+
componentName: string;
|
|
78
|
+
componentValue: string;
|
|
79
|
+
};
|
|
80
|
+
export type IdCardResult = {
|
|
81
|
+
componentList: IdCardComponentListItem[];
|
|
82
|
+
};
|
|
83
|
+
export type OnIdCardCompletedData = {
|
|
84
|
+
idCardImageUrl: string;
|
|
85
|
+
idCardResult: IdCardResult;
|
|
86
|
+
signature: string;
|
|
87
|
+
};
|
|
88
|
+
export type ImageFace = {
|
|
89
|
+
FaceBytes: any | null;
|
|
90
|
+
FaceCoordinates: any | null;
|
|
91
|
+
FaceImageType: number;
|
|
92
|
+
FaceUrl: string;
|
|
93
|
+
Id: string;
|
|
94
|
+
};
|
|
95
|
+
export type FaceMatchCallback = {
|
|
96
|
+
BaseImageFace: ImageFace;
|
|
97
|
+
SecondImageFace: ImageFace;
|
|
98
|
+
PercentageMatch: number;
|
|
99
|
+
ChebyDist?: number;
|
|
100
|
+
CityDist?: number;
|
|
101
|
+
Color?: boolean;
|
|
102
|
+
CosDist?: number;
|
|
103
|
+
Gender?: any | null;
|
|
104
|
+
MatchFaceResult?: number;
|
|
105
|
+
MatchName?: any | null;
|
|
106
|
+
Result?: boolean;
|
|
107
|
+
Size?: boolean;
|
|
108
|
+
SubjectId?: any | null;
|
|
109
|
+
};
|
|
110
|
+
export type KycDocumentDetails = {
|
|
111
|
+
name: string;
|
|
112
|
+
order: number;
|
|
113
|
+
templateProcessingKeyInformation: string;
|
|
114
|
+
};
|
|
115
|
+
export type Templates = {
|
|
116
|
+
id: number;
|
|
117
|
+
sourceCountryFlag: string;
|
|
118
|
+
sourceCountryCode: string;
|
|
119
|
+
sourceCountry: string;
|
|
120
|
+
kycDocumentType: string;
|
|
121
|
+
kycDocumentDetails: KycDocumentDetails[];
|
|
122
|
+
};
|
|
123
|
+
export type TemplatesByCountry = {
|
|
124
|
+
id: number;
|
|
125
|
+
name: string;
|
|
126
|
+
sourceCountryCode: string;
|
|
127
|
+
flag: string;
|
|
128
|
+
templates: Templates[];
|
|
129
|
+
};
|
|
130
|
+
export declare enum MotionType {
|
|
131
|
+
NO_DETECT = 0,
|
|
132
|
+
HOLD_YOUR_HAND = 1,
|
|
133
|
+
SENDING = 2
|
|
134
|
+
}
|
|
135
|
+
export declare enum ZoomType {
|
|
136
|
+
NO_DETECT = 0,
|
|
137
|
+
ZOOM_IN = 1,
|
|
138
|
+
ZOOM_OUT = 2,
|
|
139
|
+
SENDING = 3
|
|
140
|
+
}
|
|
141
|
+
export declare const MotionTypeObj: {
|
|
142
|
+
NO_DETECT: string;
|
|
143
|
+
HOLD_YOUR_HAND: string;
|
|
144
|
+
SENDING: string;
|
|
145
|
+
};
|
|
146
|
+
export declare const ZoomTypeObj: {
|
|
147
|
+
NO_DETECT: string;
|
|
148
|
+
ZOOM_IN: string;
|
|
149
|
+
ZOOM_OUT: string;
|
|
150
|
+
SENDING: string;
|
|
151
|
+
};
|
|
152
|
+
export declare enum FAILED_RESULT {
|
|
153
|
+
WRONG_TEMPLATE = 0,
|
|
154
|
+
NO_FACE_DETECTED = 1,
|
|
155
|
+
NO_MRZ_DETECTED = 2,
|
|
156
|
+
EXPIRED_DOCUMENT = 3,
|
|
157
|
+
TAMPERED_DOCUMENT = 4,
|
|
158
|
+
TAMPERED_BACK_DOCUMENT = 5,
|
|
159
|
+
FAILED_FRONT_ID = 6,
|
|
160
|
+
FAILED_BACK_ID = 7
|
|
161
|
+
}
|
|
162
|
+
export type PassportDataModel = {
|
|
163
|
+
AdditionalDetails: any;
|
|
164
|
+
FaceUrl: string;
|
|
165
|
+
Faces?: Faces[];
|
|
166
|
+
IdCardImageUrl: string;
|
|
167
|
+
ImageUrl: string;
|
|
168
|
+
IsLive: boolean | null;
|
|
169
|
+
IsSuccessful: boolean;
|
|
170
|
+
MrzImage: string;
|
|
171
|
+
MrzReading?: MrzReading;
|
|
172
|
+
OriginalImageUrl: string;
|
|
173
|
+
OutputProperties: any;
|
|
174
|
+
TraceIdentifier: any;
|
|
175
|
+
VideoUrl: string;
|
|
176
|
+
};
|
|
177
|
+
export type BaseDataModel = {
|
|
178
|
+
FaceMatchDataModel?: string | FaceMatchCallback;
|
|
179
|
+
IdDataModel?: any;
|
|
180
|
+
OtherDataModel?: any;
|
|
181
|
+
PassportDataModel?: string | PassportDataModel;
|
|
182
|
+
};
|
|
183
|
+
export type ScanningCallback = {
|
|
184
|
+
onError: BaseDataModel;
|
|
185
|
+
onSend: any;
|
|
186
|
+
onRetry: BaseDataModel;
|
|
187
|
+
onClipPreparationComplete: BaseDataModel;
|
|
188
|
+
onStatusUpdated: BaseDataModel;
|
|
189
|
+
onUpdated: BaseDataModel;
|
|
190
|
+
onLivenessUpdate: BaseDataModel;
|
|
191
|
+
onComplete: BaseDataModel;
|
|
192
|
+
onCardDetected: BaseDataModel;
|
|
193
|
+
onMrzExtracted: BaseDataModel;
|
|
194
|
+
onMrzDetected: BaseDataModel;
|
|
195
|
+
onNoMrzDetected: BaseDataModel;
|
|
196
|
+
onFaceDetected: BaseDataModel;
|
|
197
|
+
onNoFaceDetected: BaseDataModel;
|
|
198
|
+
onFaceExtracted: BaseDataModel;
|
|
199
|
+
onQualityCheckAvailable: BaseDataModel;
|
|
200
|
+
onDocumentCaptured: BaseDataModel;
|
|
201
|
+
onDocumentCropped: BaseDataModel;
|
|
202
|
+
onUploadFailed: BaseDataModel;
|
|
203
|
+
onWrongTemplate: BaseDataModel;
|
|
204
|
+
onEnvironmentalConditionsChange: (brightness: number, motion: MotionType, zoom?: ZoomType) => void;
|
|
205
|
+
SubmitData?: {
|
|
206
|
+
StartSubmitData: boolean;
|
|
207
|
+
instanceHash?: string;
|
|
208
|
+
success: boolean;
|
|
209
|
+
error_message?: string;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
export type IdentificationDocumentCapture = {
|
|
213
|
+
name: any | null;
|
|
214
|
+
surname: any | null;
|
|
215
|
+
documentType: any | null;
|
|
216
|
+
birthDate: any | null;
|
|
217
|
+
documentNumber: any | null;
|
|
218
|
+
sex: any | null;
|
|
219
|
+
expiryDate: any | null;
|
|
220
|
+
country: any | null;
|
|
221
|
+
nationality: any | null;
|
|
222
|
+
idType: any | null;
|
|
223
|
+
faceCapture: any | null;
|
|
224
|
+
image: any | null;
|
|
225
|
+
isSkippedAfterNFails: any | null;
|
|
226
|
+
isFailedFront: any | null;
|
|
227
|
+
isFailedBack: any | null;
|
|
228
|
+
skippedStatus: any | null;
|
|
229
|
+
capturedVideoFront: any | null;
|
|
230
|
+
capturedVideoBack: any | null;
|
|
231
|
+
livenessStatus: any | null;
|
|
232
|
+
isFrontAuth: any | null;
|
|
233
|
+
isBackAuth: any | null;
|
|
234
|
+
isExpired: any | null;
|
|
235
|
+
isTampering: any | null;
|
|
236
|
+
tamperHeatMap: any | null;
|
|
237
|
+
isBackTampering: any | null;
|
|
238
|
+
backTamperHeatmap: any | null;
|
|
239
|
+
originalFrontImage: any | null;
|
|
240
|
+
originalBackImage: any | null;
|
|
241
|
+
ghostImage: any | null;
|
|
242
|
+
idMaritalStatus: any | null;
|
|
243
|
+
idDateOfIssuance: any | null;
|
|
244
|
+
idCivilRegisterNumber: any | null;
|
|
245
|
+
idPlaceOfResidence: any | null;
|
|
246
|
+
idProvince: any | null;
|
|
247
|
+
idGovernorate: any | null;
|
|
248
|
+
idMothersName: any | null;
|
|
249
|
+
idFathersName: any | null;
|
|
250
|
+
idPlaceOfBirth: any | null;
|
|
251
|
+
idBackImage: any | null;
|
|
252
|
+
idBloodType: any | null;
|
|
253
|
+
idDrivingCategory: any | null;
|
|
254
|
+
idIssuanceAuthority: any | null;
|
|
255
|
+
idArmyStatus: any | null;
|
|
256
|
+
idProfession: any | null;
|
|
257
|
+
idUniqueNumber: any | null;
|
|
258
|
+
idDocumentTypeNumber: any | null;
|
|
259
|
+
idFees: any | null;
|
|
260
|
+
idReference: any | null;
|
|
261
|
+
idRegion: any | null;
|
|
262
|
+
idRegistrationLocation: any | null;
|
|
263
|
+
idFaceColor: any | null;
|
|
264
|
+
idEyeColor: any | null;
|
|
265
|
+
idSpecialMarks: any | null;
|
|
266
|
+
idCountryOfStay: any | null;
|
|
267
|
+
idIdentityNumber: any | null;
|
|
268
|
+
idPresentAddress: any | null;
|
|
269
|
+
idPermanentAddress: any | null;
|
|
270
|
+
idFamilyNumber: any | null;
|
|
271
|
+
identityNumberBack: any | null;
|
|
272
|
+
};
|
|
273
|
+
export type PassportExtractedModel = {
|
|
274
|
+
outputProperties?: Record<string, any> | null;
|
|
275
|
+
transformedProperties?: Record<string, any> | null;
|
|
276
|
+
extractedData?: Record<string, any> | null;
|
|
277
|
+
imageUrl?: string | null;
|
|
278
|
+
faces?: Faces[] | null;
|
|
279
|
+
identificationDocumentCapture?: IdentificationDocumentCapture | null;
|
|
280
|
+
};
|
|
281
|
+
export type OtherExtractedModel = {
|
|
282
|
+
outputProperties?: Record<string, any> | null;
|
|
283
|
+
transformedProperties?: Record<string, any> | null;
|
|
284
|
+
extractedData?: Record<string, any> | null;
|
|
285
|
+
additionalDetails?: Record<string, any> | null;
|
|
286
|
+
transformedDetails?: Record<string, any> | null;
|
|
287
|
+
imageUrl?: string | null;
|
|
288
|
+
faces?: Faces[] | null;
|
|
289
|
+
identificationDocumentCapture?: IdentificationDocumentCapture | null;
|
|
290
|
+
};
|
|
291
|
+
export type IDExtractedModel = {
|
|
292
|
+
outputProperties?: Record<string, any> | null;
|
|
293
|
+
transformedProperties?: Record<string, any> | null;
|
|
294
|
+
extractedData?: Record<string, any> | null;
|
|
295
|
+
imageUrl?: string;
|
|
296
|
+
faces?: Faces[] | null;
|
|
297
|
+
identificationDocumentCapture?: IdentificationDocumentCapture | null;
|
|
298
|
+
};
|
|
299
|
+
export type FaceExtractedModel = {
|
|
300
|
+
outputProperties?: Record<string, any> | null;
|
|
301
|
+
extractedData?: Record<string, any> | null;
|
|
302
|
+
baseImageFace?: string | null;
|
|
303
|
+
secondImageFace?: string | null;
|
|
304
|
+
percentageMatch?: number;
|
|
305
|
+
isLive?: boolean;
|
|
306
|
+
identificationDocumentCapture?: IdentificationDocumentCapture | null;
|
|
307
|
+
};
|
|
308
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,MAAM,WAAW,oBAAoB;IACnC,uBAAuB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;IACrD,yBAAyB,EAAE,CAAC,eAAe,EAAE,GAAG,EAAE,KAAK,MAAM,CAAC;CAC/D;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,yBAAyB,EAAE,MAAM,CAAC;IAClC,wBAAwB,EAAE,MAAM,CAAC;IACjC,yBAAyB,EAAE,MAAM,CAAC;IAClC,0BAA0B,EAAE,MAAM,CAAC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,CACV,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,OAAO,EACpB,qBAAqB,CAAC,EAAE,OAAO,EAC/B,wBAAwB,CAAC,EAAE,OAAO,EAClC,gBAAgB,CAAC,EAAE,OAAO,EAC1B,mBAAmB,CAAC,EAAE,OAAO,EAC7B,qBAAqB,CAAC,EAAE,OAAO,EAC/B,eAAe,CAAC,EAAE,MAAM,EACxB,YAAY,CAAC,EAAE,OAAO,EACtB,WAAW,CAAC,EAAE,OAAO,KAClB,IAAI,CAAC;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IAAI,CAAC;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACvB,6BAA6B,CAAC,EAAE,6BAA6B,GAAG,IAAI,CAAC;CACtE,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,6BAA6B,CAAC,EAAE,6BAA6B,GAAG,IAAI,CAAC;CACtE,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "assentify-sdk-react-native",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "This package provides integration with Assentify's services, allowing developers to incorporate Assentify functionalities seamlessly into their applications.",
|
|
5
|
+
"main": "lib/commonjs/index",
|
|
6
|
+
"module": "lib/module/index",
|
|
7
|
+
"types": "lib/typescript/src/index.d.ts",
|
|
8
|
+
"react-native": "src/index",
|
|
9
|
+
"source": "src/index",
|
|
10
|
+
"files": [
|
|
11
|
+
"src",
|
|
12
|
+
"lib",
|
|
13
|
+
"android",
|
|
14
|
+
"ios",
|
|
15
|
+
"cpp",
|
|
16
|
+
"*.podspec",
|
|
17
|
+
"!ios/build",
|
|
18
|
+
"!android/build",
|
|
19
|
+
"!android/gradle",
|
|
20
|
+
"!android/gradlew",
|
|
21
|
+
"!android/gradlew.bat",
|
|
22
|
+
"!android/local.properties",
|
|
23
|
+
"!**/__tests__",
|
|
24
|
+
"!**/__fixtures__",
|
|
25
|
+
"!**/__mocks__",
|
|
26
|
+
"!**/.*"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"example": "yarn workspace assentify-sdk-react-native-example",
|
|
30
|
+
"test": "jest",
|
|
31
|
+
"typecheck": "tsc --noEmit",
|
|
32
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
33
|
+
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
|
34
|
+
"clean:android": "cd android && ./gradlew clean",
|
|
35
|
+
"prepare": "bob build",
|
|
36
|
+
"release": "release-it"
|
|
37
|
+
},
|
|
38
|
+
"keywords": [
|
|
39
|
+
"react-native",
|
|
40
|
+
"ios",
|
|
41
|
+
"android"
|
|
42
|
+
],
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "https://github.com/AssentifyLTD/Assentify.SDK.ReactNative.git"
|
|
46
|
+
},
|
|
47
|
+
"author": "",
|
|
48
|
+
"license": "MIT",
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/AssentifyLTD/Assentify.SDK.ReactNative/issues"
|
|
51
|
+
},
|
|
52
|
+
"homepage": "assentify-sdk-react-native#readme",
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"registry": "https://registry.npmjs.org/"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@commitlint/cli": "^19.5.0",
|
|
58
|
+
"@commitlint/config-conventional": "^19.5.0",
|
|
59
|
+
"@evilmartians/lefthook": "^1.5.0",
|
|
60
|
+
"@react-native/eslint-config": "^0.73.1",
|
|
61
|
+
"@react-navigation/native": "^6.1.17",
|
|
62
|
+
"@react-navigation/native-stack": "^6.9.26",
|
|
63
|
+
"@release-it/conventional-changelog": "^5.0.0",
|
|
64
|
+
"@types/jest": "^29.5.5",
|
|
65
|
+
"@types/lodash": "^4.17.10",
|
|
66
|
+
"@types/react": "^18.2.44",
|
|
67
|
+
"del-cli": "^5.1.0",
|
|
68
|
+
"eslint": "^8.51.0",
|
|
69
|
+
"eslint-config-prettier": "^9.0.0",
|
|
70
|
+
"eslint-plugin-prettier": "^5.0.1",
|
|
71
|
+
"jest": "^29.7.0",
|
|
72
|
+
"prettier": "^3.0.3",
|
|
73
|
+
"react": "18.2.0",
|
|
74
|
+
"react-native": "0.73.6",
|
|
75
|
+
"react-native-builder-bob": "^0.20.0",
|
|
76
|
+
"react-native-gesture-handler": "^2.16.2",
|
|
77
|
+
"react-native-safe-area-context": "^4.10.4",
|
|
78
|
+
"react-native-screens": "^3.31.1",
|
|
79
|
+
"release-it": "^15.0.0",
|
|
80
|
+
"turbo": "^1.10.7",
|
|
81
|
+
"typescript": "^5.7.3"
|
|
82
|
+
},
|
|
83
|
+
"resolutions": {
|
|
84
|
+
"@types/react": "^18.2.44"
|
|
85
|
+
},
|
|
86
|
+
"peerDependencies": {
|
|
87
|
+
"@gorhom/bottom-sheet": "^4",
|
|
88
|
+
"@react-navigation/native": "^6.0.0",
|
|
89
|
+
"@react-navigation/native-stack": "^6.0.0",
|
|
90
|
+
"react": "*",
|
|
91
|
+
"react-native": "*",
|
|
92
|
+
"react-native-gesture-handler": "^2.0.0",
|
|
93
|
+
"react-native-permissions": "^4.0.0",
|
|
94
|
+
"react-native-reanimated": ">= 3.0.0",
|
|
95
|
+
"react-native-safe-area-context": ">= 3.0.0",
|
|
96
|
+
"react-native-screens": ">= 3.0.0"
|
|
97
|
+
},
|
|
98
|
+
"workspaces": [
|
|
99
|
+
"example"
|
|
100
|
+
],
|
|
101
|
+
"packageManager": "yarn@3.6.1",
|
|
102
|
+
"jest": {
|
|
103
|
+
"preset": "react-native",
|
|
104
|
+
"modulePathIgnorePatterns": [
|
|
105
|
+
"<rootDir>/example/node_modules",
|
|
106
|
+
"<rootDir>/lib/"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"release-it": {
|
|
110
|
+
"git": {
|
|
111
|
+
"commitMessage": "chore: release ${version}",
|
|
112
|
+
"tagName": "v${version}"
|
|
113
|
+
},
|
|
114
|
+
"npm": {
|
|
115
|
+
"publish": true
|
|
116
|
+
},
|
|
117
|
+
"github": {
|
|
118
|
+
"release": false
|
|
119
|
+
},
|
|
120
|
+
"plugins": {
|
|
121
|
+
"@release-it/conventional-changelog": {
|
|
122
|
+
"preset": "angular"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"eslintConfig": {
|
|
127
|
+
"root": true,
|
|
128
|
+
"extends": [
|
|
129
|
+
"@react-native",
|
|
130
|
+
"prettier"
|
|
131
|
+
],
|
|
132
|
+
"rules": {
|
|
133
|
+
"prettier/prettier": [
|
|
134
|
+
"error",
|
|
135
|
+
{
|
|
136
|
+
"quoteProps": "consistent",
|
|
137
|
+
"singleQuote": true,
|
|
138
|
+
"tabWidth": 2,
|
|
139
|
+
"trailingComma": "es5",
|
|
140
|
+
"useTabs": false
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"eslintIgnore": [
|
|
146
|
+
"node_modules/",
|
|
147
|
+
"lib/"
|
|
148
|
+
],
|
|
149
|
+
"prettier": {
|
|
150
|
+
"quoteProps": "consistent",
|
|
151
|
+
"singleQuote": true,
|
|
152
|
+
"tabWidth": 2,
|
|
153
|
+
"trailingComma": "es5",
|
|
154
|
+
"useTabs": false
|
|
155
|
+
},
|
|
156
|
+
"react-native-builder-bob": {
|
|
157
|
+
"source": "src",
|
|
158
|
+
"output": "lib",
|
|
159
|
+
"targets": [
|
|
160
|
+
[
|
|
161
|
+
"commonjs",
|
|
162
|
+
{
|
|
163
|
+
"esm": true
|
|
164
|
+
}
|
|
165
|
+
],
|
|
166
|
+
[
|
|
167
|
+
"module",
|
|
168
|
+
{
|
|
169
|
+
"esm": true
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
[
|
|
173
|
+
"typescript",
|
|
174
|
+
{
|
|
175
|
+
"esm": true
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
]
|
|
179
|
+
},
|
|
180
|
+
"dependencies": {
|
|
181
|
+
"@gorhom/bottom-sheet": "^4",
|
|
182
|
+
"eventemitter3": "^5.0.1",
|
|
183
|
+
"react-native-country-picker-modal": "^2.0.0",
|
|
184
|
+
"react-native-permissions": "^4.1.5",
|
|
185
|
+
"react-native-reanimated": "^3.12.0",
|
|
186
|
+
"react-native-svg": "^15.1.0",
|
|
187
|
+
"zustand": "^4.5.2"
|
|
188
|
+
},
|
|
189
|
+
"exports": {
|
|
190
|
+
".": {
|
|
191
|
+
"import": {
|
|
192
|
+
"types": "./lib/typescript/module/src/index.d.ts",
|
|
193
|
+
"default": "./lib/module/index.js"
|
|
194
|
+
},
|
|
195
|
+
"require": {
|
|
196
|
+
"types": "./lib/typescript/commonjs/src/index.d.ts",
|
|
197
|
+
"default": "./lib/commonjs/index.js"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|