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