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