@regulaforensics/document-reader 9.9.1223-rc → 9.9.1309-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/Package.swift +2 -2
- package/android/build.gradle.kts +1 -1
- package/android/cordova.gradle.kts +1 -1
- package/android/src/main/kotlin/com/regula/plugin/document/reader/Config.kt +2 -0
- package/android/src/main/kotlin/com/regula/plugin/document/reader/JSONConstructor.kt +10 -18
- package/android/src/main/kotlin/com/regula/plugin/document/reader/Main.kt +14 -4
- package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +4 -4
- package/examples/capacitor/package-lock.json +113 -661
- package/examples/capacitor/package.json +6 -5
- package/examples/ionic/config.xml +1 -1
- package/examples/ionic/package-lock.json +4315 -925
- package/examples/ionic/package.json +27 -5
- package/examples/ionic/scripts/ios.sh +3 -1
- package/examples/react_native/README.md +1 -1
- package/examples/react_native/app.config.ts +3 -0
- package/examples/react_native/index.tsx +52 -22
- package/examples/react_native/metro.config.js +1 -3
- package/examples/react_native/package-lock.json +1217 -1579
- package/examples/react_native/package.json +20 -19
- package/examples/react_native/scripts/android.sh +1 -8
- package/examples/react_native/scripts/ios.sh +3 -11
- package/examples/react_native/scripts/setup.sh +1 -5
- package/examples/react_native/scripts/withoutMetroServer.js +89 -0
- package/ios/RGLWConfig.m +2 -0
- package/ios/RGLWJSONConstructor.m +1 -0
- package/ios/RGLWMain.h +1 -0
- package/ios/RGLWMain.m +16 -0
- package/ios/RNDocumentReader.m +1 -0
- package/package.json +1 -1
- package/plugin.xml +3 -3
- package/react-native-document-reader.podspec +3 -3
- package/test/json.tsx +6 -6
- package/test/package-lock.json +2 -5
- package/test/test.tsx +259 -261
- package/www/capacitor/config/RFIDConfig.js +2 -0
- package/www/capacitor/index.js +2 -0
- package/www/capacitor/internal/bridge.js +8 -0
- package/www/capacitor/params/process_params/AuthenticityPropertiesParams.js +8 -0
- package/www/capacitor/results/authenticity/CheckDiagnose.js +2 -0
- package/www/capacitor/results/authenticity/SecurityFeatureType.js +1 -0
- package/www/capacitor/results/visual_results/FieldType.js +2 -0
- package/www/cordova.js +25 -0
- package/www/react-native/config/RFIDConfig.js +2 -0
- package/www/react-native/index.js +2 -0
- package/www/react-native/internal/bridge.js +8 -0
- package/www/react-native/params/process_params/AuthenticityPropertiesParams.js +8 -0
- package/www/react-native/results/authenticity/CheckDiagnose.js +2 -0
- package/www/react-native/results/authenticity/SecurityFeatureType.js +1 -0
- package/www/react-native/results/visual_results/FieldType.js +2 -0
- package/www/types/config/RFIDConfig.d.ts +15 -0
- package/www/types/config/RecognizeConfig.d.ts +2 -2
- package/www/types/params/process_params/AuthenticityPropertiesParams.d.ts +2 -0
- package/www/types/results/authenticity/CheckDiagnose.d.ts +2 -0
- package/www/types/results/authenticity/SecurityFeatureType.d.ts +1 -0
- package/www/types/results/visual_results/FieldType.d.ts +2 -0
- package/examples/react_native/index.html +0 -12
package/test/test.tsx
CHANGED
|
@@ -1,317 +1,315 @@
|
|
|
1
1
|
import { compare } from './utils'
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
InitConfig,
|
|
4
|
+
OnlineProcessingConfig,
|
|
5
|
+
ImageInputData,
|
|
6
|
+
RecognizeConfig,
|
|
7
|
+
ScannerConfig,
|
|
8
|
+
FinalizeConfig,
|
|
9
|
+
FaceApiSearchParams,
|
|
10
|
+
FaceApiParams,
|
|
11
|
+
LivenessParams,
|
|
12
|
+
AuthenticityPropertiesParams,
|
|
8
13
|
AuthenticityParams,
|
|
9
|
-
|
|
10
|
-
|
|
14
|
+
GlaresCheckParams,
|
|
15
|
+
OcclusionCheckParams,
|
|
16
|
+
RFIDParams,
|
|
17
|
+
ImageQA,
|
|
11
18
|
BackendProcessingConfig,
|
|
12
19
|
Bsi,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
Comparison,
|
|
20
|
-
Coordinate,
|
|
21
|
-
Customization,
|
|
20
|
+
ProcessParams,
|
|
21
|
+
EDLDataGroups,
|
|
22
|
+
EPassportDataGroups,
|
|
23
|
+
EIDDataGroups,
|
|
24
|
+
DTCDataGroup,
|
|
25
|
+
RFIDScenario,
|
|
22
26
|
CustomizationColors,
|
|
23
27
|
CustomizationFonts,
|
|
24
28
|
CustomizationImages,
|
|
25
29
|
CustomizationTimings,
|
|
26
|
-
CustomizationMatrices,
|
|
27
30
|
CustomizationContentModes,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
DocReaderScenario,
|
|
31
|
-
DocReaderVersion,
|
|
32
|
-
DocumentsDatabase,
|
|
33
|
-
DocumentType,
|
|
34
|
-
EDLDataGroups,
|
|
35
|
-
EIDDataGroups,
|
|
36
|
-
DTCDataGroup,
|
|
37
|
-
EPassportDataGroups,
|
|
38
|
-
Extension,
|
|
39
|
-
FaceApiParams,
|
|
40
|
-
FaceApiSearchParams,
|
|
41
|
-
File,
|
|
42
|
-
FileData,
|
|
31
|
+
CustomizationMatrices,
|
|
32
|
+
Customization,
|
|
43
33
|
Functionality,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
GraphicField,
|
|
48
|
-
GraphicResult,
|
|
49
|
-
ImageInputData,
|
|
50
|
-
ImageQA,
|
|
51
|
-
ImageQuality,
|
|
52
|
-
ImageQualityGroup,
|
|
53
|
-
InitConfig,
|
|
34
|
+
DocumentsDatabase,
|
|
35
|
+
DocReaderVersion,
|
|
36
|
+
DocReaderScenario,
|
|
54
37
|
License,
|
|
55
|
-
|
|
56
|
-
AuthenticityPropertiesParams,
|
|
57
|
-
OnlineProcessingConfig,
|
|
58
|
-
OpticalStatus,
|
|
59
|
-
PAAttribute,
|
|
60
|
-
PAResourcesIssuer,
|
|
61
|
-
PDF417Info,
|
|
62
|
-
PKDCertificate,
|
|
63
|
-
PACEProtocol,
|
|
64
|
-
CAProtocol,
|
|
65
|
-
Position,
|
|
66
|
-
PrepareProgress,
|
|
67
|
-
ProcessParams,
|
|
68
|
-
RecognizeConfig,
|
|
69
|
-
Rect,
|
|
70
|
-
Results,
|
|
71
|
-
ResultsStatus,
|
|
38
|
+
DocReaderException,
|
|
72
39
|
RFIDException,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
40
|
+
PrepareProgress,
|
|
41
|
+
AuthenticityElement,
|
|
42
|
+
AuthenticityCheck,
|
|
43
|
+
AuthenticityResult,
|
|
44
|
+
PDF417Info,
|
|
45
|
+
BarcodeField,
|
|
46
|
+
BarcodeResult,
|
|
47
|
+
ImageQuality,
|
|
48
|
+
ImageQualityGroup,
|
|
49
|
+
AccessControlProcedureType,
|
|
50
|
+
FileData,
|
|
51
|
+
CertificateData,
|
|
52
|
+
SecurityObjectCertificates,
|
|
53
|
+
File,
|
|
54
|
+
Application,
|
|
55
|
+
RFIDValue,
|
|
56
|
+
Attribute,
|
|
57
|
+
Authority,
|
|
58
|
+
CardProperties,
|
|
59
|
+
Extension,
|
|
60
|
+
RFIDValidity,
|
|
61
|
+
CertificateChain,
|
|
62
|
+
DataField,
|
|
63
|
+
SignerInfo,
|
|
64
|
+
SecurityObject,
|
|
76
65
|
RFIDSessionData,
|
|
66
|
+
BytesData,
|
|
67
|
+
VDSNCData,
|
|
68
|
+
DocFeature,
|
|
69
|
+
VDSData,
|
|
70
|
+
OpticalStatus,
|
|
77
71
|
AgeStatus,
|
|
78
72
|
RFIDStatus,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
73
|
+
ResultsStatus,
|
|
74
|
+
Comparison,
|
|
75
|
+
Rect,
|
|
76
|
+
GraphicField,
|
|
77
|
+
GraphicResult,
|
|
78
|
+
RFIDOrigin,
|
|
85
79
|
Symbol,
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
Validity,
|
|
81
|
+
Value,
|
|
88
82
|
TextField,
|
|
89
|
-
TextResult,
|
|
90
83
|
TextSource,
|
|
84
|
+
TextResult,
|
|
85
|
+
DocumentType,
|
|
86
|
+
Coordinate,
|
|
87
|
+
Position,
|
|
91
88
|
TransactionInfo,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
Results,
|
|
90
|
+
RFIDNotification,
|
|
91
|
+
PAAttribute,
|
|
92
|
+
PAResourcesIssuer,
|
|
93
|
+
PKDCertificate,
|
|
94
|
+
TAChallenge,
|
|
95
|
+
PACEProtocol,
|
|
96
|
+
CAProtocol,
|
|
97
|
+
TccParams,
|
|
97
98
|
DeviceRetrievalMethod,
|
|
98
|
-
DocumentRequest18013MDL,
|
|
99
|
-
DataRetrieval,
|
|
100
99
|
DeviceEngagement,
|
|
101
100
|
NameSpaceMDL,
|
|
102
101
|
DocumentRequestMDL,
|
|
103
|
-
|
|
102
|
+
DocumentRequest18013MDL,
|
|
103
|
+
DataRetrieval,
|
|
104
104
|
} from '@regulaforensics/document-reader/www/capacitor'
|
|
105
105
|
import {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
initConfig,
|
|
107
|
+
onlineProcessingConfig,
|
|
108
|
+
imageInputData,
|
|
109
|
+
recognizeConfig,
|
|
110
|
+
recognizeConfig2,
|
|
111
|
+
recognizeConfig3,
|
|
112
|
+
scannerConfig,
|
|
113
|
+
finalizeConfig,
|
|
114
|
+
faceApiSearchParams,
|
|
115
|
+
faceApiParams,
|
|
116
|
+
livenessParams,
|
|
117
|
+
propertiesParams,
|
|
111
118
|
authenticityParams,
|
|
112
|
-
|
|
113
|
-
|
|
119
|
+
glaresCheckParams,
|
|
120
|
+
occlusionCheckParams,
|
|
121
|
+
rfidParams,
|
|
122
|
+
imageQA,
|
|
114
123
|
backendProcessingConfig,
|
|
115
124
|
bsi,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
comparison,
|
|
123
|
-
coordinate,
|
|
124
|
-
customization,
|
|
125
|
+
processParams,
|
|
126
|
+
eDLDataGroups,
|
|
127
|
+
ePassportDataGroups,
|
|
128
|
+
eIDDataGroups,
|
|
129
|
+
dtcDataGroup,
|
|
130
|
+
rfidScenario,
|
|
125
131
|
customizationColors,
|
|
126
132
|
customizationFonts,
|
|
127
133
|
customizationImages,
|
|
128
134
|
customizationTimings,
|
|
129
|
-
customizationMatrices,
|
|
130
135
|
customizationContentModes,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
docReaderScenario,
|
|
134
|
-
docReaderVersion,
|
|
135
|
-
documentsDatabase,
|
|
136
|
-
documentType,
|
|
137
|
-
eDLDataGroups,
|
|
138
|
-
eIDDataGroups,
|
|
139
|
-
dtcDataGroup,
|
|
140
|
-
ePassportDataGroups,
|
|
141
|
-
extension,
|
|
142
|
-
faceApiParams,
|
|
143
|
-
faceApiSearchParams,
|
|
144
|
-
file,
|
|
145
|
-
fileData,
|
|
136
|
+
customizationMatrices,
|
|
137
|
+
customization,
|
|
146
138
|
functionality,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
graphicField,
|
|
151
|
-
graphicResult,
|
|
152
|
-
imageInputData,
|
|
153
|
-
imageQA,
|
|
154
|
-
imageQuality,
|
|
155
|
-
imageQualityGroup,
|
|
156
|
-
initConfig,
|
|
139
|
+
documentsDatabase,
|
|
140
|
+
docReaderVersion,
|
|
141
|
+
docReaderScenario,
|
|
157
142
|
license,
|
|
158
|
-
|
|
159
|
-
propertiesParams,
|
|
160
|
-
onlineProcessingConfig,
|
|
161
|
-
opticalStatus,
|
|
162
|
-
paAttribute,
|
|
163
|
-
paResourcesIssuer,
|
|
164
|
-
pdf417Info,
|
|
165
|
-
pkdCertificate,
|
|
166
|
-
paceProtocol,
|
|
167
|
-
caProtocol,
|
|
168
|
-
position,
|
|
169
|
-
prepareProgress,
|
|
170
|
-
processParams,
|
|
171
|
-
recognizeConfig,
|
|
172
|
-
recognizeConfig2,
|
|
173
|
-
rect,
|
|
174
|
-
results,
|
|
175
|
-
resultsStatus,
|
|
143
|
+
docReaderException,
|
|
176
144
|
rfidException,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
145
|
+
prepareProgress,
|
|
146
|
+
authenticityElement,
|
|
147
|
+
authenticityCheck,
|
|
148
|
+
authenticityResult,
|
|
149
|
+
pdf417Info,
|
|
150
|
+
barcodeField,
|
|
151
|
+
barcodeResult,
|
|
152
|
+
imageQuality,
|
|
153
|
+
imageQualityGroup,
|
|
154
|
+
accessControlProcedureType,
|
|
155
|
+
fileData,
|
|
156
|
+
certificateData,
|
|
157
|
+
securityObjectCertificates,
|
|
158
|
+
file,
|
|
159
|
+
application,
|
|
160
|
+
rfidValue,
|
|
161
|
+
attribute,
|
|
162
|
+
authority,
|
|
163
|
+
cardProperties,
|
|
164
|
+
extension,
|
|
165
|
+
rfidValidity,
|
|
166
|
+
certificateChain,
|
|
167
|
+
dataField,
|
|
168
|
+
signerInfo,
|
|
169
|
+
securityObject,
|
|
180
170
|
rfidSessionData,
|
|
171
|
+
bytesData,
|
|
172
|
+
vdsncData,
|
|
173
|
+
docFeature,
|
|
174
|
+
vdsData,
|
|
175
|
+
opticalStatus,
|
|
181
176
|
ageStatus,
|
|
182
177
|
rfidStatus,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
178
|
+
resultsStatus,
|
|
179
|
+
comparison,
|
|
180
|
+
rect,
|
|
181
|
+
graphicField,
|
|
182
|
+
graphicResult,
|
|
183
|
+
rfidOrigin,
|
|
189
184
|
symbol,
|
|
190
|
-
|
|
191
|
-
|
|
185
|
+
validity,
|
|
186
|
+
value,
|
|
192
187
|
textField,
|
|
193
|
-
textResult,
|
|
194
188
|
textSource,
|
|
189
|
+
textResult,
|
|
190
|
+
documentType,
|
|
191
|
+
coordinate,
|
|
192
|
+
position,
|
|
195
193
|
transactionInfo,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
194
|
+
results,
|
|
195
|
+
rfidNotification,
|
|
196
|
+
paAttribute,
|
|
197
|
+
paResourcesIssuer,
|
|
198
|
+
pkdCertificate,
|
|
199
|
+
taChallenge,
|
|
200
|
+
paceProtocol,
|
|
201
|
+
caProtocol,
|
|
202
|
+
tccParams,
|
|
201
203
|
deviceRetrievalMethod,
|
|
202
|
-
documentRequest18013MDL,
|
|
203
|
-
dataRetrieval,
|
|
204
204
|
deviceEngagement,
|
|
205
205
|
nameSpaceMDL,
|
|
206
206
|
documentRequestMDL,
|
|
207
|
-
|
|
207
|
+
documentRequest18013MDL,
|
|
208
|
+
dataRetrieval,
|
|
208
209
|
} from './json'
|
|
209
210
|
|
|
210
|
-
compare('initConfig', initConfig, InitConfig.fromJson)
|
|
211
|
-
compare('onlineProcessingConfig', onlineProcessingConfig, OnlineProcessingConfig.fromJson)
|
|
212
|
-
compare('imageInputData', imageInputData, ImageInputData.fromJson)
|
|
213
|
-
compare('recognizeConfig', recognizeConfig, RecognizeConfig.fromJson)
|
|
214
|
-
compare('recognizeConfig2', recognizeConfig2, RecognizeConfig.fromJson)
|
|
215
|
-
compare('
|
|
216
|
-
compare('
|
|
217
|
-
|
|
218
|
-
compare('faceApiSearchParams', faceApiSearchParams, FaceApiSearchParams.fromJson)
|
|
219
|
-
compare('faceApiParams', faceApiParams, FaceApiParams.fromJson)
|
|
220
|
-
|
|
221
|
-
compare('livenessParams', livenessParams, LivenessParams.fromJson)
|
|
211
|
+
compare('initConfig', initConfig, InitConfig.fromJson);
|
|
212
|
+
compare('onlineProcessingConfig', onlineProcessingConfig, OnlineProcessingConfig.fromJson);
|
|
213
|
+
compare('imageInputData', imageInputData, ImageInputData.fromJson);
|
|
214
|
+
compare('recognizeConfig', recognizeConfig, RecognizeConfig.fromJson);
|
|
215
|
+
compare('recognizeConfig2', recognizeConfig2, RecognizeConfig.fromJson);
|
|
216
|
+
compare('recognizeConfig3', recognizeConfig3, RecognizeConfig.fromJson);
|
|
217
|
+
compare('scannerConfig', scannerConfig, ScannerConfig.fromJson);
|
|
218
|
+
compare('finalizeConfig', finalizeConfig, FinalizeConfig.fromJson);
|
|
219
|
+
compare('faceApiSearchParams', faceApiSearchParams, FaceApiSearchParams.fromJson);
|
|
220
|
+
compare('faceApiParams', faceApiParams, FaceApiParams.fromJson);
|
|
221
|
+
compare('livenessParams', livenessParams, LivenessParams.fromJson);
|
|
222
222
|
compare('propertiesParams', propertiesParams, AuthenticityPropertiesParams.fromJson);
|
|
223
|
-
compare('authenticityParams', authenticityParams, AuthenticityParams.fromJson)
|
|
224
|
-
compare('glaresCheckParams', glaresCheckParams, GlaresCheckParams.fromJson)
|
|
225
|
-
compare('occlusionCheckParams', occlusionCheckParams, OcclusionCheckParams.fromJson)
|
|
226
|
-
compare('rfidParams', rfidParams, RFIDParams.fromJson)
|
|
227
|
-
compare('imageQA', imageQA, ImageQA.fromJson)
|
|
228
|
-
compare('backendProcessingConfig', backendProcessingConfig, BackendProcessingConfig.fromJson)
|
|
229
|
-
compare('bsi', bsi, Bsi.fromJson)
|
|
230
|
-
compare('processParams', processParams, ProcessParams.fromJson, [
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
compare('
|
|
234
|
-
compare('
|
|
235
|
-
compare('
|
|
236
|
-
compare('
|
|
237
|
-
compare('
|
|
238
|
-
compare('
|
|
239
|
-
compare('
|
|
240
|
-
compare('
|
|
241
|
-
compare('
|
|
242
|
-
compare('
|
|
243
|
-
compare('
|
|
244
|
-
|
|
245
|
-
compare('
|
|
246
|
-
compare('
|
|
247
|
-
compare('
|
|
248
|
-
compare('
|
|
249
|
-
compare('
|
|
250
|
-
compare('
|
|
251
|
-
compare('
|
|
252
|
-
|
|
253
|
-
compare('authenticityElement', authenticityElement, AuthenticityElement.fromJson)
|
|
254
|
-
compare('authenticityCheck', authenticityCheck, AuthenticityCheck.fromJson)
|
|
255
|
-
compare('authenticityResult', authenticityResult, AuthenticityResult.fromJson)
|
|
256
|
-
compare('pdf417Info', pdf417Info, PDF417Info.fromJson)
|
|
257
|
-
compare('barcodeField', barcodeField, BarcodeField.fromJson)
|
|
258
|
-
compare('barcodeResult', barcodeResult, BarcodeResult.fromJson)
|
|
259
|
-
compare('imageQuality', imageQuality, ImageQuality.fromJson)
|
|
260
|
-
compare('imageQualityGroup', imageQualityGroup, ImageQualityGroup.fromJson)
|
|
261
|
-
compare('accessControlProcedureType', accessControlProcedureType, AccessControlProcedureType.fromJson)
|
|
262
|
-
compare('fileData', fileData, FileData.fromJson)
|
|
263
|
-
compare('certificateData', certificateData, CertificateData.fromJson)
|
|
264
|
-
compare('securityObjectCertificates', securityObjectCertificates, SecurityObjectCertificates.fromJson)
|
|
265
|
-
compare('file', file, File.fromJson)
|
|
266
|
-
compare('application', application, Application.fromJson)
|
|
267
|
-
compare('rfidValue', rfidValue, RFIDValue.fromJson)
|
|
268
|
-
compare('attribute', attribute, Attribute.fromJson)
|
|
269
|
-
compare('authority', authority, Authority.fromJson)
|
|
270
|
-
compare('cardProperties', cardProperties, CardProperties.fromJson)
|
|
271
|
-
compare('extension', extension, Extension.fromJson)
|
|
272
|
-
compare('rfidValidity', rfidValidity, RFIDValidity.fromJson)
|
|
273
|
-
compare('certificateChain', certificateChain, CertificateChain.fromJson)
|
|
274
|
-
compare('dataField', dataField, DataField.fromJson)
|
|
275
|
-
compare('signerInfo', signerInfo, SignerInfo.fromJson)
|
|
276
|
-
compare('securityObject', securityObject, SecurityObject.fromJson)
|
|
277
|
-
compare('rfidSessionData', rfidSessionData, RFIDSessionData.fromJson)
|
|
278
|
-
compare('bytesData', bytesData, BytesData.fromJson)
|
|
279
|
-
compare('vdsncData', vdsncData, VDSNCData.fromJson)
|
|
280
|
-
compare('docFeature', docFeature, DocFeature.fromJson)
|
|
281
|
-
compare('vdsData', vdsData, VDSData.fromJson)
|
|
282
|
-
compare('opticalStatus', opticalStatus, OpticalStatus.fromJson)
|
|
283
|
-
compare('ageStatus', ageStatus, AgeStatus.fromJson)
|
|
284
|
-
compare('rfidStatus', rfidStatus, RFIDStatus.fromJson)
|
|
285
|
-
compare('resultsStatus', resultsStatus, ResultsStatus.fromJson)
|
|
286
|
-
compare('comparison', comparison, Comparison.fromJson)
|
|
287
|
-
compare('rect', rect, Rect.fromJson)
|
|
288
|
-
compare('graphicField', graphicField, GraphicField.fromJson)
|
|
289
|
-
compare('graphicResult', graphicResult, GraphicResult.fromJson)
|
|
290
|
-
compare('rfidOrigin', rfidOrigin, RFIDOrigin.fromJson)
|
|
291
|
-
compare('symbol', symbol, Symbol.fromJson)
|
|
292
|
-
compare('validity', validity, Validity.fromJson)
|
|
293
|
-
compare('value', value, Value.fromJson)
|
|
294
|
-
compare('textField', textField, TextField.fromJson)
|
|
295
|
-
compare('textSource', textSource, TextSource.fromJson)
|
|
296
|
-
compare('textResult', textResult, TextResult.fromJson)
|
|
297
|
-
compare('documentType', documentType, DocumentType.fromJson)
|
|
298
|
-
compare('coordinate', coordinate, Coordinate.fromJson)
|
|
299
|
-
compare('position', position, Position.fromJson)
|
|
300
|
-
compare('transactionInfo', transactionInfo, TransactionInfo.fromJson)
|
|
301
|
-
compare('results', results, Results.fromJson)
|
|
302
|
-
|
|
303
|
-
compare('
|
|
304
|
-
compare('
|
|
305
|
-
compare('
|
|
306
|
-
compare('
|
|
307
|
-
compare('taChallenge', taChallenge, TAChallenge.fromJson)
|
|
223
|
+
compare('authenticityParams', authenticityParams, AuthenticityParams.fromJson);
|
|
224
|
+
compare('glaresCheckParams', glaresCheckParams, GlaresCheckParams.fromJson);
|
|
225
|
+
compare('occlusionCheckParams', occlusionCheckParams, OcclusionCheckParams.fromJson);
|
|
226
|
+
compare('rfidParams', rfidParams, RFIDParams.fromJson);
|
|
227
|
+
compare('imageQA', imageQA, ImageQA.fromJson);
|
|
228
|
+
compare('backendProcessingConfig', backendProcessingConfig, BackendProcessingConfig.fromJson);
|
|
229
|
+
compare('bsi', bsi, Bsi.fromJson);
|
|
230
|
+
compare('processParams', processParams, ProcessParams.fromJson, [
|
|
231
|
+
"logs",
|
|
232
|
+
]);
|
|
233
|
+
compare('eDLDataGroups', eDLDataGroups, EDLDataGroups.fromJson);
|
|
234
|
+
compare('ePassportDataGroups', ePassportDataGroups, EPassportDataGroups.fromJson);
|
|
235
|
+
compare('eIDDataGroups', eIDDataGroups, EIDDataGroups.fromJson);
|
|
236
|
+
compare('dtcDataGroup', dtcDataGroup, DTCDataGroup.fromJson);
|
|
237
|
+
compare('rfidScenario', rfidScenario, RFIDScenario.fromJson);
|
|
238
|
+
compare('customizationColors', customizationColors, CustomizationColors.fromJson);
|
|
239
|
+
compare('customizationFonts', customizationFonts, CustomizationFonts.fromJson);
|
|
240
|
+
compare('customizationImages', customizationImages, CustomizationImages.fromJson);
|
|
241
|
+
compare('customizationTimings', customizationTimings, CustomizationTimings.fromJson);
|
|
242
|
+
compare('customizationContentModes', customizationContentModes, CustomizationContentModes.fromJson);
|
|
243
|
+
compare('customizationMatrices', customizationMatrices, CustomizationMatrices.fromJson);
|
|
244
|
+
compare('customization', customization, Customization.fromJson);
|
|
245
|
+
compare('functionality', functionality, Functionality.fromJson);
|
|
246
|
+
compare('documentsDatabase', documentsDatabase, DocumentsDatabase.fromJson);
|
|
247
|
+
compare('docReaderVersion', docReaderVersion, DocReaderVersion.fromJson);
|
|
248
|
+
compare('docReaderScenario', docReaderScenario, DocReaderScenario.fromJson);
|
|
249
|
+
compare('license', license, License.fromJson);
|
|
250
|
+
compare('docReaderException', docReaderException, DocReaderException.fromJson);
|
|
251
|
+
compare('rfidException', rfidException, RFIDException.fromJson);
|
|
252
|
+
compare('prepareProgress', prepareProgress, PrepareProgress.fromJson);
|
|
253
|
+
compare('authenticityElement', authenticityElement, AuthenticityElement.fromJson);
|
|
254
|
+
compare('authenticityCheck', authenticityCheck, AuthenticityCheck.fromJson);
|
|
255
|
+
compare('authenticityResult', authenticityResult, AuthenticityResult.fromJson);
|
|
256
|
+
compare('pdf417Info', pdf417Info, PDF417Info.fromJson);
|
|
257
|
+
compare('barcodeField', barcodeField, BarcodeField.fromJson);
|
|
258
|
+
compare('barcodeResult', barcodeResult, BarcodeResult.fromJson);
|
|
259
|
+
compare('imageQuality', imageQuality, ImageQuality.fromJson);
|
|
260
|
+
compare('imageQualityGroup', imageQualityGroup, ImageQualityGroup.fromJson);
|
|
261
|
+
compare('accessControlProcedureType', accessControlProcedureType, AccessControlProcedureType.fromJson);
|
|
262
|
+
compare('fileData', fileData, FileData.fromJson);
|
|
263
|
+
compare('certificateData', certificateData, CertificateData.fromJson);
|
|
264
|
+
compare('securityObjectCertificates', securityObjectCertificates, SecurityObjectCertificates.fromJson);
|
|
265
|
+
compare('file', file, File.fromJson);
|
|
266
|
+
compare('application', application, Application.fromJson);
|
|
267
|
+
compare('rfidValue', rfidValue, RFIDValue.fromJson);
|
|
268
|
+
compare('attribute', attribute, Attribute.fromJson);
|
|
269
|
+
compare('authority', authority, Authority.fromJson);
|
|
270
|
+
compare('cardProperties', cardProperties, CardProperties.fromJson);
|
|
271
|
+
compare('extension', extension, Extension.fromJson);
|
|
272
|
+
compare('rfidValidity', rfidValidity, RFIDValidity.fromJson);
|
|
273
|
+
compare('certificateChain', certificateChain, CertificateChain.fromJson);
|
|
274
|
+
compare('dataField', dataField, DataField.fromJson);
|
|
275
|
+
compare('signerInfo', signerInfo, SignerInfo.fromJson);
|
|
276
|
+
compare('securityObject', securityObject, SecurityObject.fromJson);
|
|
277
|
+
compare('rfidSessionData', rfidSessionData, RFIDSessionData.fromJson);
|
|
278
|
+
compare('bytesData', bytesData, BytesData.fromJson);
|
|
279
|
+
compare('vdsncData', vdsncData, VDSNCData.fromJson);
|
|
280
|
+
compare('docFeature', docFeature, DocFeature.fromJson);
|
|
281
|
+
compare('vdsData', vdsData, VDSData.fromJson);
|
|
282
|
+
compare('opticalStatus', opticalStatus, OpticalStatus.fromJson);
|
|
283
|
+
compare('ageStatus', ageStatus, AgeStatus.fromJson);
|
|
284
|
+
compare('rfidStatus', rfidStatus, RFIDStatus.fromJson);
|
|
285
|
+
compare('resultsStatus', resultsStatus, ResultsStatus.fromJson);
|
|
286
|
+
compare('comparison', comparison, Comparison.fromJson);
|
|
287
|
+
compare('rect', rect, Rect.fromJson);
|
|
288
|
+
compare('graphicField', graphicField, GraphicField.fromJson);
|
|
289
|
+
compare('graphicResult', graphicResult, GraphicResult.fromJson);
|
|
290
|
+
compare('rfidOrigin', rfidOrigin, RFIDOrigin.fromJson);
|
|
291
|
+
compare('symbol', symbol, Symbol.fromJson);
|
|
292
|
+
compare('validity', validity, Validity.fromJson);
|
|
293
|
+
compare('value', value, Value.fromJson);
|
|
294
|
+
compare('textField', textField, TextField.fromJson);
|
|
295
|
+
compare('textSource', textSource, TextSource.fromJson);
|
|
296
|
+
compare('textResult', textResult, TextResult.fromJson);
|
|
297
|
+
compare('documentType', documentType, DocumentType.fromJson);
|
|
298
|
+
compare('coordinate', coordinate, Coordinate.fromJson);
|
|
299
|
+
compare('position', position, Position.fromJson);
|
|
300
|
+
compare('transactionInfo', transactionInfo, TransactionInfo.fromJson);
|
|
301
|
+
compare('results', results, Results.fromJson);
|
|
302
|
+
compare('rfidNotification', rfidNotification, RFIDNotification.fromJson);
|
|
303
|
+
compare('paAttribute', paAttribute, PAAttribute.fromJson);
|
|
304
|
+
compare('paResourcesIssuer', paResourcesIssuer, PAResourcesIssuer.fromJson);
|
|
305
|
+
compare('pkdCertificate', pkdCertificate, PKDCertificate.fromJson);
|
|
306
|
+
compare('taChallenge', taChallenge, TAChallenge.fromJson);
|
|
308
307
|
compare('paceProtocol', paceProtocol, PACEProtocol.fromJson);
|
|
309
308
|
compare('caProtocol', caProtocol, CAProtocol.fromJson);
|
|
310
|
-
compare('tccParams', tccParams, TccParams.fromJson)
|
|
311
|
-
|
|
312
|
-
compare('deviceRetrievalMethod', deviceRetrievalMethod, DeviceRetrievalMethod.fromJson)
|
|
309
|
+
compare('tccParams', tccParams, TccParams.fromJson);
|
|
310
|
+
compare('deviceRetrievalMethod', deviceRetrievalMethod, DeviceRetrievalMethod.fromJson);
|
|
313
311
|
compare('deviceEngagement', deviceEngagement, DeviceEngagement.fromJson);
|
|
314
312
|
compare('nameSpaceMDL', nameSpaceMDL, NameSpaceMDL.fromJson);
|
|
315
313
|
compare('documentRequestMDL', documentRequestMDL, DocumentRequestMDL.fromJson);
|
|
316
|
-
compare('documentRequest18013MDL', documentRequest18013MDL, DocumentRequest18013MDL.fromJson)
|
|
317
|
-
compare('dataRetrieval', dataRetrieval, DataRetrieval.fromJson)
|
|
314
|
+
compare('documentRequest18013MDL', documentRequest18013MDL, DocumentRequest18013MDL.fromJson);
|
|
315
|
+
compare('dataRetrieval', dataRetrieval, DataRetrieval.fromJson);
|
|
@@ -18,6 +18,7 @@ export class RFIDConfig {
|
|
|
18
18
|
onRequestPACertificates
|
|
19
19
|
onRequestTACertificates
|
|
20
20
|
onRequestTASignature
|
|
21
|
+
onRequestAAChallenge
|
|
21
22
|
onRequestPACEProtocol
|
|
22
23
|
onRequestCAProtocol
|
|
23
24
|
|
|
@@ -38,6 +39,7 @@ export class RFIDConfig {
|
|
|
38
39
|
"paCertificates": this.onRequestPACertificates != null,
|
|
39
40
|
"taCertificates": this.onRequestTACertificates != null,
|
|
40
41
|
"taSignature": this.onRequestTASignature != null,
|
|
42
|
+
"aaChallenge": this.onRequestAAChallenge != null,
|
|
41
43
|
"paceProtocol": this.onRequestPACEProtocol != null,
|
|
42
44
|
"caProtocol": this.onRequestCAProtocol != null,
|
|
43
45
|
}
|
package/www/capacitor/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
_setPaCertificateCompletion,
|
|
13
13
|
_setTaCertificateCompletion,
|
|
14
14
|
_setTaSignatureCompletion,
|
|
15
|
+
_setAAChallengeCompletion,
|
|
15
16
|
_setPACEProtocolCompletion,
|
|
16
17
|
_setCAProtocolCompletion,
|
|
17
18
|
} from './internal/bridge'
|
|
@@ -538,6 +539,7 @@ export class DocumentReader {
|
|
|
538
539
|
_setPaCertificateCompletion(config.onRequestPACertificates);
|
|
539
540
|
_setTaCertificateCompletion(config.onRequestTACertificates);
|
|
540
541
|
_setTaSignatureCompletion(config.onRequestTASignature);
|
|
542
|
+
_setAAChallengeCompletion(config.onRequestAAChallenge);
|
|
541
543
|
|
|
542
544
|
_setPACEProtocolCompletion(config.onRequestPACEProtocol);
|
|
543
545
|
_setCAProtocolCompletion(config.onRequestCAProtocol);
|
|
@@ -106,6 +106,14 @@ export function _setTaSignatureCompletion(completion) {
|
|
|
106
106
|
})
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
+
export function _setAAChallengeCompletion(completion) {
|
|
110
|
+
_setEvent("aaChallengeCompletionEvent", completion, json => {
|
|
111
|
+
return [json, async challenge => {
|
|
112
|
+
await exec("provideAAChallenge", [challenge])
|
|
113
|
+
}]
|
|
114
|
+
})
|
|
115
|
+
}
|
|
116
|
+
|
|
109
117
|
export function _setPACEProtocolCompletion(completion) {
|
|
110
118
|
_setEvent("paceProtocolCompletionEvent", completion, json => {
|
|
111
119
|
return [JSON.parse(json).map(item => PACEProtocol.fromJson(item)), async protocol => {
|
|
@@ -7,11 +7,18 @@ export class AuthenticityPropertiesParams {
|
|
|
7
7
|
this._set({ "checkHoldersSignature": val });
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
get checkDocumentDamage() { return this._checkDocumentDamage; }
|
|
11
|
+
set checkDocumentDamage(val) {
|
|
12
|
+
this._checkDocumentDamage = val;
|
|
13
|
+
this._set({ "checkDocumentDamage": val });
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
static fromJson(jsonObject) {
|
|
11
17
|
if (jsonObject == null) return new AuthenticityPropertiesParams();
|
|
12
18
|
|
|
13
19
|
const result = new AuthenticityPropertiesParams();
|
|
14
20
|
result._checkHoldersSignature = jsonObject["checkHoldersSignature"];
|
|
21
|
+
result._checkDocumentDamage = jsonObject["checkDocumentDamage"];
|
|
15
22
|
|
|
16
23
|
return result;
|
|
17
24
|
}
|
|
@@ -26,6 +33,7 @@ export class AuthenticityPropertiesParams {
|
|
|
26
33
|
toJson() {
|
|
27
34
|
return {
|
|
28
35
|
"checkHoldersSignature": this.checkHoldersSignature,
|
|
36
|
+
"checkDocumentDamage": this.checkDocumentDamage,
|
|
29
37
|
}
|
|
30
38
|
}
|
|
31
39
|
}
|