@regulaforensics/react-native-document-reader-api 9.1.363-nightly → 9.1.364-rc

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/index.d.ts CHANGED
@@ -1197,6 +1197,29 @@ export class TAChallenge {
1197
1197
  }
1198
1198
  }
1199
1199
 
1200
+ export class DetailsAge {
1201
+ threshold?: number
1202
+ overThreshold?: number
1203
+ over18?: number
1204
+ over21?: number
1205
+ over25?: number
1206
+ over65?: number
1207
+
1208
+ static fromJson(jsonObject?: any): DetailsAge | undefined {
1209
+ if (jsonObject == null || jsonObject == undefined) return undefined
1210
+ const result = new DetailsAge
1211
+
1212
+ result.threshold = jsonObject["threshold"]
1213
+ result.overThreshold = jsonObject["overThreshold"]
1214
+ result.over18 = jsonObject["over18"]
1215
+ result.over21 = jsonObject["over21"]
1216
+ result.over25 = jsonObject["over25"]
1217
+ result.over65 = jsonObject["over65"]
1218
+
1219
+ return result
1220
+ }
1221
+ }
1222
+
1200
1223
  export class DocumentReaderResultsStatus {
1201
1224
  overallStatus?: number
1202
1225
  optical?: number
@@ -1205,6 +1228,10 @@ export class DocumentReaderResultsStatus {
1205
1228
  detailsRFID?: DetailsRFID
1206
1229
  portrait?: number
1207
1230
  stopList?: number
1231
+ mDL?: number
1232
+ age?: number
1233
+ captureProcessIntegrity?: number
1234
+ detailsAge?: DetailsAge
1208
1235
 
1209
1236
  static fromJson(jsonObject?: any): DocumentReaderResultsStatus | undefined {
1210
1237
  if (jsonObject == null || jsonObject == undefined) return undefined
@@ -1217,6 +1244,10 @@ export class DocumentReaderResultsStatus {
1217
1244
  result.detailsRFID = DetailsRFID.fromJson(jsonObject["detailsRFID"])
1218
1245
  result.portrait = jsonObject["portrait"]
1219
1246
  result.stopList = jsonObject["stopList"]
1247
+ result.mDL = jsonObject["mDL"]
1248
+ result.age = jsonObject["age"]
1249
+ result.captureProcessIntegrity = jsonObject["captureProcessIntegrity"]
1250
+ result.detailsAge = DetailsAge.fromJson(jsonObject["detailsAge"])
1220
1251
 
1221
1252
  return result
1222
1253
  }
@@ -1317,6 +1348,77 @@ export class VDSNCData {
1317
1348
  }
1318
1349
  }
1319
1350
 
1351
+ export class DocFeature {
1352
+ type?: number
1353
+ data?: BytesData
1354
+
1355
+ static fromJson(jsonObject?: any): DocFeature | undefined {
1356
+ if (jsonObject == null || jsonObject == undefined) return undefined
1357
+ const result = new DocFeature
1358
+
1359
+ result.type = jsonObject["type"]
1360
+ result.data = BytesData.fromJson(jsonObject["data"])
1361
+
1362
+ return result
1363
+ }
1364
+ }
1365
+
1366
+ export class VDSData {
1367
+ type?: number
1368
+ docType?: number
1369
+ featureRef?: number
1370
+ version?: number
1371
+ issuingCountry?: string
1372
+ docIssueDate?: string
1373
+ signature?: BytesData
1374
+ signatureDate?: string
1375
+ signer?: string
1376
+ certificate?: string
1377
+ certificateChain?: CertificateChain[]
1378
+ docFeatures?: DocFeature[]
1379
+ notifications?: number[]
1380
+
1381
+ static fromJson(jsonObject?: any): VDSData | undefined {
1382
+ if (jsonObject == null || jsonObject == undefined) return undefined
1383
+ const result = new VDSData
1384
+
1385
+ result.type = jsonObject["type"]
1386
+ result.docType = jsonObject["docType"]
1387
+ result.featureRef = jsonObject["featureRef"]
1388
+ result.version = jsonObject["version"]
1389
+ result.issuingCountry = jsonObject["issuingCountry"]
1390
+ result.docIssueDate = jsonObject["docIssueDate"]
1391
+ result.signature = BytesData.fromJson(jsonObject["signature"])
1392
+ result.signatureDate = jsonObject["signatureDate"]
1393
+ result.signer = jsonObject["signer"]
1394
+ result.certificate = jsonObject["certificate"]
1395
+ result.certificateChain = []
1396
+ if (jsonObject["certificateChain"] != null) {
1397
+ for (const i in jsonObject["certificateChain"]) {
1398
+ const item = CertificateChain.fromJson(jsonObject["certificateChain"][i])
1399
+ if (item != undefined)
1400
+ result.certificateChain.push(item)
1401
+ }
1402
+ }
1403
+ result.docFeatures = []
1404
+ if (jsonObject["docFeatures"] != null) {
1405
+ for (const i in jsonObject["docFeatures"]) {
1406
+ const item = DocFeature.fromJson(jsonObject["docFeatures"][i])
1407
+ if (item != undefined)
1408
+ result.docFeatures.push(item)
1409
+ }
1410
+ }
1411
+ result.notifications = []
1412
+ if (jsonObject["notifications"] != null) {
1413
+ for (const i in jsonObject["notifications"]) {
1414
+ result.notifications.push(jsonObject["notifications"][i])
1415
+ }
1416
+ }
1417
+
1418
+ return result
1419
+ }
1420
+ }
1421
+
1320
1422
  export class BytesData {
1321
1423
  data?: string
1322
1424
  length?: number
@@ -1660,6 +1762,7 @@ export class DocumentReaderResults {
1660
1762
  documentType?: DocumentReaderDocumentType[]
1661
1763
  status?: DocumentReaderResultsStatus
1662
1764
  vdsncData?: VDSNCData
1765
+ vdsData?: VDSData
1663
1766
  dtcData?: string
1664
1767
  transactionInfo?: TransactionInfo
1665
1768
 
@@ -1788,6 +1891,7 @@ export class DocumentReaderResults {
1788
1891
  }
1789
1892
  result.status = DocumentReaderResultsStatus.fromJson(jsonObject["status"])
1790
1893
  result.vdsncData = VDSNCData.fromJson(jsonObject["vdsncData"])
1894
+ result.vdsData = VDSData.fromJson(jsonObject["vdsData"])
1791
1895
  result.dtcData = jsonObject["dtcData"]
1792
1896
  result.transactionInfo = TransactionInfo.fromJson(jsonObject["transactionInfo"])
1793
1897
 
@@ -1829,6 +1933,7 @@ export class Functionality {
1829
1933
  singleResult?: boolean
1830
1934
  torchTurnedOn?: boolean
1831
1935
  preventScreenRecording?: boolean
1936
+ homeIndicatorAutoHide?: boolean
1832
1937
  showCaptureButtonDelayFromDetect?: number
1833
1938
  showCaptureButtonDelayFromStart?: number
1834
1939
  rfidTimeout?: number
@@ -1837,6 +1942,7 @@ export class Functionality {
1837
1942
  captureMode?: number
1838
1943
  cameraMode?: number
1839
1944
  cameraPositionIOS?: number
1945
+ mdlTimeout?: number
1840
1946
  cameraFrame?: string
1841
1947
  btDeviceName?: string
1842
1948
  zoomFactor?: number
@@ -1868,6 +1974,7 @@ export class Functionality {
1868
1974
  result.singleResult = jsonObject["singleResult"]
1869
1975
  result.torchTurnedOn = jsonObject["torchTurnedOn"]
1870
1976
  result.preventScreenRecording = jsonObject["preventScreenRecording"]
1977
+ result.homeIndicatorAutoHide = jsonObject["homeIndicatorAutoHide"]
1871
1978
  result.showCaptureButtonDelayFromDetect = jsonObject["showCaptureButtonDelayFromDetect"]
1872
1979
  result.showCaptureButtonDelayFromStart = jsonObject["showCaptureButtonDelayFromStart"]
1873
1980
  result.rfidTimeout = jsonObject["rfidTimeout"]
@@ -1876,6 +1983,7 @@ export class Functionality {
1876
1983
  result.captureMode = jsonObject["captureMode"]
1877
1984
  result.cameraMode = jsonObject["cameraMode"]
1878
1985
  result.cameraPositionIOS = jsonObject["cameraPositionIOS"]
1986
+ result.mdlTimeout = jsonObject["mdlTimeout"]
1879
1987
  result.cameraFrame = jsonObject["cameraFrame"]
1880
1988
  result.btDeviceName = jsonObject["btDeviceName"]
1881
1989
  result.zoomFactor = jsonObject["zoomFactor"]
@@ -2142,6 +2250,7 @@ export class ProcessParams {
2142
2250
  disableAuthResolutionFilter?: boolean
2143
2251
  strictSecurityChecks?: boolean
2144
2252
  returnTransliteratedFields?: boolean
2253
+ checkCaptureProcessIntegrity?: boolean
2145
2254
  barcodeParserType?: number
2146
2255
  perspectiveAngle?: number
2147
2256
  minDPI?: number
@@ -2173,6 +2282,7 @@ export class ProcessParams {
2173
2282
  documentGroupFilter?: number[]
2174
2283
  lcidIgnoreFilter?: number[]
2175
2284
  lcidFilter?: number[]
2285
+ fieldTypesIgnoreFilter?: number[]
2176
2286
  mrzFormatsFilter?: string[]
2177
2287
  imageQA?: ImageQA
2178
2288
  rfidParams?: RFIDParams
@@ -2225,6 +2335,7 @@ export class ProcessParams {
2225
2335
  result.disableAuthResolutionFilter = jsonObject["disableAuthResolutionFilter"]
2226
2336
  result.strictSecurityChecks = jsonObject["strictSecurityChecks"]
2227
2337
  result.returnTransliteratedFields = jsonObject["returnTransliteratedFields"]
2338
+ result.checkCaptureProcessIntegrity = jsonObject["checkCaptureProcessIntegrity"]
2228
2339
  result.barcodeParserType = jsonObject["barcodeParserType"]
2229
2340
  result.perspectiveAngle = jsonObject["perspectiveAngle"]
2230
2341
  result.minDPI = jsonObject["minDPI"]
@@ -2291,6 +2402,12 @@ export class ProcessParams {
2291
2402
  result.lcidFilter.push(jsonObject["lcidFilter"][i])
2292
2403
  }
2293
2404
  }
2405
+ result.fieldTypesIgnoreFilter = []
2406
+ if (jsonObject["fieldTypesIgnoreFilter"] != null) {
2407
+ for (const i in jsonObject["fieldTypesIgnoreFilter"]) {
2408
+ result.fieldTypesIgnoreFilter.push(jsonObject["fieldTypesIgnoreFilter"][i])
2409
+ }
2410
+ }
2294
2411
  result.mrzFormatsFilter = []
2295
2412
  if (jsonObject["mrzFormatsFilter"] != null) {
2296
2413
  for (const i in jsonObject["mrzFormatsFilter"]) {
@@ -2438,6 +2555,7 @@ export class Customization {
2438
2555
  activityIndicatorPortraitPositionMultiplier?: number
2439
2556
  activityIndicatorLandscapePositionMultiplier?: number
2440
2557
  cameraPreviewVerticalPositionMultiplier?: number
2558
+ multipageButtonPositionMultiplier?: number
2441
2559
  multipageAnimationFrontImage?: string
2442
2560
  multipageAnimationBackImage?: string
2443
2561
  borderBackgroundImage?: string
@@ -2514,6 +2632,7 @@ export class Customization {
2514
2632
  result.activityIndicatorPortraitPositionMultiplier = jsonObject["activityIndicatorPortraitPositionMultiplier"]
2515
2633
  result.activityIndicatorLandscapePositionMultiplier = jsonObject["activityIndicatorLandscapePositionMultiplier"]
2516
2634
  result.cameraPreviewVerticalPositionMultiplier = jsonObject["cameraPreviewVerticalPositionMultiplier"]
2635
+ result.multipageButtonPositionMultiplier = jsonObject["multipageButtonPositionMultiplier"]
2517
2636
  result.multipageAnimationFrontImage = jsonObject["multipageAnimationFrontImage"]
2518
2637
  result.multipageAnimationBackImage = jsonObject["multipageAnimationBackImage"]
2519
2638
  result.borderBackgroundImage = jsonObject["borderBackgroundImage"]
@@ -2884,6 +3003,208 @@ export class PrepareProgress {
2884
3003
  }
2885
3004
  }
2886
3005
 
3006
+ export class DeviceEngagement {
3007
+ deviceRetrievalMethods?: DeviceRetrievalMethod[]
3008
+
3009
+ static fromJson(jsonObject?: any): DeviceEngagement | undefined {
3010
+ if (jsonObject == null || jsonObject == undefined) return undefined
3011
+ const result = new DeviceEngagement
3012
+
3013
+ result.deviceRetrievalMethods = []
3014
+ if (jsonObject["deviceRetrievalMethods"] != null) {
3015
+ for (const i in jsonObject["deviceRetrievalMethods"]) {
3016
+ const item = DeviceRetrievalMethod.fromJson(jsonObject["deviceRetrievalMethods"][i])
3017
+ if (item != undefined)
3018
+ result.deviceRetrievalMethods.push(item)
3019
+ }
3020
+ }
3021
+
3022
+ return result
3023
+ }
3024
+ }
3025
+
3026
+ export class DeviceRetrievalMethod {
3027
+ type?: number
3028
+ version?: number
3029
+ cmdMaxLength?: number
3030
+ respMaxLength?: number
3031
+ clientModeSupport?: boolean
3032
+ clientModeUUID?: string
3033
+ serverModeSupport?: boolean
3034
+ serverModeUUID?: string
3035
+
3036
+ static fromJson(jsonObject?: any): DeviceRetrievalMethod | undefined {
3037
+ if (jsonObject == null || jsonObject == undefined) return undefined
3038
+ const result = new DeviceRetrievalMethod
3039
+
3040
+ result.type = jsonObject["type"]
3041
+ result.version = jsonObject["version"]
3042
+ result.cmdMaxLength = jsonObject["cmdMaxLength"]
3043
+ result.respMaxLength = jsonObject["respMaxLength"]
3044
+ result.clientModeSupport = jsonObject["clientModeSupport"]
3045
+ result.clientModeUUID = jsonObject["clientModeUUID"]
3046
+ result.serverModeSupport = jsonObject["serverModeSupport"]
3047
+ result.serverModeUUID = jsonObject["serverModeUUID"]
3048
+
3049
+ return result
3050
+ }
3051
+ }
3052
+
3053
+ export class DataRetrieval {
3054
+ deviceRetrieval?: number
3055
+ docRequestPreset?: number
3056
+ intentToRetain?: boolean
3057
+ requests?: any[]
3058
+
3059
+ static fromJson(jsonObject?: any): DataRetrieval | undefined {
3060
+ if (jsonObject == null || jsonObject == undefined) return undefined
3061
+ const result = new DataRetrieval
3062
+
3063
+ result.deviceRetrieval = jsonObject["deviceRetrieval"]
3064
+ result.docRequestPreset = jsonObject["docRequestPreset"]
3065
+ result.intentToRetain = jsonObject["intentToRetain"]
3066
+ result.requests = []
3067
+ if (jsonObject["requests"] != null) {
3068
+ for (const i in jsonObject["requests"]) {
3069
+ result.requests.push(jsonObject["requests"][i])
3070
+ }
3071
+ }
3072
+
3073
+ return result
3074
+ }
3075
+ }
3076
+
3077
+ export class DocumentRequestMDL {
3078
+ docType?: string
3079
+ namespaces?: NameSpaceMDL[]
3080
+
3081
+ static fromJson(jsonObject?: any): DocumentRequestMDL | undefined {
3082
+ if (jsonObject == null || jsonObject == undefined) return undefined
3083
+ const result = new DocumentRequestMDL
3084
+
3085
+ result.docType = jsonObject["docType"]
3086
+ result.namespaces = []
3087
+ if (jsonObject["namespaces"] != null) {
3088
+ for (const i in jsonObject["namespaces"]) {
3089
+ const item = NameSpaceMDL.fromJson(jsonObject["namespaces"][i])
3090
+ if (item != undefined)
3091
+ result.namespaces.push(item)
3092
+ }
3093
+ }
3094
+
3095
+ return result
3096
+ }
3097
+ }
3098
+
3099
+ export class NameSpaceMDL {
3100
+ name?: string
3101
+ map?: Record<string, number>
3102
+
3103
+ static fromJson(jsonObject?: any): NameSpaceMDL | undefined {
3104
+ if (jsonObject == null || jsonObject == undefined) return undefined
3105
+ const result = new NameSpaceMDL
3106
+
3107
+ result.name = jsonObject["name"]
3108
+ result.map = jsonObject["map"]
3109
+
3110
+ return result
3111
+ }
3112
+ }
3113
+
3114
+ export class DocumentRequest18013MDL {
3115
+ docType?: string
3116
+ namespaces?: NameSpaceMDL[]
3117
+ familyName?: number
3118
+ givenName?: number
3119
+ birthDate?: number
3120
+ issueDate?: number
3121
+ expiryDate?: number
3122
+ issuingCountry?: number
3123
+ issuingAuthority?: number
3124
+ documentNumber?: number
3125
+ portrait?: number
3126
+ drivingPrivileges?: number
3127
+ unDistinguishingSign?: number
3128
+ administrativeNumber?: number
3129
+ sex?: number
3130
+ height?: number
3131
+ weight?: number
3132
+ eyeColour?: number
3133
+ hairColour?: number
3134
+ birthPlace?: number
3135
+ residentAddress?: number
3136
+ portraitCaptureDate?: number
3137
+ ageInYears?: number
3138
+ ageBirthYear?: number
3139
+ ageOver18?: number
3140
+ issuingJurisdiction?: number
3141
+ nationality?: number
3142
+ residentCity?: number
3143
+ residentState?: number
3144
+ residentPostalCode?: number
3145
+ residentCountry?: number
3146
+ biometricTemplateFace?: number
3147
+ biometricTemplateIris?: number
3148
+ biometricTemplateFinger?: number
3149
+ biometricTemplateSignatureSign?: number
3150
+ familyNameNationalCharacter?: number
3151
+ givenNameNationalCharacter?: number
3152
+ signatureUsualMark?: number
3153
+
3154
+ static fromJson(jsonObject?: any): DocumentRequest18013MDL | undefined {
3155
+ if (jsonObject == null || jsonObject == undefined) return undefined
3156
+ const result = new DocumentRequest18013MDL
3157
+
3158
+ result.docType = jsonObject["docType"]
3159
+ result.namespaces = []
3160
+ if (jsonObject["namespaces"] != null) {
3161
+ for (const i in jsonObject["namespaces"]) {
3162
+ const item = NameSpaceMDL.fromJson(jsonObject["namespaces"][i])
3163
+ if (item != undefined)
3164
+ result.namespaces.push(item)
3165
+ }
3166
+ }
3167
+ result.familyName = jsonObject["familyName"]
3168
+ result.givenName = jsonObject["givenName"]
3169
+ result.birthDate = jsonObject["birthDate"]
3170
+ result.issueDate = jsonObject["issueDate"]
3171
+ result.expiryDate = jsonObject["expiryDate"]
3172
+ result.issuingCountry = jsonObject["issuingCountry"]
3173
+ result.issuingAuthority = jsonObject["issuingAuthority"]
3174
+ result.documentNumber = jsonObject["documentNumber"]
3175
+ result.portrait = jsonObject["portrait"]
3176
+ result.drivingPrivileges = jsonObject["drivingPrivileges"]
3177
+ result.unDistinguishingSign = jsonObject["unDistinguishingSign"]
3178
+ result.administrativeNumber = jsonObject["administrativeNumber"]
3179
+ result.sex = jsonObject["sex"]
3180
+ result.height = jsonObject["height"]
3181
+ result.weight = jsonObject["weight"]
3182
+ result.eyeColour = jsonObject["eyeColour"]
3183
+ result.hairColour = jsonObject["hairColour"]
3184
+ result.birthPlace = jsonObject["birthPlace"]
3185
+ result.residentAddress = jsonObject["residentAddress"]
3186
+ result.portraitCaptureDate = jsonObject["portraitCaptureDate"]
3187
+ result.ageInYears = jsonObject["ageInYears"]
3188
+ result.ageBirthYear = jsonObject["ageBirthYear"]
3189
+ result.ageOver18 = jsonObject["ageOver18"]
3190
+ result.issuingJurisdiction = jsonObject["issuingJurisdiction"]
3191
+ result.nationality = jsonObject["nationality"]
3192
+ result.residentCity = jsonObject["residentCity"]
3193
+ result.residentState = jsonObject["residentState"]
3194
+ result.residentPostalCode = jsonObject["residentPostalCode"]
3195
+ result.residentCountry = jsonObject["residentCountry"]
3196
+ result.biometricTemplateFace = jsonObject["biometricTemplateFace"]
3197
+ result.biometricTemplateIris = jsonObject["biometricTemplateIris"]
3198
+ result.biometricTemplateFinger = jsonObject["biometricTemplateFinger"]
3199
+ result.biometricTemplateSignatureSign = jsonObject["biometricTemplateSignatureSign"]
3200
+ result.familyNameNationalCharacter = jsonObject["familyNameNationalCharacter"]
3201
+ result.givenNameNationalCharacter = jsonObject["givenNameNationalCharacter"]
3202
+ result.signatureUsualMark = jsonObject["signatureUsualMark"]
3203
+
3204
+ return result
3205
+ }
3206
+ }
3207
+
2887
3208
  export const FontStyle = {
2888
3209
  NORMAL: 0,
2889
3210
  BOLD: 1,
@@ -3234,13 +3555,16 @@ export const eRPRM_ResultType = {
3234
3555
  RFID_RESULT_TYPE_RFID_IMAGE_DATA: 103,
3235
3556
  RFID_RESULT_TYPE_RFID_BINARY_DATA: 104,
3236
3557
  RFID_RESULT_TYPE_RFID_ORIGINAL_GRAPHICS: 105,
3558
+ RFID_RESULT_TYPE_RFID_DTC_VC: 109,
3559
+ RPRM_RESULT_TYPE_MDL_PARSED_RESPONSE: 121,
3560
+ RPRM_RESULT_TYPE_VDS_NC: 124,
3561
+ RPRM_RESULT_TYPE_VDS: 125,
3237
3562
  RPRM_RESULT_TYPE_BARCODE_POSITION: 62,
3238
3563
  RPRM_RESULT_TYPE_MRZ_POSITION: 61,
3239
3564
  RPRM_RESULT_TYPE_LIVE_PORTRAIT: 32,
3240
3565
  RPRM_RESULT_TYPE_STATUS: 33,
3241
3566
  RPRM_RESULT_TYPE_PORTRAIT_COMPARISON: 34,
3242
3567
  RPRM_RESULT_TYPE_EXT_PORTRAIT: 35,
3243
- RFID_RESULT_TYPE_RFID_DTC_VC: 109,
3244
3568
  }
3245
3569
 
3246
3570
  export const FrameShapeType = {
@@ -3248,6 +3572,11 @@ export const FrameShapeType = {
3248
3572
  CORNER: 1,
3249
3573
  }
3250
3574
 
3575
+ export const eMDLDeviceRetrieval = {
3576
+ NFC: 1,
3577
+ BLE: 2,
3578
+ }
3579
+
3251
3580
  export const eRFID_BaudRate = {
3252
3581
  rfbr_106: 1,
3253
3582
  rfbr_212: 2,
@@ -3314,6 +3643,9 @@ export const PKDResourceType = {
3314
3643
  DEFL: 5,
3315
3644
  DEVL: 6,
3316
3645
  BL: 7,
3646
+ LDIF_TA: 8,
3647
+ ML_TA: 9,
3648
+ CBOR: 10,
3317
3649
 
3318
3650
  getType(value: string) {
3319
3651
  switch (value) {
@@ -3353,11 +3685,10 @@ export const DocumentReaderErrorCodes = {
3353
3685
  NO_RESULT: 3,
3354
3686
  REMOVE_DATABASE: 4,
3355
3687
  FETCHING_DATABASE: 5,
3356
- DB_ID_NOT_FOUND: 6,
3357
3688
  DB_DESCRIPTION_NOT_FOUND: 7,
3358
3689
  SAVE_DB: 8,
3359
3690
  DOWNLOAD_DB_INCORRECT_CHECKSUM: 9,
3360
- DB_DOWNLOAD: 10,
3691
+ DOWNLOAD_DB: 10,
3361
3692
  RFID_ERROR: 12,
3362
3693
  LICENSE_ABSENT_OR_CORRUPTED: 13,
3363
3694
  LICENSE_INVALID_DATE: 14,
@@ -3371,13 +3702,14 @@ export const DocumentReaderErrorCodes = {
3371
3702
  LICENSE_NO_DATABASE: 22,
3372
3703
  LICENSE_DATABASE_INCORRECT: 23,
3373
3704
  INVALID_TCC_PARAMS: 24,
3374
- RFID_IN_PROGRESS: 25,
3705
+ ALREADY_IN_PROGRESS: 25,
3375
3706
  START_BACKEND_PROCESSING: 26,
3376
3707
  ADD_DATA_TO_PACKAGE: 27,
3377
3708
  FINALIZE_FAILED: 28,
3378
3709
  CAMERA_NO_PERMISSION: 29,
3379
3710
  CAMERA_NOT_AVAILABLE: 30,
3380
3711
  CANNOT_USE_CAMERA_IN_SCENARIO: 40,
3712
+ BLUETOOTH_NO_PERMISSION: 41,
3381
3713
  NATIVE_JAVA_EXCEPTION: 1000,
3382
3714
  BACKEND_ONLINE_PROCESSING: 303,
3383
3715
  WRONG_INPUT: 400,
@@ -3388,6 +3720,7 @@ export const DocumentReaderErrorCodes = {
3388
3720
  FEATURE_BLUETOOTH_LE_NOT_SUPPORTED: 601,
3389
3721
  APP_BACKGROUND: 700,
3390
3722
  ONLINE_PROCESSING_WRONG_INPUT: 800,
3723
+ MDL_EXCEPTION: 900,
3391
3724
  }
3392
3725
 
3393
3726
  export const ScenarioIdentifier = {
@@ -3554,6 +3887,11 @@ export const eSignManagementAction = {
3554
3887
  smaSignData: 7,
3555
3888
  }
3556
3889
 
3890
+ export const eMDLDeviceEngagement = {
3891
+ QR: 0,
3892
+ NFC: 1,
3893
+ }
3894
+
3557
3895
  export const eCheckDiagnose = {
3558
3896
  UNKNOWN: 0,
3559
3897
  PASS: 1,
@@ -3685,6 +4023,11 @@ export const eCheckDiagnose = {
3685
4023
  INCORRECT_OBJECT_COLOR: 250,
3686
4024
  }
3687
4025
 
4026
+ export const eMDLIntentToRetain = {
4027
+ FALSE: 0,
4028
+ TRUE: 1,
4029
+ }
4030
+
3688
4031
  export const RFIDDelegate = {
3689
4032
  NULL: 0,
3690
4033
  NO_PA: 1,
@@ -5181,6 +5524,9 @@ export const eVisualFieldType = {
5181
5524
  FT_NATIONALITY_CODE_ALPHA2: 697,
5182
5525
  FT_FIRST_ISSUE_DATE_CHECKDIGIT: 698,
5183
5526
  FT_FIRST_ISSUE_DATE_CHECKSUM: 699,
5527
+ FT_COMMERCIAL_INDICATOR: 701,
5528
+ FT_NON_DOMICILED_INDICATOR: 702,
5529
+ FT_JURISDICTION_SPECIFIC_DATA: 703,
5184
5530
  }
5185
5531
 
5186
5532
  export const DocReaderOrientation = {
@@ -5372,6 +5718,14 @@ export const DocReaderFrame = {
5372
5718
  DOCUMENT: "document",
5373
5719
  }
5374
5720
 
5721
+ export const eMDLDocRequestPreset = {
5722
+ ALL: 0,
5723
+ AGE: 1,
5724
+ STANDARD_ID: 2,
5725
+ TRAVEL: 3,
5726
+ DRIVERS_LICENSE: 4,
5727
+ }
5728
+
5375
5729
  export const eRPRM_Lights = {
5376
5730
  NONE: 0,
5377
5731
  RPRM_LIGHT_UV: 128,
@@ -5400,6 +5754,7 @@ export const Enum = {
5400
5754
  RGLMeasureSystem,
5401
5755
  eRPRM_ResultType,
5402
5756
  FrameShapeType,
5757
+ eMDLDeviceRetrieval,
5403
5758
  eRFID_BaudRate,
5404
5759
  LineCap,
5405
5760
  eRPRM_FieldVerificationResult,
@@ -5418,7 +5773,9 @@ export const Enum = {
5418
5773
  BarcodeResult,
5419
5774
  eRFID_Application_Type,
5420
5775
  eSignManagementAction,
5776
+ eMDLDeviceEngagement,
5421
5777
  eCheckDiagnose,
5778
+ eMDLIntentToRetain,
5422
5779
  RFIDDelegate,
5423
5780
  TextProcessing,
5424
5781
  LogLevel,
@@ -5451,6 +5808,7 @@ export const Enum = {
5451
5808
  LCID,
5452
5809
  CustomizationImage,
5453
5810
  DocReaderFrame,
5811
+ eMDLDocRequestPreset,
5454
5812
  eRPRM_Lights,
5455
5813
  eMrzDetectionModes,
5456
5814
  }
@@ -5515,4 +5873,11 @@ export default class DocumentReader {
5515
5873
  static finalizePackage(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
5516
5874
  static endBackendTransaction(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
5517
5875
  static getTranslation(className: string, value: number, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
5876
+ static startReadMDl(type: number, dataRetrieval: DataRetrieval, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
5877
+ static startEngageDevice(type: number, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
5878
+ static engageDeviceNFC(successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
5879
+ static engageDeviceData(data: string, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
5880
+ static startRetrieveData(deviceEngagement: DeviceEngagement, dataRetrieval: DataRetrieval, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
5881
+ static retrieveDataNFC(dataRetrieval: DataRetrieval, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
5882
+ static retrieveDataBLE(deviceEngagement: DeviceEngagement, dataRetrieval: DataRetrieval, successCallback: (response: string) => void, errorCallback?: (error: string) => void): void
5518
5883
  }