@regulaforensics/document-reader 1.1.1318-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 (483) hide show
  1. package/Package.swift +28 -0
  2. package/README.md +19 -0
  3. package/android/CVDDocumentReader.kt +76 -0
  4. package/android/build.gradle.kts +37 -0
  5. package/android/cordova.gradle.kts +13 -0
  6. package/android/src/main/kotlin/com/regula/plugin/document/reader/BluetoothUtil.kt +164 -0
  7. package/android/src/main/kotlin/com/regula/plugin/document/reader/Config.kt +1021 -0
  8. package/android/src/main/kotlin/com/regula/plugin/document/reader/JSONConstructor.kt +2192 -0
  9. package/android/src/main/kotlin/com/regula/plugin/document/reader/Main.kt +656 -0
  10. package/android/src/main/kotlin/com/regula/plugin/document/reader/RNDocumentReaderModule.kt +101 -0
  11. package/android/src/main/kotlin/com/regula/plugin/document/reader/Utils.kt +248 -0
  12. package/app.plugin.js +45 -0
  13. package/examples/capacitor/README.md +24 -0
  14. package/examples/capacitor/android/app/build.gradle +41 -0
  15. package/examples/capacitor/android/app/proguard-rules.pro +21 -0
  16. package/examples/capacitor/android/app/src/main/AndroidManifest.xml +36 -0
  17. package/examples/capacitor/android/app/src/main/assets/Regula/.gitkeep +0 -0
  18. package/examples/capacitor/android/app/src/main/java/com/regula/example/dr/capacitor/MainActivity.java +5 -0
  19. package/examples/capacitor/android/app/src/main/res/drawable/ic_launcher.png +0 -0
  20. package/examples/capacitor/android/app/src/main/res/drawable/ic_launcher_foreground.png +0 -0
  21. package/examples/capacitor/android/app/src/main/res/drawable/ic_launcher_round.png +0 -0
  22. package/examples/capacitor/android/app/src/main/res/drawable/launcher.xml +4 -0
  23. package/examples/capacitor/android/app/src/main/res/drawable/launcher_round.xml +4 -0
  24. package/examples/capacitor/android/app/src/main/res/drawable/splash.png +0 -0
  25. package/examples/capacitor/android/app/src/main/res/layout/activity_main.xml +12 -0
  26. package/examples/capacitor/android/app/src/main/res/values/styles.xml +22 -0
  27. package/examples/capacitor/android/app/src/main/res/xml/file_paths.xml +5 -0
  28. package/examples/capacitor/android/build.gradle +39 -0
  29. package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  30. package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  31. package/examples/capacitor/android/gradle.properties +26 -0
  32. package/examples/capacitor/android/gradlew +248 -0
  33. package/examples/capacitor/android/gradlew.bat +82 -0
  34. package/examples/capacitor/android/settings.gradle +5 -0
  35. package/examples/capacitor/android/variables.gradle +20 -0
  36. package/examples/capacitor/capacitor.config.json +15 -0
  37. package/examples/capacitor/index.html +5 -0
  38. package/examples/capacitor/index.tsx +31 -0
  39. package/examples/capacitor/ios/App/App/App.entitlements +10 -0
  40. package/examples/capacitor/ios/App/App/AppDelegate.swift +14 -0
  41. package/examples/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
  42. package/examples/capacitor/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
  43. package/examples/capacitor/ios/App/App/Assets.xcassets/Contents.json +6 -0
  44. package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +23 -0
  45. package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
  46. package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
  47. package/examples/capacitor/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
  48. package/examples/capacitor/ios/App/App/Base.lproj/LaunchScreen.storyboard +32 -0
  49. package/examples/capacitor/ios/App/App/Info.plist +88 -0
  50. package/examples/capacitor/ios/App/App/SceneDelegate.swift +23 -0
  51. package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +374 -0
  52. package/examples/capacitor/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  53. package/examples/capacitor/ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift +1 -0
  54. package/examples/capacitor/package-lock.json +1965 -0
  55. package/examples/capacitor/package.json +26 -0
  56. package/examples/capacitor/public/assets/.gitkeep +0 -0
  57. package/examples/capacitor/public/images/document.png +0 -0
  58. package/examples/capacitor/public/images/portrait.png +0 -0
  59. package/examples/capacitor/scripts/android.sh +8 -0
  60. package/examples/capacitor/scripts/ios.sh +8 -0
  61. package/examples/capacitor/scripts/setup.sh +9 -0
  62. package/examples/capacitor/src/extra/bt_device.tsx +33 -0
  63. package/examples/capacitor/src/extra/custom_rfid.tsx +61 -0
  64. package/examples/capacitor/src/main.css +153 -0
  65. package/examples/capacitor/src/main.html +38 -0
  66. package/examples/capacitor/src/main.tsx +172 -0
  67. package/examples/capacitor/tsconfig.json +5 -0
  68. package/examples/capacitor/vite.config.ts +5 -0
  69. package/examples/ionic/README.md +24 -0
  70. package/examples/ionic/angular.json +39 -0
  71. package/examples/ionic/assets/.gitkeep +0 -0
  72. package/examples/ionic/config.xml +61 -0
  73. package/examples/ionic/images/document.png +0 -0
  74. package/examples/ionic/images/icon.png +0 -0
  75. package/examples/ionic/images/portrait.png +0 -0
  76. package/examples/ionic/index.html +19 -0
  77. package/examples/ionic/index.tsx +63 -0
  78. package/examples/ionic/ionic.config.json +7 -0
  79. package/examples/ionic/package-lock.json +17554 -0
  80. package/examples/ionic/package.json +76 -0
  81. package/examples/ionic/patches/cordova-plugin-ionic-webview+5.0.1.patch +23 -0
  82. package/examples/ionic/scripts/android.sh +9 -0
  83. package/examples/ionic/scripts/ios.sh +11 -0
  84. package/examples/ionic/scripts/setup.sh +8 -0
  85. package/examples/ionic/src/extra/bt_device.tsx +33 -0
  86. package/examples/ionic/src/extra/custom_rfid.tsx +61 -0
  87. package/examples/ionic/src/main.css +148 -0
  88. package/examples/ionic/src/main.html +38 -0
  89. package/examples/ionic/src/main.tsx +172 -0
  90. package/examples/ionic/tsconfig.json +13 -0
  91. package/examples/react_native/README.md +24 -0
  92. package/examples/react_native/app.config.ts +54 -0
  93. package/examples/react_native/assets/.gitkeep +0 -0
  94. package/examples/react_native/images/document.png +0 -0
  95. package/examples/react_native/images/icon.png +0 -0
  96. package/examples/react_native/images/portrait.png +0 -0
  97. package/examples/react_native/index.tsx +111 -0
  98. package/examples/react_native/metro.config.js +5 -0
  99. package/examples/react_native/package-lock.json +6924 -0
  100. package/examples/react_native/package.json +37 -0
  101. package/examples/react_native/scripts/android.sh +8 -0
  102. package/examples/react_native/scripts/ios.sh +6 -0
  103. package/examples/react_native/scripts/setup.sh +10 -0
  104. package/examples/react_native/scripts/withoutMetroServer.js +89 -0
  105. package/examples/react_native/src/extra/bt_device.tsx +33 -0
  106. package/examples/react_native/src/extra/custom_rfid.tsx +61 -0
  107. package/examples/react_native/src/main.css +148 -0
  108. package/examples/react_native/src/main.html +38 -0
  109. package/examples/react_native/src/main.tsx +172 -0
  110. package/ios/CVDDocumentReader.h +7 -0
  111. package/ios/CVDDocumentReader.m +43 -0
  112. package/ios/RGLWConfig.h +44 -0
  113. package/ios/RGLWConfig.m +1577 -0
  114. package/ios/RGLWJSONConstructor.h +216 -0
  115. package/ios/RGLWJSONConstructor.m +2875 -0
  116. package/ios/RGLWMain.h +34 -0
  117. package/ios/RGLWMain.m +722 -0
  118. package/ios/RNDocumentReader.h +8 -0
  119. package/ios/RNDocumentReader.m +52 -0
  120. package/ios/spm/module.modulemap +7 -0
  121. package/package.json +39 -0
  122. package/plugin.xml +51 -0
  123. package/react-native-document-reader.podspec +14 -0
  124. package/test/json.tsx +1159 -0
  125. package/test/package-lock.json +584 -0
  126. package/test/package.json +9 -0
  127. package/test/test.tsx +315 -0
  128. package/test/utils.tsx +38 -0
  129. package/www/capacitor/config/FinalizeConfig.js +35 -0
  130. package/www/capacitor/config/InitConfig.js +55 -0
  131. package/www/capacitor/config/OnlineProcessingConfig.js +52 -0
  132. package/www/capacitor/config/RFIDConfig.js +47 -0
  133. package/www/capacitor/config/RecognizeConfig.js +138 -0
  134. package/www/capacitor/config/ScannerConfig.js +48 -0
  135. package/www/capacitor/index.js +758 -0
  136. package/www/capacitor/info/DocReaderException.js +68 -0
  137. package/www/capacitor/info/DocReaderScenario.js +89 -0
  138. package/www/capacitor/info/DocReaderVersion.js +32 -0
  139. package/www/capacitor/info/DocumentsDatabase.js +39 -0
  140. package/www/capacitor/info/License.js +30 -0
  141. package/www/capacitor/info/PrepareProgress.js +31 -0
  142. package/www/capacitor/info/RFIDException.js +26 -0
  143. package/www/capacitor/internal/bridge.js +131 -0
  144. package/www/capacitor/internal/cordova.js +17 -0
  145. package/www/capacitor/mdl/DataRetrieval.js +55 -0
  146. package/www/capacitor/mdl/DeviceEngagement.js +30 -0
  147. package/www/capacitor/mdl/DeviceRetrievalMethod.js +41 -0
  148. package/www/capacitor/mdl/DocumentRequestMDL.js +212 -0
  149. package/www/capacitor/mdl/NameSpaceMDL.js +33 -0
  150. package/www/capacitor/params/Functionality.js +387 -0
  151. package/www/capacitor/params/customization/Customization.js +664 -0
  152. package/www/capacitor/params/customization/CustomizationColors.js +231 -0
  153. package/www/capacitor/params/customization/CustomizationContentModes.js +55 -0
  154. package/www/capacitor/params/customization/CustomizationFonts.js +156 -0
  155. package/www/capacitor/params/customization/CustomizationImages.js +199 -0
  156. package/www/capacitor/params/customization/CustomizationMatrices.js +39 -0
  157. package/www/capacitor/params/customization/CustomizationTimings.js +71 -0
  158. package/www/capacitor/params/process_params/AuthenticityParams.js +166 -0
  159. package/www/capacitor/params/process_params/AuthenticityPropertiesParams.js +39 -0
  160. package/www/capacitor/params/process_params/BackendProcessingConfig.js +38 -0
  161. package/www/capacitor/params/process_params/Bsi.js +23 -0
  162. package/www/capacitor/params/process_params/FaceApiParams.js +55 -0
  163. package/www/capacitor/params/process_params/FaceApiSearchParams.js +29 -0
  164. package/www/capacitor/params/process_params/GlaresCheckParams.js +25 -0
  165. package/www/capacitor/params/process_params/ImageQA.js +122 -0
  166. package/www/capacitor/params/process_params/LivenessParams.js +87 -0
  167. package/www/capacitor/params/process_params/OcclusionCheckParams.js +21 -0
  168. package/www/capacitor/params/process_params/ProcessParams.js +724 -0
  169. package/www/capacitor/params/process_params/RFIDParams.js +21 -0
  170. package/www/capacitor/params/rfid_scenario/DTCDataGroup.js +63 -0
  171. package/www/capacitor/params/rfid_scenario/EDLDataGroups.js +135 -0
  172. package/www/capacitor/params/rfid_scenario/EIDDataGroups.js +191 -0
  173. package/www/capacitor/params/rfid_scenario/EPassportDataGroups.js +151 -0
  174. package/www/capacitor/params/rfid_scenario/RFIDScenario.js +584 -0
  175. package/www/capacitor/results/DocumentType.js +302 -0
  176. package/www/capacitor/results/Position.js +88 -0
  177. package/www/capacitor/results/Results.js +354 -0
  178. package/www/capacitor/results/TransactionInfo.js +24 -0
  179. package/www/capacitor/results/authenticity/Authenticity.js +24 -0
  180. package/www/capacitor/results/authenticity/AuthenticityCheck.js +43 -0
  181. package/www/capacitor/results/authenticity/AuthenticityElement.js +37 -0
  182. package/www/capacitor/results/authenticity/AuthenticityResult.js +33 -0
  183. package/www/capacitor/results/authenticity/CheckDiagnose.js +133 -0
  184. package/www/capacitor/results/authenticity/SecurityFeatureType.js +67 -0
  185. package/www/capacitor/results/barcode/BarcodeField.js +34 -0
  186. package/www/capacitor/results/barcode/BarcodeResult.js +30 -0
  187. package/www/capacitor/results/barcode/BarcodeStatus.js +33 -0
  188. package/www/capacitor/results/barcode/BarcodeType.js +21 -0
  189. package/www/capacitor/results/barcode/PDF417Info.js +24 -0
  190. package/www/capacitor/results/image_quality/ImageQuality.js +40 -0
  191. package/www/capacitor/results/image_quality/ImageQualityCheckType.js +19 -0
  192. package/www/capacitor/results/image_quality/ImageQualityGroup.js +39 -0
  193. package/www/capacitor/results/rfid/AccessControlProcedureType.js +30 -0
  194. package/www/capacitor/results/rfid/Application.js +63 -0
  195. package/www/capacitor/results/rfid/Attribute.js +23 -0
  196. package/www/capacitor/results/rfid/Authority.js +36 -0
  197. package/www/capacitor/results/rfid/CardProperties.js +57 -0
  198. package/www/capacitor/results/rfid/CertificateChain.js +69 -0
  199. package/www/capacitor/results/rfid/CertificateData.js +21 -0
  200. package/www/capacitor/results/rfid/DataField.js +23 -0
  201. package/www/capacitor/results/rfid/Extension.js +21 -0
  202. package/www/capacitor/results/rfid/File.js +56 -0
  203. package/www/capacitor/results/rfid/FileData.js +27 -0
  204. package/www/capacitor/results/rfid/RFIDAccessControlProcedureType.js +10 -0
  205. package/www/capacitor/results/rfid/RFIDCertificateType.js +14 -0
  206. package/www/capacitor/results/rfid/RFIDDataFileType.js +106 -0
  207. package/www/capacitor/results/rfid/RFIDSessionData.js +92 -0
  208. package/www/capacitor/results/rfid/RFIDValidity.js +23 -0
  209. package/www/capacitor/results/rfid/RFIDValue.js +30 -0
  210. package/www/capacitor/results/rfid/SecurityObject.js +41 -0
  211. package/www/capacitor/results/rfid/SecurityObjectCertificates.js +20 -0
  212. package/www/capacitor/results/rfid/SignerInfo.js +74 -0
  213. package/www/capacitor/results/status/AgeStatus.js +35 -0
  214. package/www/capacitor/results/status/CheckResult.js +5 -0
  215. package/www/capacitor/results/status/OpticalStatus.js +44 -0
  216. package/www/capacitor/results/status/RFIDStatus.js +38 -0
  217. package/www/capacitor/results/status/ResultsStatus.js +53 -0
  218. package/www/capacitor/results/visible_digital_seals/BytesData.js +27 -0
  219. package/www/capacitor/results/visible_digital_seals/DocFeature.js +23 -0
  220. package/www/capacitor/results/visible_digital_seals/LDSParsingErrorCodes.js +136 -0
  221. package/www/capacitor/results/visible_digital_seals/LDSParsingNotificationCodes.js +239 -0
  222. package/www/capacitor/results/visible_digital_seals/VDSData.js +75 -0
  223. package/www/capacitor/results/visible_digital_seals/VDSNCData.js +54 -0
  224. package/www/capacitor/results/visual_results/Comparison.js +27 -0
  225. package/www/capacitor/results/visual_results/FieldType.js +671 -0
  226. package/www/capacitor/results/visual_results/GraphicField.js +47 -0
  227. package/www/capacitor/results/visual_results/GraphicFieldType.js +25 -0
  228. package/www/capacitor/results/visual_results/GraphicResult.js +28 -0
  229. package/www/capacitor/results/visual_results/LCID.js +174 -0
  230. package/www/capacitor/results/visual_results/Lights.js +11 -0
  231. package/www/capacitor/results/visual_results/RFIDOrigin.js +27 -0
  232. package/www/capacitor/results/visual_results/Rect.js +27 -0
  233. package/www/capacitor/results/visual_results/Symbol.js +26 -0
  234. package/www/capacitor/results/visual_results/TextField.js +85 -0
  235. package/www/capacitor/results/visual_results/TextResult.js +52 -0
  236. package/www/capacitor/results/visual_results/TextSource.js +27 -0
  237. package/www/capacitor/results/visual_results/Validity.js +24 -0
  238. package/www/capacitor/results/visual_results/Value.js +52 -0
  239. package/www/capacitor/rfid/CAProtocol.js +27 -0
  240. package/www/capacitor/rfid/PAAttribute.js +24 -0
  241. package/www/capacitor/rfid/PACEProtocol.js +24 -0
  242. package/www/capacitor/rfid/PAResourcesIssuer.js +35 -0
  243. package/www/capacitor/rfid/PKDCertificate.js +65 -0
  244. package/www/capacitor/rfid/RFIDErrorCodes.js +123 -0
  245. package/www/capacitor/rfid/RFIDNotification.js +71 -0
  246. package/www/capacitor/rfid/TAChallenge.js +33 -0
  247. package/www/capacitor/rfid/TccParams.js +34 -0
  248. package/www/cordova.js +12948 -0
  249. package/www/react-native/config/FinalizeConfig.js +35 -0
  250. package/www/react-native/config/InitConfig.js +55 -0
  251. package/www/react-native/config/OnlineProcessingConfig.js +52 -0
  252. package/www/react-native/config/RFIDConfig.js +47 -0
  253. package/www/react-native/config/RecognizeConfig.js +138 -0
  254. package/www/react-native/config/ScannerConfig.js +48 -0
  255. package/www/react-native/index.js +758 -0
  256. package/www/react-native/info/DocReaderException.js +68 -0
  257. package/www/react-native/info/DocReaderScenario.js +89 -0
  258. package/www/react-native/info/DocReaderVersion.js +32 -0
  259. package/www/react-native/info/DocumentsDatabase.js +39 -0
  260. package/www/react-native/info/License.js +30 -0
  261. package/www/react-native/info/PrepareProgress.js +31 -0
  262. package/www/react-native/info/RFIDException.js +26 -0
  263. package/www/react-native/internal/bridge.js +131 -0
  264. package/www/react-native/mdl/DataRetrieval.js +55 -0
  265. package/www/react-native/mdl/DeviceEngagement.js +30 -0
  266. package/www/react-native/mdl/DeviceRetrievalMethod.js +41 -0
  267. package/www/react-native/mdl/DocumentRequestMDL.js +212 -0
  268. package/www/react-native/mdl/NameSpaceMDL.js +33 -0
  269. package/www/react-native/params/Functionality.js +387 -0
  270. package/www/react-native/params/customization/Customization.js +664 -0
  271. package/www/react-native/params/customization/CustomizationColors.js +231 -0
  272. package/www/react-native/params/customization/CustomizationContentModes.js +55 -0
  273. package/www/react-native/params/customization/CustomizationFonts.js +156 -0
  274. package/www/react-native/params/customization/CustomizationImages.js +199 -0
  275. package/www/react-native/params/customization/CustomizationMatrices.js +39 -0
  276. package/www/react-native/params/customization/CustomizationTimings.js +71 -0
  277. package/www/react-native/params/process_params/AuthenticityParams.js +166 -0
  278. package/www/react-native/params/process_params/AuthenticityPropertiesParams.js +39 -0
  279. package/www/react-native/params/process_params/BackendProcessingConfig.js +38 -0
  280. package/www/react-native/params/process_params/Bsi.js +23 -0
  281. package/www/react-native/params/process_params/FaceApiParams.js +55 -0
  282. package/www/react-native/params/process_params/FaceApiSearchParams.js +29 -0
  283. package/www/react-native/params/process_params/GlaresCheckParams.js +25 -0
  284. package/www/react-native/params/process_params/ImageQA.js +122 -0
  285. package/www/react-native/params/process_params/LivenessParams.js +87 -0
  286. package/www/react-native/params/process_params/OcclusionCheckParams.js +21 -0
  287. package/www/react-native/params/process_params/ProcessParams.js +724 -0
  288. package/www/react-native/params/process_params/RFIDParams.js +21 -0
  289. package/www/react-native/params/rfid_scenario/DTCDataGroup.js +63 -0
  290. package/www/react-native/params/rfid_scenario/EDLDataGroups.js +135 -0
  291. package/www/react-native/params/rfid_scenario/EIDDataGroups.js +191 -0
  292. package/www/react-native/params/rfid_scenario/EPassportDataGroups.js +151 -0
  293. package/www/react-native/params/rfid_scenario/RFIDScenario.js +584 -0
  294. package/www/react-native/results/DocumentType.js +302 -0
  295. package/www/react-native/results/Position.js +88 -0
  296. package/www/react-native/results/Results.js +354 -0
  297. package/www/react-native/results/TransactionInfo.js +24 -0
  298. package/www/react-native/results/authenticity/Authenticity.js +24 -0
  299. package/www/react-native/results/authenticity/AuthenticityCheck.js +43 -0
  300. package/www/react-native/results/authenticity/AuthenticityElement.js +37 -0
  301. package/www/react-native/results/authenticity/AuthenticityResult.js +33 -0
  302. package/www/react-native/results/authenticity/CheckDiagnose.js +133 -0
  303. package/www/react-native/results/authenticity/SecurityFeatureType.js +67 -0
  304. package/www/react-native/results/barcode/BarcodeField.js +34 -0
  305. package/www/react-native/results/barcode/BarcodeResult.js +30 -0
  306. package/www/react-native/results/barcode/BarcodeStatus.js +33 -0
  307. package/www/react-native/results/barcode/BarcodeType.js +21 -0
  308. package/www/react-native/results/barcode/PDF417Info.js +24 -0
  309. package/www/react-native/results/image_quality/ImageQuality.js +40 -0
  310. package/www/react-native/results/image_quality/ImageQualityCheckType.js +19 -0
  311. package/www/react-native/results/image_quality/ImageQualityGroup.js +39 -0
  312. package/www/react-native/results/rfid/AccessControlProcedureType.js +30 -0
  313. package/www/react-native/results/rfid/Application.js +63 -0
  314. package/www/react-native/results/rfid/Attribute.js +23 -0
  315. package/www/react-native/results/rfid/Authority.js +36 -0
  316. package/www/react-native/results/rfid/CardProperties.js +57 -0
  317. package/www/react-native/results/rfid/CertificateChain.js +69 -0
  318. package/www/react-native/results/rfid/CertificateData.js +21 -0
  319. package/www/react-native/results/rfid/DataField.js +23 -0
  320. package/www/react-native/results/rfid/Extension.js +21 -0
  321. package/www/react-native/results/rfid/File.js +56 -0
  322. package/www/react-native/results/rfid/FileData.js +27 -0
  323. package/www/react-native/results/rfid/RFIDAccessControlProcedureType.js +10 -0
  324. package/www/react-native/results/rfid/RFIDCertificateType.js +14 -0
  325. package/www/react-native/results/rfid/RFIDDataFileType.js +106 -0
  326. package/www/react-native/results/rfid/RFIDSessionData.js +92 -0
  327. package/www/react-native/results/rfid/RFIDValidity.js +23 -0
  328. package/www/react-native/results/rfid/RFIDValue.js +30 -0
  329. package/www/react-native/results/rfid/SecurityObject.js +41 -0
  330. package/www/react-native/results/rfid/SecurityObjectCertificates.js +20 -0
  331. package/www/react-native/results/rfid/SignerInfo.js +74 -0
  332. package/www/react-native/results/status/AgeStatus.js +35 -0
  333. package/www/react-native/results/status/CheckResult.js +5 -0
  334. package/www/react-native/results/status/OpticalStatus.js +44 -0
  335. package/www/react-native/results/status/RFIDStatus.js +38 -0
  336. package/www/react-native/results/status/ResultsStatus.js +53 -0
  337. package/www/react-native/results/visible_digital_seals/BytesData.js +27 -0
  338. package/www/react-native/results/visible_digital_seals/DocFeature.js +23 -0
  339. package/www/react-native/results/visible_digital_seals/LDSParsingErrorCodes.js +136 -0
  340. package/www/react-native/results/visible_digital_seals/LDSParsingNotificationCodes.js +239 -0
  341. package/www/react-native/results/visible_digital_seals/VDSData.js +75 -0
  342. package/www/react-native/results/visible_digital_seals/VDSNCData.js +54 -0
  343. package/www/react-native/results/visual_results/Comparison.js +27 -0
  344. package/www/react-native/results/visual_results/FieldType.js +671 -0
  345. package/www/react-native/results/visual_results/GraphicField.js +47 -0
  346. package/www/react-native/results/visual_results/GraphicFieldType.js +25 -0
  347. package/www/react-native/results/visual_results/GraphicResult.js +28 -0
  348. package/www/react-native/results/visual_results/LCID.js +174 -0
  349. package/www/react-native/results/visual_results/Lights.js +11 -0
  350. package/www/react-native/results/visual_results/RFIDOrigin.js +27 -0
  351. package/www/react-native/results/visual_results/Rect.js +27 -0
  352. package/www/react-native/results/visual_results/Symbol.js +26 -0
  353. package/www/react-native/results/visual_results/TextField.js +85 -0
  354. package/www/react-native/results/visual_results/TextResult.js +52 -0
  355. package/www/react-native/results/visual_results/TextSource.js +27 -0
  356. package/www/react-native/results/visual_results/Validity.js +24 -0
  357. package/www/react-native/results/visual_results/Value.js +52 -0
  358. package/www/react-native/rfid/CAProtocol.js +27 -0
  359. package/www/react-native/rfid/PAAttribute.js +24 -0
  360. package/www/react-native/rfid/PACEProtocol.js +24 -0
  361. package/www/react-native/rfid/PAResourcesIssuer.js +35 -0
  362. package/www/react-native/rfid/PKDCertificate.js +65 -0
  363. package/www/react-native/rfid/RFIDErrorCodes.js +123 -0
  364. package/www/react-native/rfid/RFIDNotification.js +71 -0
  365. package/www/react-native/rfid/TAChallenge.js +33 -0
  366. package/www/react-native/rfid/TccParams.js +34 -0
  367. package/www/types/config/FinalizeConfig.d.ts +6 -0
  368. package/www/types/config/InitConfig.d.ts +68 -0
  369. package/www/types/config/OnlineProcessingConfig.d.ts +22 -0
  370. package/www/types/config/RFIDConfig.d.ts +178 -0
  371. package/www/types/config/RecognizeConfig.d.ts +126 -0
  372. package/www/types/config/ScannerConfig.d.ts +54 -0
  373. package/www/types/index.d.ts +656 -0
  374. package/www/types/info/DocReaderException.d.ts +85 -0
  375. package/www/types/info/DocReaderScenario.d.ts +90 -0
  376. package/www/types/info/DocReaderVersion.d.ts +28 -0
  377. package/www/types/info/DocumentsDatabase.d.ts +42 -0
  378. package/www/types/info/License.d.ts +23 -0
  379. package/www/types/info/PrepareProgress.d.ts +15 -0
  380. package/www/types/info/RFIDException.d.ts +8 -0
  381. package/www/types/mdl/DataRetrieval.d.ts +28 -0
  382. package/www/types/mdl/DeviceEngagement.d.ts +16 -0
  383. package/www/types/mdl/DeviceRetrievalMethod.d.ts +18 -0
  384. package/www/types/mdl/DocumentRequestMDL.d.ts +63 -0
  385. package/www/types/mdl/NameSpaceMDL.d.ts +16 -0
  386. package/www/types/params/Functionality.d.ts +337 -0
  387. package/www/types/params/customization/Customization.d.ts +584 -0
  388. package/www/types/params/customization/CustomizationColors.d.ts +42 -0
  389. package/www/types/params/customization/CustomizationContentModes.d.ts +41 -0
  390. package/www/types/params/customization/CustomizationFonts.d.ts +63 -0
  391. package/www/types/params/customization/CustomizationImages.d.ts +34 -0
  392. package/www/types/params/customization/CustomizationMatrices.d.ts +10 -0
  393. package/www/types/params/customization/CustomizationTimings.d.ts +14 -0
  394. package/www/types/params/process_params/AuthenticityParams.d.ts +31 -0
  395. package/www/types/params/process_params/AuthenticityPropertiesParams.d.ts +12 -0
  396. package/www/types/params/process_params/BackendProcessingConfig.d.ts +27 -0
  397. package/www/types/params/process_params/Bsi.d.ts +3 -0
  398. package/www/types/params/process_params/FaceApiParams.d.ts +72 -0
  399. package/www/types/params/process_params/FaceApiSearchParams.d.ts +35 -0
  400. package/www/types/params/process_params/GlaresCheckParams.d.ts +26 -0
  401. package/www/types/params/process_params/ImageQA.d.ts +85 -0
  402. package/www/types/params/process_params/LivenessParams.d.ts +18 -0
  403. package/www/types/params/process_params/OcclusionCheckParams.d.ts +16 -0
  404. package/www/types/params/process_params/ProcessParams.d.ts +496 -0
  405. package/www/types/params/process_params/RFIDParams.d.ts +19 -0
  406. package/www/types/params/rfid_scenario/DTCDataGroup.d.ts +13 -0
  407. package/www/types/params/rfid_scenario/EDLDataGroups.d.ts +22 -0
  408. package/www/types/params/rfid_scenario/EIDDataGroups.d.ts +29 -0
  409. package/www/types/params/rfid_scenario/EPassportDataGroups.d.ts +24 -0
  410. package/www/types/params/rfid_scenario/RFIDScenario.d.ts +178 -0
  411. package/www/types/results/DocumentType.d.ts +525 -0
  412. package/www/types/results/Position.d.ts +50 -0
  413. package/www/types/results/Results.d.ts +295 -0
  414. package/www/types/results/TransactionInfo.d.ts +9 -0
  415. package/www/types/results/authenticity/Authenticity.d.ts +68 -0
  416. package/www/types/results/authenticity/AuthenticityCheck.d.ts +23 -0
  417. package/www/types/results/authenticity/AuthenticityElement.d.ts +26 -0
  418. package/www/types/results/authenticity/AuthenticityResult.d.ts +16 -0
  419. package/www/types/results/authenticity/CheckDiagnose.d.ts +242 -0
  420. package/www/types/results/authenticity/SecurityFeatureType.d.ts +110 -0
  421. package/www/types/results/barcode/BarcodeField.d.ts +37 -0
  422. package/www/types/results/barcode/BarcodeResult.d.ts +14 -0
  423. package/www/types/results/barcode/BarcodeStatus.d.ts +66 -0
  424. package/www/types/results/barcode/BarcodeType.d.ts +45 -0
  425. package/www/types/results/barcode/PDF417Info.d.ts +15 -0
  426. package/www/types/results/image_quality/ImageQuality.d.ts +18 -0
  427. package/www/types/results/image_quality/ImageQualityCheckType.d.ts +30 -0
  428. package/www/types/results/image_quality/ImageQualityGroup.d.ts +17 -0
  429. package/www/types/results/rfid/AccessControlProcedureType.d.ts +21 -0
  430. package/www/types/results/rfid/Application.d.ts +48 -0
  431. package/www/types/results/rfid/Attribute.d.ts +9 -0
  432. package/www/types/results/rfid/Authority.d.ts +11 -0
  433. package/www/types/results/rfid/CardProperties.d.ts +48 -0
  434. package/www/types/results/rfid/CertificateChain.d.ts +28 -0
  435. package/www/types/results/rfid/CertificateData.d.ts +7 -0
  436. package/www/types/results/rfid/DataField.d.ts +9 -0
  437. package/www/types/results/rfid/Extension.d.ts +7 -0
  438. package/www/types/results/rfid/File.d.ts +22 -0
  439. package/www/types/results/rfid/FileData.d.ts +9 -0
  440. package/www/types/results/rfid/RFIDAccessControlProcedureType.d.ts +18 -0
  441. package/www/types/results/rfid/RFIDCertificateType.d.ts +14 -0
  442. package/www/types/results/rfid/RFIDDataFileType.d.ts +108 -0
  443. package/www/types/results/rfid/RFIDSessionData.d.ts +48 -0
  444. package/www/types/results/rfid/RFIDValidity.d.ts +9 -0
  445. package/www/types/results/rfid/RFIDValue.d.ts +10 -0
  446. package/www/types/results/rfid/SecurityObject.d.ts +28 -0
  447. package/www/types/results/rfid/SecurityObjectCertificates.d.ts +8 -0
  448. package/www/types/results/rfid/SignerInfo.d.ts +41 -0
  449. package/www/types/results/status/AgeStatus.d.ts +14 -0
  450. package/www/types/results/status/CheckResult.d.ts +8 -0
  451. package/www/types/results/status/OpticalStatus.d.ts +29 -0
  452. package/www/types/results/status/RFIDStatus.d.ts +22 -0
  453. package/www/types/results/status/ResultsStatus.d.ts +32 -0
  454. package/www/types/results/visible_digital_seals/BytesData.d.ts +9 -0
  455. package/www/types/results/visible_digital_seals/DocFeature.d.ts +9 -0
  456. package/www/types/results/visible_digital_seals/LDSParsingErrorCodes.d.ts +134 -0
  457. package/www/types/results/visible_digital_seals/LDSParsingNotificationCodes.d.ts +237 -0
  458. package/www/types/results/visible_digital_seals/VDSData.d.ts +32 -0
  459. package/www/types/results/visible_digital_seals/VDSNCData.d.ts +35 -0
  460. package/www/types/results/visual_results/Comparison.d.ts +15 -0
  461. package/www/types/results/visual_results/FieldType.d.ts +1328 -0
  462. package/www/types/results/visual_results/GraphicField.d.ts +29 -0
  463. package/www/types/results/visual_results/GraphicFieldType.d.ts +52 -0
  464. package/www/types/results/visual_results/GraphicResult.d.ts +10 -0
  465. package/www/types/results/visual_results/LCID.d.ts +173 -0
  466. package/www/types/results/visual_results/Lights.d.ts +23 -0
  467. package/www/types/results/visual_results/RFIDOrigin.d.ts +10 -0
  468. package/www/types/results/visual_results/Rect.d.ts +9 -0
  469. package/www/types/results/visual_results/Symbol.d.ts +14 -0
  470. package/www/types/results/visual_results/TextField.d.ts +40 -0
  471. package/www/types/results/visual_results/TextResult.d.ts +23 -0
  472. package/www/types/results/visual_results/TextSource.d.ts +15 -0
  473. package/www/types/results/visual_results/Validity.d.ts +13 -0
  474. package/www/types/results/visual_results/Value.d.ts +27 -0
  475. package/www/types/rfid/CAProtocol.d.ts +6 -0
  476. package/www/types/rfid/PAAttribute.d.ts +4 -0
  477. package/www/types/rfid/PACEProtocol.d.ts +5 -0
  478. package/www/types/rfid/PAResourcesIssuer.d.ts +7 -0
  479. package/www/types/rfid/PKDCertificate.d.ts +40 -0
  480. package/www/types/rfid/RFIDErrorCodes.d.ts +121 -0
  481. package/www/types/rfid/RFIDNotification.d.ts +156 -0
  482. package/www/types/rfid/TAChallenge.d.ts +7 -0
  483. package/www/types/rfid/TccParams.d.ts +25 -0
package/test/json.tsx ADDED
@@ -0,0 +1,1159 @@
1
+ export var img1 =
2
+ "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAAGgAwAEAAAAAQAAAAEAAAAAChjw/QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAxJREFUCB1j+P//PwAF/gL+n8otEwAAAABJRU5ErkJggg==";
3
+ export var img2 =
4
+ "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAAGgAwAEAAAAAQAAAAEAAAAAChjw/QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAtJREFUCB1jYAACAAAFAAGNu5vzAAAAAElFTkSuQmCC";
5
+ export var img3 =
6
+ "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAIRlWElmTU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAAGgAwAEAAAAAQAAAAEAAAAAChjw/QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAA1JREFUCB1j+M/AUA8ABIABfzhDTCYAAAAASUVORK5CYII=";
7
+
8
+ export var faceApiSearchParams = {
9
+ "limit": 1,
10
+ "threshold": 2,
11
+ "groupIds": ["test1", "test2", "test3"],
12
+ };
13
+ export var faceApiParams = {
14
+ "url": "test1",
15
+ "mode": "test2",
16
+ "threshold": 1,
17
+ "serviceTimeout": 2,
18
+ "proxy": "test3",
19
+ "proxyPassword": "test4",
20
+ "proxyType": 3,
21
+ "livenessTransactionId": "test5",
22
+ "searchParams": faceApiSearchParams,
23
+ };
24
+ export var livenessParams = {
25
+ "checkOVI": true,
26
+ "checkMLI": false,
27
+ "checkHolo": true,
28
+ "checkED": false,
29
+ "checkBlackAndWhiteCopy": true,
30
+ "checkDynaprint": false,
31
+ "checkGeometry": true,
32
+ "checkBarcodeBackground": false,
33
+ };
34
+ export var propertiesParams = {
35
+ "checkHoldersSignature": true,
36
+ "checkDocumentDamage": false,
37
+ };
38
+ export var authenticityParams = {
39
+ "useLivenessCheck": true,
40
+ "checkUVLuminiscence": false,
41
+ "checkIRB900": true,
42
+ "checkImagePatterns": false,
43
+ "checkFibers": true,
44
+ "checkExtMRZ": false,
45
+ "checkExtOCR": true,
46
+ "checkAxial": false,
47
+ "checkBarcodeFormat": true,
48
+ "checkIRVisibility": false,
49
+ "checkIPI": true,
50
+ "checkPhotoEmbedding": false,
51
+ "checkPhotoComparison": true,
52
+ "checkLetterScreen": false,
53
+ "checkSecurityText": true,
54
+ "checkProperties": false,
55
+ "livenessParams": livenessParams,
56
+ "propertiesParams": propertiesParams,
57
+ };
58
+ export var glaresCheckParams = {
59
+ "imgMarginPart": 0.5,
60
+ "maxGlaringPart": 1.5,
61
+ };
62
+ export var occlusionCheckParams = {
63
+ "maxOcclusionPart": 0.5,
64
+ };
65
+ export var imageQA = {
66
+ "dpiThreshold": 1,
67
+ "angleThreshold": 2,
68
+ "documentPositionIndent": 3,
69
+ "focusCheck": true,
70
+ "glaresCheck": false,
71
+ "colornessCheck": true,
72
+ "screenCapture": false,
73
+ "expectedPass": [1, 2, 3],
74
+ "glaresCheckParams": glaresCheckParams,
75
+ "brightnessThreshold": 0.5,
76
+ "occlusionCheck": true,
77
+ "occlusionCheckParams": occlusionCheckParams,
78
+ };
79
+ export var rfidParams = {
80
+ "paIgnoreNotificationCodes": [1, 2, 3],
81
+ };
82
+ export var backendProcessingConfig = {
83
+ "url": "test",
84
+ "rfidServerSideChipVerification": true,
85
+ "mdlVerification": false,
86
+ "httpHeaders": {"key1": "val1", "key2": "val2", "key3": "val3"},
87
+ "timeoutConnection": 0.5,
88
+ };
89
+ export var bsi = {
90
+ "generateResult": true,
91
+ };
92
+ export var processParams = {
93
+ "multipageProcessing": true,
94
+ "debugSaveImages": false,
95
+ "debugSaveLogs": true,
96
+ "returnUncroppedImage": false,
97
+ "uvTorchEnabled": true,
98
+ "debugSaveCroppedImages": false,
99
+ "disableFocusingCheck": true,
100
+ "debugSaveRFIDSession": false,
101
+ "doublePageSpread": true,
102
+ "manualCrop": false,
103
+ "integralImage": true,
104
+ "returnCroppedBarcode": false,
105
+ "checkRequiredTextFields": false,
106
+ "depersonalizeLog": true,
107
+ "generateDoublePageSpreadImage": false,
108
+ "alreadyCropped": true,
109
+ "matchTextFieldMask": false,
110
+ "updateOCRValidityByGlare": false,
111
+ "noGraphics": true,
112
+ "multiDocOnImage": false,
113
+ "parseBarcodes": false,
114
+ "shouldReturnPackageForReprocess": true,
115
+ "disablePerforationOCR": false,
116
+ "respectImageQuality": true,
117
+ "strictImageQuality": true,
118
+ "splitNames": false,
119
+ "useFaceApi": false,
120
+ "useAuthenticityCheck": true,
121
+ "checkHologram": false,
122
+ "generateNumericCodes": true,
123
+ "strictBarcodeDigitalSignatureCheck": false,
124
+ "selectLongestNames": true,
125
+ "generateDTCVC": false,
126
+ "strictDLCategoryExpiry": true,
127
+ "generateAlpha2Codes": false,
128
+ "disableAuthResolutionFilter": true,
129
+ "strictSecurityChecks": false,
130
+ "returnTransliteratedFields": true,
131
+ "checkCaptureProcessIntegrity": false,
132
+ "strictExpiryDate": true,
133
+ "debugSaveBinarySession": false,
134
+ "checkVDS": true,
135
+ "strictAgeCheck": false,
136
+ "bsiTr03135": bsi,
137
+ "measureSystem": 1,
138
+ "barcodeParserType": 3,
139
+ "perspectiveAngle": 4,
140
+ "minDPI": 5,
141
+ "imageDpiOutMax": 6,
142
+ "forceDocID": 6,
143
+ "pdfPagesLimit": 7,
144
+ "forceDocFormat": 3,
145
+ "shiftExpiryDate": 9,
146
+ "minimalHolderAge": 10,
147
+ "imageOutputMaxHeight": 11,
148
+ "imageOutputMaxWidth": 12,
149
+ "processAuth": 13,
150
+ "convertCase": 3,
151
+ "logLevel": "FatalError",
152
+ "mrzDetectMode": 1,
153
+ "dateFormat": "test1",
154
+ "scenario": "Mrz",
155
+ "captureButtonScenario": "Locate",
156
+ "timeout": 15,
157
+ "timeoutFromFirstDetect": 16,
158
+ "timeoutFromFirstDocType": 17,
159
+ "documentAreaMin": 18,
160
+ "timeoutLiveness": 19,
161
+ "documentIDList": [1, 2, 3],
162
+ "barcodeTypes": [4, 5, 6],
163
+ "fieldTypesFilter": [7, 8, 9],
164
+ "resultTypeOutput": [10, 9, 8],
165
+ "mrzFormatsFilter": ["1x30", "3x30", "2x30"],
166
+ "documentGroupFilter": [135, 136, 137],
167
+ "lcidIgnoreFilter": [10011, 1078, 1052],
168
+ "lcidFilter": [1118, 5121, 15361],
169
+ "fieldTypesIgnoreFilter": [22, 23, 24],
170
+ "imageQA": imageQA,
171
+ "rfidParams": rfidParams,
172
+ "faceApiParams": faceApiParams,
173
+ "backendProcessingConfig": backendProcessingConfig,
174
+ "authenticityParams": authenticityParams,
175
+ "customParams": {"test1": true, "test2": 1, "test3": "test"},
176
+ };
177
+ export var font1 = {
178
+ "name": "AppleSDGothicNeo-Thin",
179
+ "size": 10,
180
+ "style": 2,
181
+ };
182
+ export var font2 = {
183
+ "name": "Copperplate-Light",
184
+ "size": 20,
185
+ "style": 1,
186
+ };
187
+ export var customizationColors = {
188
+ "rfidProcessingScreenBackground": 0xff000000,
189
+ "rfidProcessingScreenHintLabelText": 0xff000001,
190
+ "rfidProcessingScreenHintLabelBackground": 0xff000002,
191
+ "rfidProcessingScreenProgressLabelText": 0xff000003,
192
+ "rfidProcessingScreenProgressBar": 0xff000004,
193
+ "rfidProcessingScreenProgressBarBackground": 0xff000005,
194
+ "rfidProcessingScreenResultLabelText": 0xff000006,
195
+ "rfidProcessingScreenLoadingBar": 0xff000007,
196
+ "rfidEnableNfcTitleText": 0xff000008,
197
+ "rfidEnableNfcDescriptionText": 0xff000009,
198
+ "rfidEnableNfcButtonText": 0xff000010,
199
+ "rfidEnableNfcButtonBackground": 0xff000011,
200
+ "mdlProcessingScreenBackground": 0xff000012,
201
+ "mdlProcessingScreenHintLabelText": 0xff000013,
202
+ "mdlProcessingScreenHintLabelBackground": 0xff000014,
203
+ "mdlProcessingScreenProgressLabelText": 0xff000015,
204
+ "mdlProcessingScreenResultLabelText": 0xff000016,
205
+ "mdlProcessingScreenLoadingBar": 0xff000017,
206
+ "mdlEnableNfcTitleText": 0xff000018,
207
+ "mdlEnableNfcDescriptionText": 0xff000019,
208
+ "mdlEnableNfcButtonText": 0xff000020,
209
+ "mdlEnableNfcButtonBackground": 0xff000021,
210
+ "nextPageIdCardFront": 0xff000022,
211
+ "nextPageIdCardBack": 0xff000023,
212
+ "nextPagePassportShift": 0xff000024,
213
+ "nextPagePassportFlip": 0xff000025,
214
+ };
215
+ export var customizationFonts = {
216
+ "rfidProcessingScreenHintLabel": font1,
217
+ "rfidProcessingScreenProgressLabel": font2,
218
+ "rfidProcessingScreenResultLabel": font1,
219
+ "rfidEnableNfcTitleText": font2,
220
+ "rfidEnableNfcDescriptionText": font1,
221
+ "rfidEnableNfcButtonText": font2,
222
+ "mdlProcessingScreenHintLabel": font1,
223
+ "mdlProcessingScreenProgressLabel": font2,
224
+ "mdlProcessingScreenResultLabel": font1,
225
+ "mdlEnableNfcTitleText": font2,
226
+ "mdlEnableNfcDescriptionText": font1,
227
+ "mdlEnableNfcButtonText": font2,
228
+ };
229
+ export var customizationImages = {
230
+ "helpAnimation": img1,
231
+ "livenessAnimation": img2,
232
+ "borderBackground": img1,
233
+ "torchButtonOn": img2,
234
+ "torchButtonOff": img1,
235
+ "captureButton": img2,
236
+ "switchButton": img1,
237
+ "closeButton": img2,
238
+ "multipageButton": img1,
239
+ "rfidProcessingScreenFailureImage": img1,
240
+ "rfidEnableNfcImage": img2,
241
+ "rfidDisableNfcImage": img1,
242
+ "mdlProcessingScreenFailureImage": img2,
243
+ "mdlEnableNfcImage": img1,
244
+ "mdlDisableNfcImage": img2,
245
+ "nextPageIdCardFront": img1,
246
+ "nextPageIdCardBack": img2,
247
+ "nextPagePassportShift": img1,
248
+ "nextPagePassportFlipStart": img2,
249
+ "nextPagePassportFlipClean": img1,
250
+ "nextPagePassportFlipTop": img2,
251
+ "nextPagePassportFlipBottom": img1,
252
+ };
253
+ export var customizationTimings = {
254
+ "nextPageIdCardStartDelay": 0,
255
+ "nextPageIdCardEndDelay": 1,
256
+ "nextPagePassportShiftStartDelay": 2,
257
+ "nextPagePassportShiftEndDelay": 3,
258
+ "nextPagePassportFlipStartDelay": 4,
259
+ "nextPagePassportFlipEndDelay": 5,
260
+ };
261
+ export var customizationContentModes = {
262
+ "nextPageIdCardFront": 0,
263
+ "nextPageIdCardBack": 1,
264
+ };
265
+ export var customizationMatrices = {
266
+ "nextPageIdCardFront": [1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9],
267
+ "nextPageIdCardBack": [2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9],
268
+ };
269
+ export var customization = {
270
+ "theme": 1,
271
+ "showStatusMessages": true,
272
+ "showResultStatusMessages": false,
273
+ "showHelpAnimation": true,
274
+ "showNextPageAnimation": false,
275
+ "showBackgroundMask": true,
276
+ "cameraFrameBorderWidth": 1,
277
+ "cameraFrameLineLength": 2,
278
+ "cameraFrameShapeType": 1,
279
+ "cameraFrameOffsetWidth": 3,
280
+ "status": "test1",
281
+ "resultStatus": "test2",
282
+ "multipageButtonText": "test3",
283
+ "cameraFrameDefaultColor": 0xff000000,
284
+ "cameraFrameActiveColor": 0xff000001,
285
+ "statusTextColor": 0xff000002,
286
+ "resultStatusTextColor": 0xff000003,
287
+ "resultStatusBackgroundColor": 0xff000004,
288
+ "multipageButtonBackgroundColor": 0xff000005,
289
+ "tintColor": 0xff000006,
290
+ "activityIndicatorColor": 0xff000007,
291
+ "statusBackgroundColor": 0xff000008,
292
+ "cameraPreviewBackgroundColor": 0xff000009,
293
+ "backgroundMaskColor": 0xff000010,
294
+ "multipageButtonTextColor": 0xff000011,
295
+ "statusPositionMultiplier": 0.5,
296
+ "resultStatusPositionMultiplier": 1.5,
297
+ "toolbarSize": 2.5,
298
+ "backgroundMaskAlpha": 3.5,
299
+ "customStatusPositionMultiplier": 4.5,
300
+ "cameraFrameVerticalPositionMultiplier": 5.5,
301
+ "cameraFrameLandscapeAspectRatio": 6.5,
302
+ "cameraFramePortraitAspectRatio": 7.5,
303
+ "cameraFrameCornerRadius": 8.5,
304
+ "livenessAnimationPositionMultiplier": 9.5,
305
+ "nextPageAnimationStartDelay": 10.5,
306
+ "nextPageAnimationEndDelay": 11.5,
307
+ "activityIndicatorPortraitPositionMultiplier": 12.5,
308
+ "activityIndicatorLandscapePositionMultiplier": 13.5,
309
+ "cameraPreviewVerticalPositionMultiplier": 14.5,
310
+ "multipageButtonPositionMultiplier": 15.5,
311
+ "multipageAnimationFrontImage": img1,
312
+ "multipageAnimationBackImage": img2,
313
+ "borderBackgroundImage": img3,
314
+ "helpAnimationImage": img1,
315
+ "closeButtonImage": img2,
316
+ "captureButtonImage": img3,
317
+ "cameraSwitchButtonImage": img1,
318
+ "torchButtonOnImage": img2,
319
+ "torchButtonOffImage": img3,
320
+ "changeFrameButtonExpandImage": img1,
321
+ "changeFrameButtonCollapseImage": img2,
322
+ "livenessAnimationImage": img3,
323
+ "multipageButtonImage": img1,
324
+ "customLabelStatus": "test3",
325
+ "cameraFrameLineCap": 2,
326
+ "uiCustomizationLayer": {"test": "test"},
327
+ "statusTextFont": font1,
328
+ "resultStatusTextFont": font2,
329
+ "multipageButtonTextFont": font1,
330
+ "helpAnimationImageContentMode": 0,
331
+ "multipageAnimationFrontImageContentMode": 1,
332
+ "multipageAnimationBackImageContentMode": 2,
333
+ "livenessAnimationImageContentMode": 3,
334
+ "borderBackgroundImageContentMode": 4,
335
+ "helpAnimationImageMatrix": [1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9],
336
+ "multipageAnimationFrontImageMatrix": [2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9],
337
+ "multipageAnimationBackImageMatrix": [3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9],
338
+ "livenessAnimationImageMatrix": [4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9],
339
+ "borderBackgroundImageMatrix": [5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 5.9],
340
+ "colors": customizationColors,
341
+ "fonts": customizationFonts,
342
+ "images": customizationImages,
343
+ "timings": customizationTimings,
344
+ "contentModes": customizationContentModes,
345
+ "matrices": customizationMatrices,
346
+ };
347
+ export var cameraSize = {
348
+ "width": 0,
349
+ "height": 1,
350
+ };
351
+ export var functionality = {
352
+ "pictureOnBoundsReady": true,
353
+ "showTorchButton": false,
354
+ "showCloseButton": true,
355
+ "videoCaptureMotionControl": false,
356
+ "showCaptureButton": true,
357
+ "showChangeFrameButton": false,
358
+ "showSkipNextPageButton": true,
359
+ "useAuthenticator": true,
360
+ "skipFocusingFrames": true,
361
+ "showCameraSwitchButton": false,
362
+ "displayMetadata": true,
363
+ "isZoomEnabled": false,
364
+ "isCameraTorchCheckDisabled": true,
365
+ "recordScanningProcess": false,
366
+ "manualMultipageMode": true,
367
+ "singleResult": false,
368
+ "torchTurnedOn": false,
369
+ "preventScreenRecording": true,
370
+ "homeIndicatorAutoHide": false,
371
+ "hideStatusBar": true,
372
+ "showCaptureButtonDelayFromDetect": 0,
373
+ "showCaptureButtonDelayFromStart": 1,
374
+ "rfidTimeout": 2,
375
+ "forcePagesCount": 3,
376
+ "orientation": 1,
377
+ "captureMode": 2,
378
+ "cameraMode": 0,
379
+ "cameraPositionIOS": 1,
380
+ "cameraFrame": "id1",
381
+ "btDeviceName": "test",
382
+ "zoomFactor": 0.5,
383
+ "exposure": 1.5,
384
+ "videoRecordingSizeDownscaleFactor": 2.5,
385
+ "mdlTimeout": 3.5,
386
+ "excludedCamera2Models": ["test1", "test2", "test3"],
387
+ "cameraSize": cameraSize,
388
+ "videoSessionPreset": 6,
389
+ };
390
+ export var eDLDataGroups = {
391
+ "DG1": true,
392
+ "DG2": false,
393
+ "DG3": true,
394
+ "DG4": false,
395
+ "DG5": true,
396
+ "DG6": false,
397
+ "DG7": true,
398
+ "DG8": false,
399
+ "DG9": true,
400
+ "DG10": false,
401
+ "DG11": true,
402
+ "DG12": false,
403
+ "DG13": true,
404
+ "DG14": false,
405
+ };
406
+ export var ePassportDataGroups = {
407
+ "DG1": true,
408
+ "DG2": false,
409
+ "DG3": true,
410
+ "DG4": false,
411
+ "DG5": true,
412
+ "DG6": false,
413
+ "DG7": true,
414
+ "DG8": false,
415
+ "DG9": true,
416
+ "DG10": false,
417
+ "DG11": true,
418
+ "DG12": false,
419
+ "DG13": true,
420
+ "DG14": false,
421
+ "DG15": true,
422
+ "DG16": false,
423
+ };
424
+ export var eIDDataGroups = {
425
+ "DG1": true,
426
+ "DG2": false,
427
+ "DG3": true,
428
+ "DG4": false,
429
+ "DG5": true,
430
+ "DG6": false,
431
+ "DG7": true,
432
+ "DG8": false,
433
+ "DG9": true,
434
+ "DG10": false,
435
+ "DG11": true,
436
+ "DG12": false,
437
+ "DG13": true,
438
+ "DG14": false,
439
+ "DG15": true,
440
+ "DG16": false,
441
+ "DG17": true,
442
+ "DG18": false,
443
+ "DG19": true,
444
+ "DG20": false,
445
+ "DG21": true,
446
+ };
447
+ export var dtcDataGroup = {
448
+ "DG17": true,
449
+ "DG18": false,
450
+ "DG22": false,
451
+ "DG23": true,
452
+ "DG24": false,
453
+ };
454
+ export var rfidScenario = {
455
+ "paceStaticBinding": true,
456
+ "onlineTA": false,
457
+ "writeEid": true,
458
+ "universalAccessRights": false,
459
+ "authorizedRestrictedIdentification": true,
460
+ "auxVerificationCommunityID": false,
461
+ "auxVerificationDateOfBirth": true,
462
+ "skipAA": false,
463
+ "strictProcessing": true,
464
+ "pkdDSCertPriority": false,
465
+ "pkdUseExternalCSCA": true,
466
+ "trustedPKD": false,
467
+ "passiveAuth": true,
468
+ "useSFI": false,
469
+ "readEPassport": true,
470
+ "readEID": false,
471
+ "readEDL": true,
472
+ "authorizedSTSignature": false,
473
+ "authorizedSTQSignature": true,
474
+ "authorizedWriteDG17": false,
475
+ "authorizedWriteDG18": true,
476
+ "authorizedWriteDG19": false,
477
+ "authorizedWriteDG20": true,
478
+ "authorizedWriteDG21": false,
479
+ "authorizedVerifyAge": true,
480
+ "authorizedVerifyCommunityID": false,
481
+ "authorizedPrivilegedTerminal": true,
482
+ "authorizedCANAllowed": false,
483
+ "authorizedPINManagement": true,
484
+ "authorizedInstallCert": false,
485
+ "authorizedInstallQCert": true,
486
+ "applyAmendments": false,
487
+ "autoSettings": true,
488
+ "proceedReadingAlways": false,
489
+ "readDTC": true,
490
+ "mrzStrictCheck": false,
491
+ "loadCRLFromRemote": true,
492
+ "independentSODStatus": false,
493
+ "readUser": true,
494
+ "readingBuffer": -1,
495
+ "onlineTAToSignDataType": 3,
496
+ "defaultReadingBufferSize": 2,
497
+ "signManagementAction": 3,
498
+ "profilerType": 2,
499
+ "authProcType": 3,
500
+ "baseSMProcedure": 4,
501
+ "pacePasswordType": 5,
502
+ "terminalType": 1,
503
+ "password": "test1",
504
+ "pkdPA": "test2",
505
+ "pkdEAC": "test3",
506
+ "mrz": "test4",
507
+ "eSignPINDefault": "test5",
508
+ "eSignPINNewValue": "test6",
509
+ "cardAccess": "test7",
510
+ "mrzHash": "test8",
511
+ "documentNumber": "test9",
512
+ "dateOfBirth": "test10",
513
+ "dateOfExpiry": "test11",
514
+ "defaultUserPIN": "test12",
515
+ "eDLDataGroups": eDLDataGroups,
516
+ "ePassportDataGroups": ePassportDataGroups,
517
+ "eIDDataGroups": eIDDataGroups,
518
+ "dtcDataGroups": dtcDataGroup,
519
+ };
520
+
521
+ export var initConfig = {
522
+ "delayedNNLoad": false,
523
+ "licenseUpdate": true,
524
+ "licenseUpdateTimeout": 1.5,
525
+ "customDb": img1,
526
+ "blackList": {"key1": "val1", "key2": "val2", "key3": "val3"},
527
+ "databasePath": "test",
528
+ "license": img2,
529
+ "useBleDevice": true,
530
+ };
531
+ export var onlineProcessingConfig = {
532
+ "mode": 1,
533
+ "url": "test",
534
+ "imageFormat": 1,
535
+ "imageCompressionQuality": 1.5,
536
+ "processParams": processParams,
537
+ "requestHeaders": {"key1": "val1", "key2": "val2", "key3": "val3"},
538
+ };
539
+ export var imageInputData = {
540
+ "image": img1,
541
+ "light": 128,
542
+ "pageIndex": 2,
543
+ };
544
+ export var recognizeConfig = {
545
+ "scenario": "Mrz",
546
+ "livePortrait": img1,
547
+ "extPortrait": img2,
548
+ "oneShotIdentification": true,
549
+ "dtc": img1,
550
+ "image": img3,
551
+ "data": img1,
552
+ "images": [img1, img2, img3],
553
+ "dataList": [img3, img2, img1],
554
+ "imageInputData": [imageInputData, imageInputData, imageInputData],
555
+ };
556
+ export var recognizeConfig2 = {
557
+ "onlineProcessingConfig": onlineProcessingConfig,
558
+ "oneShotIdentification": true,
559
+ };
560
+ export var recognizeConfig3 = {
561
+ "scenario": "Mrz",
562
+ "onlineProcessingConfig": onlineProcessingConfig,
563
+ "oneShotIdentification": true,
564
+ };
565
+ export var scannerConfig = {
566
+ "scenario": "Mrz",
567
+ "onlineProcessingConfig": onlineProcessingConfig,
568
+ "livePortrait": img1,
569
+ "extPortrait": img2,
570
+ "cameraId": 1,
571
+ };
572
+ export var finalizeConfig = {
573
+ "rawImages": true,
574
+ "video": false,
575
+ "rfidSession": true,
576
+ "mdlSession": false,
577
+ };
578
+
579
+ export var documentsDatabase = {
580
+ "databaseID": "test1",
581
+ "version": "test2",
582
+ "date": "test3",
583
+ "databaseDescription": "test4",
584
+ "countriesNumber": 1,
585
+ "documentsNumber": 2,
586
+ "size": 3,
587
+ };
588
+ export var docReaderVersion = {
589
+ "api": "test1",
590
+ "core": "test2",
591
+ "coreMode": "test3",
592
+ "database": documentsDatabase,
593
+ };
594
+ export var docReaderScenario = {
595
+ "uvTorch": true,
596
+ "frameOrientation": 2,
597
+ "faceExt": false,
598
+ "multiPageOff": false,
599
+ "seriesProcessMode": true,
600
+ "frameKWHLandscape": 0.5,
601
+ "frameKWHPortrait": 1.5,
602
+ "frameKWHDoublePageSpreadPortrait": 2.5,
603
+ "frameKWHDoublePageSpreadLandscape": 3.5,
604
+ "name": "test1",
605
+ "caption": "test2",
606
+ "description": "test3",
607
+ "manualCrop": false,
608
+ };
609
+ export var license = {
610
+ "expiryDate": "test1",
611
+ "countryFilter": ["test2", "test3", "test4"],
612
+ "isRfidAvailable": true,
613
+ };
614
+ export var docReaderException = {
615
+ "code": 1,
616
+ "message": "test1",
617
+ };
618
+ export var rfidException = {
619
+ "code": 2,
620
+ "message": "test2",
621
+ };
622
+ export var prepareProgress = {
623
+ "downloadedBytes": 1,
624
+ "totalBytes": 2,
625
+ "progress": 50,
626
+ };
627
+
628
+ export var authenticityElement = {
629
+ "status": 1,
630
+ "elementType": 2,
631
+ "elementDiagnose": 3,
632
+ "elementTypeName": "Photo element",
633
+ "elementDiagnoseName": "Error of internal data processing",
634
+ };
635
+ export var authenticityCheck = {
636
+ "type": 1,
637
+ "status": 2,
638
+ "typeName": "UV dull paper check",
639
+ "pageIndex": 3,
640
+ "elements": [authenticityElement, authenticityElement, authenticityElement],
641
+ };
642
+ export var authenticityResult = {
643
+ "status": 2,
644
+ "checks": [authenticityCheck, authenticityCheck, authenticityCheck],
645
+ };
646
+ export var pdf417Info = {
647
+ "errorLevel": 2,
648
+ "columns": 3,
649
+ "rows": 4,
650
+ };
651
+ export var barcodeField = {
652
+ "barcodeType": 5,
653
+ "status": -6001,
654
+ "pageIndex": 2,
655
+ "pdf417Info": pdf417Info,
656
+ "data": img1,
657
+ };
658
+ export var barcodeResult = {
659
+ "fields": [barcodeField, barcodeField, barcodeField],
660
+ };
661
+ export var rect = {
662
+ "bottom": 0,
663
+ "top": 1,
664
+ "left": 2,
665
+ "right": 3,
666
+ };
667
+ export var imageQuality = {
668
+ "featureType": 1,
669
+ "result": 2,
670
+ "type": 3,
671
+ "boundRects": [rect, rect, rect],
672
+ };
673
+ export var imageQualityGroup = {
674
+ "count": 1,
675
+ "result": 2,
676
+ "pageIndex": 3,
677
+ "imageQualityList": [imageQuality, imageQuality, imageQuality],
678
+ };
679
+ export var accessControlProcedureType = {
680
+ "activeOptionIdx": 1,
681
+ "type": 2,
682
+ "status": 1,
683
+ "notifications": [1, 2, 3],
684
+ };
685
+ export var fileData = {
686
+ "data": "test",
687
+ "length": 2,
688
+ "type": 3,
689
+ "status": 4,
690
+ };
691
+ export var certificateData = {
692
+ "data": "test",
693
+ "length": 1,
694
+ };
695
+ export var securityObjectCertificates = {
696
+ "securityObject": certificateData,
697
+ };
698
+ export var file = {
699
+ "fileData": fileData,
700
+ "fileID": "test1",
701
+ "notifications": [1, 2, 3],
702
+ "pAStatus": 1,
703
+ "readingStatus": 2,
704
+ "readingTime": 3,
705
+ "type": 4,
706
+ "typeName": "Biometry - Iris Data (DG4)",
707
+ "docFieldsText": [4, 5, 6],
708
+ "docFieldsGraphics": [7, 8, 9],
709
+ "docFieldsOriginals": [10, 11, 12],
710
+ "certificates": securityObjectCertificates,
711
+ };
712
+ export var application = {
713
+ "applicationID": "test1",
714
+ "dataHashAlgorithm": "test2",
715
+ "files": [file, file, file],
716
+ "status": 1,
717
+ "type": 2,
718
+ "unicodeVersion": "test3",
719
+ "version": "test4",
720
+ };
721
+ export var rfidValue = {
722
+ "data": "test1",
723
+ "length": 1,
724
+ "status": 2,
725
+ "type": 3,
726
+ "format": "test2",
727
+ };
728
+ export var attribute = {
729
+ "type": "test",
730
+ "value": rfidValue,
731
+ };
732
+ export var authority = {
733
+ "attributes": [attribute, attribute, attribute],
734
+ "data": "test",
735
+ "friendlyName": rfidValue,
736
+ };
737
+ export var cardProperties = {
738
+ "aTQA": 1,
739
+ "bitRateR": 2,
740
+ "bitRateS": 3,
741
+ "chipTypeA": 4,
742
+ "mifareMemory": 5,
743
+ "rfidType": 6,
744
+ "sAK": 7,
745
+ "support4": true,
746
+ "supportMifare": false,
747
+ "aTQB": "test1",
748
+ "aTR": "test2",
749
+ "baudrate1": "test3",
750
+ "baudrate2": "test4",
751
+ "uID": "test5",
752
+ };
753
+ export var extension = {
754
+ "data": "test1",
755
+ "type": "test2",
756
+ };
757
+ export var rfidValidity = {
758
+ "notAfter": rfidValue,
759
+ "notBefore": rfidValue,
760
+ };
761
+ export var certificateChain = {
762
+ "type": 1,
763
+ "extensions": [extension, extension, extension],
764
+ "fileName": rfidValue,
765
+ "issuer": authority,
766
+ "notifications": [1, 2, 3],
767
+ "origin": 2,
768
+ "paStatus": 3,
769
+ "serialNumber": "test1",
770
+ "signatureAlgorithm": "test2",
771
+ "subject": authority,
772
+ "subjectPKAlgorithm": "test3",
773
+ "validity": rfidValidity,
774
+ "version": 4,
775
+ };
776
+ export var dataField = {
777
+ "data": "test",
778
+ "fieldType": 1,
779
+ };
780
+ export var signerInfo = {
781
+ "dataToHash": "test1",
782
+ "digestAlgorithm": "test2",
783
+ "version": 1,
784
+ "paStatus": 2,
785
+ "signatureAlgorithm": "test3",
786
+ "issuer": authority,
787
+ "serialNumber": rfidValue,
788
+ "signature": rfidValue,
789
+ "subjectKeyIdentifier": rfidValue,
790
+ "signedAttributes": [extension, extension, extension],
791
+ "certificateChain": [certificateChain, certificateChain, certificateChain],
792
+ "notifications": [1, 2, 3],
793
+ };
794
+ export var securityObject = {
795
+ "fileReference": 1,
796
+ "objectType": "test",
797
+ "version": 2,
798
+ "signerInfos": [signerInfo, signerInfo, signerInfo],
799
+ "notifications": [1, 2, 3],
800
+ };
801
+ export var rfidSessionData = {
802
+ "accessControls": [
803
+ accessControlProcedureType,
804
+ accessControlProcedureType,
805
+ accessControlProcedureType,
806
+ ],
807
+ "applications": [application, application, application],
808
+ "securityObjects": [securityObject, securityObject, securityObject],
809
+ "dataFields": [dataField, dataField, dataField],
810
+ "dataGroups": [1, 2, 3],
811
+ "cardProperties": cardProperties,
812
+ "totalBytesReceived": 1,
813
+ "totalBytesSent": 2,
814
+ "status": 1,
815
+ "extLeSupport": 1,
816
+ "processTime": 4,
817
+ };
818
+ export var bytesData = {
819
+ "data": "test",
820
+ "length": 1,
821
+ "status": 2,
822
+ "type": 3,
823
+ };
824
+ export var vdsncData = {
825
+ "type": "test1",
826
+ "version": 1,
827
+ "issuingCountry": "test2",
828
+ "message": {"key1": "val1", "key2": "val2", "key3": "val3"},
829
+ "signatureAlgorithm": "test3",
830
+ "signature": bytesData,
831
+ "certificate": bytesData,
832
+ "certificateChain": [certificateChain, certificateChain, certificateChain],
833
+ "notifications": [3000000001, 3000000002, 3000000003],
834
+ };
835
+ export var docFeature = {
836
+ "type": 0,
837
+ "data": bytesData,
838
+ };
839
+ export var vdsData = {
840
+ "type": 1,
841
+ "docType": 2,
842
+ "featureRef": 3,
843
+ "version": 4,
844
+ "issuingCountry": "test1",
845
+ "docIssueDate": "test2",
846
+ "signature": bytesData,
847
+ "signatureDate": "test3",
848
+ "signer": "test4",
849
+ "certificate": "test5",
850
+ "certificateChain": [certificateChain, certificateChain, certificateChain],
851
+ "docFeatures": [docFeature, docFeature, docFeature],
852
+ "notifications": [3000000001, 3000000002, 3000000003],
853
+ };
854
+ export var opticalStatus = {
855
+ "overallStatus": 0,
856
+ "mrz": 1,
857
+ "text": 2,
858
+ "docType": 0,
859
+ "security": 1,
860
+ "imageQA": 2,
861
+ "expiry": 0,
862
+ "vds": 1,
863
+ "pagesCount": 3,
864
+ };
865
+ export var ageStatus = {
866
+ "threshold": 0,
867
+ "overThreshold": 1,
868
+ "over18": 2,
869
+ "over21": 0,
870
+ "over25": 1,
871
+ "over65": 2,
872
+ };
873
+ export var rfidStatus = {
874
+ "overallStatus": 0,
875
+ "pa": 1,
876
+ "ca": 2,
877
+ "aa": 0,
878
+ "ta": 1,
879
+ "bac": 2,
880
+ "pace": 0,
881
+ };
882
+ export var resultsStatus = {
883
+ "overallStatus": 0,
884
+ "optical": 1,
885
+ "rfid": 2,
886
+ "portrait": 0,
887
+ "stopList": 1,
888
+ "mDL": 2,
889
+ "age": 0,
890
+ "captureProcessIntegrity": 1,
891
+ "detailsOptical": opticalStatus,
892
+ "detailsAge": ageStatus,
893
+ "detailsRFID": rfidStatus,
894
+ };
895
+ export var comparison = {
896
+ "sourceTypeLeft": 0,
897
+ "sourceTypeRight": 1,
898
+ "status": 2,
899
+ };
900
+ export var graphicField = {
901
+ "sourceType": 0,
902
+ "fieldType": 201,
903
+ "fieldName": "Portrait",
904
+ "light": 128,
905
+ "lightName": "UV",
906
+ "pageIndex": 3,
907
+ "originalPageIndex": 4,
908
+ "value": img1,
909
+ "fieldRect": rect,
910
+ };
911
+ export var graphicResult = {
912
+ "fields": [graphicField, graphicField, graphicField],
913
+ };
914
+ export var rfidOrigin = {
915
+ "dg": 1,
916
+ "dgTag": 2,
917
+ "entryView": 3,
918
+ "tagEntry": 4,
919
+ };
920
+ export var symbol = {
921
+ "rect": rect,
922
+ "code": 1,
923
+ "probability": 2,
924
+ };
925
+ export var validity = {
926
+ "sourceType": 1,
927
+ "status": 2,
928
+ };
929
+ export var value = {
930
+ "sourceType": 3,
931
+ "value": "test1",
932
+ "originalValue": "test2",
933
+ "pageIndex": 2,
934
+ "boundRect": rect,
935
+ "rfidOrigin": rfidOrigin,
936
+ "originalSymbols": [symbol, symbol, symbol],
937
+ "probability": 1,
938
+ };
939
+ export var textField = {
940
+ "fieldType": 1,
941
+ "fieldName": "Issuing state code",
942
+ "lcid": 10011,
943
+ "lcidName": "Abkhazian (Cyrillic)",
944
+ "value": "test3",
945
+ "getValue": value,
946
+ "values": [value, value, value],
947
+ "status": 2,
948
+ "comparisonList": [comparison, comparison, comparison],
949
+ "validityList": [validity, validity, validity],
950
+ "comparisonStatus": 0,
951
+ "validityStatus": 1,
952
+ };
953
+ export var textSource = {
954
+ "sourceType": validity["sourceType"],
955
+ "source": "sourceType",
956
+ "validityStatus": 1,
957
+ };
958
+ export var documentReaderTextSource2 = {
959
+ "sourceType": comparison["sourceTypeLeft"],
960
+ "source": "sourceTypeLeft",
961
+ "validityStatus": 1,
962
+ };
963
+ export var documentReaderTextSource3 = {
964
+ "sourceType": comparison["sourceTypeRight"],
965
+ "source": "sourceTypeRight",
966
+ "validityStatus": 1,
967
+ };
968
+ export var textResult = {
969
+ "status": 0,
970
+ "comparisonStatus": 1,
971
+ "validityStatus": 2,
972
+ "availableSourceList": [
973
+ textSource,
974
+ documentReaderTextSource2,
975
+ documentReaderTextSource3,
976
+ ],
977
+ "fields": [textField, textField, textField],
978
+ };
979
+ export var documentType = {
980
+ "name": "test1",
981
+ "documentID": 1,
982
+ "ICAOCode": "test2",
983
+ "FDSID": [1, 2, 3],
984
+ "dType": 11,
985
+ "dFormat": 2,
986
+ "dMRZ": true,
987
+ "isDeprecated": false,
988
+ "dDescription": "test3",
989
+ "dYear": "test4",
990
+ "dCountryName": "test5",
991
+ "pageIndex": 3,
992
+ };
993
+ export var coordinate = {
994
+ "x": 1,
995
+ "y": 2,
996
+ };
997
+ export var position = {
998
+ "docFormat": 0,
999
+ "resultStatus": 1,
1000
+ "width": 2,
1001
+ "height": 3,
1002
+ "angle": 0.5,
1003
+ "dpi": 4,
1004
+ "inverse": 5,
1005
+ "perspectiveTr": 6,
1006
+ "objArea": 7,
1007
+ "objIntAngleDev": 8,
1008
+ "pageIndex": 9,
1009
+ "center": coordinate,
1010
+ "leftTop": coordinate,
1011
+ "leftBottom": coordinate,
1012
+ "rightTop": coordinate,
1013
+ "rightBottom": coordinate,
1014
+ };
1015
+ export var transactionInfo = {
1016
+ "transactionId": "test1",
1017
+ "tag": "test2",
1018
+ "sessionLogFolder": "test3",
1019
+ };
1020
+ export var results = {
1021
+ "chipPage": 0,
1022
+ "processingFinishedStatus": 2,
1023
+ "elapsedTime": 3,
1024
+ "elapsedTimeRFID": 4,
1025
+ "morePagesAvailable": 5,
1026
+ "graphicResult": graphicResult,
1027
+ "textResult": textResult,
1028
+ "documentPosition": [position],
1029
+ "barcodePosition": [position, position],
1030
+ "mrzPosition": [position, position, position],
1031
+ "imageQuality": [imageQualityGroup, imageQualityGroup, imageQualityGroup],
1032
+ "documentType": [documentType, documentType, documentType],
1033
+ "rawResult": "test2",
1034
+ "bsiTr03135Results": "test3",
1035
+ "rfidSessionData": rfidSessionData,
1036
+ "authenticityResult": authenticityResult,
1037
+ "barcodeResult": barcodeResult,
1038
+ "status": resultsStatus,
1039
+ "vdsncData": vdsncData,
1040
+ "vdsData": vdsData,
1041
+ "dtcData": img1,
1042
+ "transactionInfo": transactionInfo,
1043
+ };
1044
+
1045
+ export var rfidNotification = {
1046
+ "notificationCode": 65536,
1047
+ "dataFileType": 1,
1048
+ "progress": 2,
1049
+ };
1050
+ export var paAttribute = {
1051
+ "type": "test1",
1052
+ "value": "test2",
1053
+ };
1054
+ export var paResourcesIssuer = {
1055
+ "data": img1,
1056
+ "friendlyName": "test",
1057
+ "attributes": [paAttribute, paAttribute, paAttribute],
1058
+ };
1059
+ export var pkdCertificate = {
1060
+ "binaryData": img1,
1061
+ "resourceType": 0,
1062
+ "privateKey": img2,
1063
+ };
1064
+ export var taChallenge = {
1065
+ "data": img1,
1066
+ "auxPCD": "test1",
1067
+ "challengePICC": "test2",
1068
+ "hashPK": "test3",
1069
+ "idPICC": "test4",
1070
+ };
1071
+ export var paceProtocol = {
1072
+ "version": "123",
1073
+ "stdDomainParams": "test2",
1074
+ "keyAlgorithm": "test3",
1075
+ };
1076
+ export var caProtocol = {
1077
+ "version": "123",
1078
+ "scheme": "test2",
1079
+ "keyAlgorithm": "test3",
1080
+ "chipIndividual": true,
1081
+ };
1082
+ export var tccParams = {
1083
+ "serviceUrlTA": "test1",
1084
+ "serviceUrlPA": "test2",
1085
+ "pfxCertUrl": "test3",
1086
+ "pfxPassPhrase": "test4",
1087
+ "pfxCert": img1,
1088
+ };
1089
+ export var deviceRetrievalMethod = {
1090
+ "type": 1,
1091
+ "version": 2,
1092
+ "cmdMaxLength": 3,
1093
+ "respMaxLength": 4,
1094
+ "clientModeSupport": true,
1095
+ "clientModeUUID": "test1",
1096
+ "serverModeSupport": true,
1097
+ "serverModeUUID": "test2",
1098
+ };
1099
+ export var deviceEngagement = {
1100
+ "deviceRetrievalMethods": [
1101
+ deviceRetrievalMethod,
1102
+ deviceRetrievalMethod,
1103
+ deviceRetrievalMethod,
1104
+ ],
1105
+ };
1106
+ export var nameSpaceMDL = {
1107
+ "name": "test1",
1108
+ "map": {"test2": 0, "test3": 1, "test4": 0},
1109
+ };
1110
+ export var documentRequestMDL = {
1111
+ "docType": "test1",
1112
+ "namespaces": [nameSpaceMDL, nameSpaceMDL, nameSpaceMDL],
1113
+ };
1114
+ export var documentRequest18013MDL = {
1115
+ "docType": "org.iso.18013.5.1.mDL",
1116
+ "namespaces": [nameSpaceMDL, nameSpaceMDL, nameSpaceMDL],
1117
+ "familyName": 0,
1118
+ "givenName": 1,
1119
+ "birthDate": 1,
1120
+ "issueDate": 0,
1121
+ "expiryDate": 1,
1122
+ "issuingCountry": 0,
1123
+ "issuingAuthority": 0,
1124
+ "documentNumber": 0,
1125
+ "portrait": 1,
1126
+ "drivingPrivileges": 0,
1127
+ "unDistinguishingSign": 0,
1128
+ "administrativeNumber": 1,
1129
+ "sex": 0,
1130
+ "height": 0,
1131
+ "weight": 0,
1132
+ "eyeColour": 1,
1133
+ "hairColour": 0,
1134
+ "birthPlace": 1,
1135
+ "residentAddress": 0,
1136
+ "portraitCaptureDate": 0,
1137
+ "ageInYears": 1,
1138
+ "ageBirthYear": 1,
1139
+ "ageOver18": 1,
1140
+ "issuingJurisdiction": 0,
1141
+ "nationality": 0,
1142
+ "residentCity": 1,
1143
+ "residentState": 0,
1144
+ "residentPostalCode": 0,
1145
+ "residentCountry": 1,
1146
+ "biometricTemplateFace": 0,
1147
+ "biometricTemplateIris": 0,
1148
+ "biometricTemplateFinger": 1,
1149
+ "biometricTemplateSignatureSign": 1,
1150
+ "familyNameNationalCharacter": 0,
1151
+ "givenNameNationalCharacter": 1,
1152
+ "signatureUsualMark": 0,
1153
+ };
1154
+ export var dataRetrieval = {
1155
+ "docRequestPreset": 0,
1156
+ "intentToRetain": 1,
1157
+ "deviceRetrieval": 2,
1158
+ "requests": [documentRequestMDL, documentRequest18013MDL],
1159
+ };