@regulaforensics/document-reader 8.4.401-beta → 8.4.507-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.
Files changed (88) hide show
  1. package/README.md +1 -1
  2. package/RNDocumentReader.podspec +2 -2
  3. package/android/build.gradle +2 -2
  4. package/android/cordova.gradle +2 -2
  5. package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +11 -31
  6. package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +338 -59
  7. package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +69 -35
  8. package/android/src/main/java/com/regula/plugin/documentreader/Utils.kt +62 -0
  9. package/examples/capacitor/ios/App/App/Info.plist +2 -0
  10. package/examples/capacitor/package-lock.json +9 -9
  11. package/examples/capacitor/package.json +3 -3
  12. package/examples/ionic/config.xml +2 -0
  13. package/examples/ionic/package-lock.json +5262 -2655
  14. package/examples/ionic/package.json +12 -12
  15. package/examples/react_native/app.config.ts +3 -1
  16. package/examples/react_native/package-lock.json +37 -37
  17. package/examples/react_native/package.json +3 -3
  18. package/ios/RGLWConfig.m +11 -32
  19. package/ios/RGLWJSONConstructor.h +19 -1
  20. package/ios/RGLWJSONConstructor.m +349 -18
  21. package/ios/RGLWMain.m +49 -46
  22. package/package.json +1 -1
  23. package/plugin.xml +2 -2
  24. package/test/json.tsx +201 -124
  25. package/test/package-lock.json +1 -1
  26. package/test/test.tsx +12 -3
  27. package/www/capacitor/engagement/DataRetrieval.js +55 -0
  28. package/www/capacitor/engagement/DeviceEngagement.js +30 -0
  29. package/www/capacitor/engagement/DeviceRetrievalMethod.js +41 -0
  30. package/www/capacitor/engagement/DocumentRequestMDL.js +212 -0
  31. package/www/capacitor/engagement/NameSpaceMDL.js +33 -0
  32. package/www/capacitor/index.js +58 -7
  33. package/www/capacitor/info/DocReaderException.js +2 -0
  34. package/www/capacitor/params/Functionality.js +16 -0
  35. package/www/capacitor/params/customization/Customization.js +8 -0
  36. package/www/capacitor/params/process_params/AuthenticityParams.js +1 -44
  37. package/www/capacitor/params/process_params/LivenessParams.js +0 -36
  38. package/www/capacitor/params/process_params/ProcessParams.js +26 -30
  39. package/www/capacitor/results/Results.js +8 -1
  40. package/www/capacitor/results/status/AgeStatus.js +35 -0
  41. package/www/capacitor/results/status/ResultsStatus.js +13 -0
  42. package/www/capacitor/results/visible_digital_seals/DocFeature.js +23 -0
  43. package/www/capacitor/results/visible_digital_seals/VDSData.js +75 -0
  44. package/www/capacitor/results/visual_results/FieldType.js +3 -0
  45. package/www/capacitor/rfid/PKDCertificate.js +3 -0
  46. package/www/cordova.js +1276 -683
  47. package/www/react-native/engagement/DataRetrieval.js +55 -0
  48. package/www/react-native/engagement/DeviceEngagement.js +30 -0
  49. package/www/react-native/engagement/DeviceRetrievalMethod.js +41 -0
  50. package/www/react-native/engagement/DocumentRequestMDL.js +212 -0
  51. package/www/react-native/engagement/NameSpaceMDL.js +33 -0
  52. package/www/react-native/index.js +58 -7
  53. package/www/react-native/info/DocReaderException.js +2 -0
  54. package/www/react-native/params/Functionality.js +16 -0
  55. package/www/react-native/params/customization/Customization.js +8 -0
  56. package/www/react-native/params/process_params/AuthenticityParams.js +1 -44
  57. package/www/react-native/params/process_params/LivenessParams.js +0 -36
  58. package/www/react-native/params/process_params/ProcessParams.js +26 -30
  59. package/www/react-native/results/Results.js +8 -1
  60. package/www/react-native/results/status/AgeStatus.js +35 -0
  61. package/www/react-native/results/status/ResultsStatus.js +13 -0
  62. package/www/react-native/results/visible_digital_seals/DocFeature.js +23 -0
  63. package/www/react-native/results/visible_digital_seals/VDSData.js +75 -0
  64. package/www/react-native/results/visual_results/FieldType.js +3 -0
  65. package/www/react-native/rfid/PKDCertificate.js +3 -0
  66. package/www/types/engagement/DataRetrieval.d.ts +28 -0
  67. package/www/types/engagement/DeviceEngagement.d.ts +16 -0
  68. package/www/types/engagement/DeviceRetrievalMethod.d.ts +18 -0
  69. package/www/types/engagement/DocumentRequestMDL.d.ts +61 -0
  70. package/www/types/engagement/NameSpaceMDL.d.ts +16 -0
  71. package/www/types/index.d.ts +40 -8
  72. package/www/types/info/DocReaderException.d.ts +2 -0
  73. package/www/types/params/Functionality.d.ts +7 -0
  74. package/www/types/params/customization/Customization.d.ts +5 -0
  75. package/www/types/params/process_params/AuthenticityParams.d.ts +0 -25
  76. package/www/types/params/process_params/LivenessParams.d.ts +0 -18
  77. package/www/types/params/process_params/ProcessParams.d.ts +18 -11
  78. package/www/types/results/Results.d.ts +9 -1
  79. package/www/types/results/status/AgeStatus.d.ts +14 -0
  80. package/www/types/results/status/ResultsStatus.d.ts +9 -0
  81. package/www/types/results/visible_digital_seals/DocFeature.d.ts +9 -0
  82. package/www/types/results/visible_digital_seals/VDSData.d.ts +32 -0
  83. package/www/types/results/visible_digital_seals/VDSNCData.d.ts +1 -1
  84. package/www/types/results/visual_results/FieldType.d.ts +6 -0
  85. package/www/types/rfid/PKDCertificate.d.ts +7 -1
  86. package/www/capacitor/params/process_params/FilterObject.js +0 -60
  87. package/www/react-native/params/process_params/FilterObject.js +0 -60
  88. package/www/types/params/process_params/FilterObject.d.ts +0 -32
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,25 +16,7 @@ export var faceApiParams = {
16
16
  "proxyPassword": "test4",
17
17
  "proxyType": 3,
18
18
  "searchParams": faceApiSearchParams,
19
- }
20
- export var filterObject = {
21
- "docIDsFilter": {
22
- "list": [1, 2, 3],
23
- "isInclude": true
24
- },
25
- "docFormatsFilter": {
26
- "list": [4, 5, 6],
27
- "isInclude": false
28
- },
29
- "docCategoriesFilter": {
30
- "list": [7, 8, 9],
31
- "isInclude": true
32
- },
33
- "docCountriesFilter": {
34
- "list": ["test1", "test2", "test3"],
35
- "isInclude": false
36
- },
37
- }
19
+ };
38
20
  export var livenessParams = {
39
21
  "checkOVI": true,
40
22
  "checkMLI": false,
@@ -43,12 +25,7 @@ export var livenessParams = {
43
25
  "checkBlackAndWhiteCopy": true,
44
26
  "checkDynaprint": false,
45
27
  "checkGeometry": true,
46
- "checkFilters": {
47
- "checkOVI": filterObject,
48
- "checkMLI": filterObject,
49
- "checkHolo": filterObject
50
- },
51
- }
28
+ };
52
29
  export var authenticityParams = {
53
30
  "useLivenessCheck": true,
54
31
  "checkUVLuminiscence": false,
@@ -66,13 +43,8 @@ export var authenticityParams = {
66
43
  "checkLetterScreen": false,
67
44
  "checkSecurityText": true,
68
45
  "livenessParams": livenessParams,
69
- "checkFilters": {
70
- "checkImagePatterns": filterObject,
71
- "checkFibers": filterObject,
72
- "checkExtMRZ": filterObject
73
- },
74
- }
75
- export var glaresCheckParams = { "imgMarginPart": 0.5, "maxGlaringPart": 1.5 }
46
+ };
47
+ export var glaresCheckParams = {"imgMarginPart": 0.5, "maxGlaringPart": 1.5};
76
48
  export var imageQA = {
77
49
  "dpiThreshold": 1,
78
50
  "angleThreshold": 2,
@@ -85,16 +57,16 @@ export var imageQA = {
85
57
  "glaresCheckParams": glaresCheckParams,
86
58
  "brightnessThreshold": 0.5,
87
59
  "occlusionCheck": true,
88
- }
60
+ };
89
61
  export var rfidParams = {
90
62
  "paIgnoreNotificationCodes": [1, 2, 3],
91
- }
63
+ };
92
64
  export var backendProcessingConfig = {
93
65
  "url": "test",
94
66
  "rfidServerSideChipVerification": true,
95
- "httpHeaders": { "key1": "val1", "key2": "val2", "key3": "val3" },
67
+ "httpHeaders": {"key1": "val1", "key2": "val2", "key3": "val3"},
96
68
  "timeoutConnection": 0.5,
97
- }
69
+ };
98
70
  export var processParams = {
99
71
  "multipageProcessing": true,
100
72
  "debugSaveImages": false,
@@ -134,6 +106,8 @@ export var processParams = {
134
106
  "generateAlpha2Codes": false,
135
107
  "disableAuthResolutionFilter": true,
136
108
  "strictSecurityChecks": false,
109
+ "returnTransliteratedFields": true,
110
+ "checkCaptureProcessIntegrity": false,
137
111
  "measureSystem": 1,
138
112
  "barcodeParserType": 3,
139
113
  "perspectiveAngle": 4,
@@ -166,16 +140,16 @@ export var processParams = {
166
140
  "documentGroupFilter": [135, 136, 137],
167
141
  "lcidIgnoreFilter": [10011, 1078, 1052],
168
142
  "lcidFilter": [1118, 5121, 15361],
143
+ "fieldTypesIgnoreFilter": [22, 23, 24],
169
144
  "imageQA": imageQA,
170
145
  "rfidParams": rfidParams,
171
146
  "faceApiParams": faceApiParams,
172
147
  "backendProcessingConfig": backendProcessingConfig,
173
148
  "authenticityParams": authenticityParams,
174
- "customParams": { "test1": true, "test2": 1, "test3": "test" },
175
- "checkFilters": { "checkAuth": filterObject },
176
- }
177
- export var font1 = { "name": "AppleSDGothicNeo-Thin", "size": 10, "style": 2 }
178
- 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};
179
153
  export var customizationColors = {
180
154
  "rfidProcessingScreenBackground": 0xff000000,
181
155
  "rfidProcessingScreenHintLabelText": 0xff000001,
@@ -189,7 +163,7 @@ export var customizationColors = {
189
163
  "rfidEnableNfcDescriptionText": 0xff000009,
190
164
  "rfidEnableNfcButtonText": 0xff000010,
191
165
  "rfidEnableNfcButtonBackground": 0xff000011,
192
- }
166
+ };
193
167
  export var customizationFonts = {
194
168
  "rfidProcessingScreenHintLabel": font1,
195
169
  "rfidProcessingScreenProgressLabel": font2,
@@ -197,11 +171,11 @@ export var customizationFonts = {
197
171
  "rfidEnableNfcTitleText": font2,
198
172
  "rfidEnableNfcDescriptionText": font1,
199
173
  "rfidEnableNfcButtonText": font2,
200
- }
174
+ };
201
175
  export var customizationImages = {
202
176
  "rfidProcessingScreenFailureImage": img1,
203
177
  "rfidEnableNfcImage": img2,
204
- }
178
+ };
205
179
  export var customization = {
206
180
  "showStatusMessages": true,
207
181
  "showResultStatusMessages": false,
@@ -242,6 +216,7 @@ export var customization = {
242
216
  "activityIndicatorPortraitPositionMultiplier": 12.5,
243
217
  "activityIndicatorLandscapePositionMultiplier": 13.5,
244
218
  "cameraPreviewVerticalPositionMultiplier": 14.5,
219
+ "multipageButtonPositionMultiplier": 15.5,
245
220
  "multipageAnimationFrontImage": img1,
246
221
  "multipageAnimationBackImage": img2,
247
222
  "borderBackgroundImage": img3,
@@ -257,7 +232,7 @@ export var customization = {
257
232
  "multipageButtonImage": img1,
258
233
  "customLabelStatus": "test3",
259
234
  "cameraFrameLineCap": 2,
260
- "uiCustomizationLayer": { "test": "test" },
235
+ "uiCustomizationLayer": {"test": "test"},
261
236
  "statusTextFont": font1,
262
237
  "resultStatusTextFont": font2,
263
238
  "multipageButtonTextFont": font1,
@@ -294,8 +269,8 @@ export var customization = {
294
269
  "colors": customizationColors,
295
270
  "fonts": customizationFonts,
296
271
  "images": customizationImages,
297
- }
298
- export var cameraSize = { "width": 0, "height": 1 }
272
+ };
273
+ export var cameraSize = {"width": 0, "height": 1};
299
274
  export var functionality = {
300
275
  "pictureOnBoundsReady": true,
301
276
  "showTorchButton": false,
@@ -315,6 +290,7 @@ export var functionality = {
315
290
  "singleResult": false,
316
291
  "torchTurnedOn": false,
317
292
  "preventScreenRecording": true,
293
+ "homeIndicatorAutoHide": false,
318
294
  "showCaptureButtonDelayFromDetect": 0,
319
295
  "showCaptureButtonDelayFromStart": 1,
320
296
  "rfidTimeout": 2,
@@ -328,10 +304,11 @@ export var functionality = {
328
304
  "zoomFactor": 0.5,
329
305
  "exposure": 1.5,
330
306
  "videoRecordingSizeDownscaleFactor": 2.5,
307
+ "mdlTimeout": 3.5,
331
308
  "excludedCamera2Models": ["test1", "test2", "test3"],
332
309
  "cameraSize": cameraSize,
333
310
  "videoSessionPreset": 6,
334
- }
311
+ };
335
312
  export var eDLDataGroups = {
336
313
  "DG1": true,
337
314
  "DG2": false,
@@ -347,7 +324,7 @@ export var eDLDataGroups = {
347
324
  "DG12": false,
348
325
  "DG13": true,
349
326
  "DG14": false,
350
- }
327
+ };
351
328
  export var ePassportDataGroups = {
352
329
  "DG1": true,
353
330
  "DG2": false,
@@ -365,7 +342,7 @@ export var ePassportDataGroups = {
365
342
  "DG14": false,
366
343
  "DG15": true,
367
344
  "DG16": false,
368
- }
345
+ };
369
346
  export var eIDDataGroups = {
370
347
  "DG1": true,
371
348
  "DG2": false,
@@ -388,14 +365,14 @@ export var eIDDataGroups = {
388
365
  "DG19": true,
389
366
  "DG20": false,
390
367
  "DG21": true,
391
- }
368
+ };
392
369
  export var dtcDataGroup = {
393
370
  "DG17": true,
394
371
  "DG18": false,
395
372
  "DG22": false,
396
373
  "DG23": true,
397
374
  "DG24": false,
398
- }
375
+ };
399
376
  export var rfidScenario = {
400
377
  "paceStaticBinding": true,
401
378
  "onlineTA": false,
@@ -459,27 +436,27 @@ export var rfidScenario = {
459
436
  "ePassportDataGroups": ePassportDataGroups,
460
437
  "eIDDataGroups": eIDDataGroups,
461
438
  "dtcDataGroups": dtcDataGroup,
462
- }
439
+ };
463
440
 
464
441
  export var initConfig = {
465
442
  "delayedNNLoad": false,
466
443
  "licenseUpdate": true,
467
444
  "licenseUpdateTimeout": 1.5,
468
445
  "customDb": img1,
469
- "blackList": { "key1": "val1", "key2": "val2", "key3": "val3" },
446
+ "blackList": {"key1": "val1", "key2": "val2", "key3": "val3"},
470
447
  "databasePath": "test",
471
448
  "license": img2,
472
449
  "useBleDevice": true,
473
- }
450
+ };
474
451
  export var onlineProcessingConfig = {
475
452
  "mode": 1,
476
453
  "url": "test",
477
454
  "imageFormat": 1,
478
455
  "imageCompressionQuality": 1.5,
479
456
  "processParams": processParams,
480
- "requestHeaders": { "key1": "val1", "key2": "val2", "key3": "val3" },
481
- }
482
- 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};
483
460
  export var recognizeConfig = {
484
461
  "scenario": "Mrz",
485
462
  "livePortrait": img1,
@@ -490,7 +467,7 @@ export var recognizeConfig = {
490
467
  "data": img1,
491
468
  "images": [img1, img2, img3],
492
469
  "imageInputData": [imageInputData, imageInputData, imageInputData],
493
- }
470
+ };
494
471
  export var recognizeConfig2 = {
495
472
  "onlineProcessingConfig": onlineProcessingConfig,
496
473
  "livePortrait": img1,
@@ -500,14 +477,14 @@ export var recognizeConfig2 = {
500
477
  "data": img1,
501
478
  "images": [img1, img2, img3],
502
479
  "imageInputData": [imageInputData, imageInputData, imageInputData],
503
- }
480
+ };
504
481
  export var scannerConfig = {
505
482
  "scenario": "Mrz",
506
483
  "onlineProcessingConfig": onlineProcessingConfig,
507
484
  "livePortrait": img1,
508
485
  "extPortrait": img2,
509
486
  "cameraId": 1,
510
- }
487
+ };
511
488
 
512
489
  export var documentsDatabase = {
513
490
  "databaseID": "test1",
@@ -517,13 +494,13 @@ export var documentsDatabase = {
517
494
  "countriesNumber": 1,
518
495
  "documentsNumber": 2,
519
496
  "size": 3,
520
- }
497
+ };
521
498
  export var docReaderVersion = {
522
499
  "api": "test1",
523
500
  "core": "test2",
524
501
  "coreMode": "test3",
525
502
  "database": documentsDatabase,
526
- }
503
+ };
527
504
  export var docReaderScenario = {
528
505
  "uvTorch": true,
529
506
  "frameOrientation": 2,
@@ -538,15 +515,15 @@ export var docReaderScenario = {
538
515
  "caption": "test2",
539
516
  "description": "test3",
540
517
  "manualCrop": false,
541
- }
518
+ };
542
519
  export var license = {
543
520
  "expiryDate": "test1",
544
521
  "countryFilter": ["test2", "test3", "test4"],
545
522
  "isRfidAvailable": true,
546
- }
547
- export var docReaderException = { "code": 1, "message": "test1" }
548
- export var rfidException = { "code": 2, "message": "test2" }
549
- 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};
550
527
 
551
528
  export var authenticityElement = {
552
529
  "status": 1,
@@ -554,51 +531,51 @@ export var authenticityElement = {
554
531
  "elementDiagnose": 3,
555
532
  "elementTypeName": "Photo element",
556
533
  "elementDiagnoseName": "Error of internal data processing",
557
- }
534
+ };
558
535
  export var authenticityCheck = {
559
536
  "type": 1,
560
537
  "status": 2,
561
538
  "typeName": "UV dull paper check",
562
539
  "pageIndex": 3,
563
540
  "elements": [authenticityElement, authenticityElement, authenticityElement],
564
- }
541
+ };
565
542
  export var authenticityResult = {
566
543
  "status": 2,
567
544
  "checks": [authenticityCheck, authenticityCheck, authenticityCheck],
568
- }
569
- export var pdf417Info = { "errorLevel": 2, "columns": 3, "rows": 4 }
545
+ };
546
+ export var pdf417Info = {"errorLevel": 2, "columns": 3, "rows": 4};
570
547
  export var barcodeField = {
571
548
  "barcodeType": 5,
572
549
  "status": -6001,
573
550
  "pageIndex": 2,
574
551
  "pdf417Info": pdf417Info,
575
552
  "data": img1,
576
- }
553
+ };
577
554
  export var barcodeResult = {
578
555
  "fields": [barcodeField, barcodeField, barcodeField],
579
- }
580
- export var rect = { "bottom": 0, "top": 1, "left": 2, "right": 3 }
556
+ };
557
+ export var rect = {"bottom": 0, "top": 1, "left": 2, "right": 3};
581
558
  export var imageQuality = {
582
559
  "featureType": 1,
583
560
  "result": 2,
584
561
  "type": 3,
585
562
  "boundRects": [rect, rect, rect],
586
- }
563
+ };
587
564
  export var imageQualityGroup = {
588
565
  "count": 1,
589
566
  "result": 2,
590
567
  "pageIndex": 3,
591
568
  "imageQualityList": [imageQuality, imageQuality, imageQuality],
592
- }
569
+ };
593
570
  export var accessControlProcedureType = {
594
571
  "activeOptionIdx": 1,
595
572
  "type": 2,
596
573
  "status": 1,
597
574
  "notifications": [1, 2, 3],
598
- }
599
- export var fileData = { "data": "test", "length": 2, "type": 3, "status": 4 }
600
- export var certificateData = { "data": "test", "length": 1 }
601
- 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};
602
579
  export var file = {
603
580
  "fileData": fileData,
604
581
  "fileID": "test1",
@@ -612,7 +589,7 @@ export var file = {
612
589
  "docFieldsGraphics": [7, 8, 9],
613
590
  "docFieldsOriginals": [10, 11, 12],
614
591
  "certificates": securityObjectCertificates,
615
- }
592
+ };
616
593
  export var application = {
617
594
  "applicationID": "test1",
618
595
  "dataHashAlgorithm": "test2",
@@ -621,20 +598,20 @@ export var application = {
621
598
  "type": 2,
622
599
  "unicodeVersion": "test3",
623
600
  "version": "test4",
624
- }
601
+ };
625
602
  export var rfidValue = {
626
603
  "data": "test1",
627
604
  "length": 1,
628
605
  "status": 2,
629
606
  "type": 3,
630
607
  "format": "test2",
631
- }
632
- export var attribute = { "type": "test", "value": rfidValue }
608
+ };
609
+ export var attribute = {"type": "test", "value": rfidValue};
633
610
  export var authority = {
634
611
  "attributes": [attribute, attribute, attribute],
635
612
  "data": "test",
636
613
  "friendlyName": rfidValue,
637
- }
614
+ };
638
615
  export var cardProperties = {
639
616
  "aTQA": 1,
640
617
  "bitRateR": 2,
@@ -650,9 +627,9 @@ export var cardProperties = {
650
627
  "baudrate1": "test3",
651
628
  "baudrate2": "test4",
652
629
  "uID": "test5",
653
- }
654
- export var extension = { "data": "test1", "type": "test2" }
655
- export var rfidValidity = { "notAfter": rfidValue, "notBefore": rfidValue }
630
+ };
631
+ export var extension = {"data": "test1", "type": "test2"};
632
+ export var rfidValidity = {"notAfter": rfidValue, "notBefore": rfidValue};
656
633
  export var certificateChain = {
657
634
  "type": 1,
658
635
  "extensions": [extension, extension, extension],
@@ -667,8 +644,8 @@ export var certificateChain = {
667
644
  "subjectPKAlgorithm": "test3",
668
645
  "validity": rfidValidity,
669
646
  "version": 4,
670
- }
671
- export var dataField = { "data": "test", "fieldType": 1 }
647
+ };
648
+ export var dataField = {"data": "test", "fieldType": 1};
672
649
  export var signerInfo = {
673
650
  "dataToHash": "test1",
674
651
  "digestAlgorithm": "test2",
@@ -682,14 +659,14 @@ export var signerInfo = {
682
659
  "signedAttributes": [extension, extension, extension],
683
660
  "certificateChain": [certificateChain, certificateChain, certificateChain],
684
661
  "notifications": [1, 2, 3],
685
- }
662
+ };
686
663
  export var securityObject = {
687
664
  "fileReference": 1,
688
665
  "objectType": "test",
689
666
  "version": 2,
690
667
  "signerInfos": [signerInfo, signerInfo, signerInfo],
691
668
  "notifications": [1, 2, 3],
692
- }
669
+ };
693
670
  export var rfidSessionData = {
694
671
  "accessControls": [
695
672
  accessControlProcedureType,
@@ -706,19 +683,35 @@ export var rfidSessionData = {
706
683
  "status": 1,
707
684
  "extLeSupport": 1,
708
685
  "processTime": 4,
709
- }
710
- export var bytesData = { "data": "test", "length": 1, "status": 2, "type": 3 }
686
+ };
687
+ export var bytesData = {"data": "test", "length": 1, "status": 2, "type": 3};
711
688
  export var vdsncData = {
712
689
  "type": "test1",
713
690
  "version": 1,
714
691
  "issuingCountry": "test2",
715
- "message": { "key1": "val1", "key2": "val2", "key3": "val3" },
692
+ "message": {"key1": "val1", "key2": "val2", "key3": "val3"},
716
693
  "signatureAlgorithm": "test3",
717
694
  "signature": bytesData,
718
695
  "certificate": bytesData,
719
696
  "certificateChain": [certificateChain, certificateChain, certificateChain],
720
697
  "notifications": [3000000001, 3000000002, 3000000003],
721
- }
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
+ };
722
715
  export var opticalStatus = {
723
716
  "overallStatus": 0,
724
717
  "mrz": 1,
@@ -729,7 +722,15 @@ export var opticalStatus = {
729
722
  "expiry": 0,
730
723
  "vds": 1,
731
724
  "pagesCount": 3,
732
- }
725
+ };
726
+ export var ageStatus = {
727
+ "threshold": 0,
728
+ "overThreshold": 1,
729
+ "over18": 2,
730
+ "over21": 0,
731
+ "over25": 1,
732
+ "over65": 2,
733
+ };
733
734
  export var rfidStatus = {
734
735
  "overallStatus": 0,
735
736
  "pa": 1,
@@ -738,17 +739,21 @@ export var rfidStatus = {
738
739
  "ta": 1,
739
740
  "bac": 2,
740
741
  "pace": 0,
741
- }
742
+ };
742
743
  export var resultsStatus = {
743
744
  "overallStatus": 0,
744
745
  "optical": 1,
745
746
  "rfid": 2,
746
747
  "portrait": 0,
747
748
  "stopList": 1,
749
+ "mDL": 2,
750
+ "age": 0,
751
+ "captureProcessIntegrity": 1,
748
752
  "detailsOptical": opticalStatus,
753
+ "detailsAge": ageStatus,
749
754
  "detailsRFID": rfidStatus,
750
- }
751
- export var comparison = { "sourceTypeLeft": 0, "sourceTypeRight": 1, "status": 2 }
755
+ };
756
+ export var comparison = {"sourceTypeLeft": 0, "sourceTypeRight": 1, "status": 2};
752
757
  export var graphicField = {
753
758
  "sourceType": 0,
754
759
  "fieldType": 201,
@@ -759,13 +764,13 @@ export var graphicField = {
759
764
  "originalPageIndex": 4,
760
765
  "value": img1,
761
766
  "fieldRect": rect,
762
- }
767
+ };
763
768
  export var graphicResult = {
764
769
  "fields": [graphicField, graphicField, graphicField],
765
- }
766
- export var rfidOrigin = { "dg": 1, "dgTag": 2, "entryView": 3, "tagEntry": 4 }
767
- export var symbol = { "rect": rect, "code": 1, "probability": 2 }
768
- 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};
769
774
  export var value = {
770
775
  "sourceType": 3,
771
776
  "value": "test1",
@@ -775,7 +780,7 @@ export var value = {
775
780
  "rfidOrigin": rfidOrigin,
776
781
  "originalSymbols": [symbol, symbol, symbol],
777
782
  "probability": 1,
778
- }
783
+ };
779
784
  export var textField = {
780
785
  "fieldType": 1,
781
786
  "fieldName": "Issuing state code",
@@ -789,22 +794,22 @@ export var textField = {
789
794
  "validityList": [validity, validity, validity],
790
795
  "comparisonStatus": 0,
791
796
  "validityStatus": 1,
792
- }
797
+ };
793
798
  export var textSource = {
794
799
  "sourceType": validity["sourceType"],
795
800
  "source": "sourceType",
796
801
  "validityStatus": 1,
797
- }
802
+ };
798
803
  export var documentReaderTextSource2 = {
799
804
  "sourceType": comparison["sourceTypeLeft"],
800
805
  "source": "sourceTypeLeft",
801
806
  "validityStatus": 1,
802
- }
807
+ };
803
808
  export var documentReaderTextSource3 = {
804
809
  "sourceType": comparison["sourceTypeRight"],
805
810
  "source": "sourceTypeRight",
806
811
  "validityStatus": 1,
807
- }
812
+ };
808
813
  export var textResult = {
809
814
  "status": 0,
810
815
  "comparisonStatus": 1,
@@ -815,7 +820,7 @@ export var textResult = {
815
820
  documentReaderTextSource3,
816
821
  ],
817
822
  "fields": [textField, textField, textField],
818
- }
823
+ };
819
824
  export var documentType = {
820
825
  "name": "test1",
821
826
  "documentID": 1,
@@ -829,8 +834,8 @@ export var documentType = {
829
834
  "dYear": "test4",
830
835
  "dCountryName": "test5",
831
836
  "pageIndex": 3,
832
- }
833
- export var coordinate = { "x": 1, "y": 2 }
837
+ };
838
+ export var coordinate = {"x": 1, "y": 2};
834
839
  export var position = {
835
840
  "docFormat": 0,
836
841
  "resultStatus": 1,
@@ -848,12 +853,12 @@ export var position = {
848
853
  "leftBottom": coordinate,
849
854
  "rightTop": coordinate,
850
855
  "rightBottom": coordinate,
851
- }
856
+ };
852
857
  export var transactionInfo = {
853
858
  "transactionId": "test1",
854
859
  "tag": "test2",
855
860
  "sessionLogFolder": "test3",
856
- }
861
+ };
857
862
  export var results = {
858
863
  "chipPage": 0,
859
864
  "processingFinishedStatus": 2,
@@ -873,37 +878,109 @@ export var results = {
873
878
  "barcodeResult": barcodeResult,
874
879
  "status": resultsStatus,
875
880
  "vdsncData": vdsncData,
881
+ "vdsData": vdsData,
876
882
  "dtcData": img1,
877
883
  "transactionInfo": transactionInfo,
878
- }
884
+ };
879
885
 
880
886
  export var rfidNotification = {
881
887
  "notificationCode": 65536,
882
888
  "dataFileType": 1,
883
889
  "progress": 2,
884
- }
885
- export var paAttribute = { "type": "test1", "value": "test2" }
890
+ };
891
+ export var paAttribute = {"type": "test1", "value": "test2"};
886
892
  export var paResourcesIssuer = {
887
893
  "data": img1,
888
894
  "friendlyName": "test",
889
895
  "attributes": [paAttribute, paAttribute, paAttribute],
890
- }
896
+ };
891
897
  export var pkdCertificate = {
892
898
  "binaryData": img1,
893
899
  "resourceType": 0,
894
900
  "privateKey": img2,
895
- }
901
+ };
896
902
  export var taChallenge = {
897
903
  "data": img1,
898
904
  "auxPCD": "test1",
899
905
  "challengePICC": "test2",
900
906
  "hashPK": "test3",
901
907
  "idPICC": "test4",
902
- }
908
+ };
903
909
  export var tccParams = {
904
910
  "serviceUrlTA": "test1",
905
911
  "serviceUrlPA": "test2",
906
912
  "pfxCertUrl": "test3",
907
913
  "pfxPassPhrase": "test4",
908
914
  "pfxCert": img1,
909
- }
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
+ };