@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
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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 = {
|
|
@@ -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
|
}
|