@regulaforensics/react-native-document-reader-api 9.3.479-nightly → 9.3.482-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/RNDocumentReaderApi.podspec +1 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +137 -48
- package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +23 -19
- package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +2 -2
- package/android/src/main/java/com/regula/plugin/documentreader/Utils.kt +5 -0
- package/example/package-lock.json +32 -32
- package/example/package.json +2 -2
- package/index.d.ts +176 -0
- package/index.js +127 -0
- package/ios/RGLWConfig.m +152 -41
- package/ios/RGLWJSONConstructor.m +5 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2128,6 +2128,7 @@ export class BackendProcessingConfig {
|
|
|
2128
2128
|
url?: string
|
|
2129
2129
|
httpHeaders?: Record<string, string>
|
|
2130
2130
|
rfidServerSideChipVerification?: boolean
|
|
2131
|
+
mdlVerification?: boolean
|
|
2131
2132
|
timeoutConnection?: number
|
|
2132
2133
|
|
|
2133
2134
|
static fromJson(jsonObject?: any): BackendProcessingConfig | undefined {
|
|
@@ -2137,6 +2138,7 @@ export class BackendProcessingConfig {
|
|
|
2137
2138
|
result.url = jsonObject["url"]
|
|
2138
2139
|
result.httpHeaders = jsonObject["httpHeaders"]
|
|
2139
2140
|
result.rfidServerSideChipVerification = jsonObject["rfidServerSideChipVerification"]
|
|
2141
|
+
result.mdlVerification = jsonObject["mdlVerification"]
|
|
2140
2142
|
result.timeoutConnection = jsonObject["timeoutConnection"]
|
|
2141
2143
|
|
|
2142
2144
|
return result
|
|
@@ -2266,6 +2268,9 @@ export class ProcessParams {
|
|
|
2266
2268
|
strictSecurityChecks?: boolean
|
|
2267
2269
|
returnTransliteratedFields?: boolean
|
|
2268
2270
|
checkCaptureProcessIntegrity?: boolean
|
|
2271
|
+
strictExpiryDate?: boolean
|
|
2272
|
+
debugSaveBinarySession?: boolean
|
|
2273
|
+
checkVDS?: boolean
|
|
2269
2274
|
barcodeParserType?: number
|
|
2270
2275
|
perspectiveAngle?: number
|
|
2271
2276
|
minDPI?: number
|
|
@@ -2352,6 +2357,9 @@ export class ProcessParams {
|
|
|
2352
2357
|
result.strictSecurityChecks = jsonObject["strictSecurityChecks"]
|
|
2353
2358
|
result.returnTransliteratedFields = jsonObject["returnTransliteratedFields"]
|
|
2354
2359
|
result.checkCaptureProcessIntegrity = jsonObject["checkCaptureProcessIntegrity"]
|
|
2360
|
+
result.strictExpiryDate = jsonObject["strictExpiryDate"]
|
|
2361
|
+
result.debugSaveBinarySession = jsonObject["debugSaveBinarySession"]
|
|
2362
|
+
result.checkVDS = jsonObject["checkVDS"]
|
|
2355
2363
|
result.barcodeParserType = jsonObject["barcodeParserType"]
|
|
2356
2364
|
result.perspectiveAngle = jsonObject["perspectiveAngle"]
|
|
2357
2365
|
result.minDPI = jsonObject["minDPI"]
|
|
@@ -2472,6 +2480,10 @@ export class CustomizationColors {
|
|
|
2472
2480
|
rfidEnableNfcDescriptionText?: number
|
|
2473
2481
|
rfidEnableNfcButtonText?: number
|
|
2474
2482
|
rfidEnableNfcButtonBackground?: number
|
|
2483
|
+
nextPageIdCardFront?: number
|
|
2484
|
+
nextPageIdCardBack?: number
|
|
2485
|
+
nextPagePassportShift?: number
|
|
2486
|
+
nextPagePassportFlip?: number
|
|
2475
2487
|
|
|
2476
2488
|
static fromJson(jsonObject?: any): CustomizationColors | undefined {
|
|
2477
2489
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
@@ -2489,6 +2501,10 @@ export class CustomizationColors {
|
|
|
2489
2501
|
result.rfidEnableNfcDescriptionText = jsonObject["rfidEnableNfcDescriptionText"]
|
|
2490
2502
|
result.rfidEnableNfcButtonText = jsonObject["rfidEnableNfcButtonText"]
|
|
2491
2503
|
result.rfidEnableNfcButtonBackground = jsonObject["rfidEnableNfcButtonBackground"]
|
|
2504
|
+
result.nextPageIdCardFront = jsonObject["nextPageIdCardFront"]
|
|
2505
|
+
result.nextPageIdCardBack = jsonObject["nextPageIdCardBack"]
|
|
2506
|
+
result.nextPagePassportShift = jsonObject["nextPagePassportShift"]
|
|
2507
|
+
result.nextPagePassportFlip = jsonObject["nextPagePassportFlip"]
|
|
2492
2508
|
|
|
2493
2509
|
return result
|
|
2494
2510
|
}
|
|
@@ -2518,15 +2534,118 @@ export class CustomizationFonts {
|
|
|
2518
2534
|
}
|
|
2519
2535
|
|
|
2520
2536
|
export class CustomizationImages {
|
|
2537
|
+
helpAnimation?: string
|
|
2538
|
+
livenessAnimation?: string
|
|
2539
|
+
borderBackground?: string
|
|
2540
|
+
torchButtonOn?: string
|
|
2541
|
+
torchButtonOff?: string
|
|
2542
|
+
captureButton?: string
|
|
2543
|
+
switchButton?: string
|
|
2544
|
+
closeButton?: string
|
|
2545
|
+
multipageButton?: string
|
|
2521
2546
|
rfidProcessingScreenFailureImage?: string
|
|
2522
2547
|
rfidEnableNfcImage?: string
|
|
2548
|
+
rfidDisableNfcImage?: string
|
|
2549
|
+
mdlProcessingScreenFailureImage?: string
|
|
2550
|
+
mdlEnableNfcImage?: string
|
|
2551
|
+
mdlDisableNfcImage?: string
|
|
2552
|
+
nextPageIdCardFront?: string
|
|
2553
|
+
nextPageIdCardBack?: string
|
|
2554
|
+
nextPagePassportShift?: string
|
|
2555
|
+
nextPagePassportFlipStart?: string
|
|
2556
|
+
nextPagePassportFlipClean?: string
|
|
2557
|
+
nextPagePassportFlipTop?: string
|
|
2558
|
+
nextPagePassportFlipBottom?: string
|
|
2523
2559
|
|
|
2524
2560
|
static fromJson(jsonObject?: any): CustomizationImages | undefined {
|
|
2525
2561
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2526
2562
|
const result = new CustomizationImages
|
|
2527
2563
|
|
|
2564
|
+
result.helpAnimation = jsonObject["helpAnimation"]
|
|
2565
|
+
result.livenessAnimation = jsonObject["livenessAnimation"]
|
|
2566
|
+
result.borderBackground = jsonObject["borderBackground"]
|
|
2567
|
+
result.torchButtonOn = jsonObject["torchButtonOn"]
|
|
2568
|
+
result.torchButtonOff = jsonObject["torchButtonOff"]
|
|
2569
|
+
result.captureButton = jsonObject["captureButton"]
|
|
2570
|
+
result.switchButton = jsonObject["switchButton"]
|
|
2571
|
+
result.closeButton = jsonObject["closeButton"]
|
|
2572
|
+
result.multipageButton = jsonObject["multipageButton"]
|
|
2528
2573
|
result.rfidProcessingScreenFailureImage = jsonObject["rfidProcessingScreenFailureImage"]
|
|
2529
2574
|
result.rfidEnableNfcImage = jsonObject["rfidEnableNfcImage"]
|
|
2575
|
+
result.rfidDisableNfcImage = jsonObject["rfidDisableNfcImage"]
|
|
2576
|
+
result.mdlProcessingScreenFailureImage = jsonObject["mdlProcessingScreenFailureImage"]
|
|
2577
|
+
result.mdlEnableNfcImage = jsonObject["mdlEnableNfcImage"]
|
|
2578
|
+
result.mdlDisableNfcImage = jsonObject["mdlDisableNfcImage"]
|
|
2579
|
+
result.nextPageIdCardFront = jsonObject["nextPageIdCardFront"]
|
|
2580
|
+
result.nextPageIdCardBack = jsonObject["nextPageIdCardBack"]
|
|
2581
|
+
result.nextPagePassportShift = jsonObject["nextPagePassportShift"]
|
|
2582
|
+
result.nextPagePassportFlipStart = jsonObject["nextPagePassportFlipStart"]
|
|
2583
|
+
result.nextPagePassportFlipClean = jsonObject["nextPagePassportFlipClean"]
|
|
2584
|
+
result.nextPagePassportFlipTop = jsonObject["nextPagePassportFlipTop"]
|
|
2585
|
+
result.nextPagePassportFlipBottom = jsonObject["nextPagePassportFlipBottom"]
|
|
2586
|
+
|
|
2587
|
+
return result
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
|
|
2591
|
+
export class CustomizationTimings {
|
|
2592
|
+
nextPageIdCardStartDelay?: number
|
|
2593
|
+
nextPageIdCardEndDelay?: number
|
|
2594
|
+
nextPagePassportShiftStartDelay?: number
|
|
2595
|
+
nextPagePassportShiftEndDelay?: number
|
|
2596
|
+
nextPagePassportFlipStartDelay?: number
|
|
2597
|
+
nextPagePassportFlipEndDelay?: number
|
|
2598
|
+
|
|
2599
|
+
static fromJson(jsonObject?: any): CustomizationTimings | undefined {
|
|
2600
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2601
|
+
const result = new CustomizationTimings
|
|
2602
|
+
|
|
2603
|
+
result.nextPageIdCardStartDelay = jsonObject["nextPageIdCardStartDelay"]
|
|
2604
|
+
result.nextPageIdCardEndDelay = jsonObject["nextPageIdCardEndDelay"]
|
|
2605
|
+
result.nextPagePassportShiftStartDelay = jsonObject["nextPagePassportShiftStartDelay"]
|
|
2606
|
+
result.nextPagePassportShiftEndDelay = jsonObject["nextPagePassportShiftEndDelay"]
|
|
2607
|
+
result.nextPagePassportFlipStartDelay = jsonObject["nextPagePassportFlipStartDelay"]
|
|
2608
|
+
result.nextPagePassportFlipEndDelay = jsonObject["nextPagePassportFlipEndDelay"]
|
|
2609
|
+
|
|
2610
|
+
return result
|
|
2611
|
+
}
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
export class CustomizationContentModes {
|
|
2615
|
+
nextPageIdCardFront?: number
|
|
2616
|
+
nextPageIdCardBack?: number
|
|
2617
|
+
|
|
2618
|
+
static fromJson(jsonObject?: any): CustomizationContentModes | undefined {
|
|
2619
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2620
|
+
const result = new CustomizationContentModes
|
|
2621
|
+
|
|
2622
|
+
result.nextPageIdCardFront = jsonObject["nextPageIdCardFront"]
|
|
2623
|
+
result.nextPageIdCardBack = jsonObject["nextPageIdCardBack"]
|
|
2624
|
+
|
|
2625
|
+
return result
|
|
2626
|
+
}
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2629
|
+
export class CustomizationMatrices {
|
|
2630
|
+
nextPageIdCardFront?: number[]
|
|
2631
|
+
nextPageIdCardBack?: number[]
|
|
2632
|
+
|
|
2633
|
+
static fromJson(jsonObject?: any): CustomizationMatrices | undefined {
|
|
2634
|
+
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
2635
|
+
const result = new CustomizationMatrices
|
|
2636
|
+
|
|
2637
|
+
result.nextPageIdCardFront = []
|
|
2638
|
+
if (jsonObject["nextPageIdCardFront"] != null) {
|
|
2639
|
+
for (const i in jsonObject["nextPageIdCardFront"]) {
|
|
2640
|
+
result.nextPageIdCardFront.push(jsonObject["nextPageIdCardFront"][i])
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
result.nextPageIdCardBack = []
|
|
2644
|
+
if (jsonObject["nextPageIdCardBack"] != null) {
|
|
2645
|
+
for (const i in jsonObject["nextPageIdCardBack"]) {
|
|
2646
|
+
result.nextPageIdCardBack.push(jsonObject["nextPageIdCardBack"][i])
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2530
2649
|
|
|
2531
2650
|
return result
|
|
2532
2651
|
}
|
|
@@ -2605,6 +2724,9 @@ export class Customization {
|
|
|
2605
2724
|
colors?: CustomizationColors
|
|
2606
2725
|
fonts?: CustomizationFonts
|
|
2607
2726
|
images?: CustomizationImages
|
|
2727
|
+
timings?: CustomizationTimings
|
|
2728
|
+
contentModes?: CustomizationContentModes
|
|
2729
|
+
matrices?: CustomizationMatrices
|
|
2608
2730
|
|
|
2609
2731
|
static fromJson(jsonObject?: any): Customization | undefined {
|
|
2610
2732
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
@@ -2707,6 +2829,9 @@ export class Customization {
|
|
|
2707
2829
|
result.colors = CustomizationColors.fromJson(jsonObject["colors"])
|
|
2708
2830
|
result.fonts = CustomizationFonts.fromJson(jsonObject["fonts"])
|
|
2709
2831
|
result.images = CustomizationImages.fromJson(jsonObject["images"])
|
|
2832
|
+
result.timings = CustomizationTimings.fromJson(jsonObject["timings"])
|
|
2833
|
+
result.contentModes = CustomizationContentModes.fromJson(jsonObject["contentModes"])
|
|
2834
|
+
result.matrices = CustomizationMatrices.fromJson(jsonObject["matrices"])
|
|
2710
2835
|
|
|
2711
2836
|
return result
|
|
2712
2837
|
}
|
|
@@ -3241,6 +3366,7 @@ export class FinalizeConfig {
|
|
|
3241
3366
|
rawImages?: boolean
|
|
3242
3367
|
video?: boolean
|
|
3243
3368
|
rfidSession?: boolean
|
|
3369
|
+
mdlSession?: boolean
|
|
3244
3370
|
|
|
3245
3371
|
static fromJson(jsonObject?: any): FinalizeConfig | undefined {
|
|
3246
3372
|
if (jsonObject == null || jsonObject == undefined) return undefined
|
|
@@ -3249,6 +3375,7 @@ export class FinalizeConfig {
|
|
|
3249
3375
|
result.rawImages = jsonObject["rawImages"]
|
|
3250
3376
|
result.video = jsonObject["video"]
|
|
3251
3377
|
result.rfidSession = jsonObject["rfidSession"]
|
|
3378
|
+
result.mdlSession = jsonObject["mdlSession"]
|
|
3252
3379
|
|
|
3253
3380
|
return result
|
|
3254
3381
|
}
|
|
@@ -3325,6 +3452,10 @@ export const CustomizationColor = {
|
|
|
3325
3452
|
MDL_ENABLE_NFC_DESCRIPTION_TEXT: "mdlEnableNfcDescriptionText",
|
|
3326
3453
|
MDL_ENABLE_NFC_BUTTON_TEXT: "mdlEnableNfcButtonText",
|
|
3327
3454
|
MDL_ENABLE_NFC_BUTTON_BACKGROUND: "mdlEnableNfcButtonBackground",
|
|
3455
|
+
NEXT_PAGE_ID_CARD_FRONT: "nextPageIdCardFront",
|
|
3456
|
+
NEXT_PAGE_ID_CARD_BACK: "nextPageIdCardBack",
|
|
3457
|
+
NEXT_PAGE_PASSPORT_SHIFT: "nextPagePassportShift",
|
|
3458
|
+
NEXT_PAGE_PASSPORT_FLIP: "nextPagePassportFlip",
|
|
3328
3459
|
}
|
|
3329
3460
|
|
|
3330
3461
|
export const eRFID_ErrorCodes = {
|
|
@@ -3872,6 +4003,9 @@ export const eRFID_NotificationCodes = {
|
|
|
3872
4003
|
RFID_NOTIFICATION_AUXILIARY_DATA_VALIDATION: 0x000D0000,
|
|
3873
4004
|
RFID_NOTIFICATION_RI_SECTOR_ID: 0x000E0000,
|
|
3874
4005
|
RFID_NOTIFICATION_BIOMETRICS_EMPTY_PLACEHOLDER: 0x000F0000,
|
|
4006
|
+
RFID_NOTIFICATION_SESSION_FILE_DATA_UPDATED: 1048576,
|
|
4007
|
+
RFID_NOTIFICATION_TCC_TA_RESOURCES: 1114112,
|
|
4008
|
+
RFID_NOTIFICATION_TCC_TA_SIGNATURE: 1114113,
|
|
3875
4009
|
}
|
|
3876
4010
|
|
|
3877
4011
|
export const CameraPosition = {
|
|
@@ -3964,6 +4098,11 @@ export const eSignManagementAction = {
|
|
|
3964
4098
|
smaSignData: 7,
|
|
3965
4099
|
}
|
|
3966
4100
|
|
|
4101
|
+
export const CustomizationMatrix = {
|
|
4102
|
+
NEXT_PAGE_ID_CARD_FRONT: "nextPageIdCardFront",
|
|
4103
|
+
NEXT_PAGE_ID_CARD_BACK: "nextPageIdCardBack",
|
|
4104
|
+
}
|
|
4105
|
+
|
|
3967
4106
|
export const eMDLDeviceEngagement = {
|
|
3968
4107
|
QR: 0,
|
|
3969
4108
|
NFC: 1,
|
|
@@ -4106,6 +4245,11 @@ export const eMDLIntentToRetain = {
|
|
|
4106
4245
|
TRUE: 1,
|
|
4107
4246
|
}
|
|
4108
4247
|
|
|
4248
|
+
export const CustomizationContentMode = {
|
|
4249
|
+
NEXT_PAGE_ID_CARD_FRONT: "nextPageIdCardFront",
|
|
4250
|
+
NEXT_PAGE_ID_CARD_BACK: "nextPageIdCardBack",
|
|
4251
|
+
}
|
|
4252
|
+
|
|
4109
4253
|
export const RFIDDelegate = {
|
|
4110
4254
|
NULL: 0,
|
|
4111
4255
|
NO_PA: 1,
|
|
@@ -5612,9 +5756,11 @@ export const eVisualFieldType = {
|
|
|
5612
5756
|
FT_NATIONALITY_CODE_ALPHA2: 697,
|
|
5613
5757
|
FT_FIRST_ISSUE_DATE_CHECKDIGIT: 698,
|
|
5614
5758
|
FT_FIRST_ISSUE_DATE_CHECKSUM: 699,
|
|
5759
|
+
FT_EXPIRY_TIMESTAMP: 700,
|
|
5615
5760
|
FT_COMMERCIAL_INDICATOR: 701,
|
|
5616
5761
|
FT_NON_DOMICILED_INDICATOR: 702,
|
|
5617
5762
|
FT_JURISDICTION_SPECIFIC_DATA: 703,
|
|
5763
|
+
FT_DATA_DATE_OF_EXPIRY: 704,
|
|
5618
5764
|
}
|
|
5619
5765
|
|
|
5620
5766
|
export const DocReaderOrientation = {
|
|
@@ -5794,11 +5940,38 @@ export const LCID = {
|
|
|
5794
5940
|
URDU_DETECTION: 10560,
|
|
5795
5941
|
}
|
|
5796
5942
|
|
|
5943
|
+
export const CustomizationTiming = {
|
|
5944
|
+
NEXT_PAGE_ID_CARD_START_DELAY: "nextPageIdCardStartDelay",
|
|
5945
|
+
NEXT_PAGE_ID_CARD_END_DELAY: "nextPageIdCardEndDelay",
|
|
5946
|
+
NEXT_PAGE_PASSPORT_SHIFT_START_DELAY: "nextPagePassportShiftStartDelay",
|
|
5947
|
+
NEXT_PAGE_PASSPORT_SHIFT_END_DELAY: "nextPagePassportShiftEndDelay",
|
|
5948
|
+
NEXT_PAGE_PASSPORT_FLIP_START_DELAY: "nextPagePassportFlipStartDelay",
|
|
5949
|
+
NEXT_PAGE_PASSPORT_FLIP_END_DELAY: "nextPagePassportFlipEndDelay",
|
|
5950
|
+
}
|
|
5951
|
+
|
|
5797
5952
|
export const CustomizationImage = {
|
|
5953
|
+
HELP_ANIMATION: "helpAnimation",
|
|
5954
|
+
LIVENESS_ANIMATION: "livenessAnimation",
|
|
5955
|
+
BORDER_BACKGROUND: "borderBackground",
|
|
5956
|
+
TORCH_BUTTON_ON: "torchButtonOn",
|
|
5957
|
+
TORCH_BUTTON_OFF: "torchButtonOff",
|
|
5958
|
+
CAPTURE_BUTTON: "captureButton",
|
|
5959
|
+
SWITCH_BUTTON: "switchButton",
|
|
5960
|
+
CLOSE_BUTTON: "closeButton",
|
|
5961
|
+
MULTIPAGE_BUTTON: "multipageButton",
|
|
5798
5962
|
RFID_PROCESSING_SCREEN_FAILURE_IMAGE: "rfidProcessingScreenFailureImage",
|
|
5799
5963
|
RFID_ENABLE_NFC_IMAGE: "rfidEnableNfcImage",
|
|
5964
|
+
RFID_DISABLE_NFC_IMAGE: "rfidDisableNfcImage",
|
|
5800
5965
|
MDL_PROCESSING_SCREEN_FAILURE_IMAGE: "mdlProcessingScreenFailureImage",
|
|
5801
5966
|
MDL_ENABLE_NFC_IMAGE: "mdlEnableNfcImage",
|
|
5967
|
+
MDL_DISABLE_NFC_IMAGE: "mdlDisableNfcImage",
|
|
5968
|
+
NEXT_PAGE_ID_CARD_FRONT: "nextPageIdCardFront",
|
|
5969
|
+
NEXT_PAGE_ID_CARD_BACK: "nextPageIdCardBack",
|
|
5970
|
+
NEXT_PAGE_PASSPORT_SHIFT: "nextPagePassportShift",
|
|
5971
|
+
NEXT_PAGE_PASSPORT_FLIP_START: "nextPagePassportFlipStart",
|
|
5972
|
+
NEXT_PAGE_PASSPORT_FLIP_CLEAN: "nextPagePassportFlipClean",
|
|
5973
|
+
NEXT_PAGE_PASSPORT_FLIP_TOP: "nextPagePassportFlipTop",
|
|
5974
|
+
NEXT_PAGE_PASSPORT_FLIP_BOTTOM: "nextPagePassportFlipBottom",
|
|
5802
5975
|
}
|
|
5803
5976
|
|
|
5804
5977
|
export const DocReaderFrame = {
|
|
@@ -5863,9 +6036,11 @@ export const Enum = {
|
|
|
5863
6036
|
BarcodeResult,
|
|
5864
6037
|
eRFID_Application_Type,
|
|
5865
6038
|
eSignManagementAction,
|
|
6039
|
+
CustomizationMatrix,
|
|
5866
6040
|
eMDLDeviceEngagement,
|
|
5867
6041
|
eCheckDiagnose,
|
|
5868
6042
|
eMDLIntentToRetain,
|
|
6043
|
+
CustomizationContentMode,
|
|
5869
6044
|
RFIDDelegate,
|
|
5870
6045
|
TextProcessing,
|
|
5871
6046
|
LogLevel,
|
|
@@ -5896,6 +6071,7 @@ export const Enum = {
|
|
|
5896
6071
|
eVisualFieldType,
|
|
5897
6072
|
DocReaderOrientation,
|
|
5898
6073
|
LCID,
|
|
6074
|
+
CustomizationTiming,
|
|
5899
6075
|
CustomizationImage,
|
|
5900
6076
|
DocReaderFrame,
|
|
5901
6077
|
eMDLDocRequestPreset,
|
package/index.js
CHANGED
|
@@ -1443,6 +1443,7 @@ export class BackendProcessingConfig {
|
|
|
1443
1443
|
result.url = jsonObject["url"]
|
|
1444
1444
|
result.httpHeaders = jsonObject["httpHeaders"]
|
|
1445
1445
|
result.rfidServerSideChipVerification = jsonObject["rfidServerSideChipVerification"]
|
|
1446
|
+
result.mdlVerification = jsonObject["mdlVerification"]
|
|
1446
1447
|
result.timeoutConnection = jsonObject["timeoutConnection"]
|
|
1447
1448
|
|
|
1448
1449
|
return result
|
|
@@ -1549,6 +1550,9 @@ export class ProcessParams {
|
|
|
1549
1550
|
result.strictSecurityChecks = jsonObject["strictSecurityChecks"]
|
|
1550
1551
|
result.returnTransliteratedFields = jsonObject["returnTransliteratedFields"]
|
|
1551
1552
|
result.checkCaptureProcessIntegrity = jsonObject["checkCaptureProcessIntegrity"]
|
|
1553
|
+
result.strictExpiryDate = jsonObject["strictExpiryDate"]
|
|
1554
|
+
result.debugSaveBinarySession = jsonObject["debugSaveBinarySession"]
|
|
1555
|
+
result.checkVDS = jsonObject["checkVDS"]
|
|
1552
1556
|
result.barcodeParserType = jsonObject["barcodeParserType"]
|
|
1553
1557
|
result.perspectiveAngle = jsonObject["perspectiveAngle"]
|
|
1554
1558
|
result.minDPI = jsonObject["minDPI"]
|
|
@@ -1651,6 +1655,10 @@ export class CustomizationColors {
|
|
|
1651
1655
|
result.rfidEnableNfcDescriptionText = jsonObject["rfidEnableNfcDescriptionText"]
|
|
1652
1656
|
result.rfidEnableNfcButtonText = jsonObject["rfidEnableNfcButtonText"]
|
|
1653
1657
|
result.rfidEnableNfcButtonBackground = jsonObject["rfidEnableNfcButtonBackground"]
|
|
1658
|
+
result.nextPageIdCardFront = jsonObject["nextPageIdCardFront"]
|
|
1659
|
+
result.nextPageIdCardBack = jsonObject["nextPageIdCardBack"]
|
|
1660
|
+
result.nextPagePassportShift = jsonObject["nextPagePassportShift"]
|
|
1661
|
+
result.nextPagePassportFlip = jsonObject["nextPagePassportFlip"]
|
|
1654
1662
|
|
|
1655
1663
|
return result
|
|
1656
1664
|
}
|
|
@@ -1677,8 +1685,74 @@ export class CustomizationImages {
|
|
|
1677
1685
|
if (jsonObject == null) return null
|
|
1678
1686
|
const result = new CustomizationImages()
|
|
1679
1687
|
|
|
1688
|
+
result.helpAnimation = jsonObject["helpAnimation"]
|
|
1689
|
+
result.livenessAnimation = jsonObject["livenessAnimation"]
|
|
1690
|
+
result.borderBackground = jsonObject["borderBackground"]
|
|
1691
|
+
result.torchButtonOn = jsonObject["torchButtonOn"]
|
|
1692
|
+
result.torchButtonOff = jsonObject["torchButtonOff"]
|
|
1693
|
+
result.captureButton = jsonObject["captureButton"]
|
|
1694
|
+
result.switchButton = jsonObject["switchButton"]
|
|
1695
|
+
result.closeButton = jsonObject["closeButton"]
|
|
1696
|
+
result.multipageButton = jsonObject["multipageButton"]
|
|
1680
1697
|
result.rfidProcessingScreenFailureImage = jsonObject["rfidProcessingScreenFailureImage"]
|
|
1681
1698
|
result.rfidEnableNfcImage = jsonObject["rfidEnableNfcImage"]
|
|
1699
|
+
result.rfidDisableNfcImage = jsonObject["rfidDisableNfcImage"]
|
|
1700
|
+
result.mdlProcessingScreenFailureImage = jsonObject["mdlProcessingScreenFailureImage"]
|
|
1701
|
+
result.mdlEnableNfcImage = jsonObject["mdlEnableNfcImage"]
|
|
1702
|
+
result.mdlDisableNfcImage = jsonObject["mdlDisableNfcImage"]
|
|
1703
|
+
result.nextPageIdCardFront = jsonObject["nextPageIdCardFront"]
|
|
1704
|
+
result.nextPageIdCardBack = jsonObject["nextPageIdCardBack"]
|
|
1705
|
+
result.nextPagePassportShift = jsonObject["nextPagePassportShift"]
|
|
1706
|
+
result.nextPagePassportFlipStart = jsonObject["nextPagePassportFlipStart"]
|
|
1707
|
+
result.nextPagePassportFlipClean = jsonObject["nextPagePassportFlipClean"]
|
|
1708
|
+
result.nextPagePassportFlipTop = jsonObject["nextPagePassportFlipTop"]
|
|
1709
|
+
result.nextPagePassportFlipBottom = jsonObject["nextPagePassportFlipBottom"]
|
|
1710
|
+
|
|
1711
|
+
return result
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1715
|
+
export class CustomizationTimings {
|
|
1716
|
+
static fromJson(jsonObject) {
|
|
1717
|
+
if (jsonObject == null) return null
|
|
1718
|
+
const result = new CustomizationTimings()
|
|
1719
|
+
|
|
1720
|
+
result.nextPageIdCardStartDelay = jsonObject["nextPageIdCardStartDelay"]
|
|
1721
|
+
result.nextPageIdCardEndDelay = jsonObject["nextPageIdCardEndDelay"]
|
|
1722
|
+
result.nextPagePassportShiftStartDelay = jsonObject["nextPagePassportShiftStartDelay"]
|
|
1723
|
+
result.nextPagePassportShiftEndDelay = jsonObject["nextPagePassportShiftEndDelay"]
|
|
1724
|
+
result.nextPagePassportFlipStartDelay = jsonObject["nextPagePassportFlipStartDelay"]
|
|
1725
|
+
result.nextPagePassportFlipEndDelay = jsonObject["nextPagePassportFlipEndDelay"]
|
|
1726
|
+
|
|
1727
|
+
return result
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
export class CustomizationContentModes {
|
|
1732
|
+
static fromJson(jsonObject) {
|
|
1733
|
+
if (jsonObject == null) return null
|
|
1734
|
+
const result = new CustomizationContentModes()
|
|
1735
|
+
|
|
1736
|
+
result.nextPageIdCardFront = jsonObject["nextPageIdCardFront"]
|
|
1737
|
+
result.nextPageIdCardBack = jsonObject["nextPageIdCardBack"]
|
|
1738
|
+
|
|
1739
|
+
return result
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
export class CustomizationMatrices {
|
|
1744
|
+
static fromJson(jsonObject) {
|
|
1745
|
+
if (jsonObject == null) return null
|
|
1746
|
+
const result = new CustomizationMatrices()
|
|
1747
|
+
|
|
1748
|
+
result.nextPageIdCardFront = []
|
|
1749
|
+
if (jsonObject["nextPageIdCardFront"] != null)
|
|
1750
|
+
for (const i in jsonObject["nextPageIdCardFront"])
|
|
1751
|
+
result.nextPageIdCardFront.push(jsonObject["nextPageIdCardFront"][i])
|
|
1752
|
+
result.nextPageIdCardBack = []
|
|
1753
|
+
if (jsonObject["nextPageIdCardBack"] != null)
|
|
1754
|
+
for (const i in jsonObject["nextPageIdCardBack"])
|
|
1755
|
+
result.nextPageIdCardBack.push(jsonObject["nextPageIdCardBack"][i])
|
|
1682
1756
|
|
|
1683
1757
|
return result
|
|
1684
1758
|
}
|
|
@@ -1776,6 +1850,9 @@ export class Customization {
|
|
|
1776
1850
|
result.colors = CustomizationColors.fromJson(jsonObject["colors"])
|
|
1777
1851
|
result.fonts = CustomizationFonts.fromJson(jsonObject["fonts"])
|
|
1778
1852
|
result.images = CustomizationImages.fromJson(jsonObject["images"])
|
|
1853
|
+
result.timings = CustomizationTimings.fromJson(jsonObject["timings"])
|
|
1854
|
+
result.contentModes = CustomizationContentModes.fromJson(jsonObject["contentModes"])
|
|
1855
|
+
result.matrices = CustomizationMatrices.fromJson(jsonObject["matrices"])
|
|
1779
1856
|
|
|
1780
1857
|
return result
|
|
1781
1858
|
}
|
|
@@ -2109,6 +2186,7 @@ export class FinalizeConfig {
|
|
|
2109
2186
|
result.rawImages = jsonObject["rawImages"]
|
|
2110
2187
|
result.video = jsonObject["video"]
|
|
2111
2188
|
result.rfidSession = jsonObject["rfidSession"]
|
|
2189
|
+
result.mdlSession = jsonObject["mdlSession"]
|
|
2112
2190
|
|
|
2113
2191
|
return result
|
|
2114
2192
|
}
|
|
@@ -2183,6 +2261,10 @@ export const CustomizationColor = {
|
|
|
2183
2261
|
MDL_ENABLE_NFC_DESCRIPTION_TEXT: "mdlEnableNfcDescriptionText",
|
|
2184
2262
|
MDL_ENABLE_NFC_BUTTON_TEXT: "mdlEnableNfcButtonText",
|
|
2185
2263
|
MDL_ENABLE_NFC_BUTTON_BACKGROUND: "mdlEnableNfcButtonBackground",
|
|
2264
|
+
NEXT_PAGE_ID_CARD_FRONT: "nextPageIdCardFront",
|
|
2265
|
+
NEXT_PAGE_ID_CARD_BACK: "nextPageIdCardBack",
|
|
2266
|
+
NEXT_PAGE_PASSPORT_SHIFT: "nextPagePassportShift",
|
|
2267
|
+
NEXT_PAGE_PASSPORT_FLIP: "nextPagePassportFlip",
|
|
2186
2268
|
}
|
|
2187
2269
|
|
|
2188
2270
|
export const eRFID_ErrorCodes = {
|
|
@@ -2730,6 +2812,9 @@ export const eRFID_NotificationCodes = {
|
|
|
2730
2812
|
RFID_NOTIFICATION_AUXILIARY_DATA_VALIDATION: 0x000D0000,
|
|
2731
2813
|
RFID_NOTIFICATION_RI_SECTOR_ID: 0x000E0000,
|
|
2732
2814
|
RFID_NOTIFICATION_BIOMETRICS_EMPTY_PLACEHOLDER: 0x000F0000,
|
|
2815
|
+
RFID_NOTIFICATION_SESSION_FILE_DATA_UPDATED: 1048576,
|
|
2816
|
+
RFID_NOTIFICATION_TCC_TA_RESOURCES: 1114112,
|
|
2817
|
+
RFID_NOTIFICATION_TCC_TA_SIGNATURE: 1114113,
|
|
2733
2818
|
}
|
|
2734
2819
|
|
|
2735
2820
|
export const CameraPosition = {
|
|
@@ -2822,6 +2907,11 @@ export const eSignManagementAction = {
|
|
|
2822
2907
|
smaSignData: 7,
|
|
2823
2908
|
}
|
|
2824
2909
|
|
|
2910
|
+
export const CustomizationMatrix = {
|
|
2911
|
+
NEXT_PAGE_ID_CARD_FRONT: "nextPageIdCardFront",
|
|
2912
|
+
NEXT_PAGE_ID_CARD_BACK: "nextPageIdCardBack",
|
|
2913
|
+
}
|
|
2914
|
+
|
|
2825
2915
|
export const eMDLDeviceEngagement = {
|
|
2826
2916
|
QR: 0,
|
|
2827
2917
|
NFC: 1,
|
|
@@ -2964,6 +3054,11 @@ export const eMDLIntentToRetain = {
|
|
|
2964
3054
|
TRUE: 1,
|
|
2965
3055
|
}
|
|
2966
3056
|
|
|
3057
|
+
export const CustomizationContentMode = {
|
|
3058
|
+
NEXT_PAGE_ID_CARD_FRONT: "nextPageIdCardFront",
|
|
3059
|
+
NEXT_PAGE_ID_CARD_BACK: "nextPageIdCardBack",
|
|
3060
|
+
}
|
|
3061
|
+
|
|
2967
3062
|
export const RFIDDelegate = {
|
|
2968
3063
|
NULL: 0,
|
|
2969
3064
|
NO_PA: 1,
|
|
@@ -4470,9 +4565,11 @@ export const eVisualFieldType = {
|
|
|
4470
4565
|
FT_NATIONALITY_CODE_ALPHA2: 697,
|
|
4471
4566
|
FT_FIRST_ISSUE_DATE_CHECKDIGIT: 698,
|
|
4472
4567
|
FT_FIRST_ISSUE_DATE_CHECKSUM: 699,
|
|
4568
|
+
FT_EXPIRY_TIMESTAMP: 700,
|
|
4473
4569
|
FT_COMMERCIAL_INDICATOR: 701,
|
|
4474
4570
|
FT_NON_DOMICILED_INDICATOR: 702,
|
|
4475
4571
|
FT_JURISDICTION_SPECIFIC_DATA: 703,
|
|
4572
|
+
FT_DATA_DATE_OF_EXPIRY: 704,
|
|
4476
4573
|
}
|
|
4477
4574
|
|
|
4478
4575
|
export const DocReaderOrientation = {
|
|
@@ -4652,11 +4749,38 @@ export const LCID = {
|
|
|
4652
4749
|
URDU_DETECTION: 10560,
|
|
4653
4750
|
}
|
|
4654
4751
|
|
|
4752
|
+
export const CustomizationTiming = {
|
|
4753
|
+
NEXT_PAGE_ID_CARD_START_DELAY: "nextPageIdCardStartDelay",
|
|
4754
|
+
NEXT_PAGE_ID_CARD_END_DELAY: "nextPageIdCardEndDelay",
|
|
4755
|
+
NEXT_PAGE_PASSPORT_SHIFT_START_DELAY: "nextPagePassportShiftStartDelay",
|
|
4756
|
+
NEXT_PAGE_PASSPORT_SHIFT_END_DELAY: "nextPagePassportShiftEndDelay",
|
|
4757
|
+
NEXT_PAGE_PASSPORT_FLIP_START_DELAY: "nextPagePassportFlipStartDelay",
|
|
4758
|
+
NEXT_PAGE_PASSPORT_FLIP_END_DELAY: "nextPagePassportFlipEndDelay",
|
|
4759
|
+
}
|
|
4760
|
+
|
|
4655
4761
|
export const CustomizationImage = {
|
|
4762
|
+
HELP_ANIMATION: "helpAnimation",
|
|
4763
|
+
LIVENESS_ANIMATION: "livenessAnimation",
|
|
4764
|
+
BORDER_BACKGROUND: "borderBackground",
|
|
4765
|
+
TORCH_BUTTON_ON: "torchButtonOn",
|
|
4766
|
+
TORCH_BUTTON_OFF: "torchButtonOff",
|
|
4767
|
+
CAPTURE_BUTTON: "captureButton",
|
|
4768
|
+
SWITCH_BUTTON: "switchButton",
|
|
4769
|
+
CLOSE_BUTTON: "closeButton",
|
|
4770
|
+
MULTIPAGE_BUTTON: "multipageButton",
|
|
4656
4771
|
RFID_PROCESSING_SCREEN_FAILURE_IMAGE: "rfidProcessingScreenFailureImage",
|
|
4657
4772
|
RFID_ENABLE_NFC_IMAGE: "rfidEnableNfcImage",
|
|
4773
|
+
RFID_DISABLE_NFC_IMAGE: "rfidDisableNfcImage",
|
|
4658
4774
|
MDL_PROCESSING_SCREEN_FAILURE_IMAGE: "mdlProcessingScreenFailureImage",
|
|
4659
4775
|
MDL_ENABLE_NFC_IMAGE: "mdlEnableNfcImage",
|
|
4776
|
+
MDL_DISABLE_NFC_IMAGE: "mdlDisableNfcImage",
|
|
4777
|
+
NEXT_PAGE_ID_CARD_FRONT: "nextPageIdCardFront",
|
|
4778
|
+
NEXT_PAGE_ID_CARD_BACK: "nextPageIdCardBack",
|
|
4779
|
+
NEXT_PAGE_PASSPORT_SHIFT: "nextPagePassportShift",
|
|
4780
|
+
NEXT_PAGE_PASSPORT_FLIP_START: "nextPagePassportFlipStart",
|
|
4781
|
+
NEXT_PAGE_PASSPORT_FLIP_CLEAN: "nextPagePassportFlipClean",
|
|
4782
|
+
NEXT_PAGE_PASSPORT_FLIP_TOP: "nextPagePassportFlipTop",
|
|
4783
|
+
NEXT_PAGE_PASSPORT_FLIP_BOTTOM: "nextPagePassportFlipBottom",
|
|
4660
4784
|
}
|
|
4661
4785
|
|
|
4662
4786
|
export const DocReaderFrame = {
|
|
@@ -4721,9 +4845,11 @@ export const Enum = {
|
|
|
4721
4845
|
BarcodeResult,
|
|
4722
4846
|
eRFID_Application_Type,
|
|
4723
4847
|
eSignManagementAction,
|
|
4848
|
+
CustomizationMatrix,
|
|
4724
4849
|
eMDLDeviceEngagement,
|
|
4725
4850
|
eCheckDiagnose,
|
|
4726
4851
|
eMDLIntentToRetain,
|
|
4852
|
+
CustomizationContentMode,
|
|
4727
4853
|
RFIDDelegate,
|
|
4728
4854
|
TextProcessing,
|
|
4729
4855
|
LogLevel,
|
|
@@ -4754,6 +4880,7 @@ export const Enum = {
|
|
|
4754
4880
|
eVisualFieldType,
|
|
4755
4881
|
DocReaderOrientation,
|
|
4756
4882
|
LCID,
|
|
4883
|
+
CustomizationTiming,
|
|
4757
4884
|
CustomizationImage,
|
|
4758
4885
|
DocReaderFrame,
|
|
4759
4886
|
eMDLDocRequestPreset,
|