@regulaforensics/document-reader 9.1.484-rc → 9.1.493-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.
Files changed (77) hide show
  1. package/RNDocumentReader.podspec +2 -2
  2. package/android/build.gradle +2 -2
  3. package/android/cordova.gradle +2 -2
  4. package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +8 -0
  5. package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +346 -40
  6. package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +65 -11
  7. package/android/src/main/java/com/regula/plugin/documentreader/Utils.kt +62 -0
  8. package/examples/capacitor/ios/App/App/Info.plist +2 -0
  9. package/examples/capacitor/package.json +1 -1
  10. package/examples/ionic/config.xml +2 -0
  11. package/examples/ionic/package-lock.json +5257 -2650
  12. package/examples/ionic/package.json +10 -10
  13. package/examples/react_native/app.config.ts +3 -1
  14. package/examples/react_native/package-lock.json +3 -3
  15. package/examples/react_native/package.json +1 -1
  16. package/ios/RGLWConfig.m +9 -2
  17. package/ios/RGLWJSONConstructor.h +19 -0
  18. package/ios/RGLWJSONConstructor.m +349 -0
  19. package/ios/RGLWMain.m +49 -0
  20. package/package.json +1 -1
  21. package/plugin.xml +2 -2
  22. package/test/json.tsx +200 -95
  23. package/test/package-lock.json +1 -1
  24. package/test/test.tsx +12 -2
  25. package/www/capacitor/engagement/DataRetrieval.js +55 -0
  26. package/www/capacitor/engagement/DeviceEngagement.js +30 -0
  27. package/www/capacitor/engagement/DeviceRetrievalMethod.js +41 -0
  28. package/www/capacitor/engagement/DocumentRequestMDL.js +212 -0
  29. package/www/capacitor/engagement/NameSpaceMDL.js +33 -0
  30. package/www/capacitor/index.js +54 -2
  31. package/www/capacitor/info/DocReaderException.js +2 -0
  32. package/www/capacitor/params/Functionality.js +16 -0
  33. package/www/capacitor/params/customization/Customization.js +8 -0
  34. package/www/capacitor/params/process_params/ProcessParams.js +16 -0
  35. package/www/capacitor/results/Results.js +8 -1
  36. package/www/capacitor/results/status/AgeStatus.js +35 -0
  37. package/www/capacitor/results/status/ResultsStatus.js +13 -0
  38. package/www/capacitor/results/visible_digital_seals/DocFeature.js +23 -0
  39. package/www/capacitor/results/visible_digital_seals/VDSData.js +75 -0
  40. package/www/capacitor/results/visual_results/FieldType.js +3 -0
  41. package/www/capacitor/rfid/PKDCertificate.js +3 -0
  42. package/www/cordova.js +951 -177
  43. package/www/react-native/engagement/DataRetrieval.js +55 -0
  44. package/www/react-native/engagement/DeviceEngagement.js +30 -0
  45. package/www/react-native/engagement/DeviceRetrievalMethod.js +41 -0
  46. package/www/react-native/engagement/DocumentRequestMDL.js +212 -0
  47. package/www/react-native/engagement/NameSpaceMDL.js +33 -0
  48. package/www/react-native/index.js +54 -2
  49. package/www/react-native/info/DocReaderException.js +2 -0
  50. package/www/react-native/params/Functionality.js +16 -0
  51. package/www/react-native/params/customization/Customization.js +8 -0
  52. package/www/react-native/params/process_params/ProcessParams.js +16 -0
  53. package/www/react-native/results/Results.js +8 -1
  54. package/www/react-native/results/status/AgeStatus.js +35 -0
  55. package/www/react-native/results/status/ResultsStatus.js +13 -0
  56. package/www/react-native/results/visible_digital_seals/DocFeature.js +23 -0
  57. package/www/react-native/results/visible_digital_seals/VDSData.js +75 -0
  58. package/www/react-native/results/visual_results/FieldType.js +3 -0
  59. package/www/react-native/rfid/PKDCertificate.js +3 -0
  60. package/www/types/engagement/DataRetrieval.d.ts +28 -0
  61. package/www/types/engagement/DeviceEngagement.d.ts +16 -0
  62. package/www/types/engagement/DeviceRetrievalMethod.d.ts +18 -0
  63. package/www/types/engagement/DocumentRequestMDL.d.ts +61 -0
  64. package/www/types/engagement/NameSpaceMDL.d.ts +16 -0
  65. package/www/types/index.d.ts +35 -2
  66. package/www/types/info/DocReaderException.d.ts +2 -0
  67. package/www/types/params/Functionality.d.ts +7 -0
  68. package/www/types/params/customization/Customization.d.ts +5 -0
  69. package/www/types/params/process_params/ProcessParams.d.ts +13 -0
  70. package/www/types/results/Results.d.ts +9 -1
  71. package/www/types/results/status/AgeStatus.d.ts +14 -0
  72. package/www/types/results/status/ResultsStatus.d.ts +9 -0
  73. package/www/types/results/visible_digital_seals/DocFeature.d.ts +9 -0
  74. package/www/types/results/visible_digital_seals/VDSData.d.ts +32 -0
  75. package/www/types/results/visible_digital_seals/VDSNCData.d.ts +1 -1
  76. package/www/types/results/visual_results/FieldType.d.ts +6 -0
  77. package/www/types/rfid/PKDCertificate.d.ts +7 -1
package/test/json.tsx CHANGED
@@ -6,7 +6,7 @@ export var faceApiSearchParams = {
6
6
  "limit": 1,
7
7
  "threshold": 2,
8
8
  "groupIds": ["test1", "test2", "test3"],
9
- }
9
+ };
10
10
  export var faceApiParams = {
11
11
  "url": "test1",
12
12
  "mode": "test2",
@@ -16,7 +16,7 @@ export var faceApiParams = {
16
16
  "proxyPassword": "test4",
17
17
  "proxyType": 3,
18
18
  "searchParams": faceApiSearchParams,
19
- }
19
+ };
20
20
  export var livenessParams = {
21
21
  "checkOVI": true,
22
22
  "checkMLI": false,
@@ -25,7 +25,7 @@ export var livenessParams = {
25
25
  "checkBlackAndWhiteCopy": true,
26
26
  "checkDynaprint": false,
27
27
  "checkGeometry": true,
28
- }
28
+ };
29
29
  export var authenticityParams = {
30
30
  "useLivenessCheck": true,
31
31
  "checkUVLuminiscence": false,
@@ -43,8 +43,8 @@ export var authenticityParams = {
43
43
  "checkLetterScreen": false,
44
44
  "checkSecurityText": true,
45
45
  "livenessParams": livenessParams,
46
- }
47
- export var glaresCheckParams = { "imgMarginPart": 0.5, "maxGlaringPart": 1.5 }
46
+ };
47
+ export var glaresCheckParams = {"imgMarginPart": 0.5, "maxGlaringPart": 1.5};
48
48
  export var imageQA = {
49
49
  "dpiThreshold": 1,
50
50
  "angleThreshold": 2,
@@ -57,16 +57,16 @@ export var imageQA = {
57
57
  "glaresCheckParams": glaresCheckParams,
58
58
  "brightnessThreshold": 0.5,
59
59
  "occlusionCheck": true,
60
- }
60
+ };
61
61
  export var rfidParams = {
62
62
  "paIgnoreNotificationCodes": [1, 2, 3],
63
- }
63
+ };
64
64
  export var backendProcessingConfig = {
65
65
  "url": "test",
66
66
  "rfidServerSideChipVerification": true,
67
- "httpHeaders": { "key1": "val1", "key2": "val2", "key3": "val3" },
67
+ "httpHeaders": {"key1": "val1", "key2": "val2", "key3": "val3"},
68
68
  "timeoutConnection": 0.5,
69
- }
69
+ };
70
70
  export var processParams = {
71
71
  "multipageProcessing": true,
72
72
  "debugSaveImages": false,
@@ -107,6 +107,7 @@ export var processParams = {
107
107
  "disableAuthResolutionFilter": true,
108
108
  "strictSecurityChecks": false,
109
109
  "returnTransliteratedFields": true,
110
+ "checkCaptureProcessIntegrity": false,
110
111
  "measureSystem": 1,
111
112
  "barcodeParserType": 3,
112
113
  "perspectiveAngle": 4,
@@ -139,15 +140,16 @@ export var processParams = {
139
140
  "documentGroupFilter": [135, 136, 137],
140
141
  "lcidIgnoreFilter": [10011, 1078, 1052],
141
142
  "lcidFilter": [1118, 5121, 15361],
143
+ "fieldTypesIgnoreFilter": [22, 23, 24],
142
144
  "imageQA": imageQA,
143
145
  "rfidParams": rfidParams,
144
146
  "faceApiParams": faceApiParams,
145
147
  "backendProcessingConfig": backendProcessingConfig,
146
148
  "authenticityParams": authenticityParams,
147
- "customParams": { "test1": true, "test2": 1, "test3": "test" },
148
- }
149
- export var font1 = { "name": "AppleSDGothicNeo-Thin", "size": 10, "style": 2 }
150
- export var font2 = { "name": "Copperplate-Light", "size": 20, "style": 1 }
149
+ "customParams": {"test1": true, "test2": 1, "test3": "test"},
150
+ };
151
+ export var font1 = {"name": "AppleSDGothicNeo-Thin", "size": 10, "style": 2};
152
+ export var font2 = {"name": "Copperplate-Light", "size": 20, "style": 1};
151
153
  export var customizationColors = {
152
154
  "rfidProcessingScreenBackground": 0xff000000,
153
155
  "rfidProcessingScreenHintLabelText": 0xff000001,
@@ -161,7 +163,7 @@ export var customizationColors = {
161
163
  "rfidEnableNfcDescriptionText": 0xff000009,
162
164
  "rfidEnableNfcButtonText": 0xff000010,
163
165
  "rfidEnableNfcButtonBackground": 0xff000011,
164
- }
166
+ };
165
167
  export var customizationFonts = {
166
168
  "rfidProcessingScreenHintLabel": font1,
167
169
  "rfidProcessingScreenProgressLabel": font2,
@@ -169,11 +171,11 @@ export var customizationFonts = {
169
171
  "rfidEnableNfcTitleText": font2,
170
172
  "rfidEnableNfcDescriptionText": font1,
171
173
  "rfidEnableNfcButtonText": font2,
172
- }
174
+ };
173
175
  export var customizationImages = {
174
176
  "rfidProcessingScreenFailureImage": img1,
175
177
  "rfidEnableNfcImage": img2,
176
- }
178
+ };
177
179
  export var customization = {
178
180
  "showStatusMessages": true,
179
181
  "showResultStatusMessages": false,
@@ -214,6 +216,7 @@ export var customization = {
214
216
  "activityIndicatorPortraitPositionMultiplier": 12.5,
215
217
  "activityIndicatorLandscapePositionMultiplier": 13.5,
216
218
  "cameraPreviewVerticalPositionMultiplier": 14.5,
219
+ "multipageButtonPositionMultiplier": 15.5,
217
220
  "multipageAnimationFrontImage": img1,
218
221
  "multipageAnimationBackImage": img2,
219
222
  "borderBackgroundImage": img3,
@@ -229,7 +232,7 @@ export var customization = {
229
232
  "multipageButtonImage": img1,
230
233
  "customLabelStatus": "test3",
231
234
  "cameraFrameLineCap": 2,
232
- "uiCustomizationLayer": { "test": "test" },
235
+ "uiCustomizationLayer": {"test": "test"},
233
236
  "statusTextFont": font1,
234
237
  "resultStatusTextFont": font2,
235
238
  "multipageButtonTextFont": font1,
@@ -266,8 +269,8 @@ export var customization = {
266
269
  "colors": customizationColors,
267
270
  "fonts": customizationFonts,
268
271
  "images": customizationImages,
269
- }
270
- export var cameraSize = { "width": 0, "height": 1 }
272
+ };
273
+ export var cameraSize = {"width": 0, "height": 1};
271
274
  export var functionality = {
272
275
  "pictureOnBoundsReady": true,
273
276
  "showTorchButton": false,
@@ -287,6 +290,7 @@ export var functionality = {
287
290
  "singleResult": false,
288
291
  "torchTurnedOn": false,
289
292
  "preventScreenRecording": true,
293
+ "homeIndicatorAutoHide": false,
290
294
  "showCaptureButtonDelayFromDetect": 0,
291
295
  "showCaptureButtonDelayFromStart": 1,
292
296
  "rfidTimeout": 2,
@@ -300,10 +304,11 @@ export var functionality = {
300
304
  "zoomFactor": 0.5,
301
305
  "exposure": 1.5,
302
306
  "videoRecordingSizeDownscaleFactor": 2.5,
307
+ "mdlTimeout": 3.5,
303
308
  "excludedCamera2Models": ["test1", "test2", "test3"],
304
309
  "cameraSize": cameraSize,
305
310
  "videoSessionPreset": 6,
306
- }
311
+ };
307
312
  export var eDLDataGroups = {
308
313
  "DG1": true,
309
314
  "DG2": false,
@@ -319,7 +324,7 @@ export var eDLDataGroups = {
319
324
  "DG12": false,
320
325
  "DG13": true,
321
326
  "DG14": false,
322
- }
327
+ };
323
328
  export var ePassportDataGroups = {
324
329
  "DG1": true,
325
330
  "DG2": false,
@@ -337,7 +342,7 @@ export var ePassportDataGroups = {
337
342
  "DG14": false,
338
343
  "DG15": true,
339
344
  "DG16": false,
340
- }
345
+ };
341
346
  export var eIDDataGroups = {
342
347
  "DG1": true,
343
348
  "DG2": false,
@@ -360,14 +365,14 @@ export var eIDDataGroups = {
360
365
  "DG19": true,
361
366
  "DG20": false,
362
367
  "DG21": true,
363
- }
368
+ };
364
369
  export var dtcDataGroup = {
365
370
  "DG17": true,
366
371
  "DG18": false,
367
372
  "DG22": false,
368
373
  "DG23": true,
369
374
  "DG24": false,
370
- }
375
+ };
371
376
  export var rfidScenario = {
372
377
  "paceStaticBinding": true,
373
378
  "onlineTA": false,
@@ -431,27 +436,27 @@ export var rfidScenario = {
431
436
  "ePassportDataGroups": ePassportDataGroups,
432
437
  "eIDDataGroups": eIDDataGroups,
433
438
  "dtcDataGroups": dtcDataGroup,
434
- }
439
+ };
435
440
 
436
441
  export var initConfig = {
437
442
  "delayedNNLoad": false,
438
443
  "licenseUpdate": true,
439
444
  "licenseUpdateTimeout": 1.5,
440
445
  "customDb": img1,
441
- "blackList": { "key1": "val1", "key2": "val2", "key3": "val3" },
446
+ "blackList": {"key1": "val1", "key2": "val2", "key3": "val3"},
442
447
  "databasePath": "test",
443
448
  "license": img2,
444
449
  "useBleDevice": true,
445
- }
450
+ };
446
451
  export var onlineProcessingConfig = {
447
452
  "mode": 1,
448
453
  "url": "test",
449
454
  "imageFormat": 1,
450
455
  "imageCompressionQuality": 1.5,
451
456
  "processParams": processParams,
452
- "requestHeaders": { "key1": "val1", "key2": "val2", "key3": "val3" },
453
- }
454
- export var imageInputData = { "image": img1, "light": 128, "pageIndex": 2 }
457
+ "requestHeaders": {"key1": "val1", "key2": "val2", "key3": "val3"},
458
+ };
459
+ export var imageInputData = {"image": img1, "light": 128, "pageIndex": 2};
455
460
  export var recognizeConfig = {
456
461
  "scenario": "Mrz",
457
462
  "livePortrait": img1,
@@ -462,7 +467,7 @@ export var recognizeConfig = {
462
467
  "data": img1,
463
468
  "images": [img1, img2, img3],
464
469
  "imageInputData": [imageInputData, imageInputData, imageInputData],
465
- }
470
+ };
466
471
  export var recognizeConfig2 = {
467
472
  "onlineProcessingConfig": onlineProcessingConfig,
468
473
  "livePortrait": img1,
@@ -472,14 +477,14 @@ export var recognizeConfig2 = {
472
477
  "data": img1,
473
478
  "images": [img1, img2, img3],
474
479
  "imageInputData": [imageInputData, imageInputData, imageInputData],
475
- }
480
+ };
476
481
  export var scannerConfig = {
477
482
  "scenario": "Mrz",
478
483
  "onlineProcessingConfig": onlineProcessingConfig,
479
484
  "livePortrait": img1,
480
485
  "extPortrait": img2,
481
486
  "cameraId": 1,
482
- }
487
+ };
483
488
 
484
489
  export var documentsDatabase = {
485
490
  "databaseID": "test1",
@@ -489,13 +494,13 @@ export var documentsDatabase = {
489
494
  "countriesNumber": 1,
490
495
  "documentsNumber": 2,
491
496
  "size": 3,
492
- }
497
+ };
493
498
  export var docReaderVersion = {
494
499
  "api": "test1",
495
500
  "core": "test2",
496
501
  "coreMode": "test3",
497
502
  "database": documentsDatabase,
498
- }
503
+ };
499
504
  export var docReaderScenario = {
500
505
  "uvTorch": true,
501
506
  "frameOrientation": 2,
@@ -510,15 +515,15 @@ export var docReaderScenario = {
510
515
  "caption": "test2",
511
516
  "description": "test3",
512
517
  "manualCrop": false,
513
- }
518
+ };
514
519
  export var license = {
515
520
  "expiryDate": "test1",
516
521
  "countryFilter": ["test2", "test3", "test4"],
517
522
  "isRfidAvailable": true,
518
- }
519
- export var docReaderException = { "code": 1, "message": "test1" }
520
- export var rfidException = { "code": 2, "message": "test2" }
521
- export var prepareProgress = { "downloadedBytes": 1, "totalBytes": 2, "progress": 50 }
523
+ };
524
+ export var docReaderException = {"code": 1, "message": "test1"};
525
+ export var rfidException = {"code": 2, "message": "test2"};
526
+ export var prepareProgress = {"downloadedBytes": 1, "totalBytes": 2, "progress": 50};
522
527
 
523
528
  export var authenticityElement = {
524
529
  "status": 1,
@@ -526,51 +531,51 @@ export var authenticityElement = {
526
531
  "elementDiagnose": 3,
527
532
  "elementTypeName": "Photo element",
528
533
  "elementDiagnoseName": "Error of internal data processing",
529
- }
534
+ };
530
535
  export var authenticityCheck = {
531
536
  "type": 1,
532
537
  "status": 2,
533
538
  "typeName": "UV dull paper check",
534
539
  "pageIndex": 3,
535
540
  "elements": [authenticityElement, authenticityElement, authenticityElement],
536
- }
541
+ };
537
542
  export var authenticityResult = {
538
543
  "status": 2,
539
544
  "checks": [authenticityCheck, authenticityCheck, authenticityCheck],
540
- }
541
- export var pdf417Info = { "errorLevel": 2, "columns": 3, "rows": 4 }
545
+ };
546
+ export var pdf417Info = {"errorLevel": 2, "columns": 3, "rows": 4};
542
547
  export var barcodeField = {
543
548
  "barcodeType": 5,
544
549
  "status": -6001,
545
550
  "pageIndex": 2,
546
551
  "pdf417Info": pdf417Info,
547
552
  "data": img1,
548
- }
553
+ };
549
554
  export var barcodeResult = {
550
555
  "fields": [barcodeField, barcodeField, barcodeField],
551
- }
552
- export var rect = { "bottom": 0, "top": 1, "left": 2, "right": 3 }
556
+ };
557
+ export var rect = {"bottom": 0, "top": 1, "left": 2, "right": 3};
553
558
  export var imageQuality = {
554
559
  "featureType": 1,
555
560
  "result": 2,
556
561
  "type": 3,
557
562
  "boundRects": [rect, rect, rect],
558
- }
563
+ };
559
564
  export var imageQualityGroup = {
560
565
  "count": 1,
561
566
  "result": 2,
562
567
  "pageIndex": 3,
563
568
  "imageQualityList": [imageQuality, imageQuality, imageQuality],
564
- }
569
+ };
565
570
  export var accessControlProcedureType = {
566
571
  "activeOptionIdx": 1,
567
572
  "type": 2,
568
573
  "status": 1,
569
574
  "notifications": [1, 2, 3],
570
- }
571
- export var fileData = { "data": "test", "length": 2, "type": 3, "status": 4 }
572
- export var certificateData = { "data": "test", "length": 1 }
573
- export var securityObjectCertificates = { "securityObject": certificateData }
575
+ };
576
+ export var fileData = {"data": "test", "length": 2, "type": 3, "status": 4};
577
+ export var certificateData = {"data": "test", "length": 1};
578
+ export var securityObjectCertificates = {"securityObject": certificateData};
574
579
  export var file = {
575
580
  "fileData": fileData,
576
581
  "fileID": "test1",
@@ -584,7 +589,7 @@ export var file = {
584
589
  "docFieldsGraphics": [7, 8, 9],
585
590
  "docFieldsOriginals": [10, 11, 12],
586
591
  "certificates": securityObjectCertificates,
587
- }
592
+ };
588
593
  export var application = {
589
594
  "applicationID": "test1",
590
595
  "dataHashAlgorithm": "test2",
@@ -593,20 +598,20 @@ export var application = {
593
598
  "type": 2,
594
599
  "unicodeVersion": "test3",
595
600
  "version": "test4",
596
- }
601
+ };
597
602
  export var rfidValue = {
598
603
  "data": "test1",
599
604
  "length": 1,
600
605
  "status": 2,
601
606
  "type": 3,
602
607
  "format": "test2",
603
- }
604
- export var attribute = { "type": "test", "value": rfidValue }
608
+ };
609
+ export var attribute = {"type": "test", "value": rfidValue};
605
610
  export var authority = {
606
611
  "attributes": [attribute, attribute, attribute],
607
612
  "data": "test",
608
613
  "friendlyName": rfidValue,
609
- }
614
+ };
610
615
  export var cardProperties = {
611
616
  "aTQA": 1,
612
617
  "bitRateR": 2,
@@ -622,9 +627,9 @@ export var cardProperties = {
622
627
  "baudrate1": "test3",
623
628
  "baudrate2": "test4",
624
629
  "uID": "test5",
625
- }
626
- export var extension = { "data": "test1", "type": "test2" }
627
- export var rfidValidity = { "notAfter": rfidValue, "notBefore": rfidValue }
630
+ };
631
+ export var extension = {"data": "test1", "type": "test2"};
632
+ export var rfidValidity = {"notAfter": rfidValue, "notBefore": rfidValue};
628
633
  export var certificateChain = {
629
634
  "type": 1,
630
635
  "extensions": [extension, extension, extension],
@@ -639,8 +644,8 @@ export var certificateChain = {
639
644
  "subjectPKAlgorithm": "test3",
640
645
  "validity": rfidValidity,
641
646
  "version": 4,
642
- }
643
- export var dataField = { "data": "test", "fieldType": 1 }
647
+ };
648
+ export var dataField = {"data": "test", "fieldType": 1};
644
649
  export var signerInfo = {
645
650
  "dataToHash": "test1",
646
651
  "digestAlgorithm": "test2",
@@ -654,14 +659,14 @@ export var signerInfo = {
654
659
  "signedAttributes": [extension, extension, extension],
655
660
  "certificateChain": [certificateChain, certificateChain, certificateChain],
656
661
  "notifications": [1, 2, 3],
657
- }
662
+ };
658
663
  export var securityObject = {
659
664
  "fileReference": 1,
660
665
  "objectType": "test",
661
666
  "version": 2,
662
667
  "signerInfos": [signerInfo, signerInfo, signerInfo],
663
668
  "notifications": [1, 2, 3],
664
- }
669
+ };
665
670
  export var rfidSessionData = {
666
671
  "accessControls": [
667
672
  accessControlProcedureType,
@@ -678,19 +683,35 @@ export var rfidSessionData = {
678
683
  "status": 1,
679
684
  "extLeSupport": 1,
680
685
  "processTime": 4,
681
- }
682
- export var bytesData = { "data": "test", "length": 1, "status": 2, "type": 3 }
686
+ };
687
+ export var bytesData = {"data": "test", "length": 1, "status": 2, "type": 3};
683
688
  export var vdsncData = {
684
689
  "type": "test1",
685
690
  "version": 1,
686
691
  "issuingCountry": "test2",
687
- "message": { "key1": "val1", "key2": "val2", "key3": "val3" },
692
+ "message": {"key1": "val1", "key2": "val2", "key3": "val3"},
688
693
  "signatureAlgorithm": "test3",
689
694
  "signature": bytesData,
690
695
  "certificate": bytesData,
691
696
  "certificateChain": [certificateChain, certificateChain, certificateChain],
692
697
  "notifications": [3000000001, 3000000002, 3000000003],
693
- }
698
+ };
699
+ export var docFeature = {"type": 0, "data": bytesData};
700
+ export var vdsData = {
701
+ "type": 1,
702
+ "docType": 2,
703
+ "featureRef": 3,
704
+ "version": 4,
705
+ "issuingCountry": "test1",
706
+ "docIssueDate": "test2",
707
+ "signature": bytesData,
708
+ "signatureDate": "test3",
709
+ "signer": "test4",
710
+ "certificate": "test5",
711
+ "certificateChain": [certificateChain, certificateChain, certificateChain],
712
+ "docFeatures": [docFeature, docFeature, docFeature],
713
+ "notifications": [3000000001, 3000000002, 3000000003],
714
+ };
694
715
  export var opticalStatus = {
695
716
  "overallStatus": 0,
696
717
  "mrz": 1,
@@ -701,7 +722,15 @@ export var opticalStatus = {
701
722
  "expiry": 0,
702
723
  "vds": 1,
703
724
  "pagesCount": 3,
704
- }
725
+ };
726
+ export var ageStatus = {
727
+ "threshold": 0,
728
+ "overThreshold": 1,
729
+ "over18": 2,
730
+ "over21": 0,
731
+ "over25": 1,
732
+ "over65": 2,
733
+ };
705
734
  export var rfidStatus = {
706
735
  "overallStatus": 0,
707
736
  "pa": 1,
@@ -710,17 +739,21 @@ export var rfidStatus = {
710
739
  "ta": 1,
711
740
  "bac": 2,
712
741
  "pace": 0,
713
- }
742
+ };
714
743
  export var resultsStatus = {
715
744
  "overallStatus": 0,
716
745
  "optical": 1,
717
746
  "rfid": 2,
718
747
  "portrait": 0,
719
748
  "stopList": 1,
749
+ "mDL": 2,
750
+ "age": 0,
751
+ "captureProcessIntegrity": 1,
720
752
  "detailsOptical": opticalStatus,
753
+ "detailsAge": ageStatus,
721
754
  "detailsRFID": rfidStatus,
722
- }
723
- export var comparison = { "sourceTypeLeft": 0, "sourceTypeRight": 1, "status": 2 }
755
+ };
756
+ export var comparison = {"sourceTypeLeft": 0, "sourceTypeRight": 1, "status": 2};
724
757
  export var graphicField = {
725
758
  "sourceType": 0,
726
759
  "fieldType": 201,
@@ -731,13 +764,13 @@ export var graphicField = {
731
764
  "originalPageIndex": 4,
732
765
  "value": img1,
733
766
  "fieldRect": rect,
734
- }
767
+ };
735
768
  export var graphicResult = {
736
769
  "fields": [graphicField, graphicField, graphicField],
737
- }
738
- export var rfidOrigin = { "dg": 1, "dgTag": 2, "entryView": 3, "tagEntry": 4 }
739
- export var symbol = { "rect": rect, "code": 1, "probability": 2 }
740
- export var validity = { "sourceType": 1, "status": 2 }
770
+ };
771
+ export var rfidOrigin = {"dg": 1, "dgTag": 2, "entryView": 3, "tagEntry": 4};
772
+ export var symbol = {"rect": rect, "code": 1, "probability": 2};
773
+ export var validity = {"sourceType": 1, "status": 2};
741
774
  export var value = {
742
775
  "sourceType": 3,
743
776
  "value": "test1",
@@ -747,7 +780,7 @@ export var value = {
747
780
  "rfidOrigin": rfidOrigin,
748
781
  "originalSymbols": [symbol, symbol, symbol],
749
782
  "probability": 1,
750
- }
783
+ };
751
784
  export var textField = {
752
785
  "fieldType": 1,
753
786
  "fieldName": "Issuing state code",
@@ -761,22 +794,22 @@ export var textField = {
761
794
  "validityList": [validity, validity, validity],
762
795
  "comparisonStatus": 0,
763
796
  "validityStatus": 1,
764
- }
797
+ };
765
798
  export var textSource = {
766
799
  "sourceType": validity["sourceType"],
767
800
  "source": "sourceType",
768
801
  "validityStatus": 1,
769
- }
802
+ };
770
803
  export var documentReaderTextSource2 = {
771
804
  "sourceType": comparison["sourceTypeLeft"],
772
805
  "source": "sourceTypeLeft",
773
806
  "validityStatus": 1,
774
- }
807
+ };
775
808
  export var documentReaderTextSource3 = {
776
809
  "sourceType": comparison["sourceTypeRight"],
777
810
  "source": "sourceTypeRight",
778
811
  "validityStatus": 1,
779
- }
812
+ };
780
813
  export var textResult = {
781
814
  "status": 0,
782
815
  "comparisonStatus": 1,
@@ -787,7 +820,7 @@ export var textResult = {
787
820
  documentReaderTextSource3,
788
821
  ],
789
822
  "fields": [textField, textField, textField],
790
- }
823
+ };
791
824
  export var documentType = {
792
825
  "name": "test1",
793
826
  "documentID": 1,
@@ -801,8 +834,8 @@ export var documentType = {
801
834
  "dYear": "test4",
802
835
  "dCountryName": "test5",
803
836
  "pageIndex": 3,
804
- }
805
- export var coordinate = { "x": 1, "y": 2 }
837
+ };
838
+ export var coordinate = {"x": 1, "y": 2};
806
839
  export var position = {
807
840
  "docFormat": 0,
808
841
  "resultStatus": 1,
@@ -820,12 +853,12 @@ export var position = {
820
853
  "leftBottom": coordinate,
821
854
  "rightTop": coordinate,
822
855
  "rightBottom": coordinate,
823
- }
856
+ };
824
857
  export var transactionInfo = {
825
858
  "transactionId": "test1",
826
859
  "tag": "test2",
827
860
  "sessionLogFolder": "test3",
828
- }
861
+ };
829
862
  export var results = {
830
863
  "chipPage": 0,
831
864
  "processingFinishedStatus": 2,
@@ -845,37 +878,109 @@ export var results = {
845
878
  "barcodeResult": barcodeResult,
846
879
  "status": resultsStatus,
847
880
  "vdsncData": vdsncData,
881
+ "vdsData": vdsData,
848
882
  "dtcData": img1,
849
883
  "transactionInfo": transactionInfo,
850
- }
884
+ };
851
885
 
852
886
  export var rfidNotification = {
853
887
  "notificationCode": 65536,
854
888
  "dataFileType": 1,
855
889
  "progress": 2,
856
- }
857
- export var paAttribute = { "type": "test1", "value": "test2" }
890
+ };
891
+ export var paAttribute = {"type": "test1", "value": "test2"};
858
892
  export var paResourcesIssuer = {
859
893
  "data": img1,
860
894
  "friendlyName": "test",
861
895
  "attributes": [paAttribute, paAttribute, paAttribute],
862
- }
896
+ };
863
897
  export var pkdCertificate = {
864
898
  "binaryData": img1,
865
899
  "resourceType": 0,
866
900
  "privateKey": img2,
867
- }
901
+ };
868
902
  export var taChallenge = {
869
903
  "data": img1,
870
904
  "auxPCD": "test1",
871
905
  "challengePICC": "test2",
872
906
  "hashPK": "test3",
873
907
  "idPICC": "test4",
874
- }
908
+ };
875
909
  export var tccParams = {
876
910
  "serviceUrlTA": "test1",
877
911
  "serviceUrlPA": "test2",
878
912
  "pfxCertUrl": "test3",
879
913
  "pfxPassPhrase": "test4",
880
914
  "pfxCert": img1,
881
- }
915
+ };
916
+ export var deviceRetrievalMethod = {
917
+ "type": 1,
918
+ "version": 2,
919
+ "cmdMaxLength": 3,
920
+ "respMaxLength": 4,
921
+ "clientModeSupport": true,
922
+ "clientModeUUID": "test1",
923
+ "serverModeSupport": true,
924
+ "serverModeUUID": "test2",
925
+ };
926
+ export var deviceEngagement = {
927
+ "deviceRetrievalMethods": [
928
+ deviceRetrievalMethod,
929
+ deviceRetrievalMethod,
930
+ deviceRetrievalMethod,
931
+ ],
932
+ };
933
+ export var nameSpaceMDL = {
934
+ "name": "test1",
935
+ "map": {"test2": 0, "test3": 1, "test4": 0},
936
+ };
937
+ export var documentRequestMDL = {
938
+ "docType": "test1",
939
+ "namespaces": [nameSpaceMDL, nameSpaceMDL, nameSpaceMDL],
940
+ };
941
+ export var documentRequest18013MDL = {
942
+ "docType": "org.iso.18013.5.1.mDL",
943
+ "namespaces": [nameSpaceMDL, nameSpaceMDL, nameSpaceMDL],
944
+ "familyName": 0,
945
+ "givenName": 1,
946
+ "birthDate": 1,
947
+ "issueDate": 0,
948
+ "expiryDate": 1,
949
+ "issuingCountry": 0,
950
+ "issuingAuthority": 0,
951
+ "documentNumber": 0,
952
+ "portrait": 1,
953
+ "drivingPrivileges": 0,
954
+ "unDistinguishingSign": 0,
955
+ "administrativeNumber": 1,
956
+ "sex": 0,
957
+ "height": 0,
958
+ "weight": 0,
959
+ "eyeColour": 1,
960
+ "hairColour": 0,
961
+ "birthPlace": 1,
962
+ "residentAddress": 0,
963
+ "portraitCaptureDate": 0,
964
+ "ageInYears": 1,
965
+ "ageBirthYear": 1,
966
+ "ageOver18": 1,
967
+ "issuingJurisdiction": 0,
968
+ "nationality": 0,
969
+ "residentCity": 1,
970
+ "residentState": 0,
971
+ "residentPostalCode": 0,
972
+ "residentCountry": 1,
973
+ "biometricTemplateFace": 0,
974
+ "biometricTemplateIris": 0,
975
+ "biometricTemplateFinger": 1,
976
+ "biometricTemplateSignatureSign": 1,
977
+ "familyNameNationalCharacter": 0,
978
+ "givenNameNationalCharacter": 1,
979
+ "signatureUsualMark": 0,
980
+ };
981
+ export var dataRetrieval = {
982
+ "deviceRetrieval": 2,
983
+ "docRequestPreset": 1,
984
+ "intentToRetain": 0,
985
+ "requests": [documentRequestMDL, documentRequest18013MDL],
986
+ };