@regulaforensics/document-reader 8.3.273-beta → 8.3.279-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 (172) hide show
  1. package/RNDocumentReader.podspec +1 -1
  2. package/examples/capacitor/package.json +1 -3
  3. package/examples/ionic/package.json +1 -1
  4. package/examples/react_native/package.json +1 -1
  5. package/package.json +1 -1
  6. package/plugin.xml +1 -1
  7. package/test/json.tsx +92 -92
  8. package/test/package-lock.json +1 -1
  9. package/test/package.json +0 -3
  10. package/test/test.tsx +87 -87
  11. package/test/utils.tsx +29 -25
  12. package/www/capacitor/config/OnlineProcessingConfig.js +11 -0
  13. package/www/capacitor/config/RecognizeConfig.js +23 -0
  14. package/www/capacitor/config/ScannerConfig.js +10 -0
  15. package/www/capacitor/info/DocReaderException.js +7 -0
  16. package/www/capacitor/info/DocReaderScenario.js +18 -0
  17. package/www/capacitor/info/DocReaderVersion.js +9 -0
  18. package/www/capacitor/info/DocumentsDatabase.js +12 -0
  19. package/www/capacitor/info/License.js +8 -0
  20. package/www/capacitor/info/PrepareProgress.js +8 -0
  21. package/www/capacitor/info/RFIDException.js +7 -0
  22. package/www/capacitor/params/Functionality.js +44 -0
  23. package/www/capacitor/params/customization/Customization.js +76 -0
  24. package/www/capacitor/params/customization/CustomizationColors.js +13 -0
  25. package/www/capacitor/params/customization/CustomizationFonts.js +8 -0
  26. package/www/capacitor/params/customization/CustomizationImages.js +6 -0
  27. package/www/capacitor/params/customization/Font.js +8 -0
  28. package/www/capacitor/params/process_params/AuthenticityParams.js +21 -0
  29. package/www/capacitor/params/process_params/BackendProcessingConfig.js +9 -0
  30. package/www/capacitor/params/process_params/FaceApiParams.js +13 -0
  31. package/www/capacitor/params/process_params/FaceApiSearchParams.js +8 -0
  32. package/www/capacitor/params/process_params/GlaresCheckParams.js +7 -0
  33. package/www/capacitor/params/process_params/ImageQA.js +16 -0
  34. package/www/capacitor/params/process_params/LivenessParams.js +12 -0
  35. package/www/capacitor/params/process_params/ProcessParams.js +82 -2
  36. package/www/capacitor/params/process_params/RfidParams.js +6 -0
  37. package/www/capacitor/params/rfid_scenario/DTCDataGroup.js +10 -0
  38. package/www/capacitor/params/rfid_scenario/EDLDataGroups.js +19 -0
  39. package/www/capacitor/params/rfid_scenario/EIDDataGroups.js +26 -0
  40. package/www/capacitor/params/rfid_scenario/EPassportDataGroups.js +21 -0
  41. package/www/capacitor/params/rfid_scenario/RFIDScenario.js +67 -0
  42. package/www/capacitor/results/Position.js +28 -0
  43. package/www/capacitor/results/Results.js +25 -0
  44. package/www/capacitor/results/TransactionInfo.js +8 -0
  45. package/www/capacitor/results/authenticity/AuthenticityCheck.js +10 -0
  46. package/www/capacitor/results/authenticity/AuthenticityElement.js +10 -0
  47. package/www/capacitor/results/authenticity/AuthenticityResult.js +7 -0
  48. package/www/capacitor/results/barcode/BarcodeField.js +10 -0
  49. package/www/capacitor/results/barcode/BarcodeResult.js +6 -0
  50. package/www/capacitor/results/barcode/PDF417Info.js +8 -0
  51. package/www/capacitor/results/image_quality/ImageQuality.js +9 -0
  52. package/www/capacitor/results/image_quality/ImageQualityGroup.js +9 -0
  53. package/www/capacitor/results/rfid/AccessControlProcedureType.js +9 -0
  54. package/www/capacitor/results/rfid/Application.js +12 -0
  55. package/www/capacitor/results/rfid/Attribute.js +7 -0
  56. package/www/capacitor/results/rfid/Authority.js +8 -0
  57. package/www/capacitor/results/rfid/CardProperties.js +19 -0
  58. package/www/capacitor/results/rfid/CertificateChain.js +18 -0
  59. package/www/capacitor/results/rfid/CertificateData.js +7 -0
  60. package/www/capacitor/results/rfid/DataField.js +7 -0
  61. package/www/capacitor/results/rfid/Extension.js +7 -0
  62. package/www/capacitor/results/rfid/File.js +17 -0
  63. package/www/capacitor/results/rfid/FileData.js +9 -0
  64. package/www/capacitor/results/rfid/RFIDSessionData.js +16 -0
  65. package/www/capacitor/results/rfid/RFIDValidity.js +7 -0
  66. package/www/capacitor/results/rfid/RFIDValue.js +10 -0
  67. package/www/capacitor/results/rfid/SecurityObject.js +10 -0
  68. package/www/capacitor/results/rfid/SecurityObjectCertificates.js +6 -0
  69. package/www/capacitor/results/rfid/SignerInfo.js +17 -0
  70. package/www/capacitor/results/status/OpticalStatus.js +14 -0
  71. package/www/capacitor/results/status/RFIDStatus.js +12 -0
  72. package/www/capacitor/results/status/ResultsStatus.js +12 -0
  73. package/www/capacitor/results/visible_digital_seals/BytesData.js +9 -0
  74. package/www/capacitor/results/visible_digital_seals/VDSNCData.js +14 -0
  75. package/www/capacitor/results/visual_results/Comparison.js +8 -0
  76. package/www/capacitor/results/visual_results/GraphicField.js +14 -0
  77. package/www/capacitor/results/visual_results/GraphicResult.js +6 -0
  78. package/www/capacitor/results/visual_results/RFIDOrigin.js +9 -0
  79. package/www/capacitor/results/visual_results/Rect.js +9 -0
  80. package/www/capacitor/results/visual_results/Symbol.js +8 -0
  81. package/www/capacitor/results/visual_results/TextField.js +17 -0
  82. package/www/capacitor/results/visual_results/TextResult.js +10 -0
  83. package/www/capacitor/results/visual_results/TextSource.js +8 -0
  84. package/www/capacitor/results/visual_results/Validity.js +7 -0
  85. package/www/capacitor/results/visual_results/Value.js +13 -0
  86. package/www/capacitor/rfid/PAAttribute.js +7 -0
  87. package/www/capacitor/rfid/PAResourcesIssuer.js +8 -0
  88. package/www/capacitor/rfid/PKDCertificate.js +8 -0
  89. package/www/capacitor/rfid/RFIDNotification.js +8 -0
  90. package/www/capacitor/rfid/TAChallenge.js +10 -0
  91. package/www/capacitor/rfid/TccParams.js +10 -0
  92. package/www/cordova.js +1122 -2
  93. package/www/react-native/config/OnlineProcessingConfig.js +11 -0
  94. package/www/react-native/config/RecognizeConfig.js +23 -0
  95. package/www/react-native/config/ScannerConfig.js +10 -0
  96. package/www/react-native/info/DocReaderException.js +7 -0
  97. package/www/react-native/info/DocReaderScenario.js +18 -0
  98. package/www/react-native/info/DocReaderVersion.js +9 -0
  99. package/www/react-native/info/DocumentsDatabase.js +12 -0
  100. package/www/react-native/info/License.js +8 -0
  101. package/www/react-native/info/PrepareProgress.js +8 -0
  102. package/www/react-native/info/RFIDException.js +7 -0
  103. package/www/react-native/params/Functionality.js +44 -0
  104. package/www/react-native/params/customization/Customization.js +76 -0
  105. package/www/react-native/params/customization/CustomizationColors.js +13 -0
  106. package/www/react-native/params/customization/CustomizationFonts.js +8 -0
  107. package/www/react-native/params/customization/CustomizationImages.js +6 -0
  108. package/www/react-native/params/customization/Font.js +8 -0
  109. package/www/react-native/params/process_params/AuthenticityParams.js +21 -0
  110. package/www/react-native/params/process_params/BackendProcessingConfig.js +9 -0
  111. package/www/react-native/params/process_params/FaceApiParams.js +13 -0
  112. package/www/react-native/params/process_params/FaceApiSearchParams.js +8 -0
  113. package/www/react-native/params/process_params/GlaresCheckParams.js +7 -0
  114. package/www/react-native/params/process_params/ImageQA.js +16 -0
  115. package/www/react-native/params/process_params/LivenessParams.js +12 -0
  116. package/www/react-native/params/process_params/ProcessParams.js +82 -2
  117. package/www/react-native/params/process_params/RfidParams.js +6 -0
  118. package/www/react-native/params/rfid_scenario/DTCDataGroup.js +10 -0
  119. package/www/react-native/params/rfid_scenario/EDLDataGroups.js +19 -0
  120. package/www/react-native/params/rfid_scenario/EIDDataGroups.js +26 -0
  121. package/www/react-native/params/rfid_scenario/EPassportDataGroups.js +21 -0
  122. package/www/react-native/params/rfid_scenario/RFIDScenario.js +67 -0
  123. package/www/react-native/results/Position.js +28 -0
  124. package/www/react-native/results/Results.js +25 -0
  125. package/www/react-native/results/TransactionInfo.js +8 -0
  126. package/www/react-native/results/authenticity/AuthenticityCheck.js +10 -0
  127. package/www/react-native/results/authenticity/AuthenticityElement.js +10 -0
  128. package/www/react-native/results/authenticity/AuthenticityResult.js +7 -0
  129. package/www/react-native/results/barcode/BarcodeField.js +10 -0
  130. package/www/react-native/results/barcode/BarcodeResult.js +6 -0
  131. package/www/react-native/results/barcode/PDF417Info.js +8 -0
  132. package/www/react-native/results/image_quality/ImageQuality.js +9 -0
  133. package/www/react-native/results/image_quality/ImageQualityGroup.js +9 -0
  134. package/www/react-native/results/rfid/AccessControlProcedureType.js +9 -0
  135. package/www/react-native/results/rfid/Application.js +12 -0
  136. package/www/react-native/results/rfid/Attribute.js +7 -0
  137. package/www/react-native/results/rfid/Authority.js +8 -0
  138. package/www/react-native/results/rfid/CardProperties.js +19 -0
  139. package/www/react-native/results/rfid/CertificateChain.js +18 -0
  140. package/www/react-native/results/rfid/CertificateData.js +7 -0
  141. package/www/react-native/results/rfid/DataField.js +7 -0
  142. package/www/react-native/results/rfid/Extension.js +7 -0
  143. package/www/react-native/results/rfid/File.js +17 -0
  144. package/www/react-native/results/rfid/FileData.js +9 -0
  145. package/www/react-native/results/rfid/RFIDSessionData.js +16 -0
  146. package/www/react-native/results/rfid/RFIDValidity.js +7 -0
  147. package/www/react-native/results/rfid/RFIDValue.js +10 -0
  148. package/www/react-native/results/rfid/SecurityObject.js +10 -0
  149. package/www/react-native/results/rfid/SecurityObjectCertificates.js +6 -0
  150. package/www/react-native/results/rfid/SignerInfo.js +17 -0
  151. package/www/react-native/results/status/OpticalStatus.js +14 -0
  152. package/www/react-native/results/status/RFIDStatus.js +12 -0
  153. package/www/react-native/results/status/ResultsStatus.js +12 -0
  154. package/www/react-native/results/visible_digital_seals/BytesData.js +9 -0
  155. package/www/react-native/results/visible_digital_seals/VDSNCData.js +14 -0
  156. package/www/react-native/results/visual_results/Comparison.js +8 -0
  157. package/www/react-native/results/visual_results/GraphicField.js +14 -0
  158. package/www/react-native/results/visual_results/GraphicResult.js +6 -0
  159. package/www/react-native/results/visual_results/RFIDOrigin.js +9 -0
  160. package/www/react-native/results/visual_results/Rect.js +9 -0
  161. package/www/react-native/results/visual_results/Symbol.js +8 -0
  162. package/www/react-native/results/visual_results/TextField.js +17 -0
  163. package/www/react-native/results/visual_results/TextResult.js +10 -0
  164. package/www/react-native/results/visual_results/TextSource.js +8 -0
  165. package/www/react-native/results/visual_results/Validity.js +7 -0
  166. package/www/react-native/results/visual_results/Value.js +13 -0
  167. package/www/react-native/rfid/PAAttribute.js +7 -0
  168. package/www/react-native/rfid/PAResourcesIssuer.js +8 -0
  169. package/www/react-native/rfid/PKDCertificate.js +8 -0
  170. package/www/react-native/rfid/RFIDNotification.js +8 -0
  171. package/www/react-native/rfid/TAChallenge.js +10 -0
  172. package/www/react-native/rfid/TccParams.js +10 -0
@@ -126,4 +126,25 @@ export class AuthenticityParams {
126
126
  const parent = DocumentReader.instance.processParams;
127
127
  if (this === parent.authenticityParams) parent._set(parentJson);
128
128
  }
129
+
130
+ toJson() {
131
+ return {
132
+ "useLivenessCheck": this.useLivenessCheck,
133
+ "livenessParams": this.livenessParams?.toJson(),
134
+ "checkUVLuminiscence": this.checkUVLuminiscence,
135
+ "checkIRB900": this.checkIRB900,
136
+ "checkImagePatterns": this.checkImagePatterns,
137
+ "checkFibers": this.checkFibers,
138
+ "checkExtMRZ": this.checkExtMRZ,
139
+ "checkExtOCR": this.checkExtOCR,
140
+ "checkAxial": this.checkAxial,
141
+ "checkBarcodeFormat": this.checkBarcodeFormat,
142
+ "checkIRVisibility": this.checkIRVisibility,
143
+ "checkIPI": this.checkIPI,
144
+ "checkPhotoEmbedding": this.checkPhotoEmbedding,
145
+ "checkPhotoComparison": this.checkPhotoComparison,
146
+ "checkLetterScreen": this.checkLetterScreen,
147
+ "checkSecurityText": this.checkSecurityText,
148
+ }
149
+ }
129
150
  }
@@ -22,4 +22,13 @@ export class BackendProcessingConfig {
22
22
 
23
23
  return result;
24
24
  }
25
+
26
+ toJson() {
27
+ return {
28
+ "url": this.url,
29
+ "rfidServerSideChipVerification": this.rfidServerSideChipVerification,
30
+ "httpHeaders": this.httpHeaders,
31
+ "timeoutConnection": this.timeoutConnection,
32
+ }
33
+ }
25
34
  }
@@ -35,4 +35,17 @@ export class FaceApiParams {
35
35
  proxyType: jsonObject["proxyType"]
36
36
  });
37
37
  }
38
+
39
+ toJson() {
40
+ return {
41
+ "url": this.url,
42
+ "mode": this.mode,
43
+ "threshold": this.threshold,
44
+ "searchParams": this.searchParams?.toJson(),
45
+ "serviceTimeout": this.serviceTimeout,
46
+ "proxy": this.proxy,
47
+ "proxyPassword": this.proxyPassword,
48
+ "proxyType": this.proxyType,
49
+ }
50
+ }
38
51
  }
@@ -18,4 +18,12 @@ export class FaceApiSearchParams {
18
18
  groupIds: jsonObject["groupIds"]
19
19
  });
20
20
  }
21
+
22
+ toJson() {
23
+ return {
24
+ "limit": this.limit,
25
+ "threshold": this.threshold,
26
+ "groupIds": this.groupIds,
27
+ }
28
+ }
21
29
  }
@@ -15,4 +15,11 @@ export class GlaresCheckParams {
15
15
  maxGlaringPart: jsonObject["maxGlaringPart"]
16
16
  });
17
17
  }
18
+
19
+ toJson() {
20
+ return {
21
+ "imgMarginPart": this.imgMarginPart,
22
+ "maxGlaringPart": this.maxGlaringPart,
23
+ }
24
+ }
18
25
  }
@@ -94,4 +94,20 @@ export class ImageQA {
94
94
  var parent = DocumentReader.instance.processParams;
95
95
  if (this === parent.imageQA) parent._set(parentJson);
96
96
  }
97
+
98
+ toJson() {
99
+ return {
100
+ "dpiThreshold": this.dpiThreshold,
101
+ "angleThreshold": this.angleThreshold,
102
+ "documentPositionIndent": this.documentPositionIndent,
103
+ "focusCheck": this.focusCheck,
104
+ "glaresCheck": this.glaresCheck,
105
+ "colornessCheck": this.colornessCheck,
106
+ "screenCapture": this.screenCapture,
107
+ "expectedPass": this.expectedPass,
108
+ "glaresCheckParams": this.glaresCheckParams?.toJson(),
109
+ "brightnessThreshold": this.brightnessThreshold,
110
+ "occlusionCheck": this.occlusionCheck,
111
+ }
112
+ }
97
113
  }
@@ -64,4 +64,16 @@ export class LivenessParams {
64
64
  var parent = DocumentReader.instance.processParams.authenticityParams;
65
65
  if (this === parent.livenessParams) parent._set(parentJson);
66
66
  }
67
+
68
+ toJson() {
69
+ return {
70
+ "checkOVI": this.checkOVI,
71
+ "checkMLI": this.checkMLI,
72
+ "checkHolo": this.checkHolo,
73
+ "checkED": this.checkED,
74
+ "checkBlackAndWhiteCopy": this.checkBlackAndWhiteCopy,
75
+ "checkDynaprint": this.checkDynaprint,
76
+ "checkGeometry": this.checkGeometry,
77
+ }
78
+ }
67
79
  }
@@ -459,8 +459,8 @@ export class ProcessParams {
459
459
 
460
460
  static fromJson(jsonObject) {
461
461
  if (jsonObject == null) return new ProcessParams();
462
-
463
462
  const result = new ProcessParams();
463
+
464
464
  result._multipageProcessing = jsonObject["multipageProcessing"];
465
465
  result._logs = jsonObject["logs"];
466
466
  result._debugSaveImages = jsonObject["debugSaveImages"];
@@ -537,10 +537,90 @@ export class ProcessParams {
537
537
  result._backendProcessingConfig = BackendProcessingConfig.fromJson(jsonObject["backendProcessingConfig"]);
538
538
  result._authenticityParams = AuthenticityParams.fromJson(jsonObject["authenticityParams"]);
539
539
  result._customParams = jsonObject["customParams"];
540
-
540
+
541
541
  return result;
542
542
  }
543
543
 
544
+ toJson() {
545
+ return {
546
+ "multipageProcessing": this.multipageProcessing,
547
+ "debugSaveImages": this.debugSaveImages,
548
+ "debugSaveLogs": this.debugSaveLogs,
549
+ "returnUncroppedImage": this.returnUncroppedImage,
550
+ "uvTorchEnabled": this.uvTorchEnabled,
551
+ "debugSaveCroppedImages": this.debugSaveCroppedImages,
552
+ "disableFocusingCheck": this.disableFocusingCheck,
553
+ "debugSaveRFIDSession": this.debugSaveRFIDSession,
554
+ "doublePageSpread": this.doublePageSpread,
555
+ "manualCrop": this.manualCrop,
556
+ "integralImage": this.integralImage,
557
+ "returnCroppedBarcode": this.returnCroppedBarcode,
558
+ "checkRequiredTextFields": this.checkRequiredTextFields,
559
+ "depersonalizeLog": this.depersonalizeLog,
560
+ "generateDoublePageSpreadImage": this.generateDoublePageSpreadImage,
561
+ "alreadyCropped": this.alreadyCropped,
562
+ "matchTextFieldMask": this.matchTextFieldMask,
563
+ "updateOCRValidityByGlare": this.updateOCRValidityByGlare,
564
+ "noGraphics": this.noGraphics,
565
+ "multiDocOnImage": this.multiDocOnImage,
566
+ "forceReadMrzBeforeLocate": this.forceReadMrzBeforeLocate,
567
+ "parseBarcodes": this.parseBarcodes,
568
+ "shouldReturnPackageForReprocess": this.shouldReturnPackageForReprocess,
569
+ "disablePerforationOCR": this.disablePerforationOCR,
570
+ "respectImageQuality": this.respectImageQuality,
571
+ "strictImageQuality": this.strictImageQuality,
572
+ "splitNames": this.splitNames,
573
+ "useFaceApi": this.useFaceApi,
574
+ "useAuthenticityCheck": this.useAuthenticityCheck,
575
+ "checkHologram": this.checkHologram,
576
+ "generateNumericCodes": this.generateNumericCodes,
577
+ "strictBarcodeDigitalSignatureCheck": this.strictBarcodeDigitalSignatureCheck,
578
+ "selectLongestNames": this.selectLongestNames,
579
+ "generateDTCVC": this.generateDTCVC,
580
+ "strictDLCategoryExpiry": this.strictDLCategoryExpiry,
581
+ "generateAlpha2Codes": this.generateAlpha2Codes,
582
+ "disableAuthResolutionFilter": this.disableAuthResolutionFilter,
583
+ "measureSystem": this.measureSystem,
584
+ "barcodeParserType": this.barcodeParserType,
585
+ "perspectiveAngle": this.perspectiveAngle,
586
+ "minDPI": this.minDPI,
587
+ "imageDpiOutMax": this.imageDpiOutMax,
588
+ "forceDocID": this.forceDocID,
589
+ "pdfPagesLimit": this.pdfPagesLimit,
590
+ "forceDocFormat": this.forceDocFormat,
591
+ "shiftExpiryDate": this.shiftExpiryDate,
592
+ "minimalHolderAge": this.minimalHolderAge,
593
+ "imageOutputMaxHeight": this.imageOutputMaxHeight,
594
+ "imageOutputMaxWidth": this.imageOutputMaxWidth,
595
+ "processAuth": this.processAuth,
596
+ "convertCase": this.convertCase,
597
+ "logLevel": this.logLevel,
598
+ "mrzDetectMode": this.mrzDetectMode,
599
+ "dateFormat": this.dateFormat,
600
+ "scenario": this.scenario,
601
+ "captureButtonScenario": this.captureButtonScenario,
602
+ "timeout": this.timeout,
603
+ "timeoutFromFirstDetect": this.timeoutFromFirstDetect,
604
+ "timeoutFromFirstDocType": this.timeoutFromFirstDocType,
605
+ "documentAreaMin": this.documentAreaMin,
606
+ "timeoutLiveness": this.timeoutLiveness,
607
+ "documentIDList": this.documentIDList,
608
+ "barcodeTypes": this.barcodeTypes,
609
+ "fieldTypesFilter": this.fieldTypesFilter,
610
+ "resultTypeOutput": this.resultTypeOutput,
611
+ "mrzFormatsFilter": this.mrzFormatsFilter,
612
+ "documentGroupFilter": this.documentGroupFilter,
613
+ "lcidIgnoreFilter": this.lcidIgnoreFilter,
614
+ "lcidFilter": this.lcidFilter,
615
+ "imageQA": this.imageQA?.toJson(),
616
+ "rfidParams": this.rfidParams?.toJson(),
617
+ "faceApiParams": this.faceApiParams?.toJson(),
618
+ "backendProcessingConfig": this.backendProcessingConfig?.toJson(),
619
+ "authenticityParams": this.authenticityParams?.toJson(),
620
+ "customParams": this.customParams,
621
+ }
622
+ }
623
+
544
624
  _apply() { this._set(this); }
545
625
  _set(json) {
546
626
  if (this === DocumentReader.instance.processParams)
@@ -12,4 +12,10 @@ export class RFIDParams {
12
12
  paIgnoreNotificationCodes: jsonObject["paIgnoreNotificationCodes"]
13
13
  });
14
14
  }
15
+
16
+ toJson() {
17
+ return {
18
+ "paIgnoreNotificationCodes": this.paIgnoreNotificationCodes,
19
+ }
20
+ }
15
21
  }
@@ -50,4 +50,14 @@ export class DTCDataGroup {
50
50
  var rfidScenario = DocumentReader.instance.rfidScenario;
51
51
  if (this === rfidScenario.dtcDataGroups) rfidScenario._set(rfidScenarioJson);
52
52
  }
53
+
54
+ toJson() {
55
+ return {
56
+ "DG17": this.dg17,
57
+ "DG18": this.dg18,
58
+ "DG22": this.dg22,
59
+ "DG23": this.dg23,
60
+ "DG24": this.dg24,
61
+ }
62
+ }
53
63
  }
@@ -113,4 +113,23 @@ export class EDLDataGroups {
113
113
  var rfidScenario = DocumentReader.instance.rfidScenario;
114
114
  if (this === rfidScenario.eDLDataGroups) rfidScenario._set(rfidScenarioJson);
115
115
  }
116
+
117
+ toJson() {
118
+ return {
119
+ "DG1": this.dg1,
120
+ "DG2": this.dg2,
121
+ "DG3": this.dg3,
122
+ "DG4": this.dg4,
123
+ "DG5": this.dg5,
124
+ "DG6": this.dg6,
125
+ "DG7": this.dg7,
126
+ "DG8": this.dg8,
127
+ "DG9": this.dg9,
128
+ "DG10": this.dg10,
129
+ "DG11": this.dg11,
130
+ "DG12": this.dg12,
131
+ "DG13": this.dg13,
132
+ "DG14": this.dg14,
133
+ }
134
+ }
116
135
  }
@@ -162,4 +162,30 @@ export class EIDDataGroups {
162
162
  var rfidScenario = DocumentReader.instance.rfidScenario;
163
163
  if (this === rfidScenario.eIDDataGroups) rfidScenario._set(rfidScenarioJson);
164
164
  }
165
+
166
+ toJson() {
167
+ return {
168
+ "DG1": this.dg1,
169
+ "DG2": this.dg2,
170
+ "DG3": this.dg3,
171
+ "DG4": this.dg4,
172
+ "DG5": this.dg5,
173
+ "DG6": this.dg6,
174
+ "DG7": this.dg7,
175
+ "DG8": this.dg8,
176
+ "DG9": this.dg9,
177
+ "DG10": this.dg10,
178
+ "DG11": this.dg11,
179
+ "DG12": this.dg12,
180
+ "DG13": this.dg13,
181
+ "DG14": this.dg14,
182
+ "DG15": this.dg15,
183
+ "DG16": this.dg16,
184
+ "DG17": this.dg17,
185
+ "DG18": this.dg18,
186
+ "DG19": this.dg19,
187
+ "DG20": this.dg20,
188
+ "DG21": this.dg21,
189
+ }
190
+ }
165
191
  }
@@ -127,4 +127,25 @@ export class EPassportDataGroups {
127
127
  var rfidScenario = DocumentReader.instance.rfidScenario;
128
128
  if (this === rfidScenario.ePassportDataGroups) rfidScenario._set(rfidScenarioJson);
129
129
  }
130
+
131
+ toJson() {
132
+ return {
133
+ "DG1": this.dg1,
134
+ "DG2": this.dg2,
135
+ "DG3": this.dg3,
136
+ "DG4": this.dg4,
137
+ "DG5": this.dg5,
138
+ "DG6": this.dg6,
139
+ "DG7": this.dg7,
140
+ "DG8": this.dg8,
141
+ "DG9": this.dg9,
142
+ "DG10": this.dg10,
143
+ "DG11": this.dg11,
144
+ "DG12": this.dg12,
145
+ "DG13": this.dg13,
146
+ "DG14": this.dg14,
147
+ "DG15": this.dg15,
148
+ "DG16": this.dg16,
149
+ }
150
+ }
130
151
  }
@@ -437,6 +437,73 @@ export class RFIDScenario {
437
437
  return result;
438
438
  }
439
439
 
440
+ toJson() {
441
+ return {
442
+ "paceStaticBinding": this.paceStaticBinding,
443
+ "onlineTA": this.onlineTA,
444
+ "writeEid": this.writeEid,
445
+ "universalAccessRights": this.universalAccessRights,
446
+ "authorizedRestrictedIdentification": this.authorizedRestrictedIdentification,
447
+ "auxVerificationCommunityID": this.auxVerificationCommunityID,
448
+ "auxVerificationDateOfBirth": this.auxVerificationDateOfBirth,
449
+ "skipAA": this.skipAA,
450
+ "strictProcessing": this.strictProcessing,
451
+ "pkdDSCertPriority": this.pkdDSCertPriority,
452
+ "pkdUseExternalCSCA": this.pkdUseExternalCSCA,
453
+ "trustedPKD": this.trustedPKD,
454
+ "passiveAuth": this.passiveAuth,
455
+ "useSFI": this.useSFI,
456
+ "readEPassport": this.readEPassport,
457
+ "readEID": this.readEID,
458
+ "readEDL": this.readEDL,
459
+ "authorizedSTSignature": this.authorizedSTSignature,
460
+ "authorizedSTQSignature": this.authorizedSTQSignature,
461
+ "authorizedWriteDG17": this.authorizedWriteDG17,
462
+ "authorizedWriteDG18": this.authorizedWriteDG18,
463
+ "authorizedWriteDG19": this.authorizedWriteDG19,
464
+ "authorizedWriteDG20": this.authorizedWriteDG20,
465
+ "authorizedWriteDG21": this.authorizedWriteDG21,
466
+ "authorizedVerifyAge": this.authorizedVerifyAge,
467
+ "authorizedVerifyCommunityID": this.authorizedVerifyCommunityID,
468
+ "authorizedPrivilegedTerminal": this.authorizedPrivilegedTerminal,
469
+ "authorizedCANAllowed": this.authorizedCANAllowed,
470
+ "authorizedPINManagement": this.authorizedPINManagement,
471
+ "authorizedInstallCert": this.authorizedInstallCert,
472
+ "authorizedInstallQCert": this.authorizedInstallQCert,
473
+ "applyAmendments": this.applyAmendments,
474
+ "autoSettings": this.autoSettings,
475
+ "proceedReadingAlways": this.proceedReadingAlways,
476
+ "readDTC": this.readDTC,
477
+ "mrzStrictCheck": this.mrzStrictCheck,
478
+ "loadCRLFromRemote": this.loadCRLFromRemote,
479
+ "independentSODStatus": this.independentSODStatus,
480
+ "readingBuffer": this.readingBuffer,
481
+ "onlineTAToSignDataType": this.onlineTAToSignDataType,
482
+ "defaultReadingBufferSize": this.defaultReadingBufferSize,
483
+ "signManagementAction": this.signManagementAction,
484
+ "profilerType": this.profilerType,
485
+ "authProcType": this.authProcType,
486
+ "baseSMProcedure": this.baseSMProcedure,
487
+ "pacePasswordType": this.pacePasswordType,
488
+ "terminalType": this.terminalType,
489
+ "password": this.password,
490
+ "pkdPA": this.pkdPA,
491
+ "pkdEAC": this.pkdEAC,
492
+ "mrz": this.mrz,
493
+ "eSignPINDefault": this.eSignPINDefault,
494
+ "eSignPINNewValue": this.eSignPINNewValue,
495
+ "cardAccess": this.cardAccess,
496
+ "mrzHash": this.mrzHash,
497
+ "documentNumber": this.documentNumber,
498
+ "dateOfBirth": this.dateOfBirth,
499
+ "dateOfExpiry": this.dateOfExpiry,
500
+ "eDLDataGroups": this.eDLDataGroups?.toJson(),
501
+ "ePassportDataGroups": this.ePassportDataGroups?.toJson(),
502
+ "eIDDataGroups": this.eIDDataGroups?.toJson(),
503
+ "dtcDataGroups": this.dtcDataGroups?.toJson(),
504
+ }
505
+ }
506
+
440
507
  _apply() { this._set(this); }
441
508
  _set(json) {
442
509
  if (this === DocumentReader.instance.rfidScenario)
@@ -42,6 +42,27 @@ export class Position {
42
42
 
43
43
  return result;
44
44
  }
45
+
46
+ toJson() {
47
+ return {
48
+ "docFormat": this.docFormat,
49
+ "resultStatus": this.resultStatus,
50
+ "width": this.width,
51
+ "height": this.height,
52
+ "angle": this.angle,
53
+ "dpi": this.dpi,
54
+ "inverse": this.inverse,
55
+ "perspectiveTr": this.perspectiveTr,
56
+ "objArea": this.objArea,
57
+ "objIntAngleDev": this.objIntAngleDev,
58
+ "pageIndex": this.pageIndex,
59
+ "center": this.center?.toJson(),
60
+ "leftTop": this.leftTop?.toJson(),
61
+ "leftBottom": this.leftBottom?.toJson(),
62
+ "rightTop": this.rightTop?.toJson(),
63
+ "rightBottom": this.rightBottom?.toJson(),
64
+ }
65
+ }
45
66
  }
46
67
 
47
68
  export class Coordinate {
@@ -57,4 +78,11 @@ export class Coordinate {
57
78
 
58
79
  return result;
59
80
  }
81
+
82
+ toJson() {
83
+ return {
84
+ "x": this.x,
85
+ "y": this.y,
86
+ }
87
+ }
60
88
  }
@@ -260,6 +260,31 @@ export class Results {
260
260
 
261
261
  return result;
262
262
  }
263
+
264
+ toJson() {
265
+ return {
266
+ "documentType": this.documentType?.map(e => e.toJson()),
267
+ "documentPosition": this.documentPosition?.map(e => e.toJson()),
268
+ "barcodePosition": this.barcodePosition?.map(e => e.toJson()),
269
+ "mrzPosition": this.mrzPosition?.map(e => e.toJson()),
270
+ "imageQuality": this.imageQuality?.map(e => e.toJson()),
271
+ "textResult": this.textResult?.toJson(),
272
+ "graphicResult": this.graphicResult?.toJson(),
273
+ "status": this.status?.toJson(),
274
+ "authenticityResult": this.authenticityResult?.toJson(),
275
+ "rfidSessionData": this.rfidSessionData?.toJson(),
276
+ "barcodeResult": this.barcodeResult?.toJson(),
277
+ "vdsncData": this.vdsncData?.toJson(),
278
+ "dtcData": this.dtcData,
279
+ "chipPage": this.chipPage,
280
+ "processingFinishedStatus": this.processingFinishedStatus,
281
+ "morePagesAvailable": this.morePagesAvailable,
282
+ "elapsedTime": this.elapsedTime,
283
+ "elapsedTimeRFID": this.elapsedTimeRFID,
284
+ "rawResult": this.rawResult,
285
+ "transactionInfo": this.transactionInfo?.toJson(),
286
+ }
287
+ }
263
288
  }
264
289
 
265
290
  export const ProcessingFinishedStatus = {
@@ -13,4 +13,12 @@ export class TransactionInfo {
13
13
 
14
14
  return result
15
15
  }
16
+
17
+ toJson() {
18
+ return {
19
+ "transactionId": this.transactionId,
20
+ "tag": this.tag,
21
+ "sessionLogFolder": this.sessionLogFolder,
22
+ }
23
+ }
16
24
  }
@@ -30,4 +30,14 @@ export class AuthenticityCheck {
30
30
 
31
31
  return result
32
32
  }
33
+
34
+ toJson() {
35
+ return {
36
+ "type": this.type,
37
+ "status": this.status,
38
+ "pageIndex": this.pageIndex,
39
+ "typeName": this.typeName,
40
+ "elements": this.elements?.map(e => e.toJson()),
41
+ }
42
+ }
33
43
  }
@@ -24,4 +24,14 @@ export class AuthenticityElement {
24
24
 
25
25
  return result
26
26
  }
27
+
28
+ toJson() {
29
+ return {
30
+ "status": this.status,
31
+ "elementType": this.elementType,
32
+ "elementDiagnose": this.elementDiagnose,
33
+ "elementTypeName": this.elementTypeName,
34
+ "elementDiagnoseName": this.elementDiagnoseName,
35
+ }
36
+ }
27
37
  }
@@ -23,4 +23,11 @@ export class AuthenticityResult {
23
23
 
24
24
  return result
25
25
  }
26
+
27
+ toJson() {
28
+ return {
29
+ "status": this.status,
30
+ "checks": this.checks?.map(e => e.toJson()),
31
+ }
32
+ }
26
33
  }
@@ -21,4 +21,14 @@ export class BarcodeField {
21
21
 
22
22
  return result;
23
23
  }
24
+
25
+ toJson() {
26
+ return {
27
+ "barcodeType": this.barcodeType,
28
+ "status": this.status,
29
+ "pdf417Info": this.pdf417Info?.toJson(),
30
+ "data": this.data,
31
+ "pageIndex": this.pageIndex,
32
+ }
33
+ }
24
34
  }
@@ -21,4 +21,10 @@ export class BarcodeResult {
21
21
 
22
22
  return result;
23
23
  }
24
+
25
+ toJson() {
26
+ return {
27
+ "fields": this.fields?.map(e => e.toJson()),
28
+ }
29
+ }
24
30
  }
@@ -13,4 +13,12 @@ export class PDF417Info {
13
13
 
14
14
  return result;
15
15
  }
16
+
17
+ toJson() {
18
+ return {
19
+ "errorLevel": this.errorLevel,
20
+ "columns": this.columns,
21
+ "rows": this.rows,
22
+ }
23
+ }
16
24
  }
@@ -28,4 +28,13 @@ export class ImageQuality {
28
28
 
29
29
  return result;
30
30
  }
31
+
32
+ toJson() {
33
+ return {
34
+ "featureType": this.featureType,
35
+ "result": this.result,
36
+ "type": this.type,
37
+ "boundRects": this.boundRects?.map(e => e.toJson()),
38
+ }
39
+ }
31
40
  }
@@ -27,4 +27,13 @@ export class ImageQualityGroup {
27
27
 
28
28
  return result;
29
29
  }
30
+
31
+ toJson() {
32
+ return {
33
+ "count": this.count,
34
+ "result": this.result,
35
+ "pageIndex": this.pageIndex,
36
+ "imageQualityList": this.imageQualityList?.map(e => e.toJson()),
37
+ }
38
+ }
30
39
  }
@@ -18,4 +18,13 @@ export class AccessControlProcedureType {
18
18
 
19
19
  return result;
20
20
  }
21
+
22
+ toJson() {
23
+ return {
24
+ "activeOptionIdx": this.activeOptionIdx,
25
+ "notifications": this.notifications,
26
+ "status": this.status,
27
+ "type": this.type,
28
+ }
29
+ }
21
30
  }
@@ -33,6 +33,18 @@ export class Application {
33
33
 
34
34
  return result;
35
35
  }
36
+
37
+ toJson() {
38
+ return {
39
+ "applicationID": this.applicationID,
40
+ "dataHashAlgorithm": this.dataHashAlgorithm,
41
+ "files": this.files?.map(e => e.toJson()),
42
+ "status": this.status,
43
+ "type": this.type,
44
+ "unicodeVersion": this.unicodeVersion,
45
+ "version": this.version,
46
+ }
47
+ }
36
48
  }
37
49
 
38
50
  export const RFIDApplicationType = {
@@ -13,4 +13,11 @@ export class Attribute {
13
13
 
14
14
  return result;
15
15
  }
16
+
17
+ toJson() {
18
+ return {
19
+ "type": this.type,
20
+ "value": this.value?.toJson(),
21
+ }
22
+ }
16
23
  }