@regulaforensics/document-reader 8.3.272-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
@@ -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
  }
@@ -25,4 +25,12 @@ export class Authority {
25
25
 
26
26
  return result;
27
27
  }
28
+
29
+ toJson() {
30
+ return {
31
+ "attributes": this.attributes?.map(e => e.toJson()),
32
+ "data": this.data,
33
+ "friendlyName": this.friendlyName?.toJson(),
34
+ }
35
+ }
28
36
  }
@@ -35,4 +35,23 @@ export class CardProperties {
35
35
 
36
36
  return result;
37
37
  }
38
+
39
+ toJson() {
40
+ return {
41
+ "aTQA": this.aTQA,
42
+ "bitRateR": this.bitRateR,
43
+ "bitRateS": this.bitRateS,
44
+ "chipTypeA": this.chipTypeA,
45
+ "mifareMemory": this.mifareMemory,
46
+ "rfidType": this.rfidType,
47
+ "sAK": this.sAK,
48
+ "support4": this.support4,
49
+ "supportMifare": this.supportMifare,
50
+ "aTQB": this.aTQB,
51
+ "aTR": this.aTR,
52
+ "baudrate1": this.baudrate1,
53
+ "baudrate2": this.baudrate2,
54
+ "uID": this.uID,
55
+ }
56
+ }
38
57
  }
@@ -48,4 +48,22 @@ export class CertificateChain {
48
48
 
49
49
  return result;
50
50
  }
51
+
52
+ toJson() {
53
+ return {
54
+ "type": this.type,
55
+ "extensions": this.extensions?.map(e => e.toJson()),
56
+ "fileName": this.fileName?.toJson(),
57
+ "issuer": this.issuer?.toJson(),
58
+ "notifications": this.notifications,
59
+ "origin": this.origin,
60
+ "paStatus": this.paStatus,
61
+ "serialNumber": this.serialNumber,
62
+ "signatureAlgorithm": this.signatureAlgorithm,
63
+ "subject": this.subject?.toJson(),
64
+ "subjectPKAlgorithm": this.subjectPKAlgorithm,
65
+ "validity": this.validity?.toJson(),
66
+ "version": this.version,
67
+ }
68
+ }
51
69
  }
@@ -11,4 +11,11 @@ export class CertificateData {
11
11
 
12
12
  return result;
13
13
  }
14
+
15
+ toJson() {
16
+ return {
17
+ "data": this.data,
18
+ "length": this.length,
19
+ }
20
+ }
14
21
  }
@@ -13,4 +13,11 @@ export class DataField {
13
13
 
14
14
  return result;
15
15
  }
16
+
17
+ toJson() {
18
+ return {
19
+ "data": this.data,
20
+ "fieldType": this.fieldType,
21
+ }
22
+ }
16
23
  }
@@ -11,4 +11,11 @@ export class Extension {
11
11
 
12
12
  return result;
13
13
  }
14
+
15
+ toJson() {
16
+ return {
17
+ "data": this.data,
18
+ "type": this.type,
19
+ }
20
+ }
14
21
  }
@@ -36,4 +36,21 @@ export class File {
36
36
 
37
37
  return result;
38
38
  }
39
+
40
+ toJson() {
41
+ return {
42
+ "fileData": this.fileData?.toJson(),
43
+ "fileID": this.fileID,
44
+ "notifications": this.notifications,
45
+ "pAStatus": this.pAStatus,
46
+ "readingStatus": this.readingStatus,
47
+ "readingTime": this.readingTime,
48
+ "type": this.type,
49
+ "typeName": this.typeName,
50
+ "docFieldsText": this.docFieldsText,
51
+ "docFieldsGraphics": this.docFieldsGraphics,
52
+ "docFieldsOriginals": this.docFieldsOriginals,
53
+ "certificates": this.certificates?.toJson(),
54
+ }
55
+ }
39
56
  }
@@ -15,4 +15,13 @@ export class FileData {
15
15
 
16
16
  return result;
17
17
  }
18
+
19
+ toJson() {
20
+ return {
21
+ "data": this.data,
22
+ "length": this.length,
23
+ "type": this.type,
24
+ "status": this.status,
25
+ }
26
+ }
18
27
  }
@@ -73,4 +73,20 @@ export class RFIDSessionData {
73
73
 
74
74
  return result;
75
75
  }
76
+
77
+ toJson() {
78
+ return {
79
+ "cardProperties": this.cardProperties?.toJson(),
80
+ "totalBytesReceived": this.totalBytesReceived,
81
+ "totalBytesSent": this.totalBytesSent,
82
+ "status": this.status,
83
+ "extLeSupport": this.extLeSupport,
84
+ "processTime": this.processTime,
85
+ "accessControls": this.accessControls?.map(e => e.toJson()),
86
+ "applications": this.applications?.map(e => e.toJson()),
87
+ "securityObjects": this.securityObjects?.map(e => e.toJson()),
88
+ "dataFields": this.dataFields?.map(e => e.toJson()),
89
+ "dataGroups": this.dataGroups,
90
+ }
91
+ }
76
92
  }
@@ -13,4 +13,11 @@ export class RFIDValidity {
13
13
 
14
14
  return result;
15
15
  }
16
+
17
+ toJson() {
18
+ return {
19
+ "notAfter": this.notAfter?.toJson(),
20
+ "notBefore": this.notBefore?.toJson(),
21
+ }
22
+ }
16
23
  }
@@ -17,4 +17,14 @@ export class RFIDValue {
17
17
 
18
18
  return result;
19
19
  }
20
+
21
+ toJson() {
22
+ return {
23
+ "data": this.data,
24
+ "length": this.length,
25
+ "status": this.status,
26
+ "type": this.type,
27
+ "format": this.format,
28
+ }
29
+ }
20
30
  }
@@ -28,4 +28,14 @@ export class SecurityObject {
28
28
 
29
29
  return result;
30
30
  }
31
+
32
+ toJson() {
33
+ return {
34
+ "fileReference": this.fileReference,
35
+ "objectType": this.objectType,
36
+ "version": this.version,
37
+ "signerInfos": this.signerInfos?.map(e => e.toJson()),
38
+ "notifications": this.notifications,
39
+ }
40
+ }
31
41
  }
@@ -11,4 +11,10 @@ export class SecurityObjectCertificates {
11
11
 
12
12
  return result;
13
13
  }
14
+
15
+ toJson() {
16
+ return {
17
+ "securityObject": this.securityObject?.toJson(),
18
+ }
19
+ }
14
20
  }
@@ -54,4 +54,21 @@ export class SignerInfo {
54
54
 
55
55
  return result;
56
56
  }
57
+
58
+ toJson() {
59
+ return {
60
+ "dataToHash": this.dataToHash,
61
+ "digestAlgorithm": this.digestAlgorithm,
62
+ "version": this.version,
63
+ "paStatus": this.paStatus,
64
+ "signatureAlgorithm": this.signatureAlgorithm,
65
+ "issuer": this.issuer?.toJson(),
66
+ "serialNumber": this.serialNumber?.toJson(),
67
+ "signature": this.signature?.toJson(),
68
+ "subjectKeyIdentifier": this.subjectKeyIdentifier?.toJson(),
69
+ "signedAttributes": this.signedAttributes?.map(e => e.toJson()),
70
+ "certificateChain": this.certificateChain?.map(e => e.toJson()),
71
+ "notifications": this.notifications,
72
+ }
73
+ }
57
74
  }
@@ -27,4 +27,18 @@ export class OpticalStatus {
27
27
 
28
28
  return result;
29
29
  }
30
+
31
+ toJson() {
32
+ return {
33
+ "overallStatus": this.overallStatus,
34
+ "mrz": this.mrz,
35
+ "text": this.text,
36
+ "docType": this.docType,
37
+ "security": this.security,
38
+ "imageQA": this.imageQA,
39
+ "expiry": this.expiry,
40
+ "vds": this.vds,
41
+ "pagesCount": this.pagesCount,
42
+ }
43
+ }
30
44
  }
@@ -23,4 +23,16 @@ export class RFIDStatus {
23
23
 
24
24
  return result;
25
25
  }
26
+
27
+ toJson() {
28
+ return {
29
+ "overallStatus": this.overallStatus,
30
+ "pa": this.pa,
31
+ "ca": this.ca,
32
+ "aa": this.aa,
33
+ "ta": this.ta,
34
+ "bac": this.bac,
35
+ "pace": this.pace,
36
+ }
37
+ }
26
38
  }