@regulaforensics/document-reader 9.7.952-rc → 9.7.953-rc
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/RNDocumentReader.podspec +2 -2
- package/android/src/main/{java → kotlin}/com/regula/plugin/documentreader/Config.kt +30 -10
- package/android/src/main/{java → kotlin}/com/regula/plugin/documentreader/JSONConstructor.kt +12 -1
- package/android/src/main/{java → kotlin}/com/regula/plugin/documentreader/Utils.kt +1 -1
- package/examples/capacitor/README.md +1 -1
- package/examples/capacitor/package-lock.json +14 -14
- package/examples/capacitor/package.json +3 -3
- package/examples/capacitor/scripts/android.sh +3 -1
- package/examples/capacitor/scripts/ios.sh +3 -1
- package/examples/capacitor/scripts/setup.sh +2 -0
- package/examples/ionic/README.md +1 -1
- package/examples/ionic/config.xml +0 -2
- package/examples/ionic/images/icon.png +0 -0
- package/examples/ionic/index.tsx +1 -1
- package/examples/ionic/package-lock.json +2396 -2023
- package/examples/ionic/package.json +25 -26
- package/examples/ionic/patches/cordova-plugin-ionic-webview+5.0.1.patch +23 -0
- package/examples/ionic/scripts/android.sh +4 -1
- package/examples/ionic/scripts/ios.sh +5 -2
- package/examples/ionic/scripts/setup.sh +2 -0
- package/examples/ionic/tsconfig.json +1 -1
- package/examples/react_native/README.md +1 -1
- package/examples/react_native/package-lock.json +539 -638
- package/examples/react_native/package.json +3 -3
- package/examples/react_native/scripts/android.sh +5 -5
- package/examples/react_native/scripts/ios.sh +5 -5
- package/examples/react_native/scripts/setup.sh +2 -0
- package/ios/RGLWConfig.h +2 -0
- package/ios/RGLWConfig.m +25 -5
- package/ios/RGLWJSONConstructor.h +2 -0
- package/ios/RGLWJSONConstructor.m +12 -0
- package/package.json +1 -1
- package/plugin.xml +8 -8
- package/test/json.tsx +6 -0
- package/test/package-lock.json +1 -1
- package/test/test.tsx +206 -2
- package/www/capacitor/index.js +207 -17
- package/www/capacitor/params/process_params/AuthenticityParams.js +15 -0
- package/www/capacitor/params/process_params/AuthenticityPropertiesParams.js +31 -0
- package/www/capacitor/params/process_params/FaceApiParams.js +5 -1
- package/www/capacitor/results/authenticity/Authenticity.js +2 -1
- package/www/capacitor/results/authenticity/CheckDiagnose.js +4 -1
- package/www/capacitor/results/authenticity/SecurityFeatureType.js +1 -0
- package/www/capacitor/results/visual_results/FieldType.js +3 -1
- package/www/cordova.js +199 -123
- package/www/react-native/index.js +207 -17
- package/www/react-native/params/process_params/AuthenticityParams.js +15 -0
- package/www/react-native/params/process_params/AuthenticityPropertiesParams.js +31 -0
- package/www/react-native/params/process_params/FaceApiParams.js +5 -1
- package/www/react-native/results/authenticity/Authenticity.js +2 -1
- package/www/react-native/results/authenticity/CheckDiagnose.js +4 -1
- package/www/react-native/results/authenticity/SecurityFeatureType.js +1 -0
- package/www/react-native/results/visual_results/FieldType.js +3 -1
- package/www/types/index.d.ts +206 -19
- package/www/types/params/process_params/AuthenticityParams.d.ts +5 -4
- package/www/types/params/process_params/AuthenticityPropertiesParams.d.ts +10 -0
- package/www/types/params/process_params/FaceApiParams.d.ts +4 -0
- package/www/types/params/process_params/ProcessParams.d.ts +3 -2
- package/www/types/results/authenticity/Authenticity.d.ts +1 -0
- package/www/types/results/authenticity/CheckDiagnose.d.ts +3 -0
- package/www/types/results/authenticity/SecurityFeatureType.d.ts +1 -0
- package/www/types/results/visual_results/FieldType.d.ts +3 -1
- /package/android/src/main/{java → kotlin}/com/regula/plugin/documentreader/BluetoothUtil.kt +0 -0
- /package/android/src/main/{java → kotlin}/com/regula/plugin/documentreader/Main.kt +0 -0
- /package/android/src/main/{java → kotlin}/com/regula/plugin/documentreader/RNDocumentReaderModule.kt +0 -0
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
exec,
|
|
3
|
+
serializeInterface,
|
|
4
|
+
_setDocumentReaderCompletion,
|
|
5
|
+
_setRFIDCompletion,
|
|
6
|
+
_setDocumentReaderPrepareCompletion,
|
|
7
|
+
_setCustomButtonTappedCompletion,
|
|
8
|
+
_setVideoEncoderCompletion,
|
|
9
|
+
_setRFIDProgressCompletion,
|
|
10
|
+
_setChipDetectedCompletion,
|
|
11
|
+
_setRetryReadChipCompletion,
|
|
12
|
+
_setPaCertificateCompletion,
|
|
13
|
+
_setTaCertificateCompletion,
|
|
14
|
+
_setTaSignatureCompletion,
|
|
15
|
+
_setPACEProtocolCompletion,
|
|
16
|
+
_setCAProtocolCompletion,
|
|
17
|
+
} from './internal/bridge'
|
|
2
18
|
|
|
3
19
|
import { OnlineProcessingConfig, ImageFormat, OnlineMode } from './config/OnlineProcessingConfig';
|
|
4
20
|
import { InitConfig } from './config/InitConfig';
|
|
@@ -6,7 +22,17 @@ import { RFIDConfig } from './config/RFIDConfig';
|
|
|
6
22
|
import { ScannerConfig } from './config/ScannerConfig';
|
|
7
23
|
import { RecognizeConfig, ImageInputData } from './config/RecognizeConfig';
|
|
8
24
|
import { FinalizeConfig } from './config/FinalizeConfig';
|
|
9
|
-
export {
|
|
25
|
+
export {
|
|
26
|
+
OnlineProcessingConfig,
|
|
27
|
+
ImageFormat,
|
|
28
|
+
OnlineMode,
|
|
29
|
+
InitConfig,
|
|
30
|
+
RFIDConfig,
|
|
31
|
+
ScannerConfig,
|
|
32
|
+
RecognizeConfig,
|
|
33
|
+
ImageInputData,
|
|
34
|
+
FinalizeConfig,
|
|
35
|
+
};
|
|
10
36
|
|
|
11
37
|
import { DocReaderVersion } from './info/DocReaderVersion';
|
|
12
38
|
import { PrepareProgress } from './info/PrepareProgress';
|
|
@@ -15,7 +41,18 @@ import { DocumentsDatabase } from './info/DocumentsDatabase';
|
|
|
15
41
|
import { License } from './info/License';
|
|
16
42
|
import { DocReaderScenario, Scenario, DocReaderOrientation } from './info/DocReaderScenario';
|
|
17
43
|
import { RFIDException } from './info/RFIDException';
|
|
18
|
-
export {
|
|
44
|
+
export {
|
|
45
|
+
DocReaderVersion,
|
|
46
|
+
PrepareProgress,
|
|
47
|
+
DocReaderException,
|
|
48
|
+
ErrorCodes,
|
|
49
|
+
DocumentsDatabase,
|
|
50
|
+
License,
|
|
51
|
+
DocReaderScenario,
|
|
52
|
+
Scenario,
|
|
53
|
+
DocReaderOrientation,
|
|
54
|
+
RFIDException,
|
|
55
|
+
};
|
|
19
56
|
|
|
20
57
|
import { LCID } from './results/visual_results/LCID';
|
|
21
58
|
import { GraphicFieldType } from './results/visual_results/GraphicFieldType';
|
|
@@ -32,13 +69,38 @@ import { RFIDOrigin } from './results/visual_results/RFIDOrigin';
|
|
|
32
69
|
import { TextResult } from './results/visual_results/TextResult';
|
|
33
70
|
import { TextSource } from './results/visual_results/TextSource';
|
|
34
71
|
import { GraphicResult } from './results/visual_results/GraphicResult';
|
|
35
|
-
export {
|
|
72
|
+
export {
|
|
73
|
+
LCID,
|
|
74
|
+
GraphicFieldType,
|
|
75
|
+
Value,
|
|
76
|
+
Rect,
|
|
77
|
+
Symbol,
|
|
78
|
+
Comparison,
|
|
79
|
+
TextField,
|
|
80
|
+
Lights,
|
|
81
|
+
Validity,
|
|
82
|
+
FieldType,
|
|
83
|
+
GraphicField,
|
|
84
|
+
RFIDOrigin,
|
|
85
|
+
TextResult,
|
|
86
|
+
TextSource,
|
|
87
|
+
GraphicResult,
|
|
88
|
+
};
|
|
36
89
|
|
|
37
90
|
import { DocumentType, DocFormat, DocType as DocumentTypeEnum } from './results/DocumentType';
|
|
38
91
|
import { Results, ResultType } from './results/Results';
|
|
39
92
|
import { TransactionInfo } from './results/TransactionInfo';
|
|
40
93
|
import { Position, Coordinate } from './results/Position';
|
|
41
|
-
export {
|
|
94
|
+
export {
|
|
95
|
+
DocumentType,
|
|
96
|
+
DocFormat,
|
|
97
|
+
DocumentTypeEnum,
|
|
98
|
+
Results,
|
|
99
|
+
ResultType,
|
|
100
|
+
TransactionInfo,
|
|
101
|
+
Position,
|
|
102
|
+
Coordinate,
|
|
103
|
+
};
|
|
42
104
|
|
|
43
105
|
import { RFIDStatus } from './results/status/RFIDStatus';
|
|
44
106
|
import { ResultsStatus } from './results/status/ResultsStatus';
|
|
@@ -46,7 +108,14 @@ import { CheckResult } from './results/status/CheckResult';
|
|
|
46
108
|
import { OpticalStatus } from './results/status/OpticalStatus';
|
|
47
109
|
import { AgeStatus } from './results/status/AgeStatus';
|
|
48
110
|
import { ProcessingFinishedStatus } from './results/Results';
|
|
49
|
-
export {
|
|
111
|
+
export {
|
|
112
|
+
RFIDStatus,
|
|
113
|
+
ResultsStatus,
|
|
114
|
+
CheckResult,
|
|
115
|
+
OpticalStatus,
|
|
116
|
+
AgeStatus,
|
|
117
|
+
ProcessingFinishedStatus,
|
|
118
|
+
};
|
|
50
119
|
|
|
51
120
|
import { CheckDiagnose } from './results/authenticity/CheckDiagnose';
|
|
52
121
|
import { AuthenticityElement } from './results/authenticity/AuthenticityElement';
|
|
@@ -54,19 +123,36 @@ import { AuthenticityResult } from './results/authenticity/AuthenticityResult';
|
|
|
54
123
|
import { AuthenticityCheck } from './results/authenticity/AuthenticityCheck';
|
|
55
124
|
import { SecurityFeatureType } from './results/authenticity/SecurityFeatureType';
|
|
56
125
|
import { Authenticity } from './results/authenticity/Authenticity';
|
|
57
|
-
export {
|
|
126
|
+
export {
|
|
127
|
+
CheckDiagnose,
|
|
128
|
+
AuthenticityElement,
|
|
129
|
+
AuthenticityResult,
|
|
130
|
+
AuthenticityCheck,
|
|
131
|
+
SecurityFeatureType,
|
|
132
|
+
Authenticity,
|
|
133
|
+
};
|
|
58
134
|
|
|
59
135
|
import { PDF417Info } from './results/barcode/PDF417Info';
|
|
60
136
|
import { BarcodeStatus } from './results/barcode/BarcodeStatus';
|
|
61
137
|
import { BarcodeType } from './results/barcode/BarcodeType';
|
|
62
138
|
import { BarcodeResult } from './results/barcode/BarcodeResult';
|
|
63
139
|
import { BarcodeField } from './results/barcode/BarcodeField';
|
|
64
|
-
export {
|
|
140
|
+
export {
|
|
141
|
+
PDF417Info,
|
|
142
|
+
BarcodeStatus,
|
|
143
|
+
BarcodeType,
|
|
144
|
+
BarcodeResult,
|
|
145
|
+
BarcodeField,
|
|
146
|
+
};
|
|
65
147
|
|
|
66
148
|
import { ImageQuality } from './results/image_quality/ImageQuality';
|
|
67
149
|
import { ImageQualityGroup } from './results/image_quality/ImageQualityGroup';
|
|
68
150
|
import { ImageQualityCheckType } from './results/image_quality/ImageQualityCheckType';
|
|
69
|
-
export {
|
|
151
|
+
export {
|
|
152
|
+
ImageQuality,
|
|
153
|
+
ImageQualityGroup,
|
|
154
|
+
ImageQualityCheckType,
|
|
155
|
+
};
|
|
70
156
|
|
|
71
157
|
import { LDSParsingErrorCodes } from './results/visible_digital_seals/LDSParsingErrorCodes';
|
|
72
158
|
import { VDSNCData } from './results/visible_digital_seals/VDSNCData';
|
|
@@ -74,7 +160,14 @@ import { BytesData } from './results/visible_digital_seals/BytesData';
|
|
|
74
160
|
import { DocFeature } from './results/visible_digital_seals/DocFeature';
|
|
75
161
|
import { VDSData } from './results/visible_digital_seals/VDSData';
|
|
76
162
|
import { LDSParsingNotificationCodes } from './results/visible_digital_seals/LDSParsingNotificationCodes';
|
|
77
|
-
export {
|
|
163
|
+
export {
|
|
164
|
+
LDSParsingErrorCodes,
|
|
165
|
+
VDSNCData,
|
|
166
|
+
BytesData,
|
|
167
|
+
DocFeature,
|
|
168
|
+
VDSData,
|
|
169
|
+
LDSParsingNotificationCodes,
|
|
170
|
+
};
|
|
78
171
|
|
|
79
172
|
import { SecurityObject } from './results/rfid/SecurityObject';
|
|
80
173
|
import { CardProperties } from './results/rfid/CardProperties';
|
|
@@ -96,9 +189,32 @@ import { Application, RFIDApplicationType } from './results/rfid/Application';
|
|
|
96
189
|
import { RFIDAccessControlProcedureType } from './results/rfid/RFIDAccessControlProcedureType';
|
|
97
190
|
import { Extension } from './results/rfid/Extension';
|
|
98
191
|
import { AccessControlProcedureType } from './results/rfid/AccessControlProcedureType';
|
|
99
|
-
export {
|
|
192
|
+
export {
|
|
193
|
+
SecurityObject,
|
|
194
|
+
CardProperties,
|
|
195
|
+
DataField,
|
|
196
|
+
Attribute,
|
|
197
|
+
SignerInfo,
|
|
198
|
+
SecurityObjectCertificates,
|
|
199
|
+
CertificateChain,
|
|
200
|
+
Authority,
|
|
201
|
+
File,
|
|
202
|
+
RFIDValue,
|
|
203
|
+
RFIDValidity,
|
|
204
|
+
RFIDDataFileType,
|
|
205
|
+
CertificateData,
|
|
206
|
+
FileData,
|
|
207
|
+
RFIDCertificateType,
|
|
208
|
+
RFIDSessionData,
|
|
209
|
+
Application,
|
|
210
|
+
RFIDApplicationType,
|
|
211
|
+
RFIDAccessControlProcedureType,
|
|
212
|
+
Extension,
|
|
213
|
+
AccessControlProcedureType,
|
|
214
|
+
};
|
|
100
215
|
|
|
101
216
|
import { LivenessParams } from './params/process_params/LivenessParams';
|
|
217
|
+
import { AuthenticityPropertiesParams } from './params/process_params/AuthenticityPropertiesParams';
|
|
102
218
|
import { ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzDetectionModes } from './params/process_params/ProcessParams';
|
|
103
219
|
import { GlaresCheckParams } from './params/process_params/GlaresCheckParams';
|
|
104
220
|
import { FaceApiParams } from './params/process_params/FaceApiParams';
|
|
@@ -108,10 +224,34 @@ import { AuthenticityParams } from './params/process_params/AuthenticityParams';
|
|
|
108
224
|
import { BackendProcessingConfig } from './params/process_params/BackendProcessingConfig';
|
|
109
225
|
import { Bsi } from './params/process_params/Bsi';
|
|
110
226
|
import { FaceApiSearchParams } from './params/process_params/FaceApiSearchParams';
|
|
111
|
-
export {
|
|
227
|
+
export {
|
|
228
|
+
LivenessParams,
|
|
229
|
+
AuthenticityPropertiesParams,
|
|
230
|
+
ProcessParams,
|
|
231
|
+
MeasureSystem,
|
|
232
|
+
MRZFormat,
|
|
233
|
+
LogLevel,
|
|
234
|
+
MrzDetectionModes,
|
|
235
|
+
GlaresCheckParams,
|
|
236
|
+
FaceApiParams,
|
|
237
|
+
RFIDParams,
|
|
238
|
+
ImageQA,
|
|
239
|
+
AuthenticityParams,
|
|
240
|
+
BackendProcessingConfig,
|
|
241
|
+
Bsi,
|
|
242
|
+
FaceApiSearchParams,
|
|
243
|
+
};
|
|
112
244
|
|
|
113
245
|
import { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize } from './params/Functionality';
|
|
114
|
-
export {
|
|
246
|
+
export {
|
|
247
|
+
Functionality,
|
|
248
|
+
CameraPosition,
|
|
249
|
+
CaptureMode,
|
|
250
|
+
CameraMode,
|
|
251
|
+
CaptureSessionPreset,
|
|
252
|
+
DocReaderFrame,
|
|
253
|
+
CameraSize,
|
|
254
|
+
};
|
|
115
255
|
|
|
116
256
|
import { CustomizationColors } from './params/customization/CustomizationColors';
|
|
117
257
|
import { CustomizationFonts, Font, FontStyle } from './params/customization/CustomizationFonts';
|
|
@@ -120,14 +260,41 @@ import { CustomizationTimings } from './params/customization/CustomizationTiming
|
|
|
120
260
|
import { CustomizationMatrices } from './params/customization/CustomizationMatrices';
|
|
121
261
|
import { CustomizationContentModes, ViewContentMode } from './params/customization/CustomizationContentModes';
|
|
122
262
|
import { Customization, Cap, FrameShapeType, CustomButtonTag, CustomizationTheme } from './params/customization/Customization';
|
|
123
|
-
export {
|
|
263
|
+
export {
|
|
264
|
+
CustomizationFonts,
|
|
265
|
+
CustomizationImages,
|
|
266
|
+
CustomizationTimings,
|
|
267
|
+
CustomizationMatrices,
|
|
268
|
+
CustomizationContentModes,
|
|
269
|
+
Font,
|
|
270
|
+
FontStyle,
|
|
271
|
+
Customization,
|
|
272
|
+
Cap,
|
|
273
|
+
FrameShapeType,
|
|
274
|
+
ViewContentMode,
|
|
275
|
+
CustomButtonTag,
|
|
276
|
+
CustomizationColors,
|
|
277
|
+
CustomizationTheme,
|
|
278
|
+
};
|
|
124
279
|
|
|
125
280
|
import { EPassportDataGroups } from './params/rfid_scenario/EPassportDataGroups';
|
|
126
281
|
import { EIDDataGroups } from './params/rfid_scenario/EIDDataGroups';
|
|
127
282
|
import { DTCDataGroup } from './params/rfid_scenario/DTCDataGroup';
|
|
128
283
|
import { RFIDScenario, RFIDAuthenticationProcedureType, RFIDPasswordType, RFIDSDKProfilerType, RFIDTerminalType, SignManagementAction, RFIDReadingBufferSize } from './params/rfid_scenario/RFIDScenario';
|
|
129
284
|
import { EDLDataGroups } from './params/rfid_scenario/EDLDataGroups';
|
|
130
|
-
export {
|
|
285
|
+
export {
|
|
286
|
+
EPassportDataGroups,
|
|
287
|
+
EIDDataGroups,
|
|
288
|
+
DTCDataGroup,
|
|
289
|
+
RFIDScenario,
|
|
290
|
+
RFIDAuthenticationProcedureType,
|
|
291
|
+
RFIDPasswordType,
|
|
292
|
+
RFIDSDKProfilerType,
|
|
293
|
+
RFIDTerminalType,
|
|
294
|
+
SignManagementAction,
|
|
295
|
+
RFIDReadingBufferSize,
|
|
296
|
+
EDLDataGroups,
|
|
297
|
+
};
|
|
131
298
|
|
|
132
299
|
import { PAResourcesIssuer } from './rfid/PAResourcesIssuer';
|
|
133
300
|
import { RFIDErrorCodes } from './rfid/RFIDErrorCodes';
|
|
@@ -138,14 +305,37 @@ import { TAChallenge } from './rfid/TAChallenge';
|
|
|
138
305
|
import { PACEProtocol } from './rfid/PACEProtocol';
|
|
139
306
|
import { CAProtocol } from './rfid/CAProtocol';
|
|
140
307
|
import { PKDCertificate, PKDResourceType } from './rfid/PKDCertificate';
|
|
141
|
-
export {
|
|
308
|
+
export {
|
|
309
|
+
PAResourcesIssuer,
|
|
310
|
+
RFIDErrorCodes,
|
|
311
|
+
TccParams,
|
|
312
|
+
RFIDNotification,
|
|
313
|
+
RFIDNotificationCodes,
|
|
314
|
+
PAAttribute,
|
|
315
|
+
TAChallenge,
|
|
316
|
+
PACEProtocol,
|
|
317
|
+
CAProtocol,
|
|
318
|
+
PKDCertificate,
|
|
319
|
+
PKDResourceType,
|
|
320
|
+
};
|
|
142
321
|
|
|
143
322
|
import { DataRetrieval, MDLDocRequestPreset, MDLDeviceRetrieval } from './mdl/DataRetrieval';
|
|
144
323
|
import { DeviceEngagement, MDLDeviceEngagement } from './mdl/DeviceEngagement';
|
|
145
324
|
import { NameSpaceMDL, MDLIntentToRetain } from './mdl/NameSpaceMDL';
|
|
146
325
|
import { DocumentRequestMDL, DocumentRequest18013MDL } from './mdl/DocumentRequestMDL';
|
|
147
326
|
import { DeviceRetrievalMethod } from './mdl/DeviceRetrievalMethod';
|
|
148
|
-
export {
|
|
327
|
+
export {
|
|
328
|
+
DataRetrieval,
|
|
329
|
+
MDLDocRequestPreset,
|
|
330
|
+
MDLDeviceRetrieval,
|
|
331
|
+
DeviceEngagement,
|
|
332
|
+
MDLDeviceEngagement,
|
|
333
|
+
DeviceRetrievalMethod,
|
|
334
|
+
DocumentRequest18013MDL,
|
|
335
|
+
MDLIntentToRetain,
|
|
336
|
+
NameSpaceMDL,
|
|
337
|
+
DocumentRequestMDL,
|
|
338
|
+
};
|
|
149
339
|
|
|
150
340
|
export class DocumentReader {
|
|
151
341
|
static get instance() { return DocumentReader._instance }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DocumentReader } from '../../index';
|
|
2
2
|
import { LivenessParams } from './LivenessParams';
|
|
3
|
+
import { AuthenticityPropertiesParams } from './AuthenticityPropertiesParams';
|
|
3
4
|
|
|
4
5
|
export class AuthenticityParams {
|
|
5
6
|
get useLivenessCheck() { return this._useLivenessCheck; }
|
|
@@ -96,6 +97,16 @@ export class AuthenticityParams {
|
|
|
96
97
|
this._set({ "checkSecurityText": val });
|
|
97
98
|
}
|
|
98
99
|
|
|
100
|
+
get checkProperties() { return this._checkProperties; }
|
|
101
|
+
set checkProperties(val) {
|
|
102
|
+
this._checkProperties = val;
|
|
103
|
+
this._set({ "checkProperties": val });
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
_propertiesParams = new AuthenticityPropertiesParams();
|
|
107
|
+
get propertiesParams() { return this._propertiesParams; }
|
|
108
|
+
set propertiesParams(val) { (this._propertiesParams = val)._apply(); }
|
|
109
|
+
|
|
99
110
|
static fromJson(jsonObject) {
|
|
100
111
|
if (jsonObject == null) return new AuthenticityParams();
|
|
101
112
|
|
|
@@ -117,6 +128,8 @@ export class AuthenticityParams {
|
|
|
117
128
|
result._checkPhotoComparison = jsonObject["checkPhotoComparison"];
|
|
118
129
|
result._checkLetterScreen = jsonObject["checkLetterScreen"];
|
|
119
130
|
result._checkSecurityText = jsonObject["checkSecurityText"];
|
|
131
|
+
result._checkProperties = jsonObject["checkProperties"];
|
|
132
|
+
result._propertiesParams = AuthenticityPropertiesParams.fromJson(jsonObject["propertiesParams"]);
|
|
120
133
|
|
|
121
134
|
return result;
|
|
122
135
|
}
|
|
@@ -146,6 +159,8 @@ export class AuthenticityParams {
|
|
|
146
159
|
"checkPhotoComparison": this.checkPhotoComparison,
|
|
147
160
|
"checkLetterScreen": this.checkLetterScreen,
|
|
148
161
|
"checkSecurityText": this.checkSecurityText,
|
|
162
|
+
"checkProperties": this.checkProperties,
|
|
163
|
+
"propertiesParams": this.propertiesParams?.toJson(),
|
|
149
164
|
}
|
|
150
165
|
}
|
|
151
166
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DocumentReader } from '../../index';
|
|
2
|
+
|
|
3
|
+
export class AuthenticityPropertiesParams {
|
|
4
|
+
get checkHoldersSignature() { return this._checkHoldersSignature; }
|
|
5
|
+
set checkHoldersSignature(val) {
|
|
6
|
+
this._checkHoldersSignature = val;
|
|
7
|
+
this._set({ "checkHoldersSignature": val });
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
static fromJson(jsonObject) {
|
|
11
|
+
if (jsonObject == null) return new AuthenticityPropertiesParams();
|
|
12
|
+
|
|
13
|
+
const result = new AuthenticityPropertiesParams();
|
|
14
|
+
result._checkHoldersSignature = jsonObject["checkHoldersSignature"];
|
|
15
|
+
|
|
16
|
+
return result;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
_apply() { this._set(this); }
|
|
20
|
+
_set(json) {
|
|
21
|
+
const parentJson = { "propertiesParams": json };
|
|
22
|
+
var parent = DocumentReader.instance.processParams.authenticityParams;
|
|
23
|
+
if (this === parent.propertiesParams) parent._set(parentJson);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
toJson() {
|
|
27
|
+
return {
|
|
28
|
+
"checkHoldersSignature": this.checkHoldersSignature,
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -9,6 +9,7 @@ export class FaceApiParams {
|
|
|
9
9
|
proxy
|
|
10
10
|
proxyPassword
|
|
11
11
|
proxyType
|
|
12
|
+
livenessTransactionId
|
|
12
13
|
|
|
13
14
|
constructor(options) {
|
|
14
15
|
this.url = options?.url ?? "https://faceapi.regulaforensics.com";
|
|
@@ -19,6 +20,7 @@ export class FaceApiParams {
|
|
|
19
20
|
this.proxy = options?.proxy;
|
|
20
21
|
this.proxyPassword = options?.proxyPassword;
|
|
21
22
|
this.proxyType = options?.proxyType;
|
|
23
|
+
this.livenessTransactionId = options?.livenessTransactionId;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
static fromJson(jsonObject) {
|
|
@@ -32,7 +34,8 @@ export class FaceApiParams {
|
|
|
32
34
|
serviceTimeout: jsonObject["serviceTimeout"],
|
|
33
35
|
proxy: jsonObject["proxy"],
|
|
34
36
|
proxyPassword: jsonObject["proxyPassword"],
|
|
35
|
-
proxyType: jsonObject["proxyType"]
|
|
37
|
+
proxyType: jsonObject["proxyType"],
|
|
38
|
+
livenessTransactionId: jsonObject["livenessTransactionId"],
|
|
36
39
|
});
|
|
37
40
|
}
|
|
38
41
|
|
|
@@ -46,6 +49,7 @@ export class FaceApiParams {
|
|
|
46
49
|
"proxy": this.proxy,
|
|
47
50
|
"proxyPassword": this.proxyPassword,
|
|
48
51
|
"proxyType": this.proxyType,
|
|
52
|
+
"livenessTransactionId": this.livenessTransactionId,
|
|
49
53
|
}
|
|
50
54
|
}
|
|
51
55
|
}
|
|
@@ -124,5 +124,8 @@ export const CheckDiagnose = {
|
|
|
124
124
|
ICAO_IDB_SIGNATURE_MUST_BE_PRESENT: 246,
|
|
125
125
|
ICAO_IDB_SIGNATURE_MUST_NOT_BE_PRESENT: 247,
|
|
126
126
|
ICAO_IDB_CERTIFICATE_MUST_NOT_BE_PRESENT: 248,
|
|
127
|
-
INCORRECT_OBJECT_COLOR: 250
|
|
127
|
+
INCORRECT_OBJECT_COLOR: 250,
|
|
128
|
+
PROPERTY_NO_SIGNATURE: 260,
|
|
129
|
+
PROPERTY_TEXT_AS_SIGNATURE: 261,
|
|
130
|
+
PROPERTY_FINGERPRINT_AS_SIGNATURE: 262,
|
|
128
131
|
}
|
|
@@ -659,7 +659,9 @@ export const FieldType = {
|
|
|
659
659
|
JURISDICTION_SPECIFIC_DATA: 703,
|
|
660
660
|
DATA_DATE_OF_EXPIRY: 704,
|
|
661
661
|
CONSUL: 705,
|
|
662
|
-
|
|
662
|
+
DLCLASSCODE_B3_FROM: 706,
|
|
663
|
+
DLCLASSCODE_B3_TO: 707,
|
|
664
|
+
DLCLASSCODE_B3_NOTES: 708,
|
|
663
665
|
}
|
|
664
666
|
|
|
665
667
|
FieldType.getTranslation = async function (value) {
|