@regulaforensics/document-reader 8.2.186-beta → 8.3.242-beta
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/build.gradle +1 -1
- package/android/cordova.gradle +1 -1
- package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +4 -0
- package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +6 -0
- package/examples/capacitor/README.md +10 -0
- package/examples/capacitor/index.html +2 -7
- package/examples/capacitor/index.tsx +39 -0
- package/examples/capacitor/package.json +3 -3
- package/examples/capacitor/scripts/setup.sh +4 -0
- package/examples/capacitor/src/extra/bt_device.tsx +7 -6
- package/examples/capacitor/src/extra/custom_rfid.tsx +29 -42
- package/examples/capacitor/src/main.css +4 -1
- package/examples/capacitor/src/main.html +1 -4
- package/examples/capacitor/src/main.tsx +85 -86
- package/examples/cordova/README.md +10 -0
- package/examples/cordova/config.xml +6 -2
- package/examples/cordova/package-lock.json +459 -1
- package/examples/cordova/package.json +5 -4
- package/examples/cordova/scripts/bundle.sh +4 -0
- package/examples/cordova/www/bootstrap.js +30 -0
- package/examples/cordova/www/images/portrait.png +0 -0
- package/examples/cordova/www/index.html +2 -17
- package/examples/cordova/www/index.js +30 -0
- package/examples/cordova/www/src/extra/bt_device.js +32 -0
- package/examples/cordova/www/src/extra/custom_rfid.js +60 -0
- package/examples/cordova/www/src/main.css +11 -7
- package/examples/cordova/www/src/main.html +7 -32
- package/examples/cordova/www/src/main.js +154 -31
- package/examples/ionic/README.md +10 -0
- package/examples/ionic/config.xml +11 -4
- package/examples/ionic/index.ts +41 -4
- package/examples/ionic/package-lock.json +1862 -1638
- package/examples/ionic/package.json +3 -6
- package/examples/ionic/src/extra/bt_device.ts +33 -0
- package/examples/ionic/src/extra/custom_rfid.ts +61 -0
- package/examples/ionic/src/images/portrait.png +0 -0
- package/examples/ionic/src/main.css +11 -7
- package/examples/ionic/src/main.html +36 -61
- package/examples/ionic/src/main.ts +158 -50
- package/examples/react_native/README.md +10 -0
- package/examples/react_native/app.config.ts +3 -1
- package/examples/react_native/images/portrait.png +0 -0
- package/examples/react_native/index.tsx +34 -6
- package/examples/react_native/package-lock.json +476 -421
- package/examples/react_native/package.json +10 -10
- package/examples/react_native/src/extra/bt_device.tsx +34 -0
- package/examples/react_native/src/extra/custom_rfid.tsx +62 -0
- package/examples/react_native/src/main.css +11 -7
- package/examples/react_native/src/main.html +7 -32
- package/examples/react_native/src/main.tsx +152 -27
- package/ios/RGLWConfig.m +4 -0
- package/ios/RGLWMain.m +10 -0
- package/package.json +1 -1
- package/plugin.xml +2 -2
- package/www/capacitor/index.js +32 -16
- package/www/capacitor/params/customization/Customization.js +7 -0
- package/www/capacitor/params/process_params/ProcessParams.js +7 -0
- package/www/capacitor/results/visual_results/FieldType.js +3 -1
- package/www/cordova.js +49 -17
- package/www/react-native/index.js +32 -16
- package/www/react-native/internal/bridge.js +1 -1
- package/www/react-native/params/customization/Customization.js +7 -0
- package/www/react-native/params/process_params/ProcessParams.js +7 -0
- package/www/react-native/results/visual_results/FieldType.js +3 -1
- package/www/types/index.d.ts +14 -8
- package/www/types/params/customization/Customization.d.ts +5 -0
- package/www/types/params/process_params/ProcessParams.d.ts +4 -0
- package/www/types/results/visual_results/FieldType.d.ts +5 -1
|
@@ -650,7 +650,9 @@ export const FieldType = {
|
|
|
650
650
|
AIRLINE_CODE: 694,
|
|
651
651
|
MVC_AGENCY: 695,
|
|
652
652
|
ISSUING_STATE_CODE_ALPHA_2: 696,
|
|
653
|
-
NATIONALITY_CODE_ALPHA_2: 697
|
|
653
|
+
NATIONALITY_CODE_ALPHA_2: 697,
|
|
654
|
+
FIRST_ISSUE_DATE_CHECKDIGIT: 698,
|
|
655
|
+
FIRST_ISSUE_DATE_CHECKSUM: 699,
|
|
654
656
|
}
|
|
655
657
|
|
|
656
658
|
FieldType.getTranslation = async function (value) {
|
package/www/cordova.js
CHANGED
|
@@ -759,6 +759,13 @@ class DocumentReader {
|
|
|
759
759
|
this._setEnv(val);
|
|
760
760
|
}
|
|
761
761
|
|
|
762
|
+
get locale() { return this._locale }
|
|
763
|
+
_locale = null
|
|
764
|
+
set locale(val) {
|
|
765
|
+
this._locale = val;
|
|
766
|
+
this._setLocale(val);
|
|
767
|
+
}
|
|
768
|
+
|
|
762
769
|
get localizationDictionary() { return this._localizationDictionary }
|
|
763
770
|
_localizationDictionary = null
|
|
764
771
|
set localizationDictionary(val) {
|
|
@@ -832,8 +839,8 @@ class DocumentReader {
|
|
|
832
839
|
return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("connectBluetoothDevice", [deviceName]);
|
|
833
840
|
}
|
|
834
841
|
|
|
835
|
-
|
|
836
|
-
|
|
842
|
+
deinitializeReader() {
|
|
843
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("deinitializeReader", []);
|
|
837
844
|
}
|
|
838
845
|
|
|
839
846
|
async prepareDatabase(databaseID, prepareCompletion) {
|
|
@@ -861,12 +868,12 @@ class DocumentReader {
|
|
|
861
868
|
return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("removeDatabase", []);
|
|
862
869
|
}
|
|
863
870
|
|
|
864
|
-
|
|
865
|
-
|
|
871
|
+
startNewPage() {
|
|
872
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startNewPage", []);
|
|
866
873
|
}
|
|
867
874
|
|
|
868
|
-
|
|
869
|
-
|
|
875
|
+
startNewSession() {
|
|
876
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("startNewSession", []);
|
|
870
877
|
}
|
|
871
878
|
|
|
872
879
|
scan(config, completion) {
|
|
@@ -905,20 +912,20 @@ class DocumentReader {
|
|
|
905
912
|
]);
|
|
906
913
|
}
|
|
907
914
|
|
|
908
|
-
|
|
909
|
-
|
|
915
|
+
stopScanner() {
|
|
916
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("stopScanner", []);
|
|
910
917
|
}
|
|
911
918
|
|
|
912
|
-
|
|
913
|
-
|
|
919
|
+
stopRFIDReader() {
|
|
920
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("stopRFIDReader", []);
|
|
914
921
|
}
|
|
915
922
|
|
|
916
|
-
|
|
917
|
-
|
|
923
|
+
addPKDCertificates(certificates) {
|
|
924
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("addPKDCertificates", [certificates]);
|
|
918
925
|
}
|
|
919
926
|
|
|
920
|
-
|
|
921
|
-
|
|
927
|
+
clearPKDCertificates() {
|
|
928
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("clearPKDCertificates", []);
|
|
922
929
|
}
|
|
923
930
|
|
|
924
931
|
async setTCCParams(params) {
|
|
@@ -936,8 +943,8 @@ class DocumentReader {
|
|
|
936
943
|
return [action, info, error];
|
|
937
944
|
}
|
|
938
945
|
|
|
939
|
-
|
|
940
|
-
|
|
946
|
+
endBackendTransaction() {
|
|
947
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("endBackendTransaction", []);
|
|
941
948
|
}
|
|
942
949
|
|
|
943
950
|
_successOrErrorFromJson(jsonString) {
|
|
@@ -954,6 +961,7 @@ class DocumentReader {
|
|
|
954
961
|
this._tag = await this._getTag();
|
|
955
962
|
this._tenant = await this._getTenant();
|
|
956
963
|
this._env = await this._getEnv();
|
|
964
|
+
this._locale = await this._getLocale();
|
|
957
965
|
this._rfidSessionStatus = await this._getRfidSessionStatus();
|
|
958
966
|
this._functionality = await this._getFunctionality();
|
|
959
967
|
this._processParams = await this._getProcessParams();
|
|
@@ -1032,6 +1040,14 @@ class DocumentReader {
|
|
|
1032
1040
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setEnv", [env]);
|
|
1033
1041
|
}
|
|
1034
1042
|
|
|
1043
|
+
async _getLocale() {
|
|
1044
|
+
return await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("getLocale", []);
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
_setLocale(locale) {
|
|
1048
|
+
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setLocale", [locale]);
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1035
1051
|
_setLocalizationDictionary(dictionary) {
|
|
1036
1052
|
(0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("setLocalizationDictionary", [dictionary]);
|
|
1037
1053
|
}
|
|
@@ -2230,6 +2246,12 @@ class Customization {
|
|
|
2230
2246
|
this._set({ "livenessAnimationImage": val });
|
|
2231
2247
|
}
|
|
2232
2248
|
|
|
2249
|
+
get multipageButtonImage() { return this._multipageButtonImage; }
|
|
2250
|
+
set multipageButtonImage(val) {
|
|
2251
|
+
this._multipageButtonImage = val;
|
|
2252
|
+
this._set({ "multipageButtonImage": val });
|
|
2253
|
+
}
|
|
2254
|
+
|
|
2233
2255
|
get statusTextFont() { return this._statusTextFont; }
|
|
2234
2256
|
set statusTextFont(val) {
|
|
2235
2257
|
this._statusTextFont = val;
|
|
@@ -2400,6 +2422,7 @@ class Customization {
|
|
|
2400
2422
|
result._changeFrameButtonExpandImage = jsonObject["changeFrameButtonExpandImage"];
|
|
2401
2423
|
result._changeFrameButtonCollapseImage = jsonObject["changeFrameButtonCollapseImage"];
|
|
2402
2424
|
result._livenessAnimationImage = jsonObject["livenessAnimationImage"];
|
|
2425
|
+
result._multipageButtonImage = jsonObject["multipageButtonImage"];
|
|
2403
2426
|
result._customLabelStatus = jsonObject["customLabelStatus"];
|
|
2404
2427
|
result._cameraFrameLineCap = jsonObject["cameraFrameLineCap"];
|
|
2405
2428
|
result._uiCustomizationLayer = jsonObject["uiCustomizationLayer"];
|
|
@@ -3450,6 +3473,12 @@ class ProcessParams {
|
|
|
3450
3473
|
this._set({ "generateAlpha2Codes": val });
|
|
3451
3474
|
}
|
|
3452
3475
|
|
|
3476
|
+
get disableAuthResolutionFilter() { return this._disableAuthResolutionFilter; }
|
|
3477
|
+
set disableAuthResolutionFilter(val) {
|
|
3478
|
+
this._disableAuthResolutionFilter = val;
|
|
3479
|
+
this._set({ "disableAuthResolutionFilter": val });
|
|
3480
|
+
}
|
|
3481
|
+
|
|
3453
3482
|
get barcodeParserType() { return this._barcodeParserType; }
|
|
3454
3483
|
set barcodeParserType(val) {
|
|
3455
3484
|
this._barcodeParserType = val;
|
|
@@ -3713,6 +3742,7 @@ class ProcessParams {
|
|
|
3713
3742
|
result._generateDTCVC = jsonObject["generateDTCVC"];
|
|
3714
3743
|
result._strictDLCategoryExpiry = jsonObject["strictDLCategoryExpiry"];
|
|
3715
3744
|
result._generateAlpha2Codes = jsonObject["generateAlpha2Codes"];
|
|
3745
|
+
result._disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"];
|
|
3716
3746
|
result._barcodeParserType = jsonObject["barcodeParserType"];
|
|
3717
3747
|
result._perspectiveAngle = jsonObject["perspectiveAngle"];
|
|
3718
3748
|
result._minDPI = jsonObject["minDPI"];
|
|
@@ -8608,7 +8638,9 @@ const FieldType = {
|
|
|
8608
8638
|
AIRLINE_CODE: 694,
|
|
8609
8639
|
MVC_AGENCY: 695,
|
|
8610
8640
|
ISSUING_STATE_CODE_ALPHA_2: 696,
|
|
8611
|
-
NATIONALITY_CODE_ALPHA_2: 697
|
|
8641
|
+
NATIONALITY_CODE_ALPHA_2: 697,
|
|
8642
|
+
FIRST_ISSUE_DATE_CHECKDIGIT: 698,
|
|
8643
|
+
FIRST_ISSUE_DATE_CHECKSUM: 699,
|
|
8612
8644
|
}
|
|
8613
8645
|
|
|
8614
8646
|
FieldType.getTranslation = async function (value) {
|
|
@@ -184,6 +184,13 @@ export class DocumentReader {
|
|
|
184
184
|
this._setEnv(val);
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
+
get locale() { return this._locale }
|
|
188
|
+
_locale = null
|
|
189
|
+
set locale(val) {
|
|
190
|
+
this._locale = val;
|
|
191
|
+
this._setLocale(val);
|
|
192
|
+
}
|
|
193
|
+
|
|
187
194
|
get localizationDictionary() { return this._localizationDictionary }
|
|
188
195
|
_localizationDictionary = null
|
|
189
196
|
set localizationDictionary(val) {
|
|
@@ -257,8 +264,8 @@ export class DocumentReader {
|
|
|
257
264
|
return await exec("connectBluetoothDevice", [deviceName]);
|
|
258
265
|
}
|
|
259
266
|
|
|
260
|
-
|
|
261
|
-
|
|
267
|
+
deinitializeReader() {
|
|
268
|
+
exec("deinitializeReader", []);
|
|
262
269
|
}
|
|
263
270
|
|
|
264
271
|
async prepareDatabase(databaseID, prepareCompletion) {
|
|
@@ -286,12 +293,12 @@ export class DocumentReader {
|
|
|
286
293
|
return await exec("removeDatabase", []);
|
|
287
294
|
}
|
|
288
295
|
|
|
289
|
-
|
|
290
|
-
|
|
296
|
+
startNewPage() {
|
|
297
|
+
exec("startNewPage", []);
|
|
291
298
|
}
|
|
292
299
|
|
|
293
|
-
|
|
294
|
-
|
|
300
|
+
startNewSession() {
|
|
301
|
+
exec("startNewSession", []);
|
|
295
302
|
}
|
|
296
303
|
|
|
297
304
|
scan(config, completion) {
|
|
@@ -330,20 +337,20 @@ export class DocumentReader {
|
|
|
330
337
|
]);
|
|
331
338
|
}
|
|
332
339
|
|
|
333
|
-
|
|
334
|
-
|
|
340
|
+
stopScanner() {
|
|
341
|
+
exec("stopScanner", []);
|
|
335
342
|
}
|
|
336
343
|
|
|
337
|
-
|
|
338
|
-
|
|
344
|
+
stopRFIDReader() {
|
|
345
|
+
exec("stopRFIDReader", []);
|
|
339
346
|
}
|
|
340
347
|
|
|
341
|
-
|
|
342
|
-
|
|
348
|
+
addPKDCertificates(certificates) {
|
|
349
|
+
exec("addPKDCertificates", [certificates]);
|
|
343
350
|
}
|
|
344
351
|
|
|
345
|
-
|
|
346
|
-
|
|
352
|
+
clearPKDCertificates() {
|
|
353
|
+
exec("clearPKDCertificates", []);
|
|
347
354
|
}
|
|
348
355
|
|
|
349
356
|
async setTCCParams(params) {
|
|
@@ -361,8 +368,8 @@ export class DocumentReader {
|
|
|
361
368
|
return [action, info, error];
|
|
362
369
|
}
|
|
363
370
|
|
|
364
|
-
|
|
365
|
-
|
|
371
|
+
endBackendTransaction() {
|
|
372
|
+
exec("endBackendTransaction", []);
|
|
366
373
|
}
|
|
367
374
|
|
|
368
375
|
_successOrErrorFromJson(jsonString) {
|
|
@@ -379,6 +386,7 @@ export class DocumentReader {
|
|
|
379
386
|
this._tag = await this._getTag();
|
|
380
387
|
this._tenant = await this._getTenant();
|
|
381
388
|
this._env = await this._getEnv();
|
|
389
|
+
this._locale = await this._getLocale();
|
|
382
390
|
this._rfidSessionStatus = await this._getRfidSessionStatus();
|
|
383
391
|
this._functionality = await this._getFunctionality();
|
|
384
392
|
this._processParams = await this._getProcessParams();
|
|
@@ -457,6 +465,14 @@ export class DocumentReader {
|
|
|
457
465
|
exec("setEnv", [env]);
|
|
458
466
|
}
|
|
459
467
|
|
|
468
|
+
async _getLocale() {
|
|
469
|
+
return await exec("getLocale", []);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
_setLocale(locale) {
|
|
473
|
+
exec("setLocale", [locale]);
|
|
474
|
+
}
|
|
475
|
+
|
|
460
476
|
_setLocalizationDictionary(dictionary) {
|
|
461
477
|
exec("setLocalizationDictionary", [dictionary]);
|
|
462
478
|
}
|
|
@@ -312,6 +312,12 @@ export class Customization {
|
|
|
312
312
|
this._set({ "livenessAnimationImage": val });
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
+
get multipageButtonImage() { return this._multipageButtonImage; }
|
|
316
|
+
set multipageButtonImage(val) {
|
|
317
|
+
this._multipageButtonImage = val;
|
|
318
|
+
this._set({ "multipageButtonImage": val });
|
|
319
|
+
}
|
|
320
|
+
|
|
315
321
|
get statusTextFont() { return this._statusTextFont; }
|
|
316
322
|
set statusTextFont(val) {
|
|
317
323
|
this._statusTextFont = val;
|
|
@@ -482,6 +488,7 @@ export class Customization {
|
|
|
482
488
|
result._changeFrameButtonExpandImage = jsonObject["changeFrameButtonExpandImage"];
|
|
483
489
|
result._changeFrameButtonCollapseImage = jsonObject["changeFrameButtonCollapseImage"];
|
|
484
490
|
result._livenessAnimationImage = jsonObject["livenessAnimationImage"];
|
|
491
|
+
result._multipageButtonImage = jsonObject["multipageButtonImage"];
|
|
485
492
|
result._customLabelStatus = jsonObject["customLabelStatus"];
|
|
486
493
|
result._cameraFrameLineCap = jsonObject["cameraFrameLineCap"];
|
|
487
494
|
result._uiCustomizationLayer = jsonObject["uiCustomizationLayer"];
|
|
@@ -229,6 +229,12 @@ export class ProcessParams {
|
|
|
229
229
|
this._set({ "generateAlpha2Codes": val });
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
+
get disableAuthResolutionFilter() { return this._disableAuthResolutionFilter; }
|
|
233
|
+
set disableAuthResolutionFilter(val) {
|
|
234
|
+
this._disableAuthResolutionFilter = val;
|
|
235
|
+
this._set({ "disableAuthResolutionFilter": val });
|
|
236
|
+
}
|
|
237
|
+
|
|
232
238
|
get barcodeParserType() { return this._barcodeParserType; }
|
|
233
239
|
set barcodeParserType(val) {
|
|
234
240
|
this._barcodeParserType = val;
|
|
@@ -492,6 +498,7 @@ export class ProcessParams {
|
|
|
492
498
|
result._generateDTCVC = jsonObject["generateDTCVC"];
|
|
493
499
|
result._strictDLCategoryExpiry = jsonObject["strictDLCategoryExpiry"];
|
|
494
500
|
result._generateAlpha2Codes = jsonObject["generateAlpha2Codes"];
|
|
501
|
+
result._disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"];
|
|
495
502
|
result._barcodeParserType = jsonObject["barcodeParserType"];
|
|
496
503
|
result._perspectiveAngle = jsonObject["perspectiveAngle"];
|
|
497
504
|
result._minDPI = jsonObject["minDPI"];
|
|
@@ -650,7 +650,9 @@ export const FieldType = {
|
|
|
650
650
|
AIRLINE_CODE: 694,
|
|
651
651
|
MVC_AGENCY: 695,
|
|
652
652
|
ISSUING_STATE_CODE_ALPHA_2: 696,
|
|
653
|
-
NATIONALITY_CODE_ALPHA_2: 697
|
|
653
|
+
NATIONALITY_CODE_ALPHA_2: 697,
|
|
654
|
+
FIRST_ISSUE_DATE_CHECKDIGIT: 698,
|
|
655
|
+
FIRST_ISSUE_DATE_CHECKSUM: 699,
|
|
654
656
|
}
|
|
655
657
|
|
|
656
658
|
FieldType.getTranslation = async function (value) {
|
package/www/types/index.d.ts
CHANGED
|
@@ -187,6 +187,12 @@ export class DocumentReader {
|
|
|
187
187
|
/** Environment type. */
|
|
188
188
|
env: string | null;
|
|
189
189
|
|
|
190
|
+
/**
|
|
191
|
+
* Custom language locale code of DocumentReaderSDK.
|
|
192
|
+
* If empty or doesn't exist - app language is used. Format "en-US" or "en".
|
|
193
|
+
*/
|
|
194
|
+
locale: string | null;
|
|
195
|
+
|
|
190
196
|
/**
|
|
191
197
|
* A localization dictionary to override default localization logic.
|
|
192
198
|
* Allows to replace any string of DocumentReader SDK with an arbitrary string.
|
|
@@ -245,7 +251,7 @@ export class DocumentReader {
|
|
|
245
251
|
connectBluetoothDevice(deviceName: string): Promise<boolean>;
|
|
246
252
|
|
|
247
253
|
/** Used to deinitialize Document Reader and free up RAM as a consequence of this. */
|
|
248
|
-
deinitializeReader():
|
|
254
|
+
deinitializeReader(): void;
|
|
249
255
|
|
|
250
256
|
/**
|
|
251
257
|
* Allows you to download a database from the Regula server.
|
|
@@ -290,10 +296,10 @@ export class DocumentReader {
|
|
|
290
296
|
removeDatabase(): Promise<void>;
|
|
291
297
|
|
|
292
298
|
/** Used to start the processing of the next page of the document once the current one is processed. */
|
|
293
|
-
startNewPage():
|
|
299
|
+
startNewPage(): void;
|
|
294
300
|
|
|
295
301
|
/** Used to start a scanning process. */
|
|
296
|
-
startNewSession():
|
|
302
|
+
startNewSession(): void;
|
|
297
303
|
|
|
298
304
|
/**
|
|
299
305
|
* Used for multiple frames processing which are captured from the camera(old UI).
|
|
@@ -329,22 +335,22 @@ export class DocumentReader {
|
|
|
329
335
|
rfid(config: RFIDConfig): void;
|
|
330
336
|
|
|
331
337
|
/** Stops the document scanner if it's active. */
|
|
332
|
-
stopScanner():
|
|
338
|
+
stopScanner(): void;
|
|
333
339
|
|
|
334
340
|
/** Stops the RFID reader if it's active. */
|
|
335
|
-
stopRFIDReader():
|
|
341
|
+
stopRFIDReader(): void;
|
|
336
342
|
|
|
337
343
|
/** Used to pass certificates to Document Reader that will be used during the
|
|
338
344
|
* RFID chip processing.
|
|
339
345
|
*
|
|
340
346
|
* @param certificates - PKD certificates.
|
|
341
347
|
*/
|
|
342
|
-
addPKDCertificates(certificates: [PKDCertificate]):
|
|
348
|
+
addPKDCertificates(certificates: [PKDCertificate]): void;
|
|
343
349
|
|
|
344
350
|
/** It's used to remove certificates from your app that are used during the
|
|
345
351
|
* RFID chip processing.
|
|
346
352
|
*/
|
|
347
|
-
clearPKDCertificates():
|
|
353
|
+
clearPKDCertificates(): void;
|
|
348
354
|
|
|
349
355
|
/** Sets the given `TCCParams` to the RFID session.
|
|
350
356
|
* The parameters are required to be set before starting RFID session.
|
|
@@ -362,7 +368,7 @@ export class DocumentReader {
|
|
|
362
368
|
finalizePackage(): Promise<[action: DocReaderAction, info: TransactionInfo | null, error: DocReaderException | null]>;
|
|
363
369
|
|
|
364
370
|
/** It's used to end transaction during backend processing. */
|
|
365
|
-
endBackendTransaction():
|
|
371
|
+
endBackendTransaction(): void;
|
|
366
372
|
}
|
|
367
373
|
|
|
368
374
|
/**
|
|
@@ -342,6 +342,11 @@ export declare class Customization {
|
|
|
342
342
|
*/
|
|
343
343
|
livenessAnimationImage?: string;
|
|
344
344
|
|
|
345
|
+
/**
|
|
346
|
+
* Allows you to set any UIImage for the "Skip next page" button.
|
|
347
|
+
*/
|
|
348
|
+
multipageButtonImage?: string;
|
|
349
|
+
|
|
345
350
|
/**
|
|
346
351
|
* Allows you to set a font for the status messages.
|
|
347
352
|
*/
|
|
@@ -193,6 +193,10 @@ export declare class ProcessParams {
|
|
|
193
193
|
*/
|
|
194
194
|
strictDLCategoryExpiry?: boolean;
|
|
195
195
|
generateAlpha2Codes?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* This parameter if enabled will ignore the minimum barcode resolution needed to start processing.
|
|
198
|
+
*/
|
|
199
|
+
disableAuthResolutionFilter?: boolean;
|
|
196
200
|
/**
|
|
197
201
|
* There are documents that contain barcodes which data can be parsed only
|
|
198
202
|
* if document type verification is performed. The following property allows
|
|
@@ -1302,7 +1302,11 @@ export declare enum FieldType {
|
|
|
1302
1302
|
/** Issuing state code alpha 2. */
|
|
1303
1303
|
ISSUING_STATE_CODE_ALPHA_2 = 696,
|
|
1304
1304
|
/** Nationality code alpha 2. */
|
|
1305
|
-
NATIONALITY_CODE_ALPHA_2 = 697
|
|
1305
|
+
NATIONALITY_CODE_ALPHA_2 = 697,
|
|
1306
|
+
/** First issue date check digit. */
|
|
1307
|
+
FIRST_ISSUE_DATE_CHECKDIGIT = 698,
|
|
1308
|
+
/** First issue date checksum. */
|
|
1309
|
+
FIRST_ISSUE_DATE_CHECKSUM = 699,
|
|
1306
1310
|
}
|
|
1307
1311
|
|
|
1308
1312
|
export declare namespace FieldType {
|