@microblink/blinkid-react-native 7.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/BlinkidReactNative.podspec +31 -0
  2. package/LICENSE +21 -0
  3. package/README.md +409 -0
  4. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  5. package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
  6. package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
  7. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  8. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  9. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  10. package/android/.gradle/8.9/gc.properties +0 -0
  11. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  12. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  13. package/android/.gradle/vcs-1/gc.properties +0 -0
  14. package/android/build.gradle +85 -0
  15. package/android/gradle.properties +5 -0
  16. package/android/src/main/AndroidManifest.xml +2 -0
  17. package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkIdDeserializationUtilities.kt +354 -0
  18. package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkIdSerializationUtilities.kt +661 -0
  19. package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkidReactNativeModule.kt +209 -0
  20. package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkidReactNativePackage.kt +33 -0
  21. package/ios/BlinkIdDeserializationUtilities.swift +345 -0
  22. package/ios/BlinkIdSerializationUtilities.swift +675 -0
  23. package/ios/BlinkidReactNative.h +6 -0
  24. package/ios/BlinkidReactNative.mm +97 -0
  25. package/ios/BlinkidReactNativeModule.swift +138 -0
  26. package/ios/Frameworks/BlinkID.xcframework/Info.plist +44 -0
  27. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/BlinkID +0 -0
  28. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/BlinkID-Swift.h +34696 -0
  29. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/BlinkID.h +19 -0
  30. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/MBSampleBufferWrapper.h +28 -0
  31. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Info.plist +0 -0
  32. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.abi.json +59963 -0
  33. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.private.swiftinterface +1630 -0
  34. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  35. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.swiftinterface +1630 -0
  36. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/module.modulemap +10 -0
  37. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/module.private.modulemap +12 -0
  38. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/PrivacyInfo.xcprivacy +56 -0
  39. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/PrivateHeaders/SwiftCxxBridge.hpp +16 -0
  40. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/_CodeSignature/CodeResources +245 -0
  41. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/conan.xcconfig +36 -0
  42. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/BlinkID +0 -0
  43. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/BlinkID-Swift.h +69407 -0
  44. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/BlinkID.h +19 -0
  45. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/MBSampleBufferWrapper.h +28 -0
  46. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Info.plist +0 -0
  47. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.abi.json +59963 -0
  48. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1630 -0
  49. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  50. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1630 -0
  51. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.abi.json +59963 -0
  52. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1630 -0
  53. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  54. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1630 -0
  55. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/module.modulemap +10 -0
  56. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/module.private.modulemap +12 -0
  57. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/PrivacyInfo.xcprivacy +56 -0
  58. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/PrivateHeaders/SwiftCxxBridge.hpp +16 -0
  59. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/_CodeSignature/CodeResources +300 -0
  60. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/conan.xcconfig +36 -0
  61. package/ios/Frameworks/BlinkIDUX.xcframework/Info.plist +44 -0
  62. package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeDirectory +0 -0
  63. package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeRequirements +0 -0
  64. package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  65. package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeResources +1575 -0
  66. package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeSignature +0 -0
  67. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX +0 -0
  68. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Assets.car +0 -0
  69. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Info.plist +0 -0
  70. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/PrivacyInfo.xcprivacy +56 -0
  71. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ar.lproj/Localizable.strings +0 -0
  72. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/cs.lproj/Localizable.strings +0 -0
  73. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/de.lproj/Localizable.strings +0 -0
  74. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en.lproj/Localizable.strings +0 -0
  75. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es.lproj/Localizable.strings +0 -0
  76. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fil.lproj/Localizable.strings +0 -0
  77. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr.lproj/Localizable.strings +0 -0
  78. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/he.lproj/Localizable.strings +0 -0
  79. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hr.lproj/Localizable.strings +0 -0
  80. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hu.lproj/Localizable.strings +0 -0
  81. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/id.lproj/Localizable.strings +0 -0
  82. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/it.lproj/Localizable.strings +0 -0
  83. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ms.lproj/Localizable.strings +0 -0
  84. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nl.lproj/Localizable.strings +0 -0
  85. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt.lproj/Localizable.strings +0 -0
  86. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ro.lproj/Localizable.strings +0 -0
  87. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sk.lproj/Localizable.strings +0 -0
  88. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sl.lproj/Localizable.strings +0 -0
  89. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sr.lproj/Localizable.strings +0 -0
  90. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/th.lproj/Localizable.strings +0 -0
  91. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/vi.lproj/Localizable.strings +0 -0
  92. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hans.lproj/Localizable.strings +0 -0
  93. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hant.lproj/Localizable.strings +0 -0
  94. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Info.plist +0 -0
  95. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.abi.json +15405 -0
  96. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.package.swiftinterface +563 -0
  97. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.private.swiftinterface +563 -0
  98. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  99. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.swiftinterface +563 -0
  100. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX +0 -0
  101. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Assets.car +0 -0
  102. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Info.plist +0 -0
  103. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/PrivacyInfo.xcprivacy +56 -0
  104. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeDirectory +0 -0
  105. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeRequirements +0 -0
  106. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeRequirements-1 +0 -0
  107. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeResources +634 -0
  108. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeSignature +0 -0
  109. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ar.lproj/Localizable.strings +0 -0
  110. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/cs.lproj/Localizable.strings +0 -0
  111. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/de.lproj/Localizable.strings +0 -0
  112. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en.lproj/Localizable.strings +0 -0
  113. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es.lproj/Localizable.strings +0 -0
  114. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fil.lproj/Localizable.strings +0 -0
  115. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr.lproj/Localizable.strings +0 -0
  116. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/he.lproj/Localizable.strings +0 -0
  117. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hr.lproj/Localizable.strings +0 -0
  118. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hu.lproj/Localizable.strings +0 -0
  119. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/id.lproj/Localizable.strings +0 -0
  120. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/it.lproj/Localizable.strings +0 -0
  121. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ms.lproj/Localizable.strings +0 -0
  122. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nl.lproj/Localizable.strings +0 -0
  123. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt.lproj/Localizable.strings +0 -0
  124. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ro.lproj/Localizable.strings +0 -0
  125. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sk.lproj/Localizable.strings +0 -0
  126. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sl.lproj/Localizable.strings +0 -0
  127. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sr.lproj/Localizable.strings +0 -0
  128. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/th.lproj/Localizable.strings +0 -0
  129. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/vi.lproj/Localizable.strings +0 -0
  130. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hans.lproj/Localizable.strings +0 -0
  131. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hant.lproj/Localizable.strings +0 -0
  132. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Info.plist +0 -0
  133. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.abi.json +15405 -0
  134. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.package.swiftinterface +563 -0
  135. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +563 -0
  136. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  137. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.swiftinterface +563 -0
  138. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.abi.json +15405 -0
  139. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.package.swiftinterface +563 -0
  140. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +563 -0
  141. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  142. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +563 -0
  143. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/_CodeSignature/CodeResources +101 -0
  144. package/lib/module/NativeBlinkidReactNative.js +15 -0
  145. package/lib/module/NativeBlinkidReactNative.js.map +1 -0
  146. package/lib/module/blinkIdResult.js +612 -0
  147. package/lib/module/blinkIdResult.js.map +1 -0
  148. package/lib/module/blinkIdSettings.js +465 -0
  149. package/lib/module/blinkIdSettings.js.map +1 -0
  150. package/lib/module/blinkIdUtilities.js +21 -0
  151. package/lib/module/blinkIdUtilities.js.map +1 -0
  152. package/lib/module/index.js +63 -0
  153. package/lib/module/index.js.map +1 -0
  154. package/lib/module/package.json +1 -0
  155. package/lib/module/types.js +3375 -0
  156. package/lib/module/types.js.map +1 -0
  157. package/lib/typescript/package.json +1 -0
  158. package/lib/typescript/src/NativeBlinkidReactNative.d.ts +43 -0
  159. package/lib/typescript/src/NativeBlinkidReactNative.d.ts.map +1 -0
  160. package/lib/typescript/src/blinkIdResult.d.ts +294 -0
  161. package/lib/typescript/src/blinkIdResult.d.ts.map +1 -0
  162. package/lib/typescript/src/blinkIdSettings.d.ts +416 -0
  163. package/lib/typescript/src/blinkIdSettings.d.ts.map +1 -0
  164. package/lib/typescript/src/blinkIdUtilities.d.ts +8 -0
  165. package/lib/typescript/src/blinkIdUtilities.d.ts.map +1 -0
  166. package/lib/typescript/src/index.d.ts +52 -0
  167. package/lib/typescript/src/index.d.ts.map +1 -0
  168. package/lib/typescript/src/types.d.ts +3025 -0
  169. package/lib/typescript/src/types.d.ts.map +1 -0
  170. package/package.json +110 -0
  171. package/src/NativeBlinkidReactNative.ts +45 -0
  172. package/src/blinkIdResult.ts +711 -0
  173. package/src/blinkIdSettings.ts +515 -0
  174. package/src/blinkIdUtilities.ts +20 -0
  175. package/src/index.tsx +72 -0
  176. package/src/types.ts +4334 -0
@@ -0,0 +1,3375 @@
1
+ "use strict";
2
+
3
+ import { BlinkIdUtilities } from "./blinkIdUtilities.js";
4
+
5
+ /**
6
+ * ClassFilter represents the document filter used to determine which documents will be processed.
7
+ * Document information (Country, Region, Type) is evaluated with the content set in the filter, and their inclusion or exclusion depends on the defined rules.
8
+ * To set the document information, use {@link DocumentFilter}.
9
+ * The recognition results of the excluded documents will not be returned.
10
+ * If using the standard BlinkID UX, an alert will be displayed that the document will not be scanned.
11
+ *
12
+ * By default, the ClassFilter is turned off, and all documents will be included.
13
+ */
14
+ export class ClassFilter {
15
+ /**
16
+ * Document classes that will be explicitly accepted by this filter.
17
+ * Only documents belonging to the specified classes will be processed. All other documents will be rejected.
18
+ *
19
+ * If this list is empty, no restrictions are applied, and documents will be accepted unless explicitly excluded by `excludeDocuments`.
20
+ *
21
+ * Example usage:
22
+ *
23
+ * ```
24
+ * final classFilter = ClassFilter();
25
+ * classFilter.includeDocuments = [
26
+ * DocumentFilter.country(Country.Usa),
27
+ * DocumentFilter.countryType(Country.Croatia, DocumentType.Id),
28
+ * ];
29
+ *
30
+ *
31
+ * ```
32
+ *
33
+ *
34
+ * NOTE: from the example above, the class filter is set to only accept all documents from USA, and Croatian IDs.
35
+ * All other documents will be rejected.
36
+ *
37
+ * Rules can be combined, for example, to set all three properties (Country Region, Type), two (e.g., Country and Type) or just one (e.g, Region).
38
+ *
39
+ * See {@link DocumentFilter} for setting the combinations.
40
+ */
41
+
42
+ /**
43
+ * Document classes that will be explicitly rejected by this filter.
44
+ * Documents belonging to the specified classes will not be processed. Other documents, not included with `excludeDocuments` will be accepted.
45
+ *
46
+ * If this array is empty, no restrictions are applied, and documents will be excluded only if not present in `includeDocuments`.
47
+ *
48
+ * Example usage:
49
+ *
50
+ * ```
51
+ * final classFilter = ClassFilter();
52
+ * classFilter.excludeDocuments = [
53
+ * DocumentFilter.country(Country.Usa),
54
+ * DocumentFilter.countryType(Country.Croatia, DocumentType.Id),
55
+ * ];
56
+ *
57
+ *
58
+ * ```
59
+ *
60
+ * NOTE: from the example above, the class filter is set to only exclude all documents from USA, and Croatian IDs.
61
+ * All other classes will be accepted.
62
+ *
63
+ * Rules can be combined, for example, to set all three properties (Country Region, Type), two (e.g., Country and Type) or just one (e.g, Region).
64
+ *
65
+ * See {@link DocumentFilter} for setting the combinations.
66
+ */
67
+
68
+ /**
69
+ *
70
+ * @param includeDocuments - specifies which document classes that will be explicitly accepted by this filter.
71
+ * @param excludeDocuments - specifies which document classes that will be explicitly rejected by this filter.
72
+ */
73
+ constructor(includeDocuments, excludeDocuments) {
74
+ this.includeDocuments = includeDocuments;
75
+ this.excludeDocuments = excludeDocuments;
76
+ }
77
+ }
78
+
79
+ /**
80
+ * Represents the document filter.
81
+ *
82
+ * Used with other classes like the {@link ClassFilter}, {@link DocumentRules} and the {@link DocumentAnonymizationSettings}.
83
+ */
84
+ export class DocumentFilter {
85
+ /**
86
+ * If set, only specified country will pass the filter criteria.
87
+ * Otherwise, issuing country will not betaken into account.
88
+ */
89
+
90
+ /**
91
+ * If set, only specified country will pass the filter criteria.
92
+ * Otherwise, issuing region will not be taken into account.
93
+ */
94
+
95
+ /**
96
+ * If set, only specified type will pass the filter criteria.
97
+ * Otherwise, issuing type will not be taken into account.
98
+ */
99
+
100
+ /**
101
+ *
102
+ * @param country - specifies the {@link Country} that will pass the filter criteria.
103
+ *
104
+ * @param region - specifies the {@link Region} that will pass the filter criteria.
105
+ *
106
+ * @param documentType - specifies the {@link DocumentType} that will pass the filter criteria.
107
+ *
108
+ *
109
+ * All parameters are optional, and do not need to be added.
110
+ * The filter can be set to be more generic (for example, to only accept document from USA):
111
+ * ```
112
+ * DocumentFilter(Country.Usa);
113
+ * ```
114
+ * or, it can be set to be more specific (for example, to specifically accept USA drivers licenses from California):
115
+ * ```
116
+ * DocumentFilter(Country.Usa, Region.California, DocumentType.Dl);
117
+ * ```
118
+ */
119
+ constructor(country, region, documentType) {
120
+ this.country = country;
121
+ this.region = region;
122
+ this.documentType = documentType;
123
+ }
124
+ }
125
+
126
+ /**
127
+ * Represents the custom document rules.
128
+ *
129
+ * This setting allows users to narrow down our internal rules on mandatory fields. All undefined fields will become optional.
130
+ * It is not possible to mark fields as mandatory if they cannot theoretically appear on the document.
131
+ * The more detailed document filter will have priority over the other.
132
+ *
133
+ * Document fields are validated using internal rules that define mandatory fields for the scanned document class.
134
+ */
135
+ export class DocumentRules {
136
+ /**
137
+ * Specified fields will overrule our document class field rules if filter conditions are met.
138
+ *
139
+ * See {@link DocumentFilter} for more information.
140
+ */
141
+
142
+ /**
143
+ * Fields to overrule our class field rules.
144
+ *
145
+ * See {@link DetailedFieldType} for more information.
146
+ */
147
+
148
+ /**
149
+ * Represents the custom document rules.
150
+ *
151
+ * This setting allows users to narrow down our internal rules on mandatory fields. All undefined fields will become optional.
152
+ * It is not possible to mark fields as mandatory if they cannot theoretically appear on the document.
153
+ * The more detailed document filter will have priority over the other.
154
+ *
155
+ * Document fields are validated using internal rules that define mandatory fields for the scanned document class.
156
+ * Defines custom rules for specific document class.
157
+ *
158
+ * When defining {@link DocumentRules}, the {@link DocumentFilter} paramter is optionally set to specify the document to which the rule applies, and a `fields` with
159
+ * the appropriate `alphabetType` should be specified as mandatory for that document.
160
+ * If a `fields` is set to a field that is optional for that document or does not exist on it, all fields on the document become optional.
161
+ * If a `fields` is set to a field with an incorrect alphabetType, all fields on the document become optional.
162
+ * If a `fields` is set to a field that doesn’t exist in the internal rules, that rule is ignored.
163
+ * When adding multiple `fields`, any field that does not match our rules is ignored. Only fields that comply with our rules are set as mandatory.
164
+ * If the documentFilter fields `country`, `region`, or `type` are set to `null`, all supported values for those fields will be considered.
165
+ * For example, if `country = null`, the rule will apply to all supported countries in BlinkID.
166
+ *
167
+ * @param fields - specifies the list of {@link DetailedFieldType} for overruling our class field rules.
168
+ * This parameter is mandatory.
169
+ * @param documentFilter - specifies the {@link DocumentFilter} to specify the document to which the rule applies.
170
+ * This parameter is optional.
171
+ */
172
+ constructor(fields, documentFilter) {
173
+ this.fields = fields;
174
+ this.documentFilter = documentFilter;
175
+ }
176
+ }
177
+
178
+ /**
179
+ * Represents the detailed field type.
180
+ *
181
+ */
182
+ export class DetailedFieldType {
183
+ /**
184
+ * The field type.
185
+ *
186
+ * See {@link FieldType} for more information.
187
+ */
188
+
189
+ /**
190
+ * The alphabet type.
191
+ *
192
+ * See {@link AlphabetType} for more information.
193
+ */
194
+
195
+ /**
196
+ *
197
+ * @param fieldType - specifies the {@link FieldType}.
198
+ * @param alphabetType - specifies the {@link AlphabetType}.
199
+ *
200
+ * Both parameters are mandatory.
201
+ */
202
+ constructor(fieldType, alphabetType) {
203
+ this.fieldType = fieldType;
204
+ this.alphabetType = alphabetType;
205
+ }
206
+ }
207
+
208
+ /**
209
+ * Represents the document anonymization settings.
210
+ *
211
+ */
212
+ export class DocumentAnonymizationSettings {
213
+ /**
214
+ * Document fields that will be anonymized.
215
+ *
216
+ */
217
+
218
+ /**
219
+ * Specified fields will be anonymized if filter conditions are met.
220
+ *
221
+ */
222
+
223
+ /**
224
+ * Document number anonymization settings.
225
+ *
226
+ */
227
+
228
+ /**
229
+ *
230
+ * @param fields - specifies the document fields that will be anonymized. This parameter is mandatory.
231
+ *
232
+ * @param documentFilter - specifies the document filter.
233
+ *
234
+ * If the conditions of the filter are met, fields of those documents will be anonymized.
235
+ * This parameter is mandatory.
236
+ * @param documentNumberAnonymizationSettings - specifies the document number anonymization settings.
237
+ *
238
+ * If this parameter is set, it will anonymize the document number, even if the document number is not set in the `fields` parameter.
239
+ * If the default constructor for {@link DocumentNumberAnonymizationSettings} is used, all of the digits within the document number will be anonymized.
240
+ *
241
+ * This parameter is optional.
242
+ */
243
+ constructor(fields, documentFilter, documentNumberAnonymizationSettings) {
244
+ this.fields = fields;
245
+ this.documentFilter = documentFilter;
246
+ this.documentNumberAnonymizationSettings = documentNumberAnonymizationSettings;
247
+ }
248
+ }
249
+
250
+ /**
251
+ * Represents the document number anonymization settings.
252
+ *
253
+ * Both settings, `prefixDigitsVisible` and `suffixDigitsVisible`, can be modified and set.
254
+ *
255
+ * By default, `prefixDigitsVisible` and `suffixDigitsVisible` are set to 0.
256
+ * This results that no digits within the document number will be visible.
257
+ *
258
+ * If any parameter is `undefined`, the value of the parameter will be set to `0`.
259
+ */
260
+ export class DocumentNumberAnonymizationSettings {
261
+ /**
262
+ * Defines how many digits at the beginning of the document number remain visible after anonymization.
263
+ *
264
+ */
265
+
266
+ /**
267
+ * Defines how many digits at the end of the document number remain visible after anonymization.
268
+ *
269
+ */
270
+
271
+ constructor(prefixDigitsVisible = 0, suffixDigitsVisible = 0) {
272
+ this.prefixDigitsVisible = prefixDigitsVisible;
273
+ this.suffixDigitsVisible = suffixDigitsVisible;
274
+ }
275
+ }
276
+ /**
277
+ * Represents the configuration used to enable/disable recognition of specific
278
+ * document groups.
279
+ *
280
+ * By default all modes are enabled.
281
+ */
282
+ export class RecognitionModeFilter {
283
+ /**
284
+ * Enable scanning of MRZ IDs.
285
+ *
286
+ */
287
+
288
+ /**
289
+ * Enable scanning of visa MRZ.
290
+ *
291
+ */
292
+
293
+ /**
294
+ * Enable scanning of Passport MRZ.
295
+ *
296
+ */
297
+
298
+ /**
299
+ * Enable scanning of Photo ID.
300
+ *
301
+ */
302
+
303
+ /**
304
+ * Enable scanning of barcode IDs.
305
+ *
306
+ */
307
+
308
+ /**
309
+ * Enable full document recognition.
310
+ *
311
+ */
312
+
313
+ constructor() {
314
+ this.enableMrzId = true;
315
+ this.enableMrzVisa = true;
316
+ this.enableMrzPassport = true;
317
+ this.enablePhotoId = true;
318
+ this.enableBarcodeId = true;
319
+ this.enableFullDocumentRecognition = true;
320
+ }
321
+ }
322
+
323
+ /**
324
+ * Represents the document class information.
325
+ *
326
+ */
327
+ export class DocumentClassInfo {
328
+ /**
329
+ * The document country.
330
+ *
331
+ * See {@link Country} for more information.
332
+ */
333
+
334
+ /**
335
+ * The document region.
336
+ *
337
+ * See {@link Region} for more information.
338
+ */
339
+
340
+ /**
341
+ * The type of the scanned document.
342
+ *
343
+ * See {@link DocumentType} for more information.
344
+ */
345
+
346
+ /**
347
+ * Flag that indicates if the document class information is empty
348
+ *
349
+ */
350
+
351
+ /**
352
+ * The name of the country that issued the scanned document.
353
+ *
354
+ */
355
+
356
+ /**
357
+ * The ISO numeric code of the country that issued the scanned document.
358
+ *
359
+ */
360
+
361
+ /**
362
+ * The 2 letter ISO code of the country that issued the scanned document.
363
+ *
364
+ */
365
+
366
+ /**
367
+ * The 3 letter ISO code of the country that issued the scanned document.
368
+ *
369
+ */
370
+
371
+ /**
372
+ *
373
+ * @param nativeDocumentClassInfo
374
+ *
375
+ */
376
+ constructor(nativeDocumentClassInfo) {
377
+ this.country = nativeDocumentClassInfo.country;
378
+ this.region = nativeDocumentClassInfo.region;
379
+ this.documentType = nativeDocumentClassInfo.documentType;
380
+ this.empty = nativeDocumentClassInfo.empty;
381
+ this.countryName = nativeDocumentClassInfo.countryName;
382
+ this.isoNumericCountryCode = nativeDocumentClassInfo.isoNumericCountryCode;
383
+ this.isoAlpha2CountryCode = nativeDocumentClassInfo.isoAlpha2CountryCode;
384
+ this.isoAlpha3CountryCode = nativeDocumentClassInfo.isoAlpha3CountryCode;
385
+ }
386
+ }
387
+
388
+ /**
389
+ * Represents the result of the data match.
390
+ *
391
+ */
392
+ export class DataMatchResult {
393
+ /**
394
+ * The state of the data match on the whole document.
395
+ *
396
+ * See {@link DataMatchState} for more information.
397
+ */
398
+
399
+ /**
400
+ * The data match state of each field.
401
+ *
402
+ * See {@link DataMatchResultField} for more information.
403
+ */
404
+
405
+ /**
406
+ *
407
+ * @param nativeDataMatchResult
408
+ */
409
+ constructor(nativeDataMatchResult) {
410
+ this.overallState = nativeDataMatchResult.overallState != undefined ? nativeDataMatchResult.overallState : undefined;
411
+ this.states = nativeDataMatchResult.states;
412
+ }
413
+ }
414
+
415
+ /**
416
+ * Represents the state of the field in the data match.
417
+ *
418
+ */
419
+ export class DataMatchResultField {
420
+ /**
421
+ * The type of the field.
422
+ *
423
+ * See {@link DataMatchField} for more information.
424
+ */
425
+
426
+ /**
427
+ * The state of the field.
428
+ *
429
+ * See {@link DataMatchState} for more information.
430
+ */
431
+
432
+ /**
433
+ *
434
+ * @param nativeDataMatchResultField
435
+ *
436
+ */
437
+ constructor(nativeDataMatchResultField) {
438
+ this.field = nativeDataMatchResultField.field;
439
+ this.state = nativeDataMatchResultField.state;
440
+ }
441
+ }
442
+
443
+ /**
444
+ * Represents the multi-alphabet string result extracted from the OCR.
445
+ *
446
+ * The result contains the extracted strings, their locations, and the sides of the extracted strings.
447
+ *
448
+ */
449
+ export class StringResult {
450
+ /**
451
+ * All strings separated by new line
452
+ *
453
+ */
454
+
455
+ /**
456
+ * String for field in latin alphabet
457
+ *
458
+ */
459
+
460
+ /**
461
+ * String for field in arabic alphabet
462
+ *
463
+ */
464
+
465
+ /**
466
+ * String for field in cyrillic alphabet
467
+ *
468
+ */
469
+
470
+ /**
471
+ * String for field in greek alphabet
472
+ *
473
+ */
474
+
475
+ /**
476
+ * Document field location.
477
+ *
478
+ * See {@link Location} for more information.
479
+ */
480
+
481
+ /**
482
+ * The document side where the field is located.
483
+ *
484
+ * See {@link Side} for more information.
485
+ */
486
+
487
+ /**
488
+ *
489
+ * @param nativeStringResult
490
+ *
491
+ */
492
+ constructor(nativeStringResult) {
493
+ this.value = nativeStringResult.value;
494
+ this.latin = nativeStringResult.latin;
495
+ this.cyrillic = nativeStringResult.cyrillic;
496
+ this.arabic = nativeStringResult.arabic;
497
+ this.greek = nativeStringResult.greek;
498
+ this.location = nativeStringResult.location != undefined ? new Location(nativeStringResult.location) : undefined;
499
+ this.side = nativeStringResult.side != undefined ? new Side(nativeStringResult.side) : undefined;
500
+ }
501
+ }
502
+
503
+ /**
504
+ * Represents the rectangle location of each document field
505
+ *
506
+ */
507
+ export class Rectangle {
508
+ /**
509
+ * X location
510
+ *
511
+ */
512
+
513
+ /**
514
+ * Y location
515
+ *
516
+ */
517
+
518
+ /**
519
+ * Rectangle width
520
+ *
521
+ */
522
+
523
+ /**
524
+ * Rectangle height.
525
+ *
526
+ */
527
+
528
+ /**
529
+ *
530
+ * @param nativeRectangle
531
+ *
532
+ */
533
+ constructor(nativeRectangle) {
534
+ this.x = nativeRectangle.x;
535
+ this.y = nativeRectangle.y;
536
+ this.width = nativeRectangle.width;
537
+ this.height = nativeRectangle.height;
538
+ }
539
+ }
540
+
541
+ /**
542
+ * Represents the information about the location of an element within a document or image.
543
+ *
544
+ */
545
+ export class Location {
546
+ /**
547
+ * Rectangle location of the result extracted from the OCR in the latin alphabet.
548
+ *
549
+ */
550
+
551
+ /**
552
+ * Rectangle location of the result extracted from the OCR in the arabic alphabet.
553
+ *
554
+ */
555
+
556
+ /**
557
+ * Rectangle location of the result extracted from the OCR in the cyrillic alphabet.
558
+ *
559
+ */
560
+
561
+ /**
562
+ * Rectangle location of the result extracted from the OCR in the greek alphabet.
563
+ *
564
+ */
565
+
566
+ /**
567
+ *
568
+ * @param nativeLocation
569
+ *
570
+ */
571
+ constructor(nativeLocation) {
572
+ this.latin = nativeLocation.latin != undefined ? new Rectangle(nativeLocation.latin) : undefined;
573
+ this.arabic = nativeLocation.arabic != undefined ? new Rectangle(nativeLocation.arabic) : undefined;
574
+ this.cyrillic = nativeLocation.cyrillic != undefined ? new Rectangle(nativeLocation.cyrillic) : undefined;
575
+ this.greek = nativeLocation.greek != undefined ? new Rectangle(nativeLocation.greek) : undefined;
576
+ }
577
+ }
578
+
579
+ /**
580
+ * Side of the document on which the specific result is located.
581
+ *
582
+ */
583
+ export class Side {
584
+ /**
585
+ * Document side of the result extracted from the OCR in the latin alphabet.
586
+ *
587
+ */
588
+
589
+ /**
590
+ * Document side of the result extracted from the OCR in the arabic alphabet.
591
+ *
592
+ */
593
+
594
+ /**
595
+ * Document side of the result extracted from the OCR in the cyrillic alphabet.
596
+ *
597
+ */
598
+
599
+ /**
600
+ * Document side of the result extracted from the OCR in the cyrillic alphabet.
601
+ *
602
+ */
603
+
604
+ /**
605
+ *
606
+ * @param nativeSide
607
+ *
608
+ */
609
+ constructor(nativeSide) {
610
+ this.latin = nativeSide.latin;
611
+ this.arabic = nativeSide.arabic;
612
+ this.cyrillic = nativeSide.cyrillic;
613
+ this.greek = nativeSide.greek;
614
+ }
615
+ }
616
+
617
+ /**
618
+ * Represents the result of the date extraction.
619
+ *
620
+ * Contains the extracted date, along with additional date information.
621
+ */
622
+ export class DateResult {
623
+ /**
624
+ * The extracted date information.
625
+ *
626
+ * See {@link Date} for more information.
627
+ */
628
+
629
+ /**
630
+ * Original string representation of the date which has been extracted.
631
+ *
632
+ * Depending of the information source, it can either be of type {@link StringResult} or `string`.
633
+ */
634
+
635
+ /**
636
+ * Indicates that date does not appear on the document
637
+ * but is filled by our internal domain knowledge.
638
+ */
639
+
640
+ /**
641
+ * Indicates whether date was successfully parsed.
642
+ *
643
+ */
644
+
645
+ constructor(nativeDateResult) {
646
+ this.date = nativeDateResult.date;
647
+ this.originalString = BlinkIdUtilities.handleStringType(nativeDateResult.originalString);
648
+ this.isFilledByDomainKnowledge = nativeDateResult.isFilledByDomainKnowledge;
649
+ this.successfullyParsed = nativeDateResult.successfullyParsed;
650
+ }
651
+ }
652
+
653
+ /**
654
+ * Represents the extracted date.
655
+ *
656
+ */
657
+ export class Date {
658
+ /**
659
+ * Day of the month.
660
+ *
661
+ * The first day of the month has value 1.
662
+ */
663
+
664
+ /**
665
+ * Month of the year.
666
+ *
667
+ * The first month of the year has value 1.
668
+ */
669
+
670
+ /**
671
+ * Full year.
672
+ *
673
+ */
674
+
675
+ /**
676
+ *
677
+ * @param nativeDate
678
+ */
679
+ constructor(nativeDate) {
680
+ this.day = nativeDate.day;
681
+ this.month = nativeDate.month;
682
+ this.year = nativeDate.year;
683
+ }
684
+ }
685
+
686
+ /**
687
+ * Represents detailed extracted information about the driver license.
688
+ *
689
+ */
690
+ export class DriverLicenseDetailedInfo {
691
+ /**
692
+ * The restrictions to driving privileges for the United States driver license owner.
693
+ *
694
+ * Depending of the information source, it can either be of type {@link StringResult} or `String`.
695
+ */
696
+
697
+ /**
698
+ * The additional privileges granted to the US driver license owner.
699
+ *
700
+ * Depending of the information source, it can either be of type {@link StringResult} or `String`.
701
+ */
702
+
703
+ /**
704
+ * The type of vehicle the driver license owner has privilege to drive.
705
+ *
706
+ * Depending of the information source, it can either be of type {@link StringResult} or `String`.
707
+ */
708
+
709
+ /**
710
+ * The driver license conditions.
711
+ *
712
+ * Depending of the information source, it can either be of type {@link StringResult} or `String`.
713
+ */
714
+
715
+ /**
716
+ * The additional information on vehicle class.
717
+ *
718
+ * See {@link VehicleClassInfo} for more information.
719
+ */
720
+
721
+ constructor(nativeDriverLicenseDetailedInfo) {
722
+ this.restrictions = BlinkIdUtilities.handleStringType(nativeDriverLicenseDetailedInfo.restrictions);
723
+ this.endorsements = BlinkIdUtilities.handleStringType(nativeDriverLicenseDetailedInfo.endorsements);
724
+ this.vehicleClass = BlinkIdUtilities.handleStringType(nativeDriverLicenseDetailedInfo.vehicleClass);
725
+ this.vehicleClassesInfo = nativeDriverLicenseDetailedInfo.vehicleClassesInfo != undefined ? new VehicleClassInfo(nativeDriverLicenseDetailedInfo.vehicleClassesInfo) : undefined;
726
+ }
727
+ }
728
+
729
+ /**
730
+ * Represents the information about the vehicle class extraction.
731
+ *
732
+ */
733
+ export class VehicleClassInfo {
734
+ /**
735
+ * The type of driver licence.
736
+ *
737
+ * Depending of the information source, it can either be of type {@link StringResult} or `string`.
738
+ */
739
+
740
+ /**
741
+ * The type of vehicle the driver license owner has privilege to drive.
742
+ *
743
+ * Depending of the information source, it can either be of type {@link StringResult} or `String`.
744
+ */
745
+
746
+ /**
747
+ * The date since licence is effective.
748
+ *
749
+ * See {@link DateResult} for more information.
750
+ */
751
+
752
+ /**
753
+ * The date of expiry of licence.
754
+ *
755
+ * See {@link DateResult} for more information.
756
+ */
757
+
758
+ constructor(nativeVehicleClassInfo) {
759
+ this.licenceType = BlinkIdUtilities.handleStringType(nativeVehicleClassInfo.licenceType);
760
+ this.vehicleClass = BlinkIdUtilities.handleStringType(nativeVehicleClassInfo.vehicleClass);
761
+ this.effectiveDate = nativeVehicleClassInfo.effectiveDate;
762
+ this.expiryDate = nativeVehicleClassInfo.expiryDate;
763
+ }
764
+ }
765
+
766
+ /**
767
+ * Information about the dependent.
768
+ *
769
+ */
770
+ export class DependentInfo {
771
+ /**
772
+ * The date of birth of the dependent.
773
+ *
774
+ */
775
+
776
+ /**
777
+ * The sex or gender of the dependent.
778
+ *
779
+ */
780
+
781
+ /**
782
+ * The document number of the dependent.
783
+ *
784
+ */
785
+
786
+ /**
787
+ * The full name of the dependent.
788
+ *
789
+ */
790
+
791
+ /**
792
+ * Checks if the dependent's information is empty.
793
+ *
794
+ */
795
+
796
+ constructor(nativeDependentInfo) {
797
+ this.dateOfBirth = nativeDependentInfo.dateOfBirth;
798
+ this.sex = nativeDependentInfo.sex;
799
+ this.documentNumber = nativeDependentInfo.documentNumber;
800
+ this.fullName = nativeDependentInfo.fullName;
801
+ this.empty = nativeDependentInfo.empty;
802
+ }
803
+ }
804
+
805
+ /**
806
+ * Represents the result of the image crop transformation with additional details.
807
+ *
808
+ */
809
+ export class DetailedCroppedImageResult {
810
+ /**
811
+ * The cropped image in the Base64 format
812
+ *
813
+ */
814
+
815
+ /**
816
+ * The document side that was cropped.
817
+ *
818
+ */
819
+
820
+ /**
821
+ * The location of the cropped image in the transformed image of the document.
822
+ *
823
+ */
824
+
825
+ /**
826
+ *
827
+ * @param nativeDetailedCroppedImageResult
828
+ *
829
+ */
830
+ constructor(nativeDetailedCroppedImageResult) {
831
+ this.image = nativeDetailedCroppedImageResult.image;
832
+ this.side = nativeDetailedCroppedImageResult.side != undefined ? nativeDetailedCroppedImageResult.side : undefined;
833
+ this.location = nativeDetailedCroppedImageResult.location != undefined ? new Rectangle(nativeDetailedCroppedImageResult.location) : undefined;
834
+ }
835
+ }
836
+
837
+ /**
838
+ * Represents the result of scanning a single side of the document.
839
+ *
840
+ * Contains the data extracted from the Visual Inspection Zone, Machine Readable Zone,
841
+ * barcode, the input image, and the cropped document, face, and signature images.
842
+ */
843
+ export class SingleSideScanningResult {
844
+ /**
845
+ * The data extracted from the Visual Inspection Zone.
846
+ *
847
+ */
848
+
849
+ /**
850
+ * The data extracted from the Machine Readable Zone.
851
+ *
852
+ */
853
+
854
+ /**
855
+ * The data extracted from the barcode.
856
+ *
857
+ */
858
+
859
+ /**
860
+ * The input image in the Base64 format.
861
+ *
862
+ */
863
+
864
+ /**
865
+ * The input image containing parsable barcode in the Base64 format.
866
+ *
867
+ */
868
+
869
+ /**
870
+ * The cropped document image in the Base64 format.
871
+ *
872
+ */
873
+
874
+ /**
875
+ * The cropped face image with additional info.
876
+ *
877
+ */
878
+
879
+ /**
880
+ * The cropped signature image with additional info.
881
+ *
882
+ */
883
+
884
+ /**
885
+ *
886
+ * @param nativeSingleSideScanningResult - specifies the single side scanning result obtained from the native SDK.
887
+ *
888
+ */
889
+ constructor(nativeSingleSideScanningResult) {
890
+ this.viz = nativeSingleSideScanningResult.viz;
891
+ this.mrz = nativeSingleSideScanningResult.mrz;
892
+ ;
893
+ this.barcode = nativeSingleSideScanningResult.barcode;
894
+ this.inputImage = nativeSingleSideScanningResult.inputImage;
895
+ this.barcodeInputImage = nativeSingleSideScanningResult.barcodeInputImage;
896
+ this.documentImage = nativeSingleSideScanningResult.documentImage;
897
+ this.faceImage = nativeSingleSideScanningResult.faceImage;
898
+ this.signatureImage = nativeSingleSideScanningResult.signatureImage;
899
+ }
900
+ }
901
+
902
+ /**
903
+ * Represents the result of the Visual Inspection Zone of a document.
904
+ *
905
+ */
906
+ export class VizResult {
907
+ /**
908
+ * The first name of the document owner.
909
+ *
910
+ */
911
+
912
+ /**
913
+ * The last name of the document owner.
914
+ *
915
+ */
916
+
917
+ /**
918
+ * The full name of the document owner.
919
+ *
920
+ */
921
+
922
+ /**
923
+ * The additional name information of the document owner.
924
+ *
925
+ */
926
+
927
+ /**
928
+ * The localized name of the document owner.
929
+ *
930
+ */
931
+
932
+ /**
933
+ * The fathers name of the document owner.
934
+ *
935
+ */
936
+
937
+ /**
938
+ * The mothers name of the document owner.
939
+ *
940
+ */
941
+
942
+ /**
943
+ * The address of the document owner.
944
+ *
945
+ */
946
+
947
+ /**
948
+ * The additional address information of the document owner.
949
+ *
950
+ */
951
+
952
+ /**
953
+ * The one more additional address information of the document owner.
954
+ *
955
+ */
956
+
957
+ /**
958
+ * The place of birth of the document owner.
959
+ *
960
+ */
961
+
962
+ /**
963
+ * The nationality of the document owner.
964
+ *
965
+ */
966
+
967
+ /**
968
+ * The race of the document owner.
969
+ *
970
+ */
971
+
972
+ /**
973
+ * The religion of the document owner.
974
+ *
975
+ */
976
+
977
+ /**
978
+ * The profession of the document owner.
979
+ *
980
+ */
981
+
982
+ /**
983
+ * The marital status of the document owner.
984
+ *
985
+ */
986
+
987
+ /**
988
+ * The residential status of the document owner.
989
+ *
990
+ */
991
+
992
+ /**
993
+ * The employer of the document owner.
994
+ *
995
+ */
996
+
997
+ /**
998
+ * The sex of the document owner.
999
+ *
1000
+ */
1001
+
1002
+ /**
1003
+ * The sponsor of the document owner.
1004
+ *
1005
+ */
1006
+
1007
+ /**
1008
+ * The blood type of the document owner.
1009
+ *
1010
+ */
1011
+
1012
+ /**
1013
+ * The date of birth of the document owner.
1014
+ *
1015
+ */
1016
+
1017
+ /**
1018
+ * The date of issue of the document.
1019
+ *
1020
+ */
1021
+
1022
+ /**
1023
+ * The date of expiry of the document.
1024
+ *
1025
+ */
1026
+
1027
+ /**
1028
+ * Determines if date of expiry is permanent.
1029
+ *
1030
+ */
1031
+
1032
+ /**
1033
+ * The document number.
1034
+ *
1035
+ */
1036
+
1037
+ /**
1038
+ * The personal identification number.
1039
+ *
1040
+ */
1041
+
1042
+ /**
1043
+ * The additional number of the document.
1044
+ *
1045
+ */
1046
+
1047
+ /**
1048
+ * The one more additional number of the document.
1049
+ *
1050
+ */
1051
+
1052
+ /**
1053
+ * The additional personal identification number.
1054
+ *
1055
+ */
1056
+
1057
+ /**
1058
+ * The issuing authority of the document.
1059
+ *
1060
+ */
1061
+
1062
+ /**
1063
+ * The visa type of the document.
1064
+ *
1065
+ */
1066
+
1067
+ /**
1068
+ * The driver license detailed info.
1069
+ *
1070
+ */
1071
+
1072
+ /**
1073
+ * The transcription of the document subtype.
1074
+ *
1075
+ */
1076
+
1077
+ /**
1078
+ * The remarks on the residence permit.
1079
+ *
1080
+ */
1081
+
1082
+ /**
1083
+ * The residence permit type.
1084
+ */
1085
+
1086
+ /**
1087
+ * The manufacturing year.
1088
+ *
1089
+ */
1090
+
1091
+ /**
1092
+ * The vehicle type.
1093
+ *
1094
+ */
1095
+
1096
+ /**
1097
+ * The eligibility category.
1098
+ *
1099
+ */
1100
+
1101
+ /**
1102
+ * The specific document validity.
1103
+ *
1104
+ */
1105
+
1106
+ /**
1107
+ * The dependents info.
1108
+ *
1109
+ */
1110
+
1111
+ /**
1112
+ * The vehicle owner.
1113
+ *
1114
+ */
1115
+
1116
+ /**
1117
+ *
1118
+ * @param nativeVizResult
1119
+ *
1120
+ */
1121
+ constructor(nativeVizResult) {
1122
+ this.firstName = nativeVizResult.firstName;
1123
+ this.lastName = nativeVizResult.lastName;
1124
+ this.fullName = nativeVizResult.fullName;
1125
+ ;
1126
+ this.additionalNameInformation = nativeVizResult.additionalNameInformation;
1127
+ this.localizedName = nativeVizResult.localizedName;
1128
+ this.fathersName = nativeVizResult.fathersName;
1129
+ this.mothersName = nativeVizResult.mothersName;
1130
+ this.address = nativeVizResult.address;
1131
+ this.additionalAddressInformation = nativeVizResult.additionalAddressInformation;
1132
+ this.additionalOptionalAddressInformation = nativeVizResult.additionalOptionalAddressInformation;
1133
+ this.placeOfBirth = nativeVizResult.placeOfBirth;
1134
+ this.nationality = nativeVizResult.nationality;
1135
+ this.race = nativeVizResult.race;
1136
+ this.religion = nativeVizResult.religion;
1137
+ this.profession = nativeVizResult.profession;
1138
+ this.maritalStatus = nativeVizResult.maritalStatus;
1139
+ this.residentialStatus = nativeVizResult.residentialStatus;
1140
+ this.employer = nativeVizResult.employer;
1141
+ this.sex = nativeVizResult.sex;
1142
+ this.sponsor = nativeVizResult.sponsor;
1143
+ this.bloodType = nativeVizResult.bloodType;
1144
+ this.dateOfBirth = nativeVizResult.dateOfBirth;
1145
+ this.dateOfIssue = nativeVizResult.dateOfIssue;
1146
+ this.dateOfExpiry = nativeVizResult.dateOfExpiry;
1147
+ this.dateOfExpiryPermanent = nativeVizResult.dateOfExpiryPermanent;
1148
+ this.documentNumber = nativeVizResult.documentNumber;
1149
+ this.personalIdNumber = nativeVizResult.personalIdNumber;
1150
+ this.documentAdditionalNumber = nativeVizResult.documentAdditionalNumber;
1151
+ this.documentOptionalAdditionalNumber = nativeVizResult.documentOptionalAdditionalNumber;
1152
+ this.additionalPersonalIdNumber = nativeVizResult.additionalPersonalIdNumber;
1153
+ this.issuingAuthority = nativeVizResult.issuingAuthority;
1154
+ this.visaType = nativeVizResult.visaType;
1155
+ this.driverLicenseDetailedInfo = nativeVizResult.driverLicenseDetailedInfo;
1156
+ this.documentSubtype = nativeVizResult.documentSubtype;
1157
+ this.remarks = nativeVizResult.remarks;
1158
+ this.residencePermitType = nativeVizResult.residencePermitType;
1159
+ this.manufacturingYear = nativeVizResult.manufacturingYear;
1160
+ this.vehicleType = nativeVizResult.vehicleType;
1161
+ this.eligibilityCategory = nativeVizResult.eligibilityCategory;
1162
+ this.specificDocumentValidity = nativeVizResult.specificDocumentValidity;
1163
+ this.dependentsInfo = nativeVizResult.dependentsInfo;
1164
+ this.vehicleOwner = nativeVizResult.vehicleOwner;
1165
+ }
1166
+ }
1167
+
1168
+ /**
1169
+ * Represents the result of the MRZ recognition.
1170
+ *
1171
+ */
1172
+ export class MrzResult {
1173
+ /**
1174
+ * The entire Machine Readable Zone text from ID.
1175
+ *
1176
+ */
1177
+
1178
+ /**
1179
+ * The document code. Document code contains two characters.
1180
+ * For MRTD the first character shall be A, C or I.
1181
+ *
1182
+ * The second character shall be discretion of the issuing State or organization except
1183
+ * that V shall not be used, and `C` shall not be used after `A` except in the crew member certificate.
1184
+ *
1185
+ * On machine-readable passports (MRP) first character shall be `P` to designate an MRP. One additional
1186
+ * letter may be used, at the discretion of the issuing State or organization, to designate a particular
1187
+ * MRP.
1188
+ *
1189
+ * If the second character position is not used for this purpose, it shall be filled by the filter character.
1190
+ */
1191
+
1192
+ /**
1193
+ * Three-letter or two-letter code which indicate the issuing State. Three-letter codes are based
1194
+ * on Aplha-3 codes for entities specified in ISO 3166-1, with extensions for certain States.
1195
+ *
1196
+ * Two-letter codes are based on Aplha-2 codes for entities specified in ISO 3166-1, with extensions for certain States.
1197
+ */
1198
+
1199
+ /**
1200
+ * The document number.
1201
+ *
1202
+ */
1203
+
1204
+ /**
1205
+ * The first optional data. Empty string if not available.
1206
+ *
1207
+ */
1208
+
1209
+ /**
1210
+ * The second optional data. Empty string if not available.
1211
+ *
1212
+ */
1213
+
1214
+ /**
1215
+ * The gender of the document holder.
1216
+ *
1217
+ * Gender is specified by use of the single initial.
1218
+ */
1219
+
1220
+ /**
1221
+ * The nationality of the document holder represented by a three-letter or two-letter code.
1222
+ *
1223
+ * Three-letter codes are based on Alpha-3 codes for entities specified in ISO 3166-1, with extensions for certain States.
1224
+ *
1225
+ * Two-letter codes are based on Aplha-2 codes for entities specified in ISO 3166-1, with extensions for certain States.
1226
+ */
1227
+
1228
+ /**
1229
+ * The primary indentifier.
1230
+ *
1231
+ * If there is more than one component, they are separated with space.
1232
+ */
1233
+
1234
+ /**
1235
+ * The secondary identifier.
1236
+ *
1237
+ * If there is more than one component, they are separated with space.
1238
+ */
1239
+
1240
+ /**
1241
+ * The full issuer name that is expanded from the three-letter or two-letter code which indicate
1242
+ * the issuing State.
1243
+ *
1244
+ */
1245
+
1246
+ /**
1247
+ * The full nationality of the document holder, which is expanded from the three-letter or two-letter
1248
+ * nationality code.
1249
+ */
1250
+
1251
+ /**
1252
+ * Whether the MRZ is verified.
1253
+ *
1254
+ * If the MRZ is verified, it means that all check digits are correct.
1255
+ */
1256
+
1257
+ /**
1258
+ * The date of birth of the document holder.
1259
+ *
1260
+ */
1261
+
1262
+ /**
1263
+ * The date of expiry of the document.
1264
+ *
1265
+ */
1266
+
1267
+ /**
1268
+ * The type of the document.
1269
+ *
1270
+ */
1271
+
1272
+ /**
1273
+ * The sanitized first optional data.
1274
+ *
1275
+ * Result without additional '<' characters if they exist.
1276
+ */
1277
+
1278
+ /**
1279
+ * The sanitized second optional data.
1280
+ *
1281
+ * Result without additional '<' characters if they exist.
1282
+ */
1283
+
1284
+ /**
1285
+ * The sanitized nationality.
1286
+ *
1287
+ * Result without additional '<' characters if they exist.
1288
+ */
1289
+
1290
+ /**
1291
+ * The sanitized issuer.
1292
+ *
1293
+ * Result without additional '<' characters if they exist.
1294
+ */
1295
+
1296
+ /**
1297
+ * The sanitized document code.
1298
+ *
1299
+ * Result without additional '<' characters if they exist.
1300
+ */
1301
+
1302
+ /**
1303
+ * The sanitized document number.
1304
+ *
1305
+ * Result without additional '<' characters if they exist.
1306
+ */
1307
+
1308
+ /**
1309
+ *
1310
+ * @param nativeMrzResult
1311
+ *
1312
+ */
1313
+ constructor(nativeMrzResult) {
1314
+ this.rawMRZString = nativeMrzResult.rawMRZString;
1315
+ this.documentCode = nativeMrzResult.documentCode;
1316
+ this.issuer = nativeMrzResult.issuer;
1317
+ this.documentNumber = nativeMrzResult.documentNumber;
1318
+ this.opt1 = nativeMrzResult.opt1;
1319
+ this.opt2 = nativeMrzResult.opt2;
1320
+ this.gender = nativeMrzResult.gender;
1321
+ this.nationality = nativeMrzResult.nationality;
1322
+ this.primaryID = nativeMrzResult.primaryID;
1323
+ this.secondaryID = nativeMrzResult.secondaryID;
1324
+ this.issuerName = nativeMrzResult.issuerName;
1325
+ this.nationalityName = nativeMrzResult.nationalityName;
1326
+ this.verified = nativeMrzResult.verified;
1327
+ this.dateOfBirth = nativeMrzResult.dateOfBirth;
1328
+ this.dateOfExpiry = nativeMrzResult.dateOfExpiry;
1329
+ this.documentType = nativeMrzResult.documentType;
1330
+ this.sanitizedOpt1 = nativeMrzResult.sanitizedOpt1;
1331
+ this.sanitizedOpt2 = nativeMrzResult.sanitizedOpt2;
1332
+ this.sanitizedNationality = nativeMrzResult.sanitizedNationality;
1333
+ this.sanitizedIssuer = nativeMrzResult.sanitizedIssuer;
1334
+ this.sanitizedDocumentCode = nativeMrzResult.sanitizedDocumentCode;
1335
+ this.sanitizedDocumentNumber = nativeMrzResult.sanitizedDocumentNumber;
1336
+ }
1337
+ }
1338
+
1339
+ /**
1340
+ * Represents the data extracted from the barcode.
1341
+ *
1342
+ */
1343
+ export class BarcodeResult {
1344
+ /**
1345
+ * The raw, unparsed barcode data.
1346
+ *
1347
+ */
1348
+
1349
+ /**
1350
+ * The first name of the document owner.
1351
+ *
1352
+ */
1353
+
1354
+ /**
1355
+ * The middle name of the document owner.
1356
+ *
1357
+ */
1358
+
1359
+ /**
1360
+ * The last name of the document owner.
1361
+ *
1362
+ */
1363
+
1364
+ /**
1365
+ * The full name of the document owner.
1366
+ *
1367
+ */
1368
+
1369
+ /**
1370
+ * The additional name information of the document owner.
1371
+ *
1372
+ */
1373
+
1374
+ /**
1375
+ * The address of the document owner.
1376
+ *
1377
+ */
1378
+
1379
+ /**
1380
+ * The place of birth of the document owner.
1381
+ *
1382
+ */
1383
+
1384
+ /**
1385
+ * The nationality of the document owner.
1386
+ *
1387
+ */
1388
+
1389
+ /**
1390
+ * The race of the document owner.
1391
+ *
1392
+ */
1393
+
1394
+ /**
1395
+ * The religion of the document owner.
1396
+ *
1397
+ */
1398
+
1399
+ /**
1400
+ * The profession of the document owner.
1401
+ *
1402
+ */
1403
+
1404
+ /**
1405
+ * The marital status of the document owner.
1406
+ *
1407
+ */
1408
+
1409
+ /**
1410
+ * The residential status of the document owner.
1411
+ *
1412
+ */
1413
+
1414
+ /**
1415
+ * The employer of the document owner.
1416
+ *
1417
+ */
1418
+
1419
+ /**
1420
+ * The sex of the document owner.
1421
+ *
1422
+ */
1423
+
1424
+ /**
1425
+ * The date of birth of the document owner.
1426
+ *
1427
+ */
1428
+
1429
+ /**
1430
+ * The date of issue of the document.
1431
+ *
1432
+ */
1433
+
1434
+ /**
1435
+ * The date of expiry of the document.
1436
+ *
1437
+ */
1438
+
1439
+ /**
1440
+ * The document number.
1441
+ *
1442
+ */
1443
+
1444
+ /**
1445
+ * The personal identification number.
1446
+ *
1447
+ */
1448
+
1449
+ /**
1450
+ * The additional number of the document.
1451
+ *
1452
+ */
1453
+
1454
+ /**
1455
+ * The issuing authority of the document.
1456
+ *
1457
+ */
1458
+
1459
+ /**
1460
+ * The details about the address of the document owner.
1461
+ *
1462
+ */
1463
+
1464
+ /**
1465
+ * The driver license detailed info.
1466
+ *
1467
+ */
1468
+
1469
+ /**
1470
+ * Document specific extended elements that contain all barcode fields in their original form.
1471
+ *
1472
+ * Currently this is only filled for AAMVACompliant documents.
1473
+ */
1474
+
1475
+ /**
1476
+ *
1477
+ * @param nativeBarcodeResult
1478
+ */
1479
+ constructor(nativeBarcodeResult) {
1480
+ this.barcodeData = nativeBarcodeResult.barcodeData;
1481
+ this.firstName = nativeBarcodeResult.firstName;
1482
+ this.middleName = nativeBarcodeResult.middleName;
1483
+ this.lastName = nativeBarcodeResult.lastName;
1484
+ this.fullName = nativeBarcodeResult.fullName;
1485
+ this.additionalNameInformation = nativeBarcodeResult.additionalNameInformation;
1486
+ this.address = nativeBarcodeResult.address;
1487
+ this.placeOfBirth = nativeBarcodeResult.placeOfBirth;
1488
+ this.nationality = nativeBarcodeResult.nationality;
1489
+ this.race = nativeBarcodeResult.race;
1490
+ this.religion = nativeBarcodeResult.religion;
1491
+ this.profession = nativeBarcodeResult.profession;
1492
+ this.maritalStatus = nativeBarcodeResult.maritalStatus;
1493
+ this.residentialStatus = nativeBarcodeResult.residentialStatus;
1494
+ this.employer = nativeBarcodeResult.employer;
1495
+ this.sex = nativeBarcodeResult.sex;
1496
+ this.dateOfBirth = nativeBarcodeResult.dateOfBirth;
1497
+ this.dateOfIssue = nativeBarcodeResult.dateOfIssue;
1498
+ this.dateOfExpiry = nativeBarcodeResult.dateOfExpiry;
1499
+ this.documentNumber = nativeBarcodeResult.documentNumber;
1500
+ this.personalIdNumber = nativeBarcodeResult.personalIdNumber;
1501
+ this.documentAdditionalNumber = nativeBarcodeResult.documentAdditionalNumber;
1502
+ this.issuingAuthority = nativeBarcodeResult.issuingAuthority;
1503
+ this.addressDetailedInfo = nativeBarcodeResult.addressDetailedInfo;
1504
+ this.driverLicenseDetailedInfo = nativeBarcodeResult.driverLicenseDetailedInfo;
1505
+ this.extendedElements = nativeBarcodeResult.extendedElements;
1506
+ }
1507
+ }
1508
+
1509
+ /**
1510
+ * Represents the raw, unparsed data extracted from a scanned barcode.
1511
+ *
1512
+ */
1513
+ export class BarcodeData {
1514
+ /**
1515
+ * Type of the scanned barcode.
1516
+ *
1517
+ */
1518
+
1519
+ /**
1520
+ * Raw bytes of the barcode content.
1521
+ *
1522
+ */
1523
+
1524
+ /**
1525
+ * String representation of the barcode content.
1526
+ *
1527
+ */
1528
+
1529
+ /**
1530
+ * Whether the barcode data is uncertain, i.e. if scanned barcode was incomplete or has parts of it missing.
1531
+ *
1532
+ */
1533
+
1534
+ /**
1535
+ *
1536
+ * @param nativeBarcodeData - specifies the barcode data obtained from the native SDK.
1537
+ */
1538
+ constructor(nativeBarcodeData) {
1539
+ this.barcodeType = nativeBarcodeData.barcodeType;
1540
+ this.rawData = nativeBarcodeData.rawData;
1541
+ this.stringData = nativeBarcodeData.stringData;
1542
+ this.uncertain = nativeBarcodeData.uncertain;
1543
+ }
1544
+ }
1545
+
1546
+ /**
1547
+ * Detailed information about the address.
1548
+ *
1549
+ */
1550
+ export class AddressDetailedInfo {
1551
+ /**
1552
+ * he address street portion of the document owner.
1553
+ *
1554
+ */
1555
+
1556
+ /**
1557
+ * The address postal code portion of the document owner.
1558
+ *
1559
+ */
1560
+
1561
+ /**
1562
+ * The address city portion of the document owner.
1563
+ *
1564
+ */
1565
+
1566
+ /**
1567
+ * The address jurisdiction code portion of the document owner.
1568
+ *
1569
+ */
1570
+
1571
+ /**
1572
+ *
1573
+ * @param nativeAddressDetailedInfo - specificies the address detailed info obtained from the native SDK.
1574
+ *
1575
+ */
1576
+ constructor(nativeAddressDetailedInfo) {
1577
+ this.street = nativeAddressDetailedInfo.street;
1578
+ this.postalCode = nativeAddressDetailedInfo.postalCode;
1579
+ this.city = nativeAddressDetailedInfo.city;
1580
+ this.jurisdiction = nativeAddressDetailedInfo.jurisdiction;
1581
+ }
1582
+ }
1583
+ /**
1584
+ * Represents the fields present in the barcode.
1585
+ * Currently this is only used for AAMVACompliant documents.
1586
+ */
1587
+ export class BarcodeExtendedElements {
1588
+ /**
1589
+ * Mandatory on all AAMVA and Magnetic barcodes.
1590
+ * On compact barcodes, use kFullAddress.
1591
+ *
1592
+ * City portion of the cardholder address.
1593
+ */
1594
+
1595
+ /**
1596
+ * Mandatory on all AAMVA and Magnetic barcodes.
1597
+ * On compact barcodes, use kFullAddress.
1598
+ *
1599
+ * State portion of the cardholder address.
1600
+ */
1601
+
1602
+ /**
1603
+ * Mandatory on all AAMVA and Magnetic barcodes.
1604
+ * On compact barcodes, use kFullAddress.
1605
+ *
1606
+ * Postal code portion of the cardholder address in the U.S. and Canada.
1607
+ * If the trailing portion of the postal code in the U.S. is not known, zeros can be used
1608
+ * to fill the trailing set of numbers up to nine (9) digits.
1609
+ */
1610
+
1611
+ /**
1612
+ * Mandatory on all AAMVA and Magnetic barcodes.
1613
+ * On compact barcodes, use kFullAddress.
1614
+ *
1615
+ * Street portion of the cardholder address.
1616
+ * The place where the registered driver of a vehicle (individual or corporation)
1617
+ * may be contacted such as a house number, street address, etc.
1618
+ */
1619
+
1620
+ /**
1621
+ * Optional on all AAMVA barcodes.
1622
+ * On Compact barcodes, use kFullAddress.
1623
+ *
1624
+ * Second line of street portion of the cardholder address.
1625
+ */
1626
+
1627
+ /**
1628
+ * Optional on AAMVA 01. (MMDDCCYY format)
1629
+ *
1630
+ * ALTERNATIVE DATES(S) given as date of birth.
1631
+ */
1632
+
1633
+ /**
1634
+ * Optional on all AAMVA and Compact barcodes.
1635
+ * Other family name by which the cardholder is known.
1636
+ */
1637
+
1638
+ /**
1639
+ * Optional on all AAMVA and Compact barcodes.
1640
+ *
1641
+ * Other name by which the cardholder is known. ALTERNATIVE NAME(S) of the individual
1642
+ * holding the Driver License or ID.
1643
+ *
1644
+ * The Name field contains up to four portions, separated with the "," delimiter:
1645
+ * AKA Last Name (required)
1646
+ * , (required)
1647
+ * AKA First Name (required)
1648
+ * , (required if other name portions follow, otherwise optional)
1649
+ * AKA Middle Name(s) (optional)
1650
+ * , (required if other name portions follow, otherwise optional)
1651
+ * AKA Suffix (optional)
1652
+ * , (optional)
1653
+ *
1654
+ * If the individual has more than one AKA middle name they are separated with space.
1655
+ */
1656
+
1657
+ /**
1658
+ * Optional on all AAMVA and Compact barcodes.
1659
+ *
1660
+ * Other given name by which the cardholder is known
1661
+ */
1662
+
1663
+ /**
1664
+ * Optional on AAMVA 01 barcodes.
1665
+ *
1666
+ * ALTERNATIVE MIDDLE NAME(s) or INITIALS of the individual holding the Driver License or ID.
1667
+ * Hyphenated names acceptable, spaces between names acceptable, but no other
1668
+ * use of special symbols.
1669
+ */
1670
+
1671
+ /**
1672
+ * Optional on AAMVA 01 barcodes.
1673
+ *
1674
+ * ALTERNATIVE PREFIX to Driver Name. Freeform as defined by issuing jurisdiction.
1675
+ */
1676
+
1677
+ /**
1678
+ * Optional on AAMVA version 01.
1679
+ *
1680
+ * Driver "AKA" Social Security Number. FORMAT SAME AS DRIVER SOC SEC NUM. ALTERNATIVE NUMBERS(S) used as SS NUM.
1681
+ */
1682
+
1683
+ /**
1684
+ * Optional on all AAMVA and Compact barcodes.
1685
+ *
1686
+ * Other suffix by which the cardholder is known.
1687
+ * The Suffix Code Portion, if submitted, can contain only the Suffix Codes
1688
+ * shown in the following table (e.g., Andrew Johnson, III = JOHNSON@ANDREW@@3RD):
1689
+ *
1690
+ * Suffix Meaning or Synonym
1691
+ * JR Junior
1692
+ * SR Senior or Esquire 1ST First
1693
+ * 2ND Second
1694
+ * 3RD Third
1695
+ * 4TH Fourth
1696
+ * 5TH Fifth
1697
+ * 6TH Sixth
1698
+ * 7TH Seventh
1699
+ * 8TH Eighth
1700
+ * 9TH Ninth
1701
+ */
1702
+
1703
+ /**
1704
+ * Optional on AAMVA 02, 03, 04, 05, 06, 07, 08 and Compact barcodes.
1705
+ *
1706
+ * A string of letters and/or numbers that identifies when, where, and by whom a driver's
1707
+ * license/ID card was made. If audit information is not used on the card or the MRT, it
1708
+ * must be included in the driver record.
1709
+ */
1710
+
1711
+ /**
1712
+ * Optional on AAMVA 04, 05, 06, 07, 08 and Compact barcodes.
1713
+ *
1714
+ * DHS required field that indicates date of the most recent version change or
1715
+ * modification to the visible format of the DL/ID. (MMDDCCYY format)
1716
+ */
1717
+
1718
+ /**
1719
+ * Optional on AAMVA 04, 05, 06, 07, 08 and Compact barcodes.
1720
+ *
1721
+ * DHS required field that indicates compliance: "M" = materially compliant,
1722
+ * "F" = fully compliant, and, "N" = non-compliant.
1723
+ */
1724
+
1725
+ /**
1726
+ * Mandatory on AAMVA 02, 03, 04, 05, 06, 07, 08 and Compact barcodes.
1727
+ *
1728
+ * Country in which DL/ID is issued. U.S. = USA, Canada = CAN.
1729
+ */
1730
+
1731
+ /**
1732
+ * Mandatory on all AAMVA, Magnetic and Compact barcodes.
1733
+ *
1734
+ * Family name of the cardholder. (Family name is sometimes also called "last name" or "surname.")
1735
+ * Collect full name for record, print as many characters as possible on portrait side of DL/ID.
1736
+ */
1737
+
1738
+ /**
1739
+ * Mandatory on all AAMVA and Compact barcodes.
1740
+ *
1741
+ * The number assigned or calculated by the issuing authority.
1742
+ */
1743
+
1744
+ /**
1745
+ * Mandatory on all AAMVA, Magnetic and Compact barcodes.
1746
+ *
1747
+ * First name of the cardholder.
1748
+ */
1749
+
1750
+ /**
1751
+ * Mandatory on all AAMVA, Magnetic and Compact barcodes.
1752
+ *
1753
+ * Full name of the individual holding the Driver's License or ID.
1754
+ *
1755
+ * The Name field contains up to four portions, separated with the "," delimiter:
1756
+ * Last Name (required)
1757
+ * , (required)
1758
+ * First Name (required)
1759
+ * , (required if other name portions follow, otherwise optional)
1760
+ * Middle Name(s) (optional)
1761
+ * , (required if other name portions follow, otherwise optional)
1762
+ * Suffix (optional)
1763
+ * , (optional)
1764
+ *
1765
+ * If the individual has more than one middle name they are separated with space.
1766
+ */
1767
+
1768
+ /**
1769
+ * Mandatory on AAMVA 04, 05, 06, 07, 08 barcodes.
1770
+ * Optional on AAMVA 01, 02, 03, Magnetic and Compcat barcodes.
1771
+ *
1772
+ * Middle name(s) of the cardholder. In the case of multiple middle names they
1773
+ * shall be separated by space " ".
1774
+ */
1775
+
1776
+ /**
1777
+ * Optional on compact barcodes.
1778
+ *
1779
+ * Document discriminator.
1780
+ */
1781
+
1782
+ /**
1783
+ * Mandatory on all AAMVA, Magnetic and Compact barcodes.
1784
+ *
1785
+ * Date on which the cardholder was born. (MMDDCCYY format)
1786
+ */
1787
+
1788
+ /**
1789
+ * Mandatory on AAMVA 02, 03, 04, 05, 06, 07, 08 and Magnetic barcodes.
1790
+ * Optional on Compact barcodes.
1791
+ *
1792
+ * Number must uniquely identify a particular document issued to that customer
1793
+ * from others that may have been issued in the past. This number may serve
1794
+ * multiple purposes of document discrimination, audit info, and/or inventory control.
1795
+ */
1796
+
1797
+ /**
1798
+ * Mandatory on all AAMVA, Magnetic and Compact barcodes.
1799
+ *
1800
+ * Date on which the document expires. (MMDDCCYY format)
1801
+ * If the document is non expiring then "Non expiring" is written in this field.
1802
+ */
1803
+
1804
+ /**
1805
+ * Optional on Magnetic barcodes.
1806
+ *
1807
+ * Month on which the driving and identification privileges granted by the document are no longer valid.
1808
+ */
1809
+
1810
+ /**
1811
+ * Mandatory on all AAMVA and Compact barcodes.
1812
+ *
1813
+ * Date on which the document was issued. (MMDDCCYY format)
1814
+ */
1815
+
1816
+ /**
1817
+ * Optional on Magnetic barcodes.
1818
+ *
1819
+ * Field that indicates that the driving and identification privileges granted by the
1820
+ * document are nonexpiring = "1".
1821
+ */
1822
+
1823
+ /**
1824
+ * Mandatory on all driver's licenses.
1825
+ * All barcodes which are using 3-track magnetic stripe encoding used in the interest of smoothing a transition from legacy documents
1826
+ * shall be designated as "Magnetic". All barcodes which are using compact encoding
1827
+ * compliant with ISO/IEC 18013-2 shall be designated as "Compact". All barcodes (majority)
1828
+ * compliant with Mandatory PDF417 Bar Code of the American Association of Motor Vehicle
1829
+ * Administrators (AAMVA) Card Design Standard from AAMVA DL/ID-2000 standard to DL/ID-2013
1830
+ * shall be designated as "AAMVA".
1831
+ */
1832
+
1833
+ /**
1834
+ * Mandatory on AAMVA 02, 03, 04, 05, 06, 07, 08 barcodes.
1835
+ * Optional on AAMVA 01, Magnetic and Compact barcodes.
1836
+ *
1837
+ * Color of cardholder's eyes. (ANSI D-20 codes)
1838
+ * Code Description
1839
+ * BLK Black
1840
+ * BLU Blue
1841
+ * BRO Brown
1842
+ * GRY Gray
1843
+ * GRN Green
1844
+ * HAZ Hazel
1845
+ * MAR Maroon
1846
+ * PNK Pink
1847
+ * DIC Dichromatic
1848
+ * UNK Unknown
1849
+ */
1850
+
1851
+ /**
1852
+ * Mandatory on AAMVA 04, 05, 06, 07, 08 barcodes.
1853
+ * Optional on Compact barcodes.
1854
+ * A code that indicates whether a field has been truncated (T), has not been
1855
+ * truncated (N), or – unknown whether truncated (U).
1856
+ */
1857
+
1858
+ /**
1859
+ * Mandatory on AAMVA versions 02 and 03.
1860
+ *
1861
+ * Federally established codes for vehicle categories, endorsements, and restrictions
1862
+ * that are generally applicable to commercial motor vehicles. If the vehicle is not a
1863
+ * commercial vehicle, "NONE" is to be entered.
1864
+ */
1865
+
1866
+ /**
1867
+ * Mandatory on AAMVA 04, 05, 06, 07, 08 barcodes.
1868
+ * Optional on Compact barcodes.
1869
+ *
1870
+ * A code that indicates whether a field has been truncated (T), has not been
1871
+ * truncated (N), or – unknown whether truncated (U).
1872
+ */
1873
+
1874
+ /**
1875
+ * Mandatory on all AAMVA and Magnetic barcodes.
1876
+ * Optional on Compact barcodes.
1877
+ *
1878
+ * Full address of the individual holding the Driver's License or ID.
1879
+ *
1880
+ * The full address field contains up to four portions, separated with the "," delimiter:
1881
+ * Street Address (required)
1882
+ * , (required if other address portions follow, otherwise optional)
1883
+ * City (optional)
1884
+ * , (required if other address portions follow, otherwise optional)
1885
+ * Jurisdiction Code (optional)
1886
+ * , (required if other address portions follow, otherwise optional)
1887
+ * ZIP - Postal Code (optional)
1888
+ */
1889
+
1890
+ /**
1891
+ * Optional on all AAMVA, Magnetic and Compact barcodes.
1892
+ *
1893
+ * Bald, black, blonde, brown, gray, red/auburn, sandy, white, unknown. If the issuing
1894
+ * jurisdiction wishes to abbreviate colors, the three-character codes provided in ANSI D20 must be
1895
+ * used.
1896
+ *
1897
+ * Code Description
1898
+ * BAL Bald
1899
+ * BLK Black
1900
+ * BLN Blond
1901
+ * BRO Brown
1902
+ * GRY Grey
1903
+ * RED Red/Auburn
1904
+ * SDY Sandy
1905
+ * WHI White
1906
+ * UNK Unknown
1907
+ */
1908
+
1909
+ /**
1910
+ * Mandatory on AAMVA 02, 03, 04, 05, 06, 07, 08 and Compact barcodes.
1911
+ * Optional on AAMVA 01 and Magnetic barcodes.
1912
+ *
1913
+ * Height of cardholder, either in Inches or in Centimeters.
1914
+ *
1915
+ * Inches (in): number of inches followed by " in"
1916
+ * example: 6'1'' = "73 in"
1917
+ *
1918
+ * Centimeters (cm): number of centimeters followed by " cm"
1919
+ * example: 181 centimeters = "181 cm"
1920
+ */
1921
+
1922
+ /**
1923
+ * Mandatory on AAMVA 02, 03, 04, 05, 06, 07, 08 and Compact barcodes.
1924
+ * Optional on AAMVA 01 and Magnetic barcodes.
1925
+ *
1926
+ * Height of cardholder in Inches.
1927
+ * Example: 5'9'' = "69".
1928
+ *
1929
+ */
1930
+
1931
+ /**
1932
+ * Mandatory on AAMVA 02, 03, 04, 05, 06, 07, 08 Compact barcodes.
1933
+ * Optional on AAMVA 01 and Magnetic barcodes.
1934
+ *
1935
+ * Height of cardholder in Centimeters.
1936
+ * Example: 180 Centimeters = "180".
1937
+ */
1938
+
1939
+ /**
1940
+ * Mandatory on all AAMVA, Magnetic and Compact barcodes.
1941
+ *
1942
+ * This number uniquely identifies the issuing jurisdiction and can
1943
+ * be obtained by contacting the ISO Issuing Authority (AAMVA)
1944
+ */
1945
+
1946
+ /**
1947
+ * Optional on all AAMVA barcodes.
1948
+ * Mandatory on Compact barcodes.
1949
+ *
1950
+ * Jurisdictions may define a subfile to contain jurisdiction-specific information.
1951
+ * These subfiles are designated with the first character of “Z” and the second
1952
+ * character is the first letter of the jurisdiction's name. For example, "ZC" would
1953
+ * be the designator for a California or Colorado jurisdiction-defined subfile, "ZQ"
1954
+ * would be the designator for a Quebec jurisdiction-defined subfile. In the case of
1955
+ * a jurisdiction-defined subfile that has a first letter that could be more than
1956
+ * one jurisdiction (e.g. California, Colorado, Connecticut) then other data, like
1957
+ * the IIN or address, must be examined to determine the jurisdiction.
1958
+ *
1959
+ */
1960
+
1961
+ /**
1962
+ * Optional on all AAMVA and Magnetic barcodes.
1963
+ *
1964
+ * Name of issuing jurisdiction, for example: Alabama, Alaska ...
1965
+ */
1966
+
1967
+ /**
1968
+ * Mandatory on all AAMVA barcodes.
1969
+ * Optional on Magnetic barcodes.
1970
+ *
1971
+ * Jurisdiction-specific codes that represent additional privileges
1972
+ * granted to the cardholder beyond the vehicle class (such as transportation of
1973
+ * passengers, hazardous materials, operation of motorcycles, etc.).
1974
+ */
1975
+
1976
+ /**
1977
+ * Optional on AAMVA 02, 03, 04, 05, 06, 07, 08 and Compact barcodes.
1978
+ *
1979
+ * Text that explains the jurisdiction-specific code(s) that indicates additional
1980
+ * driving privileges granted to the cardholder beyond the vehicle class.
1981
+ */
1982
+
1983
+ /**
1984
+ * Optional on AAMVA 02, 03, 04, 05, 06, 07, 08 and Compact barcodes.
1985
+ *
1986
+ * Text describing the jurisdiction-specific restriction code(s) that curtail driving privileges.
1987
+ */
1988
+
1989
+ /**
1990
+ * Mandatory on all AAMVA barcodes.
1991
+ * Optional on Magnetic barcodes.
1992
+ *
1993
+ * Jurisdiction-specific codes that represent additional privileges
1994
+ * granted to the cardholder beyond the vehicle class (such as transportation of
1995
+ * passengers, hazardous materials, operation of motorcycles, etc.).
1996
+ */
1997
+
1998
+ /**
1999
+ * Mandatory on all AAMVA and Magnetic barcodes.
2000
+ *
2001
+ * Jurisdiction-specific vehicle class / group code, designating the type
2002
+ * of vehicle the cardholder has privilege to drive.
2003
+ */
2004
+
2005
+ /**
2006
+ * Optional on AAMVA 02, 03, 04, 05, 06, 07, 08 and Compact barcodes.
2007
+ *
2008
+ * Text that explains the jurisdiction-specific code(s) for classifications
2009
+ * of vehicles cardholder is authorized to drive.
2010
+ */
2011
+
2012
+ /**
2013
+ * Mandatory on all AAMVA and Compact barcodes.
2014
+ * Optional on Magnetic barcodes.
2015
+ *
2016
+ * Jurisdiction Version Number: This is a decimal value between 0 and 99 that
2017
+ * specifies the jurisdiction version level of the PDF417 barcode format.
2018
+ * Notwithstanding iterations of this standard, jurisdictions implement incremental
2019
+ * changes to their barcodes, including new jurisdiction-specific data, compression
2020
+ * algorithms for digitized images, digital signatures, or new truncation
2021
+ * conventions used for names and addresses. Each change to the barcode format
2022
+ * within each AAMVA version (above) must be noted, beginning with Jurisdiction
2023
+ * Version 00.
2024
+ */
2025
+
2026
+ /**
2027
+ * Optional on AAMVA 04, 05, 06, 07, 08 and Compact barcodes.
2028
+ *
2029
+ * DHS required field that indicates that the cardholder has temporary lawful status = "1".
2030
+ */
2031
+
2032
+ /**
2033
+ * Optional on AAMVA version 01.
2034
+ *
2035
+ * Medical Indicator/Codes.
2036
+ * STATE SPECIFIC. Freeform, Standard "TBD"
2037
+ */
2038
+
2039
+ /**
2040
+ * Mandatory on AAMVA 04, 05, 06, 07, 08 barcodes.
2041
+ *
2042
+ * A code that indicates whether a field has been truncated (T), has not been
2043
+ * truncated (N), or – unknown whether truncated (U).
2044
+ */
2045
+
2046
+ /**
2047
+ * Optional on AAMVA 01 barcodes.
2048
+ *
2049
+ * PREFIX to Driver Name. Freeform as defined by issuing jurisdiction.
2050
+ */
2051
+
2052
+ /**
2053
+ * Mandatory on AAMVA 02 barcodes.
2054
+ * Optional on AAMVA 01, 03, 04, 05, 06, 07, 08, Magnetic and Compact barcodes.
2055
+ *
2056
+ * Name Suffix (If jurisdiction participates in systems requiring name suffix (PDPS, CDLIS, etc.),
2057
+ * the suffix must be collected and displayed on the DL/ID and in the MRT).
2058
+ * - JR (Junior)
2059
+ * - SR (Senior)
2060
+ * - 1ST or I (First)
2061
+ * - 2ND or II (Second)
2062
+ * - 3RD or III (Third)
2063
+ * - 4TH or IV (Fourth)
2064
+ * - 5TH or V (Fifth)
2065
+ * - 6TH or VI (Sixth)
2066
+ * - 7TH or VII (Seventh)
2067
+ * - 8TH or VIII (Eighth)
2068
+ * - 9TH or IX (Ninth)
2069
+ */
2070
+
2071
+ /**
2072
+ * Optional on AAMVA version 01.
2073
+ *
2074
+ * Non-Resident Indicator. "Y". Used by some jurisdictions to indicate holder of the document is a non-resident.
2075
+ */
2076
+
2077
+ /**
2078
+ * Optional on AAMVA version 01.
2079
+ *
2080
+ * Number of duplicate cards issued for a license or ID if any.
2081
+ */
2082
+
2083
+ /**
2084
+ * Optional on AAMVA 01, 06, 07, 08 barcodes.
2085
+ *
2086
+ * Field that indicates that the cardholder is an organ donor = "1".
2087
+ */
2088
+
2089
+ /**
2090
+ * Optional on AAMVA version 01 barcodes.
2091
+ *
2092
+ * Driver Permit Expiration Date. MMDDCCYY format. Date permit expires.
2093
+ */
2094
+
2095
+ /**
2096
+ * Optional on AAMVA version 01 barcodes..
2097
+ *
2098
+ * Type of permit.
2099
+ */
2100
+
2101
+ /**
2102
+ * Optional on AAMVA version 01 barcodes..
2103
+ *
2104
+ * Driver Permit Issue Date. MMDDCCYY format. Date permit was issued.
2105
+ */
2106
+
2107
+ /**
2108
+ * Optional on AAMVA 02, 03, 04, 05, 06, 07, 08 and Compact barcodes.
2109
+ *
2110
+ * Country and municipality and/or state/province.
2111
+ */
2112
+
2113
+ /**
2114
+ * Optional on AAMVA 02, 03, 04, 05, 06, 07, 08 and Compact barcodes.
2115
+ *
2116
+ * Codes for race or ethnicity of the cardholder, as defined in ANSI D20.
2117
+ *
2118
+ * Race:
2119
+ * Code Description
2120
+ * AI Alaskan or American Indian (Having Origins in Any of The Original Peoples of
2121
+ * North America, and Maintaining Cultural Identification Through Tribal
2122
+ * Affiliation of Community Recognition)
2123
+ * AP Asian or Pacific Islander (Having Origins in Any of the Original Peoples of
2124
+ * the Far East, Southeast Asia, or Pacific Islands. This Includes China, India,
2125
+ * Japan, Korea, the Philippines Islands, and Samoa)
2126
+ * BK Black (Having Origins in Any of the Black Racial Groups of Africa)
2127
+ * W White (Having Origins in Any of The Original Peoples of Europe, North Africa,
2128
+ * or the Middle East)
2129
+ *
2130
+ * Ethnicity:
2131
+ * Code Description
2132
+ * H Hispanic Origin (A Person of Mexican, Puerto Rican, Cuban, Central or South
2133
+ * American or Other Spanish Culture or Origin, Regardless of Race)
2134
+ * O Not of Hispanic Origin (Any Person Other Than Hispanic)
2135
+ * U Unknown
2136
+ */
2137
+
2138
+ /**
2139
+ * Optional on AAMVA version 01.
2140
+ *
2141
+ * Driver Residence City
2142
+ */
2143
+
2144
+ /**
2145
+ * Optional on AAMVA 01 barcodes.
2146
+ *
2147
+ * Full residence address of the individual holding the Driver's License or ID.
2148
+ * The full address field contains up to four portions, separated with the "," delimiter:
2149
+ * Residence Street Address (required)
2150
+ * , (required if other address portions follow, otherwise optional)
2151
+ * Residence City (optional)
2152
+ * , (required if other address portions follow, otherwise optional)
2153
+ * Residence Jurisdiction Code (optional)
2154
+ * , (required if other address portions follow, otherwise optional)
2155
+ * Residence ZIP - Residence Postal Code (optional)
2156
+ */
2157
+
2158
+ /**
2159
+ * Optional on AAMVA version 01.
2160
+ *
2161
+ * Driver Residence Jurisdiction Code.
2162
+ */
2163
+
2164
+ /**
2165
+ * Optional on AAMVA 01 barcodes.
2166
+ *
2167
+ * Driver Residence Postal Code.
2168
+ */
2169
+
2170
+ /**
2171
+ * Optional on AAMVA version 01.
2172
+ *
2173
+ * Driver Residence Street Address 1.
2174
+ */
2175
+
2176
+ /**
2177
+ * Optional on AAMVA version 01.
2178
+ *
2179
+ * Driver Residence Street Address 2.
2180
+ */
2181
+
2182
+ /**
2183
+ * Optional on Magnetic barcodes.
2184
+ *
2185
+ * Security version being used.
2186
+ */
2187
+
2188
+ /**
2189
+ * Mandatory on all AAMVA, Magnetic barcodes.
2190
+ * Optional on Compact barcodes.
2191
+ *
2192
+ * Gender of the cardholder. 1 = male, 2 = female.
2193
+ */
2194
+
2195
+ /**
2196
+ * Optional on AAMVA version 01.
2197
+ *
2198
+ * The number assigned to the individual by the Social Security Administration.
2199
+ */
2200
+
2201
+ /**
2202
+ * Optional on all AAMVA barcodes.
2203
+ *
2204
+ * Standard endorsement code(s) for cardholder. See codes in D20. This data element is a
2205
+ * placeholder for future efforts to standardize endorsement codes.
2206
+ *
2207
+ * Code Description
2208
+ * H Hazardous Material - This endorsement is required for the operation of any vehicle
2209
+ * transporting hazardous materials requiring placarding, as defined by U.S.
2210
+ * Department of Transportation regulations.
2211
+ * L Motorcycles – Including Mopeds/Motorized Bicycles.
2212
+ *
2213
+ * N Tank - This endorsement is required for the operation of any vehicle transporting,
2214
+ * as its primary cargo, any liquid or gaseous material within a tank attached to the vehicle.
2215
+ *
2216
+ * O Other Jurisdiction Specific Endorsement(s) - This code indicates one or more
2217
+ * additional jurisdiction assigned endorsements.
2218
+ *
2219
+ * P Passenger - This endorsement is required for the operation of any vehicle used for
2220
+ * transportation of sixteen or more occupants, including the driver.
2221
+ *
2222
+ * S School Bus - This endorsement is required for the operation of a school bus. School bus means a
2223
+ * CMV used to transport pre-primary, primary, or secondary school students from home to school,
2224
+ * from school to home, or to and from school sponsored events. School bus does not include a
2225
+ * bus used as common carrier (49 CRF 383.5).
2226
+ *
2227
+ * T Doubles/Triples - This endorsement is required for the operation of any vehicle that would be
2228
+ * referred to as a double or triple.
2229
+ *
2230
+ * X Combined Tank/HAZ-MAT - This endorsement may be issued to any driver who qualifies for
2231
+ * both the N and H endorsements.
2232
+ */
2233
+
2234
+ /**
2235
+ * Optional on all AAMVA barcodes.
2236
+ *
2237
+ * Standard restriction code(s) for cardholder. See codes in D20. This data element is a placeholder
2238
+ * for future efforts to standardize restriction codes.
2239
+ *
2240
+ * Code Description
2241
+ * B Corrective Lenses
2242
+ * C Mechanical Devices (Special Brakes, Hand Controls, or Other Adaptive Devices)
2243
+ * D Prosthetic Aid
2244
+ * E Automatic Transmission
2245
+ * F Outside Mirror
2246
+ * G Limit to Daylight Only
2247
+ * H Limit to Employment
2248
+ * I Limited Other
2249
+ * J Other
2250
+ * K CDL Intrastate Only
2251
+ * L Vehicles without air brakes
2252
+ * M Except Class A bus
2253
+ * N Except Class A and Class B bus
2254
+ * O Except Tractor-Trailer
2255
+ * V Medical Variance Documentation Required
2256
+ * W Farm Waiver
2257
+ */
2258
+
2259
+ /**
2260
+ * Optional on all AAMVA barcodes.
2261
+ * Mandatory on Compact barcodes.
2262
+ *
2263
+ * Standard vehicle classification code(s) for cardholder. This data element is a
2264
+ * placeholder for future efforts to standardize vehicle classifications.
2265
+ */
2266
+
2267
+ /**
2268
+ * Mandatory on all driver's licenses.
2269
+ *
2270
+ * AAMVA Version Number: This is a decimal value between 0 and 99 that
2271
+ * specifies the version level of the PDF417 bar code format. Version "0" and "00"
2272
+ * is reserved for bar codes printed to the specification of the American Association
2273
+ * of Motor Vehicle Administrators (AAMVA) prior to the adoption of the AAMVA DL/ID-2000
2274
+ * standard.
2275
+ *
2276
+ * - All barcodes compliant with AAMVA DL/ID-2000 standard shall be designated Version "01."
2277
+ * - All barcodes compliant with AAMVA Card Design Specification version 1.0, dated 09-2003
2278
+ * shall be designated Version "02."
2279
+ * - All barcodes compliant with AAMVA Card Design Specification version 2.0, dated 03-2005
2280
+ * shall be designated Version "03."
2281
+ * - All barcodes compliant with AAMVA Card Design Standard version 1.0, dated 07-2009
2282
+ * shall be designated Version "04."
2283
+ * - All barcodes compliant with AAMVA Card Design Standard version 1.0, dated 07-2010
2284
+ * shall be designated Version "05."
2285
+ * - All barcodes compliant with AAMVA Card Design Standard version 1.0, dated 07-2011
2286
+ * shall be designated Version "06".
2287
+ * - All barcodes compliant with AAMVA Card Design Standard version 1.0, dated 06-2012
2288
+ * shall be designated Version "07".
2289
+ * - All barcodes compliant with this current AAMVA standard shall be designated "08".
2290
+ *
2291
+ * Should a need arise requiring major revision to the format, this field provides the
2292
+ * means to accommodate additional revision.
2293
+ *
2294
+ * If the document type is not "AAMVA", this field defines the version number of the
2295
+ * given document type's standard.
2296
+ */
2297
+
2298
+ /**
2299
+ * Optional on AAMVA 05, 06, 07, 08 barcodes.
2300
+ * Date on which the cardholder turns 18 years old. (MMDDCCYY format)
2301
+ */
2302
+
2303
+ /**
2304
+ * Optional on AAMVA 05, 06, 07, 08 barcodes.
2305
+ *
2306
+ * Date on which the cardholder turns 19 years old. (MMDDCCYY format)
2307
+ */
2308
+
2309
+ /**
2310
+ * Optional on AAMVA 05, 06, 07, 08 barcodes.
2311
+ *
2312
+ * Date on which the cardholder turns 21 years old. (MMDDCCYY format)
2313
+ */
2314
+
2315
+ /**
2316
+ * Optional on AAMVA version 01.
2317
+ *
2318
+ * A number or alphanumeric string used by some jurisdictions to identify a "customer" across multiple data bases.
2319
+ */
2320
+
2321
+ /**
2322
+ * Optional on AAMVA 07, 08 barcodes.
2323
+ *
2324
+ * Field that indicates that the cardholder is a veteran = "1"
2325
+ */
2326
+
2327
+ /**
2328
+ * Mandatory on AAMVA 02 barcodes.
2329
+ * Optional on AAMVA 01, 03, 04, 05, 06, 07, 08, Magnetic and Compact barcodes.
2330
+ *
2331
+ * Cardholder weight in kilograms Example: 84 kg = "084"
2332
+ */
2333
+
2334
+ /**
2335
+ * Mandatory on AAMVA 02 barcodes.
2336
+ * Optional on AAMVA 01, 03, 04, 05, 06, 07, 08, Magnetic and Compact barcodes.
2337
+ *
2338
+ * Cardholder weight in pounds Example: 185 lb = "185"
2339
+ */
2340
+
2341
+ /**
2342
+ * Mandatory on AAMVA 02 barcodes.
2343
+ * Optional on AAMVA 01, 03, 04, 05, 06, 07, 08, Magnetic and Compact barcodes.
2344
+ *
2345
+ * Indicates the approximate weight range of the cardholder:
2346
+ * 0 = up to 31 kg (up to 70 lbs)
2347
+ * 1 = 32 – 45 kg (71 – 100 lbs)
2348
+ * 2 = 46 - 59 kg (101 – 130 lbs)
2349
+ * 3 = 60 - 70 kg (131 – 160 lbs)
2350
+ * 4 = 71 - 86 kg (161 – 190 lbs)
2351
+ * 5 = 87 - 100 kg (191 – 220 lbs)
2352
+ * 6 = 101 - 113 kg (221 – 250 lbs)
2353
+ * 7 = 114 - 127 kg (251 – 280 lbs)
2354
+ * 8 = 128 – 145 kg (281 – 320 lbs)
2355
+ * 9 = 146+ kg (321+ lbs)
2356
+ */
2357
+
2358
+ /**
2359
+ *
2360
+ * @param nativeBarcodeExtendedElements - specifies the extended barcode elements obtained from the native SDK.
2361
+ */
2362
+ constructor(nativeBarcodeExtendedElements) {
2363
+ this.addressCity = nativeBarcodeExtendedElements.addressCity;
2364
+ this.addressJurisdictionCode = nativeBarcodeExtendedElements.addressJurisdictionCode;
2365
+ this.addressPostalCode = nativeBarcodeExtendedElements.addressPostalCode;
2366
+ this.addressStreet = nativeBarcodeExtendedElements.addressStreet;
2367
+ this.addressStreet2 = nativeBarcodeExtendedElements.addressStreet2;
2368
+ this.akaDateOfBirth = nativeBarcodeExtendedElements.akaDateOfBirth;
2369
+ this.akaFamilyName = nativeBarcodeExtendedElements.akaFamilyName;
2370
+ this.akaFullName = nativeBarcodeExtendedElements.akaFullName;
2371
+ this.akaGivenName = nativeBarcodeExtendedElements.akaGivenName;
2372
+ this.akaMiddleName = nativeBarcodeExtendedElements.akaMiddleName;
2373
+ this.akaPrefixName = nativeBarcodeExtendedElements.akaPrefixName;
2374
+ this.akaSocialSecurityNumber = nativeBarcodeExtendedElements.akaSocialSecurityNumber;
2375
+ this.akaSuffixName = nativeBarcodeExtendedElements.akaSuffixName;
2376
+ this.auditInformation = nativeBarcodeExtendedElements.auditInformation;
2377
+ this.cardRevisionDate = nativeBarcodeExtendedElements.cardRevisionDate;
2378
+ this.complianceType = nativeBarcodeExtendedElements.complianceType;
2379
+ this.countryIdentification = nativeBarcodeExtendedElements.countryIdentification;
2380
+ this.customerFamilyName = nativeBarcodeExtendedElements.customerFamilyName;
2381
+ this.customerIdNumber = nativeBarcodeExtendedElements.customerIdNumber;
2382
+ this.customerFirstName = nativeBarcodeExtendedElements.customerFirstName;
2383
+ this.customerFullName = nativeBarcodeExtendedElements.customerFullName;
2384
+ this.customerMiddleName = nativeBarcodeExtendedElements.customerMiddleName;
2385
+ this.dataDiscriminator = nativeBarcodeExtendedElements.dataDiscriminator;
2386
+ this.dateOfBirth = nativeBarcodeExtendedElements.dateOfBirth;
2387
+ this.documentDiscriminator = nativeBarcodeExtendedElements.documentDiscriminator;
2388
+ this.documentExpirationDate = nativeBarcodeExtendedElements.documentExpirationDate;
2389
+ this.documentExpirationMonth = nativeBarcodeExtendedElements.documentExpirationMonth;
2390
+ this.documentIssueDate = nativeBarcodeExtendedElements.documentIssueDate;
2391
+ this.documentNonexpiring = nativeBarcodeExtendedElements.documentNonexpiring;
2392
+ this.documentType = nativeBarcodeExtendedElements.documentType;
2393
+ this.eyeColor = nativeBarcodeExtendedElements.eyeColor;
2394
+ this.familyNameTruncation = nativeBarcodeExtendedElements.familyNameTruncation;
2395
+ this.federalCommercialVehicleCodes = nativeBarcodeExtendedElements.federalCommercialVehicleCodes;
2396
+ this.firstNameTruncation = nativeBarcodeExtendedElements.firstNameTruncation;
2397
+ this.fullAddress = nativeBarcodeExtendedElements.fullAddress;
2398
+ this.hairColor = nativeBarcodeExtendedElements.hairColor;
2399
+ this.height = nativeBarcodeExtendedElements.height;
2400
+ this.heightIn = nativeBarcodeExtendedElements.heightIn;
2401
+ this.heightCm = nativeBarcodeExtendedElements.heightCm;
2402
+ this.issuerIdentificationNumber = nativeBarcodeExtendedElements.issuerIdentificationNumber;
2403
+ this.issuingJurisdiction = nativeBarcodeExtendedElements.issuingJurisdiction;
2404
+ this.issuingJurisdictionName = nativeBarcodeExtendedElements.issuingJurisdictionName;
2405
+ this.jurisdictionEndorsementCodes = nativeBarcodeExtendedElements.jurisdictionEndorsementCodes;
2406
+ this.jurisdictionEndorsmentCodeDescription = nativeBarcodeExtendedElements.jurisdictionEndorsmentCodeDescription;
2407
+ this.jurisdictionRestrictionCodeDescription = nativeBarcodeExtendedElements.jurisdictionRestrictionCodeDescription;
2408
+ this.jurisdictionRestrictionCodes = nativeBarcodeExtendedElements.jurisdictionRestrictionCodes;
2409
+ this.jurisdictionVehicleClass = nativeBarcodeExtendedElements.jurisdictionVehicleClass;
2410
+ this.jurisdictionVehicleClassificationDescription = nativeBarcodeExtendedElements.jurisdictionVehicleClassificationDescription;
2411
+ this.jurisdictionVersionNumber = nativeBarcodeExtendedElements.jurisdictionVersionNumber;
2412
+ this.limitedDurationDocument = nativeBarcodeExtendedElements.limitedDurationDocument;
2413
+ this.medicalIndicator = nativeBarcodeExtendedElements.medicalIndicator;
2414
+ this.middleNameTruncation = nativeBarcodeExtendedElements.middleNameTruncation;
2415
+ this.namePrefix = nativeBarcodeExtendedElements.namePrefix;
2416
+ this.nameSuffix = nativeBarcodeExtendedElements.nameSuffix;
2417
+ this.nonResident = nativeBarcodeExtendedElements.nonResident;
2418
+ this.numberOfDuplicates = nativeBarcodeExtendedElements.numberOfDuplicates;
2419
+ this.organDonor = nativeBarcodeExtendedElements.organDonor;
2420
+ this.permitExpirationDate = nativeBarcodeExtendedElements.permitExpirationDate;
2421
+ this.permitIdentifier = nativeBarcodeExtendedElements.permitIdentifier;
2422
+ this.permitIssueDate = nativeBarcodeExtendedElements.permitIssueDate;
2423
+ this.placeOfBirth = nativeBarcodeExtendedElements.placeOfBirth;
2424
+ this.raceEthnicity = nativeBarcodeExtendedElements.raceEthnicity;
2425
+ this.residenceCity = nativeBarcodeExtendedElements.residenceCity;
2426
+ this.residenceFullAddress = nativeBarcodeExtendedElements.residenceFullAddress;
2427
+ this.residenceJurisdictionCode = nativeBarcodeExtendedElements.residenceJurisdictionCode;
2428
+ this.residencePostalCode = nativeBarcodeExtendedElements.residencePostalCode;
2429
+ this.residenceStreetAddress = nativeBarcodeExtendedElements.residenceStreetAddress;
2430
+ this.residenceStreetAddress2 = nativeBarcodeExtendedElements.residenceStreetAddress2;
2431
+ this.securityVersion = nativeBarcodeExtendedElements.securityVersion;
2432
+ this.sex = nativeBarcodeExtendedElements.sex;
2433
+ this.socialSecurityNumber = nativeBarcodeExtendedElements.socialSecurityNumber;
2434
+ this.standardEndorsementCode = nativeBarcodeExtendedElements.standardEndorsementCode;
2435
+ this.standardRestrictionCode = nativeBarcodeExtendedElements.standardRestrictionCode;
2436
+ this.standardVehicleClassification = nativeBarcodeExtendedElements.standardVehicleClassification;
2437
+ this.standardVersionNumber = nativeBarcodeExtendedElements.standardVersionNumber;
2438
+ this.under18 = nativeBarcodeExtendedElements.under18;
2439
+ this.under19 = nativeBarcodeExtendedElements.under19;
2440
+ this.under21 = nativeBarcodeExtendedElements.under21;
2441
+ this.uniqueCustomerId = nativeBarcodeExtendedElements.uniqueCustomerId;
2442
+ this.veteran = nativeBarcodeExtendedElements.veteran;
2443
+ this.weightKilograms = nativeBarcodeExtendedElements.weightKilograms;
2444
+ this.weightPounds = nativeBarcodeExtendedElements.weightPounds;
2445
+ this.weightRange = nativeBarcodeExtendedElements.weightRange;
2446
+ }
2447
+ }
2448
+
2449
+ /**
2450
+ * Represents the mode of document scanning.
2451
+ *
2452
+ * This enum class defines whether the scanning process is limited to a single
2453
+ * side of the document or includes multiple sides, automatically identifying how many sides need to be scanned.
2454
+ */
2455
+ export let ScanningMode = /*#__PURE__*/function (ScanningMode) {
2456
+ /**
2457
+ * Specifies the scanning process to be for single side only.
2458
+ *
2459
+ */
2460
+ ScanningMode[ScanningMode["Single"] = 0] = "Single";
2461
+ /**
2462
+ * The default `ScanningMode`.
2463
+ *
2464
+ * Automatically determines the number of sides to scan.
2465
+ */
2466
+ ScanningMode[ScanningMode["Automatic"] = 1] = "Automatic";
2467
+ return ScanningMode;
2468
+ }({});
2469
+
2470
+ /**
2471
+ * Represents the type of the alphabet used in the document.
2472
+ *
2473
+ */
2474
+ export let AlphabetType = /*#__PURE__*/function (AlphabetType) {
2475
+ /**
2476
+ * The Latin alphabet type
2477
+ *
2478
+ */
2479
+ AlphabetType["Latin"] = "latin";
2480
+ /**
2481
+ * The Arabic alphabet type
2482
+ *
2483
+ */
2484
+ AlphabetType["Arabic"] = "arabic";
2485
+ /**
2486
+ * The Cyrillic alphabet type
2487
+ *
2488
+ */
2489
+ AlphabetType["Cyrillic"] = "cyrillic";
2490
+ /**
2491
+ * The Greek alphabet type
2492
+ *
2493
+ */
2494
+ AlphabetType["Greek"] = "greek";
2495
+ return AlphabetType;
2496
+ }({});
2497
+
2498
+ /**
2499
+ * Represents the different levels of detection sensitivity.
2500
+ *
2501
+ * This enum class is used to configure detection thresholds and enable or
2502
+ * disable detection functionality.
2503
+ *
2504
+ * The levels range from turning detection
2505
+ * off completely to setting various levels of sensitivity (`Low`, `Mid`, `High`).
2506
+ */
2507
+ export let DetectionLevel = /*#__PURE__*/function (DetectionLevel) {
2508
+ /**
2509
+ * Disables the `DetectionLevel`
2510
+ *
2511
+ */
2512
+ DetectionLevel[DetectionLevel["Off"] = 0] = "Off";
2513
+ /**
2514
+ * Sets the `DetectionLevel` to be less sensitive.
2515
+ *
2516
+ */
2517
+ DetectionLevel[DetectionLevel["Low"] = 1] = "Low";
2518
+ /**
2519
+ * The default `DetectionLevel` sensitivity.
2520
+ *
2521
+ */
2522
+ DetectionLevel[DetectionLevel["Mid"] = 2] = "Mid";
2523
+ /**
2524
+ * Sets the `DetectionLevel` to be highly sensitive.
2525
+ *
2526
+ */
2527
+ DetectionLevel[DetectionLevel["High"] = 3] = "High";
2528
+ return DetectionLevel;
2529
+ }({});
2530
+
2531
+ /**
2532
+ * Represents level of anonymization performed on the scanning result.
2533
+ *
2534
+ */
2535
+ export let AnonymizationMode = /*#__PURE__*/function (AnonymizationMode) {
2536
+ /**
2537
+ * Anonymization will not be performed.
2538
+ *
2539
+ */
2540
+ AnonymizationMode["None"] = "none";
2541
+ /**
2542
+ * Full document image is anonymized with black boxes covering sensitive data.
2543
+ *
2544
+ */
2545
+ AnonymizationMode["ImageOnly"] = "imageOnly";
2546
+ /**
2547
+ * Result fields containing sensitive data are removed from result.
2548
+ *
2549
+ */
2550
+ AnonymizationMode["ResultFieldsOnly"] = "resultFieldsOnly";
2551
+ /**
2552
+ * This mode is combination of `imageOnly` and `resultFieldsOnly` modes.
2553
+ *
2554
+ */
2555
+ AnonymizationMode["FullResult"] = "fullResult";
2556
+ return AnonymizationMode;
2557
+ }({});
2558
+
2559
+ /**
2560
+ * Represents possible recognition modes.
2561
+ *
2562
+ */
2563
+ export let RecognitionMode = /*#__PURE__*/function (RecognitionMode) {
2564
+ /**
2565
+ * No recognition performed.
2566
+ *
2567
+ */
2568
+ RecognitionMode["None"] = "none";
2569
+ /**
2570
+ * Recognition of mrz document (does not include visa and passport).
2571
+ *
2572
+ */
2573
+ RecognitionMode["MrzId"] = "mrzId";
2574
+ /**
2575
+ * Recognition of visa mrz.
2576
+ *
2577
+ */
2578
+ RecognitionMode["MrzVisa"] = "mrzVisa";
2579
+ /**
2580
+ * Recognition of passport mrz.
2581
+ *
2582
+ */
2583
+ RecognitionMode["MrzPassport"] = "mrzPassport";
2584
+ /*
2585
+ * Recognition of documents that have face photo on the front.
2586
+ *
2587
+ */
2588
+ RecognitionMode["PhotoId"] = "photoId";
2589
+ /**
2590
+ * Detailed document recognition.
2591
+ *
2592
+ */
2593
+ RecognitionMode["FullRecognition"] = "fullRecognition";
2594
+ /**
2595
+ * Recognition of barcode document.
2596
+ *
2597
+ */
2598
+ RecognitionMode["BarcodeId"] = "barcodeId";
2599
+ return RecognitionMode;
2600
+ }({});
2601
+
2602
+ /**
2603
+ * Define document side where the document field is located.
2604
+ *
2605
+ */
2606
+ export let DocumentSide = /*#__PURE__*/function (DocumentSide) {
2607
+ /**
2608
+ * The field is located on the front side of the document
2609
+ *
2610
+ */
2611
+ DocumentSide[DocumentSide["Front"] = 0] = "Front";
2612
+ /**
2613
+ * The field is located on the back side of the document
2614
+ *
2615
+ */
2616
+ DocumentSide[DocumentSide["Back"] = 1] = "Back";
2617
+ return DocumentSide;
2618
+ }({});
2619
+
2620
+ /**
2621
+ * Represents the type of scanned barcode
2622
+ *
2623
+ */
2624
+ export let BarcodeType = /*#__PURE__*/function (BarcodeType) {
2625
+ /**
2626
+ * No barcode was scanned
2627
+ *
2628
+ */
2629
+ BarcodeType[BarcodeType["None"] = 0] = "None";
2630
+ /**
2631
+ * QR code was scanned
2632
+ *
2633
+ */
2634
+ BarcodeType[BarcodeType["QrCode"] = 1] = "QrCode";
2635
+ /**
2636
+ * Data Matrix 2D barcode was scanned
2637
+ *
2638
+ */
2639
+ BarcodeType[BarcodeType["DataMatrix"] = 2] = "DataMatrix";
2640
+ /**
2641
+ * UPC E barcode was scanned
2642
+ *
2643
+ */
2644
+ BarcodeType[BarcodeType["Upce"] = 3] = "Upce";
2645
+ /**
2646
+ * UPC A barcode was scanned
2647
+ *
2648
+ */
2649
+ BarcodeType[BarcodeType["Upca"] = 4] = "Upca";
2650
+ /**
2651
+ * EAN 8 barcode was scanned
2652
+ *
2653
+ */
2654
+ BarcodeType[BarcodeType["Ean8"] = 5] = "Ean8";
2655
+ /**
2656
+ * EAN 13 barcode was scanned
2657
+ *
2658
+ */
2659
+ BarcodeType[BarcodeType["Ean13"] = 6] = "Ean13";
2660
+ /**
2661
+ * Code 128 barcode was scanned
2662
+ *
2663
+ */
2664
+ BarcodeType[BarcodeType["Code128"] = 7] = "Code128";
2665
+ /**
2666
+ * Code 39 barcode was scanned
2667
+ *
2668
+ */
2669
+ BarcodeType[BarcodeType["Code39"] = 8] = "Code39";
2670
+ /**
2671
+ * ITF barcode was scanned
2672
+ *
2673
+ */
2674
+ BarcodeType[BarcodeType["Itf"] = 9] = "Itf";
2675
+ /**
2676
+ * Aztec 2D barcode was scanned
2677
+ *
2678
+ */
2679
+ BarcodeType[BarcodeType["Aztec"] = 10] = "Aztec";
2680
+ /**
2681
+ * PDF417 2D barcode was scanned
2682
+ *
2683
+ */
2684
+ BarcodeType[BarcodeType["Pdf417"] = 11] = "Pdf417";
2685
+ return BarcodeType;
2686
+ }({});
2687
+
2688
+ /**
2689
+ * Represents the document type found on the Machine Readable Zone
2690
+ *
2691
+ */
2692
+ export let MRZDocumentType = /*#__PURE__*/function (MRZDocumentType) {
2693
+ /**
2694
+ * Document type was not identified.
2695
+ *
2696
+ */
2697
+ MRZDocumentType[MRZDocumentType["Unknown"] = 0] = "Unknown";
2698
+ /**
2699
+ * Identity card
2700
+ *
2701
+ */
2702
+ MRZDocumentType[MRZDocumentType["IdentityCard"] = 1] = "IdentityCard";
2703
+ /**
2704
+ * Passport
2705
+ *
2706
+ */
2707
+ MRZDocumentType[MRZDocumentType["Passport"] = 2] = "Passport";
2708
+ /**
2709
+ * VISA
2710
+ *
2711
+ */
2712
+ MRZDocumentType[MRZDocumentType["Visa"] = 3] = "Visa";
2713
+ /**
2714
+ * Green card
2715
+ *
2716
+ */
2717
+ MRZDocumentType[MRZDocumentType["GreenCard"] = 4] = "GreenCard";
2718
+ /**
2719
+ * IIM13P Pass
2720
+ *
2721
+ */
2722
+ MRZDocumentType[MRZDocumentType["MysPassIMM13P"] = 5] = "MysPassIMM13P";
2723
+ /**
2724
+ * Driver license
2725
+ *
2726
+ */
2727
+ MRZDocumentType[MRZDocumentType["DriverLicense"] = 6] = "DriverLicense";
2728
+ /**
2729
+ * Internal travel document
2730
+ *
2731
+ */
2732
+ MRZDocumentType[MRZDocumentType["InternalTravelDocument"] = 7] = "InternalTravelDocument";
2733
+ /**
2734
+ * Border crossing card
2735
+ *
2736
+ */
2737
+ MRZDocumentType[MRZDocumentType["BorderCrossingCard"] = 8] = "BorderCrossingCard";
2738
+ return MRZDocumentType;
2739
+ }({});
2740
+
2741
+ /**
2742
+ * Represents the side of the document being scanned.
2743
+ *
2744
+ */
2745
+ var ScanningSide = /*#__PURE__*/function (ScanningSide) {
2746
+ /**
2747
+ * The first side of the scanned document
2748
+ *
2749
+ */
2750
+ ScanningSide[ScanningSide["First"] = 0] = "First";
2751
+ /**
2752
+ * The second side of the scanned document
2753
+ *
2754
+ */
2755
+ ScanningSide[ScanningSide["Second"] = 1] = "Second";
2756
+ return ScanningSide;
2757
+ }(ScanningSide || {});
2758
+ /**
2759
+ * Represents the type of the field used in data match.
2760
+ *
2761
+ */
2762
+ export let DataMatchField = /*#__PURE__*/function (DataMatchField) {
2763
+ /**
2764
+ * The date of birth field.
2765
+ *
2766
+ */
2767
+ DataMatchField[DataMatchField["DateOfBirth"] = 0] = "DateOfBirth";
2768
+ /**
2769
+ * The date of expiry field.
2770
+ *
2771
+ */
2772
+ DataMatchField[DataMatchField["DateOfExpiry"] = 1] = "DateOfExpiry";
2773
+ /**
2774
+ * The document number field.
2775
+ *
2776
+ */
2777
+ DataMatchField[DataMatchField["DocumentNumber"] = 2] = "DocumentNumber";
2778
+ /**
2779
+ * The document additional number field.
2780
+ *
2781
+ */
2782
+ DataMatchField[DataMatchField["DocumentAdditionalNumber"] = 3] = "DocumentAdditionalNumber";
2783
+ /**
2784
+ * The document optional additional number field.
2785
+ *
2786
+ */
2787
+ DataMatchField[DataMatchField["DocumentOptionalAdditionalNumber"] = 4] = "DocumentOptionalAdditionalNumber";
2788
+ /**
2789
+ * The personal ID number field.
2790
+ *
2791
+ */
2792
+ DataMatchField[DataMatchField["PersonalIdNumber"] = 5] = "PersonalIdNumber";
2793
+ return DataMatchField;
2794
+ }({});
2795
+
2796
+ /**
2797
+ * Represents the state of the data match.
2798
+ *
2799
+ */
2800
+ export let DataMatchState = /*#__PURE__*/function (DataMatchState) {
2801
+ /**
2802
+ * Data matching has not been performed.
2803
+ *
2804
+ */
2805
+ DataMatchState[DataMatchState["NotPerformed"] = 0] = "NotPerformed";
2806
+ /**
2807
+ * Data does not match.
2808
+ *
2809
+ */
2810
+ DataMatchState[DataMatchState["Failed"] = 1] = "Failed";
2811
+ /**
2812
+ * Data does match.
2813
+ *
2814
+ */
2815
+ DataMatchState[DataMatchState["Success"] = 2] = "Success";
2816
+ return DataMatchState;
2817
+ }({});
2818
+
2819
+ /**
2820
+ * Document country.
2821
+ *
2822
+ */
2823
+ export let Country = /*#__PURE__*/function (Country) {
2824
+ Country["None"] = "none";
2825
+ Country["Albania"] = "albania";
2826
+ Country["Algeria"] = "algeria";
2827
+ Country["Argentina"] = "argentina";
2828
+ Country["Australia"] = "australia";
2829
+ Country["Austria"] = "austria";
2830
+ Country["Azerbaijan"] = "azerbaijan";
2831
+ Country["Bahrain"] = "bahrain";
2832
+ Country["Bangladesh"] = "bangladesh";
2833
+ Country["Belgium"] = "belgium";
2834
+ Country["BosniaAndHerzegovina"] = "bosniaAndHerzegovina";
2835
+ Country["Brunei"] = "brunei";
2836
+ Country["Bulgaria"] = "bulgaria";
2837
+ Country["Bambodia"] = "bambodia";
2838
+ Country["Canada"] = "canada";
2839
+ Country["Chile"] = "chile";
2840
+ Country["Colombia"] = "colombia";
2841
+ Country["CostaRica"] = "costaRica";
2842
+ Country["Croatia"] = "croatia";
2843
+ Country["Cyprus"] = "cyprus";
2844
+ Country["Czechia"] = "czechia";
2845
+ Country["Denmark"] = "denmark";
2846
+ Country["DominicanRepublic"] = "dominicanRepublic";
2847
+ Country["Egypt"] = "egypt";
2848
+ Country["Estonia"] = "estonia";
2849
+ Country["Finland"] = "finland";
2850
+ Country["France"] = "france";
2851
+ Country["Georgia"] = "georgia";
2852
+ Country["Germany"] = "germany";
2853
+ Country["Ghana"] = "ghana";
2854
+ Country["Greece"] = "greece";
2855
+ Country["Guatemala"] = "guatemala";
2856
+ Country["HongKong"] = "hongKong";
2857
+ Country["Hungary"] = "hungary";
2858
+ Country["India"] = "india";
2859
+ Country["Indonesia"] = "indonesia";
2860
+ Country["Ireland"] = "ireland";
2861
+ Country["Israel"] = "israel";
2862
+ Country["Italy"] = "italy";
2863
+ Country["Jordan"] = "jordan";
2864
+ Country["Kazakhstan"] = "kazakhstan";
2865
+ Country["Kenya"] = "kenya";
2866
+ Country["Kosovo"] = "kosovo";
2867
+ Country["Kuwait"] = "kuwait";
2868
+ Country["Latvia"] = "latvia";
2869
+ Country["Lithuania"] = "lithuania";
2870
+ Country["Malaysia"] = "malaysia";
2871
+ Country["Maldives"] = "maldives";
2872
+ Country["Malta"] = "malta";
2873
+ Country["Mauritius"] = "mauritius";
2874
+ Country["Mexico"] = "mexico";
2875
+ Country["Morocco"] = "morocco";
2876
+ Country["Netherlands"] = "netherlands";
2877
+ Country["NewZealand"] = "newZealand";
2878
+ Country["Nigeria"] = "nigeria";
2879
+ Country["Pakistan"] = "pakistan";
2880
+ Country["Panama"] = "panama";
2881
+ Country["Paraguay"] = "paraguay";
2882
+ Country["Philippines"] = "philippines";
2883
+ Country["Poland"] = "poland";
2884
+ Country["Portugal"] = "portugal";
2885
+ Country["PuertoRico"] = "puertoRico";
2886
+ Country["Qatar"] = "qatar";
2887
+ Country["Romania"] = "romania";
2888
+ Country["Russia"] = "russia";
2889
+ Country["SaudiArabia"] = "saudiArabia";
2890
+ Country["Serbia"] = "serbia";
2891
+ Country["Singapore"] = "singapore";
2892
+ Country["Slovakia"] = "slovakia";
2893
+ Country["Slovenia"] = "slovenia";
2894
+ Country["SouthAfrica"] = "southAfrica";
2895
+ Country["Spain"] = "spain";
2896
+ Country["Sweden"] = "sweden";
2897
+ Country["Switzerland"] = "switzerland";
2898
+ Country["Taiwan"] = "taiwan";
2899
+ Country["Thailand"] = "thailand";
2900
+ Country["Tunisia"] = "tunisia";
2901
+ Country["Turkey"] = "turkey";
2902
+ Country["UAE"] = "uae";
2903
+ Country["Ganda"] = "gganda";
2904
+ Country["UK"] = "uk";
2905
+ Country["Ukraine"] = "ukraine";
2906
+ Country["USA"] = "usa";
2907
+ Country["Vietnam"] = "vietnam";
2908
+ Country["Brazil"] = "brazil";
2909
+ Country["Norway"] = "norway";
2910
+ Country["Oman"] = "oman";
2911
+ Country["Ecuador"] = "ecuador";
2912
+ Country["ElSalvador"] = "elSalvador";
2913
+ Country["SriLanka"] = "sriLanka";
2914
+ Country["Peru"] = "peru";
2915
+ Country["Uruguay"] = "uruguay";
2916
+ Country["Bahamas"] = "bahamas";
2917
+ Country["Bermuda"] = "bermuda";
2918
+ Country["Bolivia"] = "bolivia";
2919
+ Country["China"] = "china";
2920
+ Country["EuropeanUnion"] = "europeanUnion";
2921
+ Country["Haiti"] = "haiti";
2922
+ Country["Honduras"] = "honduras";
2923
+ Country["Iceland"] = "iceland";
2924
+ Country["Japan"] = "japan";
2925
+ Country["Luxembourg"] = "luxembourg";
2926
+ Country["Montenegro"] = "montenegro";
2927
+ Country["Nicaragua"] = "nicaragua";
2928
+ Country["SouthKorea"] = "southKorea";
2929
+ Country["Venezuela"] = "venezuela";
2930
+ Country["Afghanistan"] = "afghanistan";
2931
+ Country["AlandIslands"] = "alandIslands";
2932
+ Country["AmericanSamoa"] = "americanSamoa";
2933
+ Country["Andorra"] = "andorra";
2934
+ Country["Angola"] = "angola";
2935
+ Country["Anguilla"] = "anguilla";
2936
+ Country["Antartica"] = "antarctica";
2937
+ Country["AntiguaAndBarbuda"] = "antiguaAndBarbuda";
2938
+ Country["Armenia"] = "armenia";
2939
+ Country["Aruba"] = "aruba";
2940
+ Country["BailiwickOfGuernsey"] = "bailiwickOfGuernsey";
2941
+ Country["BailiwickOfJersey"] = "bailiwickOfJersey";
2942
+ Country["Barbados"] = "barbados";
2943
+ Country["Belarus"] = "belarus";
2944
+ Country["Belize"] = "belize";
2945
+ Country["Benin"] = "benin";
2946
+ Country["Bhutan"] = "bhutan";
2947
+ Country["BonaireSaintEustatiusAndSaba"] = "bonaireSaintEustatiusAndSaba";
2948
+ Country["Botswana"] = "botswana";
2949
+ Country["BouvetIsland"] = "bouvetIsland";
2950
+ Country["BritishIndianOceanTerritory"] = "britishIndianOceanTerritory";
2951
+ Country["BurkinaFaso"] = "burkinaFaso";
2952
+ Country["Burundi"] = "burundi";
2953
+ Country["Cameroon"] = "cameroon";
2954
+ Country["CapeVerde"] = "capeVerde";
2955
+ Country["CaribbeanNetherlands"] = "caribbeanNetherlands";
2956
+ Country["CaymanIslands"] = "caymanIslands";
2957
+ Country["CentralAfricanRepublic"] = "centralAfricanRepublic";
2958
+ Country["Chad"] = "chad";
2959
+ Country["ChristmasIsland"] = "christmasIsland";
2960
+ Country["CocosIslands"] = "cocosIslands";
2961
+ Country["Comoros"] = "comoros";
2962
+ Country["Congo"] = "congo";
2963
+ Country["CookIslands"] = "cookIslands";
2964
+ Country["Cuba"] = "cuba";
2965
+ Country["Curacao"] = "curacao";
2966
+ Country["DemocraticRepublicOfTheCongo"] = "democraticRepublicOfTheCongo";
2967
+ Country["Djibouti"] = "djibouti";
2968
+ Country["Dominica"] = "dominica";
2969
+ Country["EastTimor"] = "eastTimor";
2970
+ Country["EquatorialGuinea"] = "equatorialGuinea";
2971
+ Country["Eritrea"] = "eritrea";
2972
+ Country["Ethiopia"] = "ethiopia";
2973
+ Country["FalklandIslands"] = "falklandIslands";
2974
+ Country["FaroeIslands"] = "faroeIslands";
2975
+ Country["FederatedStatesOfMicronesia"] = "federatedStatesOfMicronesia";
2976
+ Country["Fiji"] = "fiji";
2977
+ Country["FrenchGuiana"] = "frenchGuiana";
2978
+ Country["FrenchPolynesia"] = "frenchPolynesia";
2979
+ Country["FrenchSouthernTerritories"] = "frenchSouthernTerritories";
2980
+ Country["Gabon"] = "gabon";
2981
+ Country["Gambia"] = "gambia";
2982
+ Country["Gibraltar"] = "gibraltar";
2983
+ Country["Greenland"] = "greenland";
2984
+ Country["Grenada"] = "grenada";
2985
+ Country["Guadeloupe"] = "guadeloupe";
2986
+ Country["Guam"] = "guam";
2987
+ Country["Guinea"] = "guinea";
2988
+ Country["GuineaBissau"] = "guineaBissau";
2989
+ Country["Guyana"] = "guyana";
2990
+ Country["HeardIslandAndMcdonaldIslands"] = "heardIslandAndMcdonaldIslands";
2991
+ Country["Iran"] = "iran";
2992
+ Country["Iraq"] = "iraq";
2993
+ Country["IsleOfMan"] = "isleOfMan";
2994
+ Country["IvoryCoast"] = "ivoryCoast";
2995
+ Country["Jamaica"] = "jamaica";
2996
+ Country["Kiribati"] = "kiribati";
2997
+ Country["Kyrgyzstan"] = "kyrgyzstan";
2998
+ Country["Laos"] = "laos";
2999
+ Country["Lebanon"] = "lebanon";
3000
+ Country["Lesotho"] = "lesotho";
3001
+ Country["Liberia"] = "liberia";
3002
+ Country["Libya"] = "libya";
3003
+ Country["Liechtenstein"] = "liechtenstein";
3004
+ Country["Macau"] = "macau";
3005
+ Country["Madagascar"] = "madagascar";
3006
+ Country["Malawi"] = "malawi";
3007
+ Country["Mali"] = "mali";
3008
+ Country["MarshallIslands"] = "marshallIslands";
3009
+ Country["Martinique"] = "martinique";
3010
+ Country["Mauritania"] = "mauritania";
3011
+ Country["Mayotte"] = "mayotte";
3012
+ Country["Moldova"] = "moldova";
3013
+ Country["Monaco"] = "monaco";
3014
+ Country["Mongolia"] = "mongolia";
3015
+ Country["Montserrat"] = "montserrat";
3016
+ Country["Mozambique"] = "mozambique";
3017
+ Country["Myanmar"] = "myanmar";
3018
+ Country["Namibia"] = "namibia";
3019
+ Country["Nauru"] = "nauru";
3020
+ Country["Nepal"] = "nepal";
3021
+ Country["NewCaledonia"] = "newCaledonia";
3022
+ Country["Niger"] = "niger";
3023
+ Country["Niue"] = "niue";
3024
+ Country["NorfolkIsland"] = "norfolkIsland";
3025
+ Country["NorthernCyprus"] = "northernCyprus";
3026
+ Country["NorthernMarianaIslands"] = "northernMarianaIslands";
3027
+ Country["NorthKorea"] = "northKorea";
3028
+ Country["NorthMacedonia"] = "northMacedonia";
3029
+ Country["Palau"] = "palau";
3030
+ Country["Palestine"] = "palestine";
3031
+ Country["PapuaNewGuinea"] = "papuaNewGuinea";
3032
+ Country["Pitcairn"] = "pitcairn";
3033
+ Country["Reunion"] = "reunion";
3034
+ Country["Rwanda"] = "rwanda";
3035
+ Country["SaintBarthelemy"] = "saintBarthelemy";
3036
+ Country["SaintHelenaAscensionAndTristianDaCunha"] = "saintHelenaAscensionAndTristianDaCunha";
3037
+ Country["SaintKittsAndNevis"] = "saintKittsAndNevis";
3038
+ Country["SaintLucia"] = "saintLucia";
3039
+ Country["SaintMartin"] = "saintMartin";
3040
+ Country["SaintPierreAndMiquelon"] = "saintPierreAndMiquelon";
3041
+ Country["SaintVincentAndTheGrenadines"] = "saintVincentAndTheGrenadines";
3042
+ Country["Samoa"] = "samoa";
3043
+ Country["SanMarino"] = "sanMarino";
3044
+ Country["SaoTomeAndPrincipe"] = "saoTomeAndPrincipe";
3045
+ Country["Senegal"] = "senegal";
3046
+ Country["Seychelles"] = "seychelles";
3047
+ Country["SierraLeone"] = "sierraLeone";
3048
+ Country["SintMaarten"] = "sintMaarten";
3049
+ Country["SolomonIslands"] = "solomonIslands";
3050
+ Country["Somalia"] = "somalia";
3051
+ Country["SouthGeorgiaAndTheSouthSandwichIslands"] = "southGeorgiaAndTheSouthSandwichIslands";
3052
+ Country["SouthSudan"] = "southSudan";
3053
+ Country["Sudan"] = "sudan";
3054
+ Country["Suriname"] = "suriname";
3055
+ Country["SvalbardAndJanMayen"] = "svalbardAndJanMayen";
3056
+ Country["Eswatini"] = "eswatini";
3057
+ Country["Syria"] = "syria";
3058
+ Country["Tajikistan"] = "tajikistan";
3059
+ Country["Tanzania"] = "tanzania";
3060
+ Country["Togo"] = "togo";
3061
+ Country["Tokelau"] = "tokelau";
3062
+ Country["Tonga"] = "tonga";
3063
+ Country["TrinidadAndTobago"] = "trinidadAndTobago";
3064
+ Country["Turkmenistan"] = "turkmenistan";
3065
+ Country["TurksAndCaicosIslands"] = "turksAndCaicosIslands";
3066
+ Country["Tuvalu"] = "tuvalu";
3067
+ Country["UnitedStatesMinorOutlyingIslands"] = "unitedStatesMinorOutlyingIslands";
3068
+ Country["Uzbekistan"] = "uzbekistan";
3069
+ Country["Vanuatu"] = "vanuatu";
3070
+ Country["VaticanCity"] = "vaticanCity";
3071
+ Country["VirginIslandsBritish"] = "virginIslandsBritish";
3072
+ Country["VirginIslandsUs"] = "virginIslandsUs";
3073
+ Country["WallisAndFutuna"] = "wallisAndFutuna";
3074
+ Country["WesternSahara"] = "westernSahara";
3075
+ Country["Yemen"] = "yemen";
3076
+ Country["Yugoslavia"] = "yugoslavia";
3077
+ Country["Zambia"] = "zambia";
3078
+ Country["Zimbabwe"] = "zimbabwe";
3079
+ Country["SchengenArea"] = "schengenArea";
3080
+ return Country;
3081
+ }({});
3082
+ /**
3083
+ * Document region.
3084
+ */
3085
+ export let Region = /*#__PURE__*/function (Region) {
3086
+ Region["None"] = "none";
3087
+ Region["Alabama"] = "alabama";
3088
+ Region["Alaska"] = "alaska";
3089
+ Region["Alberta"] = "alberta";
3090
+ Region["Arizona"] = "arizona";
3091
+ Region["Arkansas"] = "arkansas";
3092
+ Region["AustralianCapitalTerritory"] = "australianCapitalTerritory";
3093
+ Region["BritishColumbia"] = "britishColumbia";
3094
+ Region["California"] = "california";
3095
+ Region["Colorado"] = "colorado";
3096
+ Region["Connecticut"] = "connecticut";
3097
+ Region["Delaware"] = "delaware";
3098
+ Region["DistrictOfColumbia"] = "districtOfColumbia";
3099
+ Region["Florida"] = "florida";
3100
+ Region["Georgia"] = "georgia";
3101
+ Region["Hawaii"] = "hawaii";
3102
+ Region["Idaho"] = "idaho";
3103
+ Region["Illinois"] = "illinois";
3104
+ Region["Indiana"] = "indiana";
3105
+ Region["Iowa"] = "iowa";
3106
+ Region["Kansas"] = "kansas";
3107
+ Region["Kentucky"] = "kentucky";
3108
+ Region["Louisiana"] = "louisiana";
3109
+ Region["Maine"] = "maine";
3110
+ Region["Manitoba"] = "manitoba";
3111
+ Region["Maryland"] = "maryland";
3112
+ Region["Massachusetts"] = "massachusetts";
3113
+ Region["Michigan"] = "michigan";
3114
+ Region["Minnesota"] = "minnesota";
3115
+ Region["Mississippi"] = "mississippi";
3116
+ Region["Missouri"] = "missouri";
3117
+ Region["Montana"] = "montana";
3118
+ Region["Nebraska"] = "nebraska";
3119
+ Region["Nevada"] = "nevada";
3120
+ Region["NewBrunswick"] = "newBrunswick";
3121
+ Region["NewHampshire"] = "newHampshire";
3122
+ Region["NewJersey"] = "newJersey";
3123
+ Region["NewMexico"] = "newMexico";
3124
+ Region["NewSouthWales"] = "newSouthWales";
3125
+ Region["NewYork"] = "newYork";
3126
+ Region["NorthernTerritory"] = "northernTerritory";
3127
+ Region["NorthCarolina"] = "northCarolina";
3128
+ Region["NorthDakota"] = "northDakota";
3129
+ Region["NovaScotia"] = "novaScotia";
3130
+ Region["Ohio"] = "ohio";
3131
+ Region["Oklahoma"] = "oklahoma";
3132
+ Region["Ontario"] = "ontario";
3133
+ Region["Oregon"] = "oregon";
3134
+ Region["Pennsylvania"] = "pennsylvania";
3135
+ Region["Quebec"] = "quebec";
3136
+ Region["Queensland"] = "queensland";
3137
+ Region["RhodeIsland"] = "rhodeIsland";
3138
+ Region["Saskatchewan"] = "saskatchewan";
3139
+ Region["SouthAustralia"] = "southAustralia";
3140
+ Region["SouthCarolina"] = "southCarolina";
3141
+ Region["SouthDakota"] = "southDakota";
3142
+ Region["Tasmania"] = "tasmania";
3143
+ Region["Tennessee"] = "tennessee";
3144
+ Region["Texas"] = "texas";
3145
+ Region["Utah"] = "utah";
3146
+ Region["Vermont"] = "vermont";
3147
+ Region["Victoria"] = "victoria";
3148
+ Region["Virginia"] = "virginia";
3149
+ Region["Washington"] = "washington";
3150
+ Region["WesternAustralia"] = "westernAustralia";
3151
+ Region["WestVirginia"] = "westVirginia";
3152
+ Region["Wisconsin"] = "wisconsin";
3153
+ Region["Wyoming"] = "wyoming";
3154
+ Region["Yukon"] = "yukon";
3155
+ Region["CiudadDeMexico"] = "ciudadDeMexico";
3156
+ Region["Jalisco"] = "jalisco";
3157
+ Region["NewfoundlandAndLabrador"] = "newfoundlandAndLabrador";
3158
+ Region["NuevoLeon"] = "nuevoLeon";
3159
+ Region["BajaCalifornia"] = "bajaCalifornia";
3160
+ Region["Chihuahua"] = "chihuahua";
3161
+ Region["Guanajuato"] = "guanajuato";
3162
+ Region["Guerrero"] = "guerrero";
3163
+ Region["Mexico"] = "mexico";
3164
+ Region["Michoacan"] = "michoacan";
3165
+ Region["NewYorkCity"] = "newYorkCity";
3166
+ Region["Tamaulipas"] = "tamaulipas";
3167
+ Region["Veracruz"] = "veracruz";
3168
+ Region["Chiapas"] = "chiapas";
3169
+ Region["Coahuila"] = "coahuila";
3170
+ Region["Durago"] = "durango";
3171
+ Region["GuerreroCocula"] = "guerreroCocula";
3172
+ Region["GuerreroJuchitan"] = "guerreroJuchitan";
3173
+ Region["GuerreroTepecoacuilco"] = "guerreroTepecoacuilco";
3174
+ Region["GuerreroTlacoapa"] = "guerreroTlacoapa";
3175
+ Region["Gujarat"] = "gujarat";
3176
+ Region["Hidalgo"] = "hidalgo";
3177
+ Region["Karnataka"] = "karnataka";
3178
+ Region["Kerala"] = "kerala";
3179
+ Region["KhyberPakhtunkhwa"] = "khyberPakhtunkhwa";
3180
+ Region["MadhyaPradesh"] = "madhyaPradesh";
3181
+ Region["Maharashtra"] = "maharashtra";
3182
+ Region["Morelos"] = "morelos";
3183
+ Region["Nayarit"] = "nayarit";
3184
+ Region["Oaxaca"] = "oaxaca";
3185
+ Region["Puebla"] = "puebla";
3186
+ Region["Punjab"] = "punjab";
3187
+ Region["Queretaro"] = "queretaro";
3188
+ Region["SanLuisPotosi"] = "sanLuisPotosi";
3189
+ Region["Sinaloa"] = "sinaloa";
3190
+ Region["Sonora"] = "sonora";
3191
+ Region["Tabasco"] = "tabasco";
3192
+ Region["TamilNadu"] = "tamilNadu";
3193
+ Region["Yucatan"] = "yucatan";
3194
+ Region["Zacatecas"] = "zacatecas";
3195
+ Region["Aguascalientes"] = "aguascalientes";
3196
+ Region["BajaCaliforniaSur"] = "bajaCaliforniaSur";
3197
+ Region["Campeche"] = "campeche";
3198
+ Region["Colima"] = "colima";
3199
+ Region["QuintanaRooBenitoJuarez"] = "quintanaRooBenitoJuarez";
3200
+ Region["QuintanaRoo"] = "quintanaRoo";
3201
+ Region["QuintanaRooSolidaridad"] = "quintanaRooSolidaridad";
3202
+ Region["Tlaxcala"] = "tlaxcala";
3203
+ Region["QuintanaRooCozumel"] = "quintanaRooCozumel";
3204
+ Region["SanPaolo"] = "saoPaolo";
3205
+ Region["RioDeJaniero"] = "rioDeJaneiro";
3206
+ Region["RioGrandeDoSul"] = "rioGrandeDoSul";
3207
+ Region["NorthWestTerritories"] = "northWestTerritories";
3208
+ Region["Nunavut"] = "nunavut";
3209
+ Region["PrinceEdwardIsland"] = "princeEdwardIsland";
3210
+ Region["DistritoFederal"] = "distritoFederal";
3211
+ Region["Maranhao"] = "maranhao";
3212
+ Region["MatoGrosso"] = "matoGrosso";
3213
+ Region["MinasGerais"] = "minasGerais";
3214
+ Region["Para"] = "para";
3215
+ Region["Parana"] = "parana";
3216
+ Region["Pernambuco"] = "pernambuco";
3217
+ Region["SantaCatarina"] = "santaCatarina";
3218
+ Region["AndhraPradesh"] = "andhraPradesh";
3219
+ Region["Ceara"] = "ceara";
3220
+ Region["Goias"] = "goias";
3221
+ Region["GuerreroAcapulcoDeJuarez"] = "guerreroAcapulcoDeJuarez";
3222
+ Region["Haryana"] = "haryana";
3223
+ Region["Sergipe"] = "sergipe";
3224
+ Region["Alagos"] = "alagos";
3225
+ Region["Bangsamoro"] = "bangsamoro";
3226
+ return Region;
3227
+ }({});
3228
+
3229
+ /**
3230
+ * Document type.
3231
+ *
3232
+ */
3233
+ export let DocumentType = /*#__PURE__*/function (DocumentType) {
3234
+ DocumentType["None"] = "none";
3235
+ DocumentType["ConsularId"] = "consularId";
3236
+ DocumentType["Dl"] = "dl";
3237
+ DocumentType["DlPublicServicesCard"] = "dlPublicServicesCard";
3238
+ DocumentType["EmploymentPass"] = "employmentPass";
3239
+ DocumentType["FinCard"] = "finCard";
3240
+ DocumentType["Id"] = "id";
3241
+ DocumentType["MultipurposeId"] = "multipurposeId";
3242
+ DocumentType["MyKad"] = "myKad";
3243
+ DocumentType["MyKid"] = "myKid";
3244
+ DocumentType["MyPr"] = "myPR";
3245
+ DocumentType["MyTentera"] = "myTentera";
3246
+ DocumentType["PanCard"] = "panCard";
3247
+ DocumentType["ProfessionalId"] = "professionalId";
3248
+ DocumentType["PublicServicesCard"] = "publicServicesCard";
3249
+ DocumentType["ResidencePermit"] = "residencePermit";
3250
+ DocumentType["ResidentId"] = "residentId";
3251
+ DocumentType["TemporaryResidencePermit"] = "temporaryResidencePermit";
3252
+ DocumentType["VoterId"] = "voterId";
3253
+ DocumentType["WorkPermit"] = "workPermit";
3254
+ DocumentType["IKad"] = "iKad";
3255
+ DocumentType["MilitaryId"] = "militaryId";
3256
+ DocumentType["MyKas"] = "myKas";
3257
+ DocumentType["DocialSecurityCard"] = "docialSecurityCard";
3258
+ DocumentType["HealthInsuranceCard"] = "healthInsuranceCard";
3259
+ DocumentType["Passport"] = "passport";
3260
+ DocumentType["SPass"] = "sPass";
3261
+ DocumentType["AddressCard"] = "addressCard";
3262
+ DocumentType["AlienId"] = "alienId";
3263
+ DocumentType["AlienPassport"] = "alienPassport";
3264
+ DocumentType["GreenCard"] = "greenCard";
3265
+ DocumentType["MinorsId"] = "minorsId";
3266
+ DocumentType["PostalId"] = "postalId";
3267
+ DocumentType["ProfessionalDl"] = "professionalDl";
3268
+ DocumentType["TaxId"] = "taxId";
3269
+ DocumentType["WeaponPermit"] = "weaponPermit";
3270
+ DocumentType["Visa"] = "visa";
3271
+ DocumentType["BorderCrossingCard"] = "borderCrossingCard";
3272
+ DocumentType["DriverCard"] = "driverCard";
3273
+ DocumentType["GlobalEntryCard"] = "globalEntryCard";
3274
+ DocumentType["MyPolis"] = "mypolis";
3275
+ DocumentType["NexusCard"] = "nexusCard";
3276
+ DocumentType["PassportCard"] = "passportCard";
3277
+ DocumentType["ProofOfAgeCard"] = "proofOfAgeCard";
3278
+ DocumentType["RefugeeId"] = "refugeeId";
3279
+ DocumentType["TribalId"] = "tribalId";
3280
+ DocumentType["VeteranId"] = "veteranId";
3281
+ DocumentType["CitizenshipCertificate"] = "citizenshipCertificate";
3282
+ DocumentType["MyNumberCard"] = "myNumberCard";
3283
+ DocumentType["ConsularPassport"] = "consularPassport";
3284
+ DocumentType["MinorsPassport"] = "minorsPassport";
3285
+ DocumentType["MinorsPublicServicesCard"] = "minorsPublicServicesCard";
3286
+ DocumentType["DrivingPriviligeCard"] = "drivingPriviligeCard";
3287
+ DocumentType["AsylumRequest"] = "asylumRequest";
3288
+ DocumentType["DriverQualificationCard"] = "driverQualificationCard";
3289
+ DocumentType["ProvisionalDl"] = "provisionalDl";
3290
+ DocumentType["RefugeePassport"] = "refugeePassport";
3291
+ DocumentType["SpecialId"] = "specialId";
3292
+ DocumentType["UniformedServicesId"] = "uniformedServicesId";
3293
+ DocumentType["ImmigrantVisa"] = "immigrantVisa";
3294
+ DocumentType["ConsularVoterId"] = "consularVoterId";
3295
+ DocumentType["TwicCard"] = "twicCard";
3296
+ DocumentType["ExitEntryPermit"] = "exitEntryPermit";
3297
+ DocumentType["MainlandTravelPermitTaiwan"] = "mainlandTravelPermitTaiwan";
3298
+ DocumentType["NbiClearance"] = "nbiClearance";
3299
+ DocumentType["ProofOfRegistration"] = "proofOfRegistration";
3300
+ DocumentType["TemporaryProtectionPermit"] = "temporaryProtectionPermit";
3301
+ DocumentType["AfghanCitizenCard"] = "afghanCitizenCard";
3302
+ DocumentType["EId"] = "eId";
3303
+ DocumentType["Pass"] = "pass";
3304
+ DocumentType["SisId"] = "sisId";
3305
+ DocumentType["AsicCard"] = "asicCard";
3306
+ DocumentType["BidoonCard"] = "bidoonCard";
3307
+ DocumentType["InterimHealthInsuranceCard"] = "interimHealthInsuranceCard";
3308
+ DocumentType["NonVoterId"] = "nonVoterId";
3309
+ DocumentType["ReciprocalHealthInsuranceCard"] = "reciprocalHealthInsuranceCard";
3310
+ DocumentType["VehicleRegistration"] = "vehicleRegistration";
3311
+ DocumentType["EsaadCard"] = "esaadCard";
3312
+ DocumentType["RegistrationCertificate"] = "registrationCertificate";
3313
+ DocumentType["MedicalMarijuanaId"] = "medicalMarijuanaId";
3314
+ return DocumentType;
3315
+ }({});
3316
+
3317
+ /**
3318
+ * Represents all possible field types that can be extracted from the document.
3319
+ *
3320
+ */
3321
+ export let FieldType = /*#__PURE__*/function (FieldType) {
3322
+ FieldType["AdditionalAddressInformation"] = "additionalAddressInformation";
3323
+ FieldType["AdditionalNameInformation"] = "additionalNameInformation";
3324
+ FieldType["AdditionalOptionalAddressInformation"] = "additionalOptionalAddressInformation";
3325
+ FieldType["AdditionalPersonalIdNumber"] = "additionalPersonalIdNumber";
3326
+ FieldType["Address"] = "address";
3327
+ FieldType["ClassEffectiveDate"] = "classEffectiveDate";
3328
+ FieldType["ClassExpiryDate"] = "classExpiryDate";
3329
+ FieldType["Conditions"] = "conditions";
3330
+ FieldType["DateOfBirth"] = "dateOfBirth";
3331
+ FieldType["DateOfExpiry"] = "dateOfExpiry";
3332
+ FieldType["DateOfIssue"] = "dateOfIssue";
3333
+ FieldType["DocumentAdditionalNumber"] = "documentAdditionalNumber";
3334
+ FieldType["DocumentOptionalAdditionalNumber"] = "documentOptionalAdditionalNumber";
3335
+ FieldType["DocumentNumber"] = "documentNumber";
3336
+ FieldType["Employer"] = "employer";
3337
+ FieldType["Endorsements"] = "endorsements";
3338
+ FieldType["FathersName"] = "fathersName";
3339
+ FieldType["FirstName"] = "firstName";
3340
+ FieldType["FullName"] = "fullName";
3341
+ FieldType["IssuingAuthority"] = "issuingAuthority";
3342
+ FieldType["LastName"] = "lastName";
3343
+ FieldType["LicenseType"] = "licenceType";
3344
+ FieldType["LocalizedName"] = "localizedName";
3345
+ FieldType["MaritalStatus"] = "maritalStatus";
3346
+ FieldType["MothersName"] = "mothersName";
3347
+ FieldType["Mrz"] = "mrz";
3348
+ FieldType["Nationality"] = "nationality";
3349
+ FieldType["PersonalIdNumber"] = "personalIdNumber";
3350
+ FieldType["PlaceOfBirth"] = "placeOfBirth";
3351
+ FieldType["Profession"] = "profession";
3352
+ FieldType["Race"] = "race";
3353
+ FieldType["Religion"] = "religion";
3354
+ FieldType["ResidentialStatus"] = "residentialStatus";
3355
+ FieldType["Restriction"] = "restrictions";
3356
+ FieldType["Sex"] = "sex";
3357
+ FieldType["VehicleClass"] = "vehicleClass";
3358
+ FieldType["BloodType"] = "bloodType";
3359
+ FieldType["Sponsor"] = "sponsor";
3360
+ FieldType["VisaType"] = "visaType";
3361
+ FieldType["DocumentSubtype"] = "documentSubtype";
3362
+ FieldType["Remarks"] = "remarks";
3363
+ FieldType["ResidencePermitType"] = "residencePermitType";
3364
+ FieldType["ManufacturingYear"] = "manufacturingYear";
3365
+ FieldType["VehicleType"] = "vehicleType";
3366
+ FieldType["DependentDateOfBirth"] = "dependentDateOfBirth";
3367
+ FieldType["DependentSex"] = "dependentSex";
3368
+ FieldType["DependentDocumentNumber"] = "dependentDocumentNumber";
3369
+ FieldType["DependentFullName"] = "dependentFullName";
3370
+ FieldType["EligibilityCategory"] = "eligibilityCategory";
3371
+ FieldType["SpecificDocumentValidity"] = "specificDocumentValidity";
3372
+ FieldType["VehnicleOwner"] = "vehicleOwner";
3373
+ return FieldType;
3374
+ }({});
3375
+ //# sourceMappingURL=types.js.map