@regulaforensics/document-reader 9.3.671-nightly → 9.3.674-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.
Files changed (60) hide show
  1. package/RNDocumentReader.podspec +2 -2
  2. package/android/build.gradle +2 -2
  3. package/android/cordova.gradle +2 -2
  4. package/android/src/main/java/com/regula/plugin/documentreader/Config.kt +137 -48
  5. package/android/src/main/java/com/regula/plugin/documentreader/JSONConstructor.kt +23 -19
  6. package/android/src/main/java/com/regula/plugin/documentreader/Main.kt +2 -2
  7. package/android/src/main/java/com/regula/plugin/documentreader/Utils.kt +5 -0
  8. package/examples/capacitor/package.json +1 -1
  9. package/examples/ionic/package.json +1 -1
  10. package/examples/react_native/package.json +1 -1
  11. package/ios/RGLWConfig.m +152 -41
  12. package/ios/RGLWJSONConstructor.m +5 -0
  13. package/package.json +1 -1
  14. package/plugin.xml +2 -2
  15. package/test/json.tsx +48 -2
  16. package/test/package-lock.json +1 -1
  17. package/test/test.tsx +5 -2
  18. package/www/capacitor/config/FinalizeConfig.js +4 -0
  19. package/www/capacitor/index.js +7 -5
  20. package/www/capacitor/params/customization/Customization.js +28 -18
  21. package/www/capacitor/params/customization/CustomizationColors.js +33 -1
  22. package/www/capacitor/params/customization/CustomizationContentModes.js +55 -0
  23. package/www/capacitor/params/customization/CustomizationFonts.js +38 -2
  24. package/www/capacitor/params/customization/CustomizationImages.js +145 -1
  25. package/www/capacitor/params/customization/CustomizationMatrices.js +39 -0
  26. package/www/capacitor/params/customization/CustomizationTimings.js +71 -0
  27. package/www/capacitor/params/process_params/BackendProcessingConfig.js +4 -0
  28. package/www/capacitor/params/process_params/ProcessParams.js +24 -0
  29. package/www/capacitor/results/visual_results/FieldType.js +2 -0
  30. package/www/capacitor/rfid/RFIDNotification.js +4 -1
  31. package/www/cordova.js +568 -140
  32. package/www/react-native/config/FinalizeConfig.js +4 -0
  33. package/www/react-native/index.js +7 -5
  34. package/www/react-native/params/customization/Customization.js +28 -18
  35. package/www/react-native/params/customization/CustomizationColors.js +33 -1
  36. package/www/react-native/params/customization/CustomizationContentModes.js +55 -0
  37. package/www/react-native/params/customization/CustomizationFonts.js +38 -2
  38. package/www/react-native/params/customization/CustomizationImages.js +145 -1
  39. package/www/react-native/params/customization/CustomizationMatrices.js +39 -0
  40. package/www/react-native/params/customization/CustomizationTimings.js +71 -0
  41. package/www/react-native/params/process_params/BackendProcessingConfig.js +4 -0
  42. package/www/react-native/params/process_params/ProcessParams.js +24 -0
  43. package/www/react-native/results/visual_results/FieldType.js +2 -0
  44. package/www/react-native/rfid/RFIDNotification.js +4 -1
  45. package/www/types/config/FinalizeConfig.d.ts +2 -1
  46. package/www/types/index.d.ts +7 -5
  47. package/www/types/params/customization/Customization.d.ts +37 -33
  48. package/www/types/params/customization/CustomizationColors.d.ts +4 -0
  49. package/www/types/params/customization/CustomizationContentModes.d.ts +41 -0
  50. package/www/types/params/customization/CustomizationFonts.d.ts +37 -2
  51. package/www/types/params/customization/CustomizationImages.d.ts +19 -0
  52. package/www/types/params/customization/CustomizationMatrices.d.ts +10 -0
  53. package/www/types/params/customization/CustomizationTimings.d.ts +14 -0
  54. package/www/types/params/process_params/BackendProcessingConfig.d.ts +2 -0
  55. package/www/types/params/process_params/ProcessParams.d.ts +9 -0
  56. package/www/types/results/visual_results/FieldType.d.ts +2 -0
  57. package/www/types/rfid/RFIDNotification.d.ts +4 -1
  58. package/www/capacitor/params/customization/Font.js +0 -36
  59. package/www/react-native/params/customization/Font.js +0 -36
  60. package/www/types/params/customization/Font.d.ts +0 -36
package/ios/RGLWConfig.m CHANGED
@@ -194,7 +194,10 @@
194
194
  if (options[@"strictSecurityChecks"]) processParams.strictSecurityChecks = options[@"strictSecurityChecks"];
195
195
  if (options[@"returnTransliteratedFields"]) processParams.returnTransliteratedFields = options[@"returnTransliteratedFields"];
196
196
  if (options[@"checkCaptureProcessIntegrity"]) processParams.checkCaptureProcessIntegrity = options[@"checkCaptureProcessIntegrity"];
197
-
197
+ if (options[@"strictExpiryDate"]) processParams.strictExpiryDate = options[@"strictExpiryDate"];
198
+ if (options[@"debugSaveBinarySession"]) processParams.debugSaveBinarySession = options[@"debugSaveBinarySession"];
199
+ if (options[@"checkVDS"]) processParams.checkVDS = options[@"checkVDS"];
200
+
198
201
  // Int
199
202
  if([options valueForKey:@"measureSystem"] != nil)
200
203
  processParams.measureSystem = [[options valueForKey:@"measureSystem"] integerValue];
@@ -225,7 +228,7 @@
225
228
  if(options[@"logLevel"]) processParams.logLevel = options[@"logLevel"];
226
229
  if(options[@"mrzDetectMode"]) processParams.mrzDetectMode = options[@"mrzDetectMode"];
227
230
  if(options[@"pdfPagesLimit"]) processParams.pdfPagesLimit = options[@"pdfPagesLimit"];
228
-
231
+
229
232
  // String
230
233
  if([options valueForKey:@"dateFormat"] != nil)
231
234
  processParams.dateFormat = [options valueForKey:@"dateFormat"];
@@ -233,7 +236,7 @@
233
236
  processParams.scenario = [options valueForKey:@"scenario"];
234
237
  if([options valueForKey:@"captureButtonScenario"] != nil)
235
238
  processParams.captureButtonScenario = [options valueForKey:@"captureButtonScenario"];
236
-
239
+
237
240
  // Double
238
241
  if([options valueForKey:@"timeout"] != nil)
239
242
  processParams.timeout = [options valueForKey:@"timeout"];
@@ -245,7 +248,7 @@
245
248
  processParams.documentAreaMin = [options valueForKey:@"documentAreaMin"];
246
249
  if([options valueForKey:@"timeoutLiveness"] != nil)
247
250
  processParams.timeoutLiveness = [options valueForKey:@"timeoutLiveness"];
248
-
251
+
249
252
  // JSONArray
250
253
  if([options valueForKey:@"documentIDList"] != nil)
251
254
  processParams.documentIDList = [options valueForKey:@"documentIDList"];
@@ -263,7 +266,7 @@
263
266
  processParams.lcidIgnoreFilter = [options mutableArrayValueForKey:@"lcidIgnoreFilter"];
264
267
  if (options[@"lcidFilter"]) processParams.lcidFilter = options[@"lcidFilter"];
265
268
  if (options[@"fieldTypesIgnoreFilter"]) processParams.fieldTypesIgnoreFilter = options[@"fieldTypesIgnoreFilter"];
266
-
269
+
267
270
  // JSONObject
268
271
  if (options[@"customParams"]) processParams.customParams = options[@"customParams"];
269
272
  if ([options valueForKey:@"imageQA"] != nil)
@@ -283,7 +286,7 @@
283
286
 
284
287
  +(NSDictionary*)getProcessParams:(RGLProcessParams*)processParams {
285
288
  NSMutableDictionary *result = [NSMutableDictionary new];
286
-
289
+
287
290
  // Boolean
288
291
  result[@"multipageProcessing"] = processParams.multipageProcessing;
289
292
  result[@"logs"] = processParams.logs;
@@ -326,6 +329,9 @@
326
329
  result[@"strictSecurityChecks"] = processParams.strictSecurityChecks;
327
330
  result[@"returnTransliteratedFields"] = processParams.returnTransliteratedFields;
328
331
  result[@"checkCaptureProcessIntegrity"] = processParams.checkCaptureProcessIntegrity;
332
+ result[@"strictExpiryDate"] = processParams.strictExpiryDate;
333
+ result[@"debugSaveBinarySession"] = processParams.debugSaveBinarySession;
334
+ result[@"checkVDS"] = processParams.checkVDS;
329
335
 
330
336
  // Int
331
337
  result[@"measureSystem"] = [NSNumber numberWithInteger:processParams.measureSystem];
@@ -518,13 +524,12 @@
518
524
  customization.livenessAnimationImageContentMode = [self viewContentModeWithNumber:[options valueForKey:@"livenessAnimationImageContentMode"]];
519
525
  if([options valueForKey:@"borderBackgroundImageContentMode"] != nil)
520
526
  customization.borderBackgroundImageContentMode = [self viewContentModeWithNumber:[options valueForKey:@"borderBackgroundImageContentMode"]];
521
-
522
- if([options valueForKey:@"colors"] != nil)
523
- [self setColors:[customization.uiConfiguration valueForKey:@"colors"] input:[options valueForKey:@"colors"]];
524
- if([options valueForKey:@"fonts"] != nil)
525
- [self setFonts:[customization.uiConfiguration valueForKey:@"fonts"] input:[options valueForKey:@"fonts"]];
526
- if([options valueForKey:@"images"] != nil)
527
- [self setImages:[customization.uiConfiguration valueForKey:@"images"] input:[options valueForKey:@"images"]];
527
+
528
+ if(options[@"colors"]) [self setColors:[customization.uiConfiguration valueForKey:@"colors"] input:options[@"colors"]];
529
+ if(options[@"fonts"]) [self setFonts:[customization.uiConfiguration valueForKey:@"fonts"] input:options[@"fonts"]];
530
+ if(options[@"images"]) [self setImages:[customization.uiConfiguration valueForKey:@"images"] input:options[@"images"]];
531
+ if(options[@"timings"]) [self setTimings:[customization.uiConfiguration valueForKey:@"timings"] input:options[@"timings"]];
532
+ if(options[@"contentModes"]) [self setContentModes:[customization.uiConfiguration valueForKey:@"contentModes"] input:options[@"contentModes"]];
528
533
  }
529
534
 
530
535
  +(NSDictionary*)getCustomization:(RGLCustomization*)customization {
@@ -615,6 +620,8 @@
615
620
  result[@"colors"] = [self getColors: [customization.uiConfiguration valueForKey:@"colors"]];
616
621
  result[@"fonts"] = [self getFonts: [customization.uiConfiguration valueForKey:@"fonts"]];
617
622
  result[@"images"] = [self getImages: [customization.uiConfiguration valueForKey:@"images"]];
623
+ result[@"timings"] = [self getTimings: [customization.uiConfiguration valueForKey:@"timings"]];
624
+ result[@"contentModes"] = [self getContentModes: [customization.uiConfiguration valueForKey:@"contentModes"]];
618
625
 
619
626
  return result;
620
627
  }
@@ -1097,25 +1104,35 @@
1097
1104
  if(input[@"mdlProcessingScreenProgressLabelText"]) result[@(MDLProcessingScreenProgressLabelText)] = [self colorWithInt:input[@"mdlProcessingScreenProgressLabelText"]];
1098
1105
  if(input[@"mdlProcessingScreenResultLabelText"]) result[@(MDLProcessingScreenResultLabelText)] = [self colorWithInt:input[@"mdlProcessingScreenResultLabelText"]];
1099
1106
  if(input[@"mdlProcessingScreenLoadingBar"]) result[@(MDLProcessingScreenLoadingBar)] = [self colorWithInt:input[@"mdlProcessingScreenLoadingBar"]];
1107
+ if(input[@"nextPageIdCardFront"]) result[@(RGLCustomizationColorNextPageIdCardFront)] = [self colorWithInt:input[@"nextPageIdCardFront"]];
1108
+ if(input[@"nextPageIdCardBack"]) result[@(RGLCustomizationColorNextPageIdCardBack)] = [self colorWithInt:input[@"nextPageIdCardBack"]];
1109
+ if(input[@"nextPagePassportShift"]) result[@(RGLCustomizationColorNextPagePassportShift)] = [self colorWithInt:input[@"nextPagePassportShift"]];
1110
+ if(input[@"nextPagePassportFlip"]) result[@(RGLCustomizationColorNextPagePassportFlip)] = [self colorWithInt:input[@"nextPagePassportFlip"]];
1100
1111
  }
1101
1112
 
1102
1113
  +(NSDictionary*)getColors:(NSDictionary*)input {
1103
- return @{
1104
- @"rfidProcessingScreenBackground": [self intWithColor:input[@(RFIDProcessingScreenBackground)]],
1105
- @"rfidProcessingScreenHintLabelText": [self intWithColor:input[@(RFIDProcessingScreenHintLabelText)]],
1106
- @"rfidProcessingScreenHintLabelBackground": [self intWithColor:input[@(RFIDProcessingScreenHintLabelBackground)]],
1107
- @"rfidProcessingScreenProgressLabelText": [self intWithColor:input[@(RFIDProcessingScreenProgressLabelText)]],
1108
- @"rfidProcessingScreenProgressBar": [self intWithColor:input[@(RFIDProcessingScreenProgressBar)]],
1109
- @"rfidProcessingScreenProgressBarBackground": [self intWithColor:input[@(RFIDProcessingScreenProgressBarBackground)]],
1110
- @"rfidProcessingScreenResultLabelText": [self intWithColor:input[@(RFIDProcessingScreenResultLabelText)]],
1111
- @"rfidProcessingScreenLoadingBar": [self intWithColor:input[@(RFIDProcessingScreenLoadingBar)]],
1112
- @"mdlProcessingScreenBackground": [self intWithColor:input[@(MDLProcessingScreenBackground)]],
1113
- @"mdlProcessingScreenHintLabelText": [self intWithColor:input[@(MDLProcessingScreenHintLabelText)]],
1114
- @"mdlProcessingScreenHintLabelBackground": [self intWithColor:input[@(MDLProcessingScreenHintLabelBackground)]],
1115
- @"mdlProcessingScreenProgressLabelText": [self intWithColor:input[@(MDLProcessingScreenProgressLabelText)]],
1116
- @"mdlProcessingScreenResultLabelText": [self intWithColor:input[@(MDLProcessingScreenResultLabelText)]],
1117
- @"mdlProcessingScreenLoadingBar": [self intWithColor:input[@(MDLProcessingScreenLoadingBar)]],
1118
- };
1114
+ id result = @{}.mutableCopy;
1115
+
1116
+ if(input[@(RFIDProcessingScreenBackground)]) result[@"rfidProcessingScreenBackground"] = [self intWithColor:input[@(RFIDProcessingScreenBackground)]];
1117
+ if(input[@(RFIDProcessingScreenHintLabelText)]) result[@"rfidProcessingScreenHintLabelText"] = [self intWithColor:input[@(RFIDProcessingScreenHintLabelText)]];
1118
+ if(input[@(RFIDProcessingScreenHintLabelBackground)]) result[@"rfidProcessingScreenHintLabelBackground"] = [self intWithColor:input[@(RFIDProcessingScreenHintLabelBackground)]];
1119
+ if(input[@(RFIDProcessingScreenProgressLabelText)]) result[@"rfidProcessingScreenProgressLabelText"] = [self intWithColor:input[@(RFIDProcessingScreenProgressLabelText)]];
1120
+ if(input[@(RFIDProcessingScreenProgressBar)]) result[@"rfidProcessingScreenProgressBar"] = [self intWithColor:input[@(RFIDProcessingScreenProgressBar)]];
1121
+ if(input[@(RFIDProcessingScreenProgressBarBackground)]) result[@"rfidProcessingScreenProgressBarBackground"] = [self intWithColor:input[@(RFIDProcessingScreenProgressBarBackground)]];
1122
+ if(input[@(RFIDProcessingScreenResultLabelText)]) result[@"rfidProcessingScreenResultLabelText"] = [self intWithColor:input[@(RFIDProcessingScreenResultLabelText)]];
1123
+ if(input[@(RFIDProcessingScreenLoadingBar)]) result[@"rfidProcessingScreenLoadingBar"] = [self intWithColor:input[@(RFIDProcessingScreenLoadingBar)]];
1124
+ if(input[@(MDLProcessingScreenBackground)]) result[@"mdlProcessingScreenBackground"] = [self intWithColor:input[@(MDLProcessingScreenBackground)]];
1125
+ if(input[@(MDLProcessingScreenHintLabelText)]) result[@"mdlProcessingScreenHintLabelText"] = [self intWithColor:input[@(MDLProcessingScreenHintLabelText)]];
1126
+ if(input[@(MDLProcessingScreenHintLabelBackground)]) result[@"mdlProcessingScreenHintLabelBackground"] = [self intWithColor:input[@(MDLProcessingScreenHintLabelBackground)]];
1127
+ if(input[@(MDLProcessingScreenProgressLabelText)]) result[@"mdlProcessingScreenProgressLabelText"] = [self intWithColor:input[@(MDLProcessingScreenProgressLabelText)]];
1128
+ if(input[@(MDLProcessingScreenResultLabelText)]) result[@"mdlProcessingScreenResultLabelText"] = [self intWithColor:input[@(MDLProcessingScreenResultLabelText)]];
1129
+ if(input[@(MDLProcessingScreenLoadingBar)]) result[@"mdlProcessingScreenLoadingBar"] = [self intWithColor:input[@(MDLProcessingScreenLoadingBar)]];
1130
+ if(input[@(RGLCustomizationColorNextPageIdCardFront)]) result[@"nextPageIdCardFront"] = [self intWithColor:input[@(RGLCustomizationColorNextPageIdCardFront)]];
1131
+ if(input[@(RGLCustomizationColorNextPageIdCardBack)]) result[@"nextPageIdCardBack"] = [self intWithColor:input[@(RGLCustomizationColorNextPageIdCardBack)]];
1132
+ if(input[@(RGLCustomizationColorNextPagePassportShift)]) result[@"nextPagePassportShift"] = [self intWithColor:input[@(RGLCustomizationColorNextPagePassportShift)]];
1133
+ if(input[@(RGLCustomizationColorNextPagePassportFlip)]) result[@"nextPagePassportFlip"] = [self intWithColor:input[@(RGLCustomizationColorNextPagePassportFlip)]];
1134
+
1135
+ return result;
1119
1136
  }
1120
1137
 
1121
1138
  +(void)setFonts:(NSMutableDictionary*)result input:(NSDictionary*)input {
@@ -1130,25 +1147,119 @@
1130
1147
  }
1131
1148
 
1132
1149
  +(NSDictionary*)getFonts:(NSDictionary*)input {
1133
- return @{
1134
- @"rfidProcessingScreenHintLabel": [self generateUIFont:input[@(RFIDProcessingScreenHintLabel)]],
1135
- @"rfidProcessingScreenProgressLabel": [self generateUIFont:input[@(RFIDProcessingScreenProgressLabel)]],
1136
- @"rfidProcessingScreenResultLabel": [self generateUIFont:input[@(RFIDProcessingScreenResultLabel)]],
1137
- @"mdlProcessingScreenHintLabel": [self generateUIFont:input[@(MDLProcessingScreenHintLabel)]],
1138
- @"mdlProcessingScreenProgressLabel": [self generateUIFont:input[@(MDLProcessingScreenProgressLabel)]],
1139
- @"mdlProcessingScreenResultLabel": [self generateUIFont:input[@(MDLProcessingScreenResultLabel)]],
1150
+ return @{
1151
+ @"rfidProcessingScreenHintLabel": [self generateUIFont:input[@(RFIDProcessingScreenHintLabel)]],
1152
+ @"rfidProcessingScreenProgressLabel": [self generateUIFont:input[@(RFIDProcessingScreenProgressLabel)]],
1153
+ @"rfidProcessingScreenResultLabel": [self generateUIFont:input[@(RFIDProcessingScreenResultLabel)]],
1154
+ @"mdlProcessingScreenHintLabel": [self generateUIFont:input[@(MDLProcessingScreenHintLabel)]],
1155
+ @"mdlProcessingScreenProgressLabel": [self generateUIFont:input[@(MDLProcessingScreenProgressLabel)]],
1156
+ @"mdlProcessingScreenResultLabel": [self generateUIFont:input[@(MDLProcessingScreenResultLabel)]],
1140
1157
  };
1141
1158
  }
1142
1159
 
1143
1160
  +(void)setImages:(NSMutableDictionary*)result input:(NSDictionary*)input {
1144
- if(input[@"rfidProcessingScreenFailureImage"]) result[@(RFIDProcessingScreenFailureImage)] = [RGLWJSONConstructor imageWithBase64:input[@"rfidProcessingScreenFailureImage"]];
1145
- if(input[@"mdlProcessingScreenFailureImage"]) result[@(MDLProcessingScreenFailureImage)] = [RGLWJSONConstructor imageWithBase64:input[@"mdlProcessingScreenFailureImage"]];
1161
+ if(input[@"helpAnimation"]) result[RGLCustomizationImageHelpAnimation] = [RGLWJSONConstructor imageWithBase64:input[@"helpAnimation"]];
1162
+ if(input[@"livenessAnimation"]) result[RGLCustomizationImageLivenessAnimation] = [RGLWJSONConstructor imageWithBase64:input[@"livenessAnimation"]];
1163
+ if(input[@"borderBackground"]) result[RGLCustomizationImageBorderBackground] = [RGLWJSONConstructor imageWithBase64:input[@"borderBackground"]];
1164
+ if(input[@"torchButtonOn"]) result[RGLCustomizationImageTorchButtonOn] = [RGLWJSONConstructor imageWithBase64:input[@"torchButtonOn"]];
1165
+ if(input[@"torchButtonOff"]) result[RGLCustomizationImageTorchButtonOff] = [RGLWJSONConstructor imageWithBase64:input[@"torchButtonOff"]];
1166
+ if(input[@"captureButton"]) result[RGLCustomizationImageCaptureButton] = [RGLWJSONConstructor imageWithBase64:input[@"captureButton"]];
1167
+ if(input[@"switchButton"]) result[RGLCustomizationImageSwitchButton] = [RGLWJSONConstructor imageWithBase64:input[@"switchButton"]];
1168
+ if(input[@"closeButton"]) result[RGLCustomizationImageCloseButton] = [RGLWJSONConstructor imageWithBase64:input[@"closeButton"]];
1169
+ if(input[@"multipageButton"]) result[RGLCustomizationImageMultipageButton] = [RGLWJSONConstructor imageWithBase64:input[@"multipageButton"]];
1170
+ if(input[@"rfidProcessingScreenFailureImage"]) result[RGLCustomizationImageRFIDProcessingScreenFailure] = [RGLWJSONConstructor imageWithBase64:input[@"rfidProcessingScreenFailureImage"]];
1171
+ if(input[@"mdlProcessingScreenFailureImage"]) result[RGLCustomizationImageMDLProcessingScreenFailure] = [RGLWJSONConstructor imageWithBase64:input[@"mdlProcessingScreenFailureImage"]];
1172
+ if(input[@"nextPageIdCardFront"]) result[RGLCustomizationImageNextPageIdCardFront] = [RGLWJSONConstructor imageWithBase64:input[@"nextPageIdCardFront"]];
1173
+ if(input[@"nextPageIdCardBack"]) result[RGLCustomizationImageNextPageIdCardBack] = [RGLWJSONConstructor imageWithBase64:input[@"nextPageIdCardBack"]];
1174
+ if(input[@"nextPagePassportShift"]) result[RGLCustomizationImageNextPagePassportShift] = [RGLWJSONConstructor imageWithBase64:input[@"nextPagePassportShift"]];
1175
+ if(input[@"nextPagePassportFlipStart"]) result[RGLCustomizationImageNextPagePassportFlipStart] = [RGLWJSONConstructor imageWithBase64:input[@"nextPagePassportFlipStart"]];
1176
+ if(input[@"nextPagePassportFlipClean"]) result[RGLCustomizationImageNextPagePassportFlipClean] = [RGLWJSONConstructor imageWithBase64:input[@"nextPagePassportFlipClean"]];
1177
+ if(input[@"nextPagePassportFlipTop"]) result[RGLCustomizationImageNextPagePassportFlipTop] = [RGLWJSONConstructor imageWithBase64:input[@"nextPagePassportFlipTop"]];
1178
+ if(input[@"nextPagePassportFlipBottom"]) result[RGLCustomizationImageNextPagePassportFlipBottom] = [RGLWJSONConstructor imageWithBase64:input[@"nextPagePassportFlipBottom"]];
1146
1179
  }
1147
1180
 
1148
1181
  +(NSDictionary*)getImages:(NSDictionary*)input {
1149
- return @{
1150
- @"rfidProcessingScreenFailureImage": [RGLWJSONConstructor base64WithImage:input[@(RFIDProcessingScreenFailureImage)]],
1151
- @"mdlProcessingScreenFailureImage": [RGLWJSONConstructor base64WithImage:input[@(MDLProcessingScreenFailureImage)]],
1182
+ id result = @{}.mutableCopy;
1183
+ id i;
1184
+
1185
+ i = RGLCustomizationImageHelpAnimation;
1186
+ if(input[i]) result[@"helpAnimation"] = [RGLWJSONConstructor base64WithImage:input[i]];
1187
+ i = RGLCustomizationImageLivenessAnimation;
1188
+ if(input[i]) result[@"livenessAnimation"] = [RGLWJSONConstructor base64WithImage:input[i]];
1189
+ i = RGLCustomizationImageBorderBackground;
1190
+ if(input[i]) result[@"borderBackground"] = [RGLWJSONConstructor base64WithImage:input[i]];
1191
+ i = RGLCustomizationImageTorchButtonOn;
1192
+ if(input[i]) result[@"torchButtonOn"] = [RGLWJSONConstructor base64WithImage:input[i]];
1193
+ i = RGLCustomizationImageTorchButtonOff;
1194
+ if(input[i]) result[@"torchButtonOff"] = [RGLWJSONConstructor base64WithImage:input[i]];
1195
+ i = RGLCustomizationImageCaptureButton;
1196
+ if(input[i]) result[@"captureButton"] = [RGLWJSONConstructor base64WithImage:input[i]];
1197
+ i = RGLCustomizationImageSwitchButton;
1198
+ if(input[i]) result[@"switchButton"] = [RGLWJSONConstructor base64WithImage:input[i]];
1199
+ i = RGLCustomizationImageCloseButton;
1200
+ if(input[i]) result[@"closeButton"] = [RGLWJSONConstructor base64WithImage:input[i]];
1201
+ i = RGLCustomizationImageMultipageButton;
1202
+ if(input[i]) result[@"multipageButton"] = [RGLWJSONConstructor base64WithImage:input[i]];
1203
+ i = RGLCustomizationImageRFIDProcessingScreenFailure;
1204
+ if(input[i]) result[@"rfidProcessingScreenFailureImage"] = [RGLWJSONConstructor base64WithImage:input[i]];
1205
+ i = RGLCustomizationImageMDLProcessingScreenFailure;
1206
+ if(input[i]) result[@"mdlProcessingScreenFailureImage"] = [RGLWJSONConstructor base64WithImage:input[i]];
1207
+ i = RGLCustomizationImageNextPageIdCardFront;
1208
+ if(input[i]) result[@"nextPageIdCardFront"] = [RGLWJSONConstructor base64WithImage:input[i]];
1209
+ i = RGLCustomizationImageNextPageIdCardBack;
1210
+ if(input[i]) result[@"nextPageIdCardBack"] = [RGLWJSONConstructor base64WithImage:input[i]];
1211
+ i = RGLCustomizationImageNextPagePassportShift;
1212
+ if(input[i]) result[@"nextPagePassportShift"] = [RGLWJSONConstructor base64WithImage:input[i]];
1213
+ i = RGLCustomizationImageNextPagePassportFlipStart;
1214
+ if(input[i]) result[@"nextPagePassportFlipStart"] = [RGLWJSONConstructor base64WithImage:input[i]];
1215
+ i = RGLCustomizationImageNextPagePassportFlipClean;
1216
+ if(input[i]) result[@"nextPagePassportFlipClean"] = [RGLWJSONConstructor base64WithImage:input[i]];
1217
+ i = RGLCustomizationImageNextPagePassportFlipTop;
1218
+ if(input[i]) result[@"nextPagePassportFlipTop"] = [RGLWJSONConstructor base64WithImage:input[i]];
1219
+ i = RGLCustomizationImageNextPagePassportFlipBottom;
1220
+ if(input[i]) result[@"nextPagePassportFlipBottom"] = [RGLWJSONConstructor base64WithImage:input[i]];
1221
+
1222
+ return result;
1223
+ }
1224
+
1225
+ +(void)setTimings:(NSMutableDictionary*)result input:(NSDictionary*)input {
1226
+ if(input[@"nextPageIdCardStartDelay"]) result[@(RGLCustomizationTimingNextPageIdCardStartDelay)] = input[@"nextPageIdCardStartDelay"];
1227
+ if(input[@"nextPageIdCardEndDelay"]) result[@(RGLCustomizationTimingNextPageIdCardEndDelay)] = input[@"nextPageIdCardEndDelay"];
1228
+ if(input[@"nextPagePassportShiftStartDelay"]) result[@(RGLCustomizationTimingNextPagePassportShiftStartDelay)] = input[@"nextPagePassportShiftStartDelay"];
1229
+ if(input[@"nextPagePassportShiftEndDelay"]) result[@(RGLCustomizationTimingNextPagePassportShiftEndDelay)] = input[@"nextPagePassportShiftEndDelay"];
1230
+ if(input[@"nextPagePassportFlipStartDelay"]) result[@(RGLCustomizationTimingNextPagePassportFlipStartDelay)] = input[@"nextPagePassportFlipStartDelay"];
1231
+ if(input[@"nextPagePassportFlipEndDelay"]) result[@(RGLCustomizationTimingNextPagePassportFlipEndDelay)] = input[@"nextPagePassportFlipEndDelay"];
1232
+ }
1233
+
1234
+ +(NSDictionary*)getTimings:(NSDictionary*)input {
1235
+ id result = @{}.mutableCopy;
1236
+ id i;
1237
+
1238
+ i = @(RGLCustomizationTimingNextPageIdCardStartDelay);
1239
+ if(input[i]) result[@"nextPageIdCardStartDelay"] = input[i];
1240
+ i = @(RGLCustomizationTimingNextPageIdCardEndDelay);
1241
+ if(input[i]) result[@"nextPageIdCardEndDelay"] = input[i];
1242
+ i = @(RGLCustomizationTimingNextPagePassportShiftStartDelay);
1243
+ if(input[i]) result[@"nextPagePassportShiftStartDelay"] = input[i];
1244
+ i = @(RGLCustomizationTimingNextPagePassportShiftEndDelay);
1245
+ if(input[i]) result[@"nextPagePassportShiftEndDelay"] = input[i];
1246
+ i = @(RGLCustomizationTimingNextPagePassportFlipStartDelay);
1247
+ if(input[i]) result[@"nextPagePassportFlipStartDelay"] = input[i];
1248
+ i = @(RGLCustomizationTimingNextPagePassportFlipEndDelay);
1249
+ if(input[i]) result[@"nextPagePassportFlipEndDelay"] = input[i];
1250
+
1251
+ return result;
1252
+ }
1253
+
1254
+ +(void)setContentModes:(NSMutableDictionary*)result input:(NSDictionary*)input {
1255
+ if(input[@"nextPageIdCardFront"]) result[@(RGLCustomizationContentModeNextPageIdCardFront)] = input[@"nextPageIdCardFront"];
1256
+ if(input[@"nextPageIdCardBack"]) result[@(RGLCustomizationContentModeNextPageIdCardBack)] = input[@"nextPageIdCardBack"];
1257
+ }
1258
+
1259
+ +(NSDictionary*)getContentModes:(NSDictionary*)input {
1260
+ return @{
1261
+ @"nextPageIdCardFront": input[@(RGLCustomizationContentModeNextPageIdCardFront)],
1262
+ @"nextPageIdCardBack": input[@(RGLCustomizationContentModeNextPageIdCardBack)],
1152
1263
  };
1153
1264
  }
1154
1265
 
@@ -286,6 +286,8 @@ static NSMutableArray* weakReferencesHolder;
286
286
  result.httpHeaders = [input valueForKey:@"httpHeaders"];
287
287
  if([input valueForKey:@"rfidServerSideChipVerification"] != nil)
288
288
  result.rfidServerSideChipVerification = [input valueForKey:@"rfidServerSideChipVerification"];
289
+ if([input valueForKey:@"mdlVerification"] != nil)
290
+ result.mDLVerification = [input valueForKey:@"mdlVerification"];
289
291
  if (input[@"timeoutConnection"]) result.timeoutConnection = input[@"timeoutConnection"];
290
292
 
291
293
  return result;
@@ -298,6 +300,7 @@ static NSMutableArray* weakReferencesHolder;
298
300
  result[@"url"] = input.url;
299
301
  result[@"httpHeaders"] = input.httpHeaders;
300
302
  result[@"rfidServerSideChipVerification"] = input.rfidServerSideChipVerification;
303
+ result[@"mdlVerification"] = input.mDLVerification;
301
304
  result[@"timeoutConnection"] = input.timeoutConnection;
302
305
 
303
306
  return result;
@@ -2628,6 +2631,7 @@ static NSMutableArray* weakReferencesHolder;
2628
2631
  if (input[@"rawImages"]) result.rawImages = [input[@"rawImages"] boolValue];
2629
2632
  if (input[@"video"]) result.video = [input[@"video"] boolValue];
2630
2633
  if (input[@"rfidSession"]) result.rfidSession = [input[@"rfidSession"] boolValue];
2634
+ if (input[@"mdlSession"]) result.mdlSession = [input[@"mdlSession"] boolValue];
2631
2635
 
2632
2636
  return result;
2633
2637
  }
@@ -2639,6 +2643,7 @@ static NSMutableArray* weakReferencesHolder;
2639
2643
  result[@"rawImages"] = @(input.rawImages);
2640
2644
  result[@"video"] = @(input.video);
2641
2645
  result[@"rfidSession"] = @(input.rfidSession);
2646
+ result[@"mdlSession"] = @(input.mdlSession);
2642
2647
 
2643
2648
  return result;
2644
2649
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/document-reader",
3
- "version": "9.3.671-nightly",
3
+ "version": "9.3.674-rc",
4
4
  "description": "This is an npm module for Regula Document Reader SDK. It allows you to read various kinds of identification documents using your phone's camera.",
5
5
  "main": "www/react-native/index.js",
6
6
  "module": "www/capacitor/index.js",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id="@regulaforensics/document-reader" version="9.3.671-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/document-reader" version="9.3.674-rc" xmlns="http://apache.org/cordova/ns/plugins/1.0">
3
3
  <name>DocumentReader</name>
4
4
  <description>Cordova plugin for Regula Document Reader SDK</description>
5
5
  <license>commercial</license>
@@ -29,7 +29,7 @@
29
29
  <source url="https://github.com/CocoaPods/Specs.git" />
30
30
  </config>
31
31
  <pods>
32
- <pod name="DocumentReaderNightly" spec="9.3.6105" />
32
+ <pod name="DocumentReaderStage" spec="9.3.6080" />
33
33
  </pods>
34
34
  </podspec>
35
35
  </platform>
package/test/json.tsx CHANGED
@@ -64,6 +64,7 @@ export var rfidParams = {
64
64
  export var backendProcessingConfig = {
65
65
  "url": "test",
66
66
  "rfidServerSideChipVerification": true,
67
+ "mdlVerification": false,
67
68
  "httpHeaders": {"key1": "val1", "key2": "val2", "key3": "val3"},
68
69
  "timeoutConnection": 0.5,
69
70
  };
@@ -111,6 +112,9 @@ export var processParams = {
111
112
  "strictSecurityChecks": false,
112
113
  "returnTransliteratedFields": true,
113
114
  "checkCaptureProcessIntegrity": false,
115
+ "strictExpiryDate": true,
116
+ "debugSaveBinarySession": false,
117
+ "checkVDS": true,
114
118
  "bsiTr03135": bsi,
115
119
  "measureSystem": 1,
116
120
  "barcodeParserType": 3,
@@ -177,6 +181,10 @@ export var customizationColors = {
177
181
  "mdlEnableNfcDescriptionText": 0xff000019,
178
182
  "mdlEnableNfcButtonText": 0xff000020,
179
183
  "mdlEnableNfcButtonBackground": 0xff000021,
184
+ "nextPageIdCardFront": 0xff000022,
185
+ "nextPageIdCardBack": 0xff000023,
186
+ "nextPagePassportShift": 0xff000024,
187
+ "nextPagePassportFlip": 0xff000025,
180
188
  };
181
189
  export var customizationFonts = {
182
190
  "rfidProcessingScreenHintLabel": font1,
@@ -193,10 +201,44 @@ export var customizationFonts = {
193
201
  "mdlEnableNfcButtonText": font2,
194
202
  };
195
203
  export var customizationImages = {
204
+ "helpAnimation": img1,
205
+ "livenessAnimation": img2,
206
+ "borderBackground": img1,
207
+ "torchButtonOn": img2,
208
+ "torchButtonOff": img1,
209
+ "captureButton": img2,
210
+ "switchButton": img1,
211
+ "closeButton": img2,
212
+ "multipageButton": img1,
196
213
  "rfidProcessingScreenFailureImage": img1,
197
214
  "rfidEnableNfcImage": img2,
198
- "mdlProcessingScreenFailureImage": img1,
199
- "mdlEnableNfcImage": img2,
215
+ "rfidDisableNfcImage": img1,
216
+ "mdlProcessingScreenFailureImage": img2,
217
+ "mdlEnableNfcImage": img1,
218
+ "mdlDisableNfcImage": img2,
219
+ "nextPageIdCardFront": img1,
220
+ "nextPageIdCardBack": img2,
221
+ "nextPagePassportShift": img1,
222
+ "nextPagePassportFlipStart": img2,
223
+ "nextPagePassportFlipClean": img1,
224
+ "nextPagePassportFlipTop": img2,
225
+ "nextPagePassportFlipBottom": img1,
226
+ };
227
+ export var customizationTimings = {
228
+ "nextPageIdCardStartDelay": 0,
229
+ "nextPageIdCardEndDelay": 1,
230
+ "nextPagePassportShiftStartDelay": 2,
231
+ "nextPagePassportShiftEndDelay": 3,
232
+ "nextPagePassportFlipStartDelay": 4,
233
+ "nextPagePassportFlipEndDelay": 5,
234
+ };
235
+ export var customizationContentModes = {
236
+ "nextPageIdCardFront": 0,
237
+ "nextPageIdCardBack": 1,
238
+ };
239
+ export var customizationMatrices = {
240
+ "nextPageIdCardFront": [1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9],
241
+ "nextPageIdCardBack": [2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9],
200
242
  };
201
243
  export var customization = {
202
244
  "showStatusMessages": true,
@@ -291,6 +333,9 @@ export var customization = {
291
333
  "colors": customizationColors,
292
334
  "fonts": customizationFonts,
293
335
  "images": customizationImages,
336
+ "timings": customizationTimings,
337
+ "contentModes": customizationContentModes,
338
+ "matrices": customizationMatrices,
294
339
  };
295
340
  export var cameraSize = {"width": 0, "height": 1};
296
341
  export var functionality = {
@@ -511,6 +556,7 @@ export var finalizeConfig = {
511
556
  "rawImages": true,
512
557
  "video": false,
513
558
  "rfidSession": true,
559
+ "mdlSession": false,
514
560
  };
515
561
 
516
562
  export var documentsDatabase = {
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "..": {
15
15
  "name": "@regulaforensics/document-reader",
16
- "version": "9.3.671-nightly",
16
+ "version": "9.3.674-rc",
17
17
  "dev": true,
18
18
  "license": "commercial"
19
19
  },
package/test/test.tsx CHANGED
@@ -1,6 +1,6 @@
1
1
  import { compare } from './utils'
2
- import { AccessControlProcedureType, Application, Attribute, AuthenticityCheck, AuthenticityElement, AuthenticityParams, AuthenticityResult, Authority, BackendProcessingConfig, Bsi, BarcodeField, BarcodeResult, BytesData, CardProperties, CertificateChain, CertificateData, Comparison, Coordinate, Customization, CustomizationColors, CustomizationFonts, CustomizationImages, DataField, DocReaderException, DocReaderScenario, DocReaderVersion, DocumentsDatabase, DocumentType, EDLDataGroups, EIDDataGroups, DTCDataGroup, EPassportDataGroups, Extension, FaceApiParams, FaceApiSearchParams, File, FileData, Functionality, GlaresCheckParams, RFIDParams, GraphicField, GraphicResult, ImageInputData, ImageQA, ImageQuality, ImageQualityGroup, InitConfig, License, LivenessParams, OnlineProcessingConfig, OpticalStatus, PAAttribute, PAResourcesIssuer, PDF417Info, PKDCertificate, Position, PrepareProgress, ProcessParams, RecognizeConfig, Rect, Results, ResultsStatus, RFIDException, RFIDNotification, RFIDOrigin, RFIDScenario, RFIDSessionData, AgeStatus, RFIDStatus, RFIDValidity, RFIDValue, ScannerConfig, SecurityObject, SecurityObjectCertificates, SignerInfo, Symbol, TAChallenge, TccParams, TextField, TextResult, TextSource, TransactionInfo, Validity, Value, VDSNCData, VDSData, DocFeature, DeviceRetrievalMethod, DocumentRequest18013MDL, DataRetrieval, DeviceEngagement, NameSpaceMDL, DocumentRequestMDL, FinalizeConfig } from '@regulaforensics/document-reader/www/capacitor'
3
- import { accessControlProcedureType, application, attribute, authenticityCheck, authenticityElement, authenticityParams, authenticityResult, authority, backendProcessingConfig, bsi, barcodeField, barcodeResult, bytesData, cardProperties, certificateChain, certificateData, comparison, coordinate, customization, customizationColors, customizationFonts, customizationImages, dataField, docReaderException, docReaderScenario, docReaderVersion, documentsDatabase, documentType, eDLDataGroups, eIDDataGroups, dtcDataGroup, ePassportDataGroups, extension, faceApiParams, faceApiSearchParams, file, fileData, functionality, glaresCheckParams, rfidParams, graphicField, graphicResult, imageInputData, imageQA, imageQuality, imageQualityGroup, initConfig, license, livenessParams, onlineProcessingConfig, opticalStatus, paAttribute, paResourcesIssuer, pdf417Info, pkdCertificate, position, prepareProgress, processParams, recognizeConfig, recognizeConfig2, rect, results, resultsStatus, rfidException, rfidNotification, rfidOrigin, rfidScenario, rfidSessionData, ageStatus, rfidStatus, rfidValidity, rfidValue, scannerConfig, securityObject, securityObjectCertificates, signerInfo, symbol, taChallenge, tccParams, textField, textResult, textSource, transactionInfo, validity, value, vdsncData, vdsData, docFeature, deviceRetrievalMethod, documentRequest18013MDL, dataRetrieval, deviceEngagement, nameSpaceMDL, documentRequestMDL, finalizeConfig } from './json'
2
+ import { AccessControlProcedureType, Application, Attribute, AuthenticityCheck, AuthenticityElement, AuthenticityParams, AuthenticityResult, Authority, BackendProcessingConfig, Bsi, BarcodeField, BarcodeResult, BytesData, CardProperties, CertificateChain, CertificateData, Comparison, Coordinate, Customization, CustomizationColors, CustomizationFonts, CustomizationImages, CustomizationTimings, CustomizationMatrices, CustomizationContentModes, DataField, DocReaderException, DocReaderScenario, DocReaderVersion, DocumentsDatabase, DocumentType, EDLDataGroups, EIDDataGroups, DTCDataGroup, EPassportDataGroups, Extension, FaceApiParams, FaceApiSearchParams, File, FileData, Functionality, GlaresCheckParams, RFIDParams, GraphicField, GraphicResult, ImageInputData, ImageQA, ImageQuality, ImageQualityGroup, InitConfig, License, LivenessParams, OnlineProcessingConfig, OpticalStatus, PAAttribute, PAResourcesIssuer, PDF417Info, PKDCertificate, Position, PrepareProgress, ProcessParams, RecognizeConfig, Rect, Results, ResultsStatus, RFIDException, RFIDNotification, RFIDOrigin, RFIDScenario, RFIDSessionData, AgeStatus, RFIDStatus, RFIDValidity, RFIDValue, ScannerConfig, SecurityObject, SecurityObjectCertificates, SignerInfo, Symbol, TAChallenge, TccParams, TextField, TextResult, TextSource, TransactionInfo, Validity, Value, VDSNCData, VDSData, DocFeature, DeviceRetrievalMethod, DocumentRequest18013MDL, DataRetrieval, DeviceEngagement, NameSpaceMDL, DocumentRequestMDL, FinalizeConfig } from '@regulaforensics/document-reader/www/capacitor'
3
+ import { accessControlProcedureType, application, attribute, authenticityCheck, authenticityElement, authenticityParams, authenticityResult, authority, backendProcessingConfig, bsi, barcodeField, barcodeResult, bytesData, cardProperties, certificateChain, certificateData, comparison, coordinate, customization, customizationColors, customizationFonts, customizationImages, customizationTimings, customizationMatrices, customizationContentModes, dataField, docReaderException, docReaderScenario, docReaderVersion, documentsDatabase, documentType, eDLDataGroups, eIDDataGroups, dtcDataGroup, ePassportDataGroups, extension, faceApiParams, faceApiSearchParams, file, fileData, functionality, glaresCheckParams, rfidParams, graphicField, graphicResult, imageInputData, imageQA, imageQuality, imageQualityGroup, initConfig, license, livenessParams, onlineProcessingConfig, opticalStatus, paAttribute, paResourcesIssuer, pdf417Info, pkdCertificate, position, prepareProgress, processParams, recognizeConfig, recognizeConfig2, rect, results, resultsStatus, rfidException, rfidNotification, rfidOrigin, rfidScenario, rfidSessionData, ageStatus, rfidStatus, rfidValidity, rfidValue, scannerConfig, securityObject, securityObjectCertificates, signerInfo, symbol, taChallenge, tccParams, textField, textResult, textSource, transactionInfo, validity, value, vdsncData, vdsData, docFeature, deviceRetrievalMethod, documentRequest18013MDL, dataRetrieval, deviceEngagement, nameSpaceMDL, documentRequestMDL, finalizeConfig } from './json'
4
4
 
5
5
  compare('initConfig', initConfig, InitConfig.fromJson)
6
6
  compare('onlineProcessingConfig', onlineProcessingConfig, OnlineProcessingConfig.fromJson)
@@ -29,6 +29,9 @@ compare('rfidScenario', rfidScenario, RFIDScenario.fromJson)
29
29
  compare('customizationColors', customizationColors, CustomizationColors.fromJson)
30
30
  compare('customizationFonts', customizationFonts, CustomizationFonts.fromJson)
31
31
  compare('customizationImages', customizationImages, CustomizationImages.fromJson)
32
+ compare('customizationTimings', customizationTimings, CustomizationTimings.fromJson)
33
+ compare('customizationContentModes', customizationContentModes, CustomizationContentModes.fromJson)
34
+ compare('customizationMatrices', customizationMatrices, CustomizationMatrices.fromJson)
32
35
  compare('customization', customization, Customization.fromJson)
33
36
  compare('functionality', functionality, Functionality.fromJson)
34
37
 
@@ -2,11 +2,13 @@ export class FinalizeConfig {
2
2
  rawImages
3
3
  video
4
4
  rfidSession
5
+ mdlSession
5
6
 
6
7
  constructor(options) {
7
8
  this.rawImages = options?.rawImages
8
9
  this.video = options?.video
9
10
  this.rfidSession = options?.rfidSession
11
+ this.mdlSession = options?.mdlSession
10
12
  }
11
13
 
12
14
  static fromJson(jsonObject) {
@@ -16,6 +18,7 @@ export class FinalizeConfig {
16
18
  result.rawImages = jsonObject["rawImages"];
17
19
  result.video = jsonObject["video"];
18
20
  result.rfidSession = jsonObject["rfidSession"];
21
+ result.mdlSession = jsonObject["mdlSession"];
19
22
 
20
23
  return result;
21
24
  }
@@ -26,6 +29,7 @@ export class FinalizeConfig {
26
29
  "rawImages": this.rawImages,
27
30
  "video": this.video,
28
31
  "rfidSession": this.rfidSession,
32
+ "mdlSession": this.mdlSession,
29
33
  }
30
34
  }
31
35
  }
@@ -113,12 +113,14 @@ export { LivenessParams, ProcessParams, MeasureSystem, MRZFormat, LogLevel, MrzD
113
113
  import { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize } from './params/Functionality';
114
114
  export { Functionality, CameraPosition, CaptureMode, CameraMode, CaptureSessionPreset, DocReaderFrame, CameraSize };
115
115
 
116
- import { CustomizationFonts } from './params/customization/CustomizationFonts';
117
- import { CustomizationImages } from './params/customization/CustomizationImages';
118
- import { Font, FontStyle } from './params/customization/Font';
119
- import { Customization, Cap, FrameShapeType, ViewContentMode, CustomButtonTag } from './params/customization/Customization';
120
116
  import { CustomizationColors } from './params/customization/CustomizationColors';
121
- export { CustomizationFonts, CustomizationImages, Font, FontStyle, Customization, Cap, FrameShapeType, ViewContentMode, CustomButtonTag, CustomizationColors };
117
+ import { CustomizationFonts, Font, FontStyle } from './params/customization/CustomizationFonts';
118
+ import { CustomizationImages } from './params/customization/CustomizationImages';
119
+ import { CustomizationTimings } from './params/customization/CustomizationTimings';
120
+ import { CustomizationMatrices } from './params/customization/CustomizationMatrices';
121
+ import { CustomizationContentModes, ViewContentMode } from './params/customization/CustomizationContentModes';
122
+ import { Customization, Cap, FrameShapeType, CustomButtonTag } from './params/customization/Customization';
123
+ export { CustomizationFonts, CustomizationImages, CustomizationTimings, CustomizationMatrices, CustomizationContentModes, Font, FontStyle, Customization, Cap, FrameShapeType, ViewContentMode, CustomButtonTag, CustomizationColors };
122
124
 
123
125
  import { EPassportDataGroups } from './params/rfid_scenario/EPassportDataGroups';
124
126
  import { EIDDataGroups } from './params/rfid_scenario/EIDDataGroups';
@@ -1,9 +1,11 @@
1
1
  import { exec } from '../../internal/bridge';
2
2
  import { DocumentReader } from '../../index';
3
3
  import { CustomizationColors } from './CustomizationColors';
4
- import { CustomizationFonts } from './CustomizationFonts';
4
+ import { CustomizationFonts, Font } from './CustomizationFonts';
5
5
  import { CustomizationImages } from './CustomizationImages';
6
- import { Font } from './Font';
6
+ import { CustomizationTimings } from './CustomizationTimings';
7
+ import { CustomizationContentModes, ViewContentMode } from './CustomizationContentModes';
8
+ import { CustomizationMatrices } from './CustomizationMatrices';
7
9
 
8
10
  export class Customization {
9
11
  get showStatusMessages() { return this._showStatusMessages; }
@@ -438,6 +440,24 @@ export class Customization {
438
440
  val._apply(this);
439
441
  }
440
442
 
443
+ get timings() { return this._timings; }
444
+ set timings(val) {
445
+ this._timings = val;
446
+ val._apply(this);
447
+ }
448
+
449
+ get contentModes() { return this._contentModes; }
450
+ set contentModes(val) {
451
+ this._contentModes = val;
452
+ val._apply(this);
453
+ }
454
+
455
+ get matrices() { return this._matrices; }
456
+ set matrices(val) {
457
+ this._matrices = val;
458
+ val._apply(this);
459
+ }
460
+
441
461
  static fromJson(jsonObject) {
442
462
  if (jsonObject == null) return null;
443
463
 
@@ -516,6 +536,9 @@ export class Customization {
516
536
  result._colors = CustomizationColors.fromJson(jsonObject["colors"]);
517
537
  result._fonts = CustomizationFonts.fromJson(jsonObject["fonts"]);
518
538
  result._images = CustomizationImages.fromJson(jsonObject["images"]);
539
+ result._timings = CustomizationTimings.fromJson(jsonObject["timings"]);
540
+ result._contentModes = CustomizationContentModes.fromJson(jsonObject["contentModes"]);
541
+ result._matrices = CustomizationMatrices.fromJson(jsonObject["matrices"]);
519
542
 
520
543
  return result;
521
544
  }
@@ -594,6 +617,9 @@ export class Customization {
594
617
  "colors": this.colors?.toJson(),
595
618
  "fonts": this.fonts?.toJson(),
596
619
  "images": this.images?.toJson(),
620
+ "timings": this.timings?.toJson(),
621
+ "contentModes": this.contentModes?.toJson(),
622
+ "matrices": this.matrices?.toJson(),
597
623
  }
598
624
  }
599
625
 
@@ -615,22 +641,6 @@ export const FrameShapeType = {
615
641
  CORNER: 1
616
642
  };
617
643
 
618
- export const ViewContentMode = {
619
- SCALE_TO_FILL: 0,
620
- SCALE_ASPECT_FIT: 1,
621
- SCALE_ASPECT_FILL: 2,
622
- REDRAW: 3,
623
- CENTER: 4,
624
- TOP: 5,
625
- BOTTOM: 6,
626
- LEFT: 7,
627
- RIGHT: 8,
628
- TOP_LEFT: 9,
629
- TOP_RIGHT: 10,
630
- BOTTOM_LEFT: 11,
631
- BOTTOM_RIGHT: 12
632
- };
633
-
634
644
  export const CustomButtonTag = {
635
645
  CLOSE: 1001,
636
646
  TORCH: 1002,