@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.
- package/RNDocumentReader.podspec +1 -1
- package/examples/capacitor/package.json +1 -1
- package/examples/ionic/package.json +1 -1
- package/examples/react_native/package.json +1 -1
- package/package.json +1 -1
- package/plugin.xml +1 -1
- package/test/json.tsx +92 -92
- package/test/package-lock.json +1 -1
- package/test/package.json +0 -3
- package/test/test.tsx +87 -87
- package/test/utils.tsx +29 -25
- package/www/capacitor/config/OnlineProcessingConfig.js +11 -0
- package/www/capacitor/config/RecognizeConfig.js +23 -0
- package/www/capacitor/config/ScannerConfig.js +10 -0
- package/www/capacitor/info/DocReaderException.js +7 -0
- package/www/capacitor/info/DocReaderScenario.js +18 -0
- package/www/capacitor/info/DocReaderVersion.js +9 -0
- package/www/capacitor/info/DocumentsDatabase.js +12 -0
- package/www/capacitor/info/License.js +8 -0
- package/www/capacitor/info/PrepareProgress.js +8 -0
- package/www/capacitor/info/RFIDException.js +7 -0
- package/www/capacitor/params/Functionality.js +44 -0
- package/www/capacitor/params/customization/Customization.js +76 -0
- package/www/capacitor/params/customization/CustomizationColors.js +13 -0
- package/www/capacitor/params/customization/CustomizationFonts.js +8 -0
- package/www/capacitor/params/customization/CustomizationImages.js +6 -0
- package/www/capacitor/params/customization/Font.js +8 -0
- package/www/capacitor/params/process_params/AuthenticityParams.js +21 -0
- package/www/capacitor/params/process_params/BackendProcessingConfig.js +9 -0
- package/www/capacitor/params/process_params/FaceApiParams.js +13 -0
- package/www/capacitor/params/process_params/FaceApiSearchParams.js +8 -0
- package/www/capacitor/params/process_params/GlaresCheckParams.js +7 -0
- package/www/capacitor/params/process_params/ImageQA.js +16 -0
- package/www/capacitor/params/process_params/LivenessParams.js +12 -0
- package/www/capacitor/params/process_params/ProcessParams.js +82 -2
- package/www/capacitor/params/process_params/RfidParams.js +6 -0
- package/www/capacitor/params/rfid_scenario/DTCDataGroup.js +10 -0
- package/www/capacitor/params/rfid_scenario/EDLDataGroups.js +19 -0
- package/www/capacitor/params/rfid_scenario/EIDDataGroups.js +26 -0
- package/www/capacitor/params/rfid_scenario/EPassportDataGroups.js +21 -0
- package/www/capacitor/params/rfid_scenario/RFIDScenario.js +67 -0
- package/www/capacitor/results/Position.js +28 -0
- package/www/capacitor/results/Results.js +25 -0
- package/www/capacitor/results/TransactionInfo.js +8 -0
- package/www/capacitor/results/authenticity/AuthenticityCheck.js +10 -0
- package/www/capacitor/results/authenticity/AuthenticityElement.js +10 -0
- package/www/capacitor/results/authenticity/AuthenticityResult.js +7 -0
- package/www/capacitor/results/barcode/BarcodeField.js +10 -0
- package/www/capacitor/results/barcode/BarcodeResult.js +6 -0
- package/www/capacitor/results/barcode/PDF417Info.js +8 -0
- package/www/capacitor/results/image_quality/ImageQuality.js +9 -0
- package/www/capacitor/results/image_quality/ImageQualityGroup.js +9 -0
- package/www/capacitor/results/rfid/AccessControlProcedureType.js +9 -0
- package/www/capacitor/results/rfid/Application.js +12 -0
- package/www/capacitor/results/rfid/Attribute.js +7 -0
- package/www/capacitor/results/rfid/Authority.js +8 -0
- package/www/capacitor/results/rfid/CardProperties.js +19 -0
- package/www/capacitor/results/rfid/CertificateChain.js +18 -0
- package/www/capacitor/results/rfid/CertificateData.js +7 -0
- package/www/capacitor/results/rfid/DataField.js +7 -0
- package/www/capacitor/results/rfid/Extension.js +7 -0
- package/www/capacitor/results/rfid/File.js +17 -0
- package/www/capacitor/results/rfid/FileData.js +9 -0
- package/www/capacitor/results/rfid/RFIDSessionData.js +16 -0
- package/www/capacitor/results/rfid/RFIDValidity.js +7 -0
- package/www/capacitor/results/rfid/RFIDValue.js +10 -0
- package/www/capacitor/results/rfid/SecurityObject.js +10 -0
- package/www/capacitor/results/rfid/SecurityObjectCertificates.js +6 -0
- package/www/capacitor/results/rfid/SignerInfo.js +17 -0
- package/www/capacitor/results/status/OpticalStatus.js +14 -0
- package/www/capacitor/results/status/RFIDStatus.js +12 -0
- package/www/capacitor/results/status/ResultsStatus.js +12 -0
- package/www/capacitor/results/visible_digital_seals/BytesData.js +9 -0
- package/www/capacitor/results/visible_digital_seals/VDSNCData.js +14 -0
- package/www/capacitor/results/visual_results/Comparison.js +8 -0
- package/www/capacitor/results/visual_results/GraphicField.js +14 -0
- package/www/capacitor/results/visual_results/GraphicResult.js +6 -0
- package/www/capacitor/results/visual_results/RFIDOrigin.js +9 -0
- package/www/capacitor/results/visual_results/Rect.js +9 -0
- package/www/capacitor/results/visual_results/Symbol.js +8 -0
- package/www/capacitor/results/visual_results/TextField.js +17 -0
- package/www/capacitor/results/visual_results/TextResult.js +10 -0
- package/www/capacitor/results/visual_results/TextSource.js +8 -0
- package/www/capacitor/results/visual_results/Validity.js +7 -0
- package/www/capacitor/results/visual_results/Value.js +13 -0
- package/www/capacitor/rfid/PAAttribute.js +7 -0
- package/www/capacitor/rfid/PAResourcesIssuer.js +8 -0
- package/www/capacitor/rfid/PKDCertificate.js +8 -0
- package/www/capacitor/rfid/RFIDNotification.js +8 -0
- package/www/capacitor/rfid/TAChallenge.js +10 -0
- package/www/capacitor/rfid/TccParams.js +10 -0
- package/www/cordova.js +1122 -2
- package/www/react-native/config/OnlineProcessingConfig.js +11 -0
- package/www/react-native/config/RecognizeConfig.js +23 -0
- package/www/react-native/config/ScannerConfig.js +10 -0
- package/www/react-native/info/DocReaderException.js +7 -0
- package/www/react-native/info/DocReaderScenario.js +18 -0
- package/www/react-native/info/DocReaderVersion.js +9 -0
- package/www/react-native/info/DocumentsDatabase.js +12 -0
- package/www/react-native/info/License.js +8 -0
- package/www/react-native/info/PrepareProgress.js +8 -0
- package/www/react-native/info/RFIDException.js +7 -0
- package/www/react-native/params/Functionality.js +44 -0
- package/www/react-native/params/customization/Customization.js +76 -0
- package/www/react-native/params/customization/CustomizationColors.js +13 -0
- package/www/react-native/params/customization/CustomizationFonts.js +8 -0
- package/www/react-native/params/customization/CustomizationImages.js +6 -0
- package/www/react-native/params/customization/Font.js +8 -0
- package/www/react-native/params/process_params/AuthenticityParams.js +21 -0
- package/www/react-native/params/process_params/BackendProcessingConfig.js +9 -0
- package/www/react-native/params/process_params/FaceApiParams.js +13 -0
- package/www/react-native/params/process_params/FaceApiSearchParams.js +8 -0
- package/www/react-native/params/process_params/GlaresCheckParams.js +7 -0
- package/www/react-native/params/process_params/ImageQA.js +16 -0
- package/www/react-native/params/process_params/LivenessParams.js +12 -0
- package/www/react-native/params/process_params/ProcessParams.js +82 -2
- package/www/react-native/params/process_params/RfidParams.js +6 -0
- package/www/react-native/params/rfid_scenario/DTCDataGroup.js +10 -0
- package/www/react-native/params/rfid_scenario/EDLDataGroups.js +19 -0
- package/www/react-native/params/rfid_scenario/EIDDataGroups.js +26 -0
- package/www/react-native/params/rfid_scenario/EPassportDataGroups.js +21 -0
- package/www/react-native/params/rfid_scenario/RFIDScenario.js +67 -0
- package/www/react-native/results/Position.js +28 -0
- package/www/react-native/results/Results.js +25 -0
- package/www/react-native/results/TransactionInfo.js +8 -0
- package/www/react-native/results/authenticity/AuthenticityCheck.js +10 -0
- package/www/react-native/results/authenticity/AuthenticityElement.js +10 -0
- package/www/react-native/results/authenticity/AuthenticityResult.js +7 -0
- package/www/react-native/results/barcode/BarcodeField.js +10 -0
- package/www/react-native/results/barcode/BarcodeResult.js +6 -0
- package/www/react-native/results/barcode/PDF417Info.js +8 -0
- package/www/react-native/results/image_quality/ImageQuality.js +9 -0
- package/www/react-native/results/image_quality/ImageQualityGroup.js +9 -0
- package/www/react-native/results/rfid/AccessControlProcedureType.js +9 -0
- package/www/react-native/results/rfid/Application.js +12 -0
- package/www/react-native/results/rfid/Attribute.js +7 -0
- package/www/react-native/results/rfid/Authority.js +8 -0
- package/www/react-native/results/rfid/CardProperties.js +19 -0
- package/www/react-native/results/rfid/CertificateChain.js +18 -0
- package/www/react-native/results/rfid/CertificateData.js +7 -0
- package/www/react-native/results/rfid/DataField.js +7 -0
- package/www/react-native/results/rfid/Extension.js +7 -0
- package/www/react-native/results/rfid/File.js +17 -0
- package/www/react-native/results/rfid/FileData.js +9 -0
- package/www/react-native/results/rfid/RFIDSessionData.js +16 -0
- package/www/react-native/results/rfid/RFIDValidity.js +7 -0
- package/www/react-native/results/rfid/RFIDValue.js +10 -0
- package/www/react-native/results/rfid/SecurityObject.js +10 -0
- package/www/react-native/results/rfid/SecurityObjectCertificates.js +6 -0
- package/www/react-native/results/rfid/SignerInfo.js +17 -0
- package/www/react-native/results/status/OpticalStatus.js +14 -0
- package/www/react-native/results/status/RFIDStatus.js +12 -0
- package/www/react-native/results/status/ResultsStatus.js +12 -0
- package/www/react-native/results/visible_digital_seals/BytesData.js +9 -0
- package/www/react-native/results/visible_digital_seals/VDSNCData.js +14 -0
- package/www/react-native/results/visual_results/Comparison.js +8 -0
- package/www/react-native/results/visual_results/GraphicField.js +14 -0
- package/www/react-native/results/visual_results/GraphicResult.js +6 -0
- package/www/react-native/results/visual_results/RFIDOrigin.js +9 -0
- package/www/react-native/results/visual_results/Rect.js +9 -0
- package/www/react-native/results/visual_results/Symbol.js +8 -0
- package/www/react-native/results/visual_results/TextField.js +17 -0
- package/www/react-native/results/visual_results/TextResult.js +10 -0
- package/www/react-native/results/visual_results/TextSource.js +8 -0
- package/www/react-native/results/visual_results/Validity.js +7 -0
- package/www/react-native/results/visual_results/Value.js +13 -0
- package/www/react-native/rfid/PAAttribute.js +7 -0
- package/www/react-native/rfid/PAResourcesIssuer.js +8 -0
- package/www/react-native/rfid/PKDCertificate.js +8 -0
- package/www/react-native/rfid/RFIDNotification.js +8 -0
- package/www/react-native/rfid/TAChallenge.js +10 -0
- 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 = {
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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 = {
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|