@regulaforensics/document-reader 8.3.273-beta → 8.3.276-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 -1
  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
@@ -25,4 +25,16 @@ export class ResultsStatus {
25
25
 
26
26
  return result;
27
27
  }
28
+
29
+ toJson() {
30
+ return {
31
+ "overallStatus": this.overallStatus,
32
+ "optical": this.optical,
33
+ "rfid": this.rfid,
34
+ "portrait": this.portrait,
35
+ "stopList": this.stopList,
36
+ "detailsOptical": this.detailsOptical?.toJson(),
37
+ "detailsRFID": this.detailsRFID?.toJson(),
38
+ }
39
+ }
28
40
  }
@@ -15,4 +15,13 @@ export class BytesData {
15
15
 
16
16
  return result;
17
17
  }
18
+
19
+ toJson() {
20
+ return {
21
+ "data": this.data,
22
+ "length": this.length,
23
+ "status": this.status,
24
+ "type": this.type,
25
+ }
26
+ }
18
27
  }
@@ -37,4 +37,18 @@ export class VDSNCData {
37
37
 
38
38
  return result;
39
39
  }
40
+
41
+ toJson() {
42
+ return {
43
+ "type": this.type,
44
+ "version": this.version,
45
+ "issuingCountry": this.issuingCountry,
46
+ "message": this.message,
47
+ "signatureAlgorithm": this.signatureAlgorithm,
48
+ "signature": this.signature?.toJson(),
49
+ "certificate": this.certificate?.toJson(),
50
+ "certificateChain": this.certificateChain?.map(e => e.toJson()),
51
+ "notifications": this.notifications,
52
+ }
53
+ }
40
54
  }
@@ -16,4 +16,12 @@ export class Comparison {
16
16
 
17
17
  return result;
18
18
  }
19
+
20
+ toJson() {
21
+ return {
22
+ "sourceTypeLeft": this.sourceTypeLeft,
23
+ "sourceTypeRight": this.sourceTypeRight,
24
+ "status": this.status,
25
+ }
26
+ }
19
27
  }
@@ -30,4 +30,18 @@ export class GraphicField {
30
30
 
31
31
  return result;
32
32
  }
33
+
34
+ toJson() {
35
+ return {
36
+ "sourceType": this.sourceType,
37
+ "fieldType": this.fieldType,
38
+ "fieldName": this.fieldName,
39
+ "light": this.light,
40
+ "lightName": this.lightName,
41
+ "pageIndex": this.pageIndex,
42
+ "originalPageIndex": this.originalPageIndex,
43
+ "value": this.value,
44
+ "fieldRect": this.fieldRect?.toJson(),
45
+ }
46
+ }
33
47
  }
@@ -19,4 +19,10 @@ export class GraphicResult {
19
19
 
20
20
  return result;
21
21
  }
22
+
23
+ toJson() {
24
+ return {
25
+ "fields": this.fields?.map(e => e.toJson()),
26
+ }
27
+ }
22
28
  }
@@ -15,4 +15,13 @@ export class RFIDOrigin {
15
15
 
16
16
  return result;
17
17
  }
18
+
19
+ toJson() {
20
+ return {
21
+ "dg": this.dg,
22
+ "dgTag": this.dgTag,
23
+ "entryView": this.entryView,
24
+ "tagEntry": this.tagEntry,
25
+ }
26
+ }
18
27
  }
@@ -15,4 +15,13 @@ export class Rect {
15
15
 
16
16
  return result;
17
17
  }
18
+
19
+ toJson() {
20
+ return {
21
+ "bottom": this.bottom,
22
+ "top": this.top,
23
+ "left": this.left,
24
+ "right": this.right,
25
+ }
26
+ }
18
27
  }
@@ -15,4 +15,12 @@ export class Symbol {
15
15
 
16
16
  return result;
17
17
  }
18
+
19
+ toJson() {
20
+ return {
21
+ "rect": this.rect?.toJson(),
22
+ "code": this.code,
23
+ "probability": this.probability,
24
+ }
25
+ }
18
26
  }
@@ -65,4 +65,21 @@ export class TextField {
65
65
 
66
66
  return result;
67
67
  }
68
+
69
+ toJson() {
70
+ return {
71
+ "fieldType": this.fieldType,
72
+ "fieldName": this.fieldName,
73
+ "lcid": this.lcid,
74
+ "lcidName": this.lcidName,
75
+ "value": this.value,
76
+ "getValue": this.getValue?.toJson(),
77
+ "values": this.values?.map(e => e.toJson()),
78
+ "status": this.status,
79
+ "comparisonList": this.comparisonList?.map(e => e.toJson()),
80
+ "validityList": this.validityList?.map(e => e.toJson()),
81
+ "comparisonStatus": this.comparisonStatus,
82
+ "validityStatus": this.validityStatus,
83
+ }
84
+ }
68
85
  }
@@ -39,4 +39,14 @@ export class TextResult {
39
39
 
40
40
  return result;
41
41
  }
42
+
43
+ toJson() {
44
+ return {
45
+ "status": this.status,
46
+ "comparisonStatus": this.comparisonStatus,
47
+ "validityStatus": this.validityStatus,
48
+ "availableSourceList": this.availableSourceList?.map(e => e.toJson()),
49
+ "fields": this.fields?.map(e => e.toJson()),
50
+ }
51
+ }
42
52
  }
@@ -16,4 +16,12 @@ export class TextSource {
16
16
 
17
17
  return result;
18
18
  }
19
+
20
+ toJson() {
21
+ return {
22
+ "sourceType": this.sourceType,
23
+ "source": this.source,
24
+ "validityStatus": this.validityStatus,
25
+ }
26
+ }
19
27
  }
@@ -14,4 +14,11 @@ export class Validity {
14
14
 
15
15
  return result;
16
16
  }
17
+
18
+ toJson() {
19
+ return {
20
+ "sourceType": this.sourceType,
21
+ "status": this.status,
22
+ }
23
+ }
17
24
  }
@@ -36,4 +36,17 @@ export class Value {
36
36
 
37
37
  return result;
38
38
  }
39
+
40
+ toJson() {
41
+ return {
42
+ "sourceType": this.sourceType,
43
+ "value": this.value,
44
+ "originalValue": this.originalValue,
45
+ "pageIndex": this.pageIndex,
46
+ "boundRect": this.boundRect?.toJson(),
47
+ "rfidOrigin": this.rfidOrigin?.toJson(),
48
+ "originalSymbols": this.originalSymbols?.map(e => e.toJson()),
49
+ "probability": this.probability,
50
+ }
51
+ }
39
52
  }
@@ -14,4 +14,11 @@ export class PAAttribute {
14
14
 
15
15
  return result
16
16
  }
17
+
18
+ toJson() {
19
+ return {
20
+ "type": this.type,
21
+ "value": this.value,
22
+ }
23
+ }
17
24
  }
@@ -24,4 +24,12 @@ export class PAResourcesIssuer {
24
24
 
25
25
  return result
26
26
  }
27
+
28
+ toJson() {
29
+ return {
30
+ "data": this.data,
31
+ "friendlyName": this.friendlyName,
32
+ "attributes": this.attributes?.map(e => e.toJson()),
33
+ }
34
+ }
27
35
  }
@@ -17,6 +17,14 @@ export class PKDCertificate {
17
17
  { privateKey: jsonObject["privateKey"] }
18
18
  )
19
19
  }
20
+
21
+ toJson() {
22
+ return {
23
+ "binaryData": this.binaryData,
24
+ "resourceType": this.resourceType,
25
+ "privateKey": this.privateKey,
26
+ }
27
+ }
20
28
  }
21
29
 
22
30
  export const PKDResourceType = {
@@ -18,6 +18,14 @@ export class RFIDNotification {
18
18
 
19
19
  return result
20
20
  }
21
+
22
+ toJson() {
23
+ return {
24
+ "notificationCode": this.notificationCode,
25
+ "dataFileType": this.dataFileType,
26
+ "progress": this.progress,
27
+ }
28
+ }
21
29
  }
22
30
 
23
31
  export const RFIDNotificationCodes = {
@@ -20,4 +20,14 @@ export class TAChallenge {
20
20
 
21
21
  return result
22
22
  }
23
+
24
+ toJson() {
25
+ return {
26
+ "data": this.data,
27
+ "auxPCD": this.auxPCD,
28
+ "challengePICC": this.challengePICC,
29
+ "hashPK": this.hashPK,
30
+ "idPICC": this.idPICC,
31
+ }
32
+ }
23
33
  }
@@ -21,4 +21,14 @@ export class TccParams {
21
21
 
22
22
  return result
23
23
  }
24
+
25
+ toJson() {
26
+ return {
27
+ "serviceUrlTA": this.serviceUrlTA,
28
+ "serviceUrlPA": this.serviceUrlPA,
29
+ "pfxCertUrl": this.pfxCertUrl,
30
+ "pfxPassPhrase": this.pfxPassPhrase,
31
+ "pfxCert": this.pfxCert,
32
+ }
33
+ }
24
34
  }