@regulaforensics/cordova-plugin-document-reader-api 6.5.0 → 6.6.0

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.
@@ -140,6 +140,11 @@ class DocumentReaderValue {
140
140
  if (jsonObject["comparison"] != null)
141
141
  for (const i in jsonObject["comparison"])
142
142
  result.comparison[i] = jsonObject["comparison"][i]
143
+ result.originalSymbols = []
144
+ if (jsonObject["originalSymbols"] != null)
145
+ for (const i in jsonObject["originalSymbols"])
146
+ result.originalSymbols.push(DocumentReaderSymbol.fromJson(jsonObject["originalSymbols"][i]))
147
+ result.rfidOrigin = DocumentReaderRfidOrigin.fromJson(jsonObject["rfidOrigin"])
143
148
 
144
149
  return result
145
150
  }
@@ -155,11 +160,20 @@ class DocumentReaderTextField {
155
160
  result.status = jsonObject["status"]
156
161
  result.lcidName = jsonObject["lcidName"]
157
162
  result.fieldName = jsonObject["fieldName"]
158
- result.value = DocumentReaderValue.fromJson(jsonObject["value"])
163
+ result.value = jsonObject["value"]
164
+ result.getValue = DocumentReaderValue.fromJson(jsonObject["getValue"])
159
165
  result.values = []
160
166
  if (jsonObject["values"] != null)
161
167
  for (const i in jsonObject["values"])
162
168
  result.values.push(DocumentReaderValue.fromJson(jsonObject["values"][i]))
169
+ result.comparisonList = []
170
+ if (jsonObject["comparisonList"] != null)
171
+ for (const i in jsonObject["comparisonList"])
172
+ result.comparisonList.push(DocumentReaderComparison.fromJson(jsonObject["comparisonList"][i]))
173
+ result.validityList = []
174
+ if (jsonObject["validityList"] != null)
175
+ for (const i in jsonObject["validityList"])
176
+ result.validityList.push(DocumentReaderValidity.fromJson(jsonObject["validityList"][i]))
163
177
 
164
178
  return result
165
179
  }
@@ -171,6 +185,12 @@ class DocumentReaderTextResult {
171
185
  const result = new DocumentReaderTextResult()
172
186
 
173
187
  result.status = jsonObject["status"]
188
+ result.comparisonStatus = jsonObject["comparisonStatus"]
189
+ result.validityStatus = jsonObject["validityStatus"]
190
+ result.availableSourceList = []
191
+ if (jsonObject["availableSourceList"] != null)
192
+ for (const i in jsonObject["availableSourceList"])
193
+ result.availableSourceList.push(DocumentReaderTextSource.fromJson(jsonObject["availableSourceList"][i]))
174
194
  result.fields = []
175
195
  if (jsonObject["fields"] != null)
176
196
  for (const i in jsonObject["fields"])
@@ -716,46 +736,7 @@ class DocumentReaderException {
716
736
  const result = new DocumentReaderException()
717
737
 
718
738
  result.errorCode = jsonObject["errorCode"]
719
- result.localizedMessage = jsonObject["localizedMessage"]
720
739
  result.message = jsonObject["message"]
721
- result.string = jsonObject["string"]
722
- result.stackTrace = []
723
- if (jsonObject["stackTrace"] != null)
724
- for (const i in jsonObject["stackTrace"])
725
- result.stackTrace.push(StackTraceElement.fromJson(jsonObject["stackTrace"][i]))
726
-
727
- return result
728
- }
729
- }
730
-
731
- class Throwable {
732
- static fromJson(jsonObject) {
733
- if (jsonObject == null) return null
734
- const result = new Throwable()
735
-
736
- result.localizedMessage = jsonObject["localizedMessage"]
737
- result.message = jsonObject["message"]
738
- result.string = jsonObject["string"]
739
- result.stackTrace = []
740
- if (jsonObject["stackTrace"] != null)
741
- for (const i in jsonObject["stackTrace"])
742
- result.stackTrace.push(StackTraceElement.fromJson(jsonObject["stackTrace"][i]))
743
-
744
- return result
745
- }
746
- }
747
-
748
- class StackTraceElement {
749
- static fromJson(jsonObject) {
750
- if (jsonObject == null) return null
751
- const result = new StackTraceElement()
752
-
753
- result.lineNumber = jsonObject["lineNumber"]
754
- result.isNativeMethod = jsonObject["isNativeMethod"]
755
- result.className = jsonObject["className"]
756
- result.fileName = jsonObject["fileName"]
757
- result.methodName = jsonObject["methodName"]
758
- result.string = jsonObject["string"]
759
740
 
760
741
  return result
761
742
  }
@@ -928,43 +909,6 @@ class BytesData {
928
909
  }
929
910
  }
930
911
 
931
- class DocumentReaderUvFiberElement {
932
- static fromJson(jsonObject) {
933
- if (jsonObject == null) return null
934
- const result = new DocumentReaderUvFiberElement()
935
-
936
- result.rectArray = []
937
- if (jsonObject["rectArray"] != null)
938
- for (const i in jsonObject["rectArray"])
939
- result.rectArray.push(DocReaderFieldRect.fromJson(jsonObject["rectArray"][i]))
940
- result.rectCount = jsonObject["rectCount"]
941
- result.expectedCount = jsonObject["expectedCount"]
942
- result.width = []
943
- if (jsonObject["width"] != null)
944
- for (const i in jsonObject["width"])
945
- result.width.push(jsonObject["width"][i])
946
- result.length = []
947
- if (jsonObject["length"] != null)
948
- for (const i in jsonObject["length"])
949
- result.length.push(jsonObject["length"][i])
950
- result.area = []
951
- if (jsonObject["area"] != null)
952
- for (const i in jsonObject["area"])
953
- result.area.push(jsonObject["area"][i])
954
- result.colorValues = []
955
- if (jsonObject["colorValues"] != null)
956
- for (const i in jsonObject["colorValues"])
957
- result.colorValues.push(jsonObject["colorValues"][i])
958
- result.status = jsonObject["status"]
959
- result.elementType = jsonObject["elementType"]
960
- result.elementDiagnose = jsonObject["elementDiagnose"]
961
- result.elementTypeName = jsonObject["elementTypeName"]
962
- result.elementDiagnoseName = jsonObject["elementDiagnoseName"]
963
-
964
- return result
965
- }
966
- }
967
-
968
912
  class ImageInputData {
969
913
  static fromJson(jsonObject) {
970
914
  if (jsonObject == null) return null
@@ -985,6 +929,87 @@ class ImageInputData {
985
929
  }
986
930
  }
987
931
 
932
+ class DocReaderDocumentsDatabase {
933
+ static fromJson(jsonObject) {
934
+ if (jsonObject == null) return null
935
+ const result = new DocReaderDocumentsDatabase()
936
+
937
+ result.databaseID = jsonObject["databaseID"]
938
+ result.version = jsonObject["version"]
939
+ result.date = jsonObject["date"]
940
+ result.databaseDescription = jsonObject["databaseDescription"]
941
+ result.countriesNumber = jsonObject["countriesNumber"]
942
+ result.documentsNumber = jsonObject["documentsNumber"]
943
+
944
+ return result
945
+ }
946
+ }
947
+
948
+ class DocumentReaderComparison {
949
+ static fromJson(jsonObject) {
950
+ if (jsonObject == null) return null
951
+ const result = new DocumentReaderComparison()
952
+
953
+ result.sourceTypeLeft = jsonObject["sourceTypeLeft"]
954
+ result.sourceTypeRight = jsonObject["sourceTypeRight"]
955
+ result.status = jsonObject["status"]
956
+
957
+ return result
958
+ }
959
+ }
960
+
961
+ class DocumentReaderRfidOrigin {
962
+ static fromJson(jsonObject) {
963
+ if (jsonObject == null) return null
964
+ const result = new DocumentReaderRfidOrigin()
965
+
966
+ result.dg = jsonObject["dg"]
967
+ result.dgTag = jsonObject["dgTag"]
968
+ result.entryView = jsonObject["entryView"]
969
+ result.tagEntry = jsonObject["tagEntry"]
970
+
971
+ return result
972
+ }
973
+ }
974
+
975
+ class DocumentReaderTextSource {
976
+ static fromJson(jsonObject) {
977
+ if (jsonObject == null) return null
978
+ const result = new DocumentReaderTextSource()
979
+
980
+ result.sourceType = jsonObject["sourceType"]
981
+ result.source = jsonObject["source"]
982
+ result.validityStatus = jsonObject["validityStatus"]
983
+
984
+ return result
985
+ }
986
+ }
987
+
988
+ class DocumentReaderSymbol {
989
+ static fromJson(jsonObject) {
990
+ if (jsonObject == null) return null
991
+ const result = new DocumentReaderSymbol()
992
+
993
+ result.code = jsonObject["code"]
994
+ result.rect = Rect.fromJson(jsonObject["rect"])
995
+ result.probability = jsonObject["probability"]
996
+
997
+ return result
998
+ }
999
+ }
1000
+
1001
+ class DocumentReaderValidity {
1002
+ static fromJson(jsonObject) {
1003
+ if (jsonObject == null) return null
1004
+ const result = new DocumentReaderValidity()
1005
+
1006
+ result.sourceType = jsonObject["sourceType"]
1007
+ result.status = jsonObject["status"]
1008
+
1009
+ return result
1010
+ }
1011
+ }
1012
+
988
1013
  class DocumentReaderResults {
989
1014
  getTextFieldValueByType({ fieldType, lcid = 0, source = -1, original = false }) {
990
1015
  if (this.textResult == null) return null
@@ -1200,6 +1225,7 @@ const eRPRM_Authenticity = {
1200
1225
  BARCODE_FORMAT_CHECK: 65536,
1201
1226
  KINEGRAM: 131072,
1202
1227
  HOLOGRAMS_DETECTION: 524288,
1228
+ MRZ: 8388608,
1203
1229
  }
1204
1230
 
1205
1231
  const eRFID_ErrorCodes = {
@@ -2269,6 +2295,7 @@ const eCheckDiagnose = {
2269
2295
  FALSE_IPI_PARAMETERS: 65,
2270
2296
  FIELD_POS_CORRECTOR_HIGHLIGHT_IR: 80,
2271
2297
  FIELD_POS_CORRECTOR_GLARES_IN_PHOTO_AREA: 81,
2298
+ FIELD_POS_CORRECTOR_PHOTO_REPLACED: 82,
2272
2299
  OVI_IR_INVISIBLE: 90,
2273
2300
  OVI_INSUFFICIENT_AREA: 91,
2274
2301
  OVI_COLOR_INVARIABLE: 92,
@@ -2321,7 +2348,9 @@ const eCheckDiagnose = {
2321
2348
  FINISHED_BY_TIMEOUT: 186,
2322
2349
  HOLO_PHOTO_DOCUMENT_OUTSIDE_FRAME: 187,
2323
2350
  LIVENESS_DEPTH_CHECK_FAILED: 190,
2324
- LAST_DIAGNOSE_VALUE: 200,
2351
+ MRZ_QUALITY_WRONG_MRZ_DPI: 200,
2352
+ MRZ_QUALITY_WRONG_BACKGROUND: 201,
2353
+ LAST_DIAGNOSE_VALUE: 210,
2325
2354
  }
2326
2355
 
2327
2356
  const RFIDDelegate = {
@@ -6154,6 +6183,10 @@ const Enum = {
6154
6183
  const DocumentReader = {}
6155
6184
 
6156
6185
  DocumentReader.initializeReaderAutomatically = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["initializeReaderAutomatically"])
6186
+ DocumentReader.isBlePermissionsGranted = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["isBlePermissionsGranted"])
6187
+ DocumentReader.startBluetoothService = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["startBluetoothService"])
6188
+ DocumentReader.initializeReaderBleDeviceConfig = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["initializeReaderBleDeviceConfig"])
6189
+ DocumentReader.getTag = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getTag"])
6157
6190
  DocumentReader.getAPIVersion = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getAPIVersion"])
6158
6191
  DocumentReader.getAvailableScenarios = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getAvailableScenarios"])
6159
6192
  DocumentReader.isRFIDAvailableForUse = (successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["isRFIDAvailableForUse"])
@@ -6194,6 +6227,8 @@ DocumentReader.setRfidDelegate = (delegate, successCallback, errorCallback) => c
6194
6227
  DocumentReader.setEnableCoreLogs = (logs, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["setEnableCoreLogs", logs])
6195
6228
  DocumentReader.addPKDCertificates = (certificates, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["addPKDCertificates", certificates])
6196
6229
  DocumentReader.setCameraSessionIsPaused = (paused, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["setCameraSessionIsPaused", paused])
6230
+ DocumentReader.setTag = (tag, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["setTag", tag])
6231
+ DocumentReader.checkDatabaseUpdate = (databaseId, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["checkDatabaseUpdate", databaseId])
6197
6232
  DocumentReader.getScenario = (scenario, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["getScenario", scenario])
6198
6233
  DocumentReader.recognizeImages = (images, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["recognizeImages", images])
6199
6234
  DocumentReader.showScannerWithCameraID = (cameraID, successCallback, errorCallback) => cordova.exec(successCallback, errorCallback, "DocumentReader", "exec", ["showScannerWithCameraID", cameraID])
package/tmp.64209.json DELETED
@@ -1,30 +0,0 @@
1
- {
2
- "name": "@regulaforensics/cordova-plugin-document-reader-api-beta",
3
- "version": "0.0.136",
4
- "description": "Cordova plugin for reading and validation of identification documents (API framework)",
5
- "cordova": {
6
- "id": "@regulaforensics/cordova-plugin-document-reader-api-beta",
7
- "platforms": [
8
- "ios",
9
- "android"
10
- ]
11
- },
12
- "max_body_size": "1000mb",
13
- "keywords": [
14
- "cordova",
15
- "documentreader",
16
- "reader",
17
- "scanner",
18
- "regula"
19
- ],
20
- "author": "RegulaForensics",
21
- "license": "commercial",
22
- "repository": {
23
- "type": "git",
24
- "url": "https://github.com/regulaforensics/DocumentReader-Cordova-Plugin.git"
25
- },
26
- "homepage": "https://mobile.regulaforensics.com",
27
- "publishConfig": {
28
- "access": "public"
29
- }
30
- }