scandit-react-native-datacapture-id 7.6.0 → 8.0.0-beta.1
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/android/build.gradle +1 -1
- package/android/src/main/kotlin/com/scandit/datacapture/reactnative/id/ScanditDataCaptureIdModule.kt +38 -24
- package/android/src/main/kotlin/com/scandit/datacapture/reactnative/id/ScanditDataCaptureIdPackage.kt +1 -2
- package/dist/dts/index.d.ts +3 -2
- package/dist/id.js +585 -467
- package/dist/id.js.map +1 -1
- package/dist/index.js +137 -146
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/ios/Sources/ScanditDataCaptureId.m +19 -11
- package/ios/Sources/ScanditDataCaptureId.swift +54 -43
- package/package.json +10 -10
- package/scandit-react-native-datacapture-id.podspec +2 -2
- package/dist/dts/native/IdCaptureListenerProxy.d.ts +0 -14
- package/dist/dts/native/IdCaptureProxy.d.ts +0 -11
package/dist/id.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { nameForSerialization,
|
|
1
|
+
import { nameForSerialization, ignoreFromSerializationIfNull, DefaultSerializeable, FactoryMaker, Feedback, Sound, CameraSettings, Color, BaseNewController, ignoreFromSerialization, Brush, EventDataParser } from 'scandit-react-native-datacapture-core/dist/core';
|
|
2
2
|
|
|
3
3
|
class DateResult {
|
|
4
4
|
get day() { return this.json.day; }
|
|
@@ -11,7 +11,7 @@ class DateResult {
|
|
|
11
11
|
return new Date(Date.UTC(this.json.year, this.json.month ? this.json.month - 1 : 1, this.json.day || 1));
|
|
12
12
|
}
|
|
13
13
|
static fromJSON(json) {
|
|
14
|
-
if (json === null) {
|
|
14
|
+
if (json === null || json === undefined) {
|
|
15
15
|
return null;
|
|
16
16
|
}
|
|
17
17
|
const dateResult = new DateResult();
|
|
@@ -20,6 +20,17 @@ class DateResult {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
var DataConsistencyCheck;
|
|
24
|
+
(function (DataConsistencyCheck) {
|
|
25
|
+
DataConsistencyCheck["IssuingCountryComparison"] = "issuingCountryComparison";
|
|
26
|
+
DataConsistencyCheck["IssuingJurisdictionComparison"] = "issuingJurisdictionComparison";
|
|
27
|
+
DataConsistencyCheck["FullNameComparison"] = "fullNameComparison";
|
|
28
|
+
DataConsistencyCheck["DocumentNumberComparison"] = "documentNumberComparison";
|
|
29
|
+
DataConsistencyCheck["DateOfBirthComparison"] = "dateOfBirthComparison";
|
|
30
|
+
DataConsistencyCheck["DateOfExpiryComparison"] = "dateOfExpiryComparison";
|
|
31
|
+
DataConsistencyCheck["DateOfIssueComparison"] = "dateOfIssueComparison";
|
|
32
|
+
})(DataConsistencyCheck || (DataConsistencyCheck = {}));
|
|
33
|
+
|
|
23
34
|
var IdAnonymizationMode;
|
|
24
35
|
(function (IdAnonymizationMode) {
|
|
25
36
|
IdAnonymizationMode["None"] = "none";
|
|
@@ -338,7 +349,6 @@ var RegionSpecificSubtype;
|
|
|
338
349
|
RegionSpecificSubtype["ApecBusinessTravelCard"] = "apecBusinessTravelCard";
|
|
339
350
|
RegionSpecificSubtype["PakistanAfghanCitizenCard"] = "pakistanAfghanCitizenCard";
|
|
340
351
|
RegionSpecificSubtype["SingaporeFinCard"] = "singaporeFinCard";
|
|
341
|
-
RegionSpecificSubtype["UsGreenCard"] = "usGreenCard";
|
|
342
352
|
RegionSpecificSubtype["MalaysiaIkad"] = "malaysiaIkad";
|
|
343
353
|
RegionSpecificSubtype["MalaysiaMykad"] = "malaysiaMykad";
|
|
344
354
|
RegionSpecificSubtype["MalaysiaMypr"] = "malaysiaMypr";
|
|
@@ -505,6 +515,13 @@ __decorate([
|
|
|
505
515
|
nameForSerialization('years')
|
|
506
516
|
], Duration.prototype, "_years", void 0);
|
|
507
517
|
|
|
518
|
+
var Sex;
|
|
519
|
+
(function (Sex) {
|
|
520
|
+
Sex["Female"] = "female";
|
|
521
|
+
Sex["Male"] = "male";
|
|
522
|
+
Sex["Unspecified"] = "unspecified";
|
|
523
|
+
})(Sex || (Sex = {}));
|
|
524
|
+
|
|
508
525
|
function getIdDefaults() {
|
|
509
526
|
return FactoryMaker.getInstance('IdDefaults');
|
|
510
527
|
}
|
|
@@ -515,6 +532,8 @@ function parseIdDefaults(jsonDefaults) {
|
|
|
515
532
|
idCaptured: Feedback.fromJSON(JSON.parse(jsonDefaults.IdCaptureFeedback).idCaptured),
|
|
516
533
|
idRejected: Feedback.fromJSON(JSON.parse(jsonDefaults.IdCaptureFeedback).idRejected),
|
|
517
534
|
},
|
|
535
|
+
DefaultSuccessSound: Sound.fromJSON(JSON.parse(jsonDefaults.defaultSuccessSound)),
|
|
536
|
+
DefaultFailureSound: Sound.fromJSON(JSON.parse(jsonDefaults.defaultFailureSound)),
|
|
518
537
|
RecommendedCameraSettings: CameraSettings
|
|
519
538
|
.fromJSON(jsonDefaults.RecommendedCameraSettings),
|
|
520
539
|
IdCaptureOverlayDefaults: {
|
|
@@ -539,6 +558,8 @@ function parseIdDefaults(jsonDefaults) {
|
|
|
539
558
|
.fromJSON(jsonDefaults.IdCaptureOverlay.DefaultRejectedBrush.strokeColor),
|
|
540
559
|
strokeWidth: jsonDefaults.IdCaptureOverlay.DefaultRejectedBrush.strokeWidth,
|
|
541
560
|
},
|
|
561
|
+
defaultIdLayoutStyle: jsonDefaults.IdCaptureOverlay.defaultIdLayoutStyle,
|
|
562
|
+
defaultIdLayoutLineStyle: jsonDefaults.IdCaptureOverlay.defaultIdLayoutLineStyle,
|
|
542
563
|
},
|
|
543
564
|
IdCaptureSettings: {
|
|
544
565
|
anonymizationMode: jsonDefaults.IdCaptureSettings.anonymizationMode,
|
|
@@ -570,9 +591,6 @@ var AamvaBarcodeVerificationStatus;
|
|
|
570
591
|
})(AamvaBarcodeVerificationStatus || (AamvaBarcodeVerificationStatus = {}));
|
|
571
592
|
|
|
572
593
|
class AamvaBarcodeVerificationResult {
|
|
573
|
-
/**
|
|
574
|
-
* @deprecated
|
|
575
|
-
*/
|
|
576
594
|
get allChecksPassed() { return this.json.allChecksPassed; }
|
|
577
595
|
get status() {
|
|
578
596
|
return this._status;
|
|
@@ -595,283 +613,11 @@ class AamvaBarcodeVerificationResult {
|
|
|
595
613
|
}
|
|
596
614
|
}
|
|
597
615
|
|
|
598
|
-
class IdCaptureController extends BaseController {
|
|
599
|
-
// This is also accpeting null here because the AamvaBarcodeVerifier is using this controller.
|
|
600
|
-
// Once we remove the AamvaBarcodeVerifier, we can remove the null here.
|
|
601
|
-
constructor(idCapture = null) {
|
|
602
|
-
super('IdCaptureProxy');
|
|
603
|
-
this.idCapture = null;
|
|
604
|
-
this.idCapture = idCapture;
|
|
605
|
-
}
|
|
606
|
-
reset() {
|
|
607
|
-
return this._proxy.resetMode();
|
|
608
|
-
}
|
|
609
|
-
createContextForBarcodeVerification(context) {
|
|
610
|
-
return this._proxy.createContextForBarcodeVerification(JSON.stringify(context.toJSON()));
|
|
611
|
-
}
|
|
612
|
-
verifyCapturedIdAsync(capturedId) {
|
|
613
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
614
|
-
const result = yield this._proxy.verifyCapturedIdAsync(capturedId);
|
|
615
|
-
if (result == null) {
|
|
616
|
-
return null;
|
|
617
|
-
}
|
|
618
|
-
return result.data;
|
|
619
|
-
});
|
|
620
|
-
}
|
|
621
|
-
setModeEnabledState(enabled) {
|
|
622
|
-
this._proxy.setModeEnabledState(enabled);
|
|
623
|
-
}
|
|
624
|
-
updateIdCaptureMode() {
|
|
625
|
-
if (this.idCapture == null) {
|
|
626
|
-
throw new Error('IdCaptureController is not initialized with an IdCapture instance');
|
|
627
|
-
}
|
|
628
|
-
return this._proxy.updateIdCaptureMode(JSON.stringify(this.idCapture.toJSON()));
|
|
629
|
-
}
|
|
630
|
-
applyIdCaptureModeSettings(newSettings) {
|
|
631
|
-
return this._proxy.applyIdCaptureModeSettings(JSON.stringify(newSettings.toJSON()));
|
|
632
|
-
}
|
|
633
|
-
updateFeedback(feedback) {
|
|
634
|
-
return this._proxy.updateFeedback(JSON.stringify(feedback.toJSON()));
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
var IdCaptureListenerEvents;
|
|
639
|
-
(function (IdCaptureListenerEvents) {
|
|
640
|
-
IdCaptureListenerEvents["didCapture"] = "IdCaptureListener.didCaptureId";
|
|
641
|
-
IdCaptureListenerEvents["didReject"] = "IdCaptureListener.didRejectId";
|
|
642
|
-
})(IdCaptureListenerEvents || (IdCaptureListenerEvents = {}));
|
|
643
|
-
|
|
644
|
-
class MRZResult {
|
|
645
|
-
get documentCode() { return this.json.documentCode; }
|
|
646
|
-
get namesAreTruncated() { return this.json.namesAreTruncated; }
|
|
647
|
-
/**
|
|
648
|
-
* @deprecated Use optionalDataInLine1 and optionalDataInLine2 instead. This property will be removed in SDK version 8.0.
|
|
649
|
-
*/
|
|
650
|
-
get optional() { return this.json.optional; }
|
|
651
|
-
/**
|
|
652
|
-
* @deprecated Use optionalDataInLine1 and optionalDataInLine2 instead. This property will be removed in SDK version 8.0.
|
|
653
|
-
*/
|
|
654
|
-
get optional1() { return this.json.optional1; }
|
|
655
|
-
get optionalDataInLine1() { return this.json.optionalDataInLine1; }
|
|
656
|
-
get optionalDataInLine2() { return this.json.optionalDataInLine2; }
|
|
657
|
-
get capturedMrz() { return this.json.capturedMrz; }
|
|
658
|
-
get personalIdNumber() { return this.json.personalIdNumber; }
|
|
659
|
-
get renewalTimes() { return this.json.renewalTimes; }
|
|
660
|
-
get fullNameSimplifiedChinese() { return this.json.fullNameSimplifiedChinese; }
|
|
661
|
-
get omittedCharacterCountInGbkName() { return this.json.omittedCharacterCountInGbkName; }
|
|
662
|
-
get omittedNameCount() { return this.json.omittedNameCount; }
|
|
663
|
-
get issuingAuthorityCode() { return this.json.issuingAuthorityCode; }
|
|
664
|
-
get passportIssuerIso() { return this.json.passportIssuerIso; }
|
|
665
|
-
get passportNumber() { return this.json.passportNumber; }
|
|
666
|
-
get passportDateOfExpiry() {
|
|
667
|
-
return DateResult.fromJSON(this.json.passportDateOfExpiry);
|
|
668
|
-
}
|
|
669
|
-
static fromJSON(json) {
|
|
670
|
-
const result = new MRZResult();
|
|
671
|
-
result.json = json;
|
|
672
|
-
return result;
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
class CommonCapturedIdFields {
|
|
677
|
-
get firstName() { return this.json.firstName; }
|
|
678
|
-
get lastName() { return this.json.lastName; }
|
|
679
|
-
get fullName() { return this.json.fullName; }
|
|
680
|
-
get secondaryLastName() { return this.json.secondaryLastName; }
|
|
681
|
-
get sex() { return this.json.sex; }
|
|
682
|
-
get dateOfBirth() {
|
|
683
|
-
return DateResult.fromJSON(this.json.dateOfBirth);
|
|
684
|
-
}
|
|
685
|
-
get age() { return this.json.age; }
|
|
686
|
-
get isExpired() { return this.json.isExpired; }
|
|
687
|
-
get nationality() { return this.json.nationality; }
|
|
688
|
-
get address() { return this.json.address; }
|
|
689
|
-
get documentAdditionalNumber() { return this.json.documentAdditionalNumber; }
|
|
690
|
-
get documentType() { return this.json.documentType; }
|
|
691
|
-
get documentSubtype() { return this.json.documentSubtype; }
|
|
692
|
-
get documentNumber() { return this.json.documentNumber; }
|
|
693
|
-
get issuingCountry() { return this.json.issuingCountry; }
|
|
694
|
-
get issuingCountryIso() { return this.json.issuingCountryIso; }
|
|
695
|
-
get dateOfExpiry() {
|
|
696
|
-
return DateResult.fromJSON(this.json.dateOfExpiry);
|
|
697
|
-
}
|
|
698
|
-
get dateOfIssue() {
|
|
699
|
-
return DateResult.fromJSON(this.json.dateOfIssue);
|
|
700
|
-
}
|
|
701
|
-
static fromJSON(json, existingInstance) {
|
|
702
|
-
if (json === null) {
|
|
703
|
-
return null;
|
|
704
|
-
}
|
|
705
|
-
const firstName = json.firstName;
|
|
706
|
-
const lastName = json.lastName;
|
|
707
|
-
const fullName = json.fullName;
|
|
708
|
-
const secondaryLastName = json.secondaryLastName;
|
|
709
|
-
const sex = json.sex;
|
|
710
|
-
const dateOfBirth = DateResult.fromJSON(json.dateOfBirth);
|
|
711
|
-
const age = json.age;
|
|
712
|
-
const isExpired = json.isExpired;
|
|
713
|
-
const nationality = json.nationality;
|
|
714
|
-
const address = json.address;
|
|
715
|
-
const documentType = json.documentType;
|
|
716
|
-
const documentSubtype = json.documentSubtype;
|
|
717
|
-
const documentNumber = json.documentNumber;
|
|
718
|
-
const issuingCountry = json.issuingCountry;
|
|
719
|
-
const issuingCountryIso = json.issuingCountryIso;
|
|
720
|
-
const dateOfExpiry = DateResult.fromJSON(json.dateOfExpiry);
|
|
721
|
-
const dateOfIssue = DateResult.fromJSON(json.dateOfIssue);
|
|
722
|
-
if (existingInstance) {
|
|
723
|
-
if (!existingInstance.firstName) {
|
|
724
|
-
json.firstName = firstName;
|
|
725
|
-
}
|
|
726
|
-
if (!existingInstance.lastName) {
|
|
727
|
-
json.lastName = lastName;
|
|
728
|
-
}
|
|
729
|
-
if (!existingInstance.fullName) {
|
|
730
|
-
json.fullName = fullName;
|
|
731
|
-
}
|
|
732
|
-
if (!existingInstance.secondaryLastName) {
|
|
733
|
-
json.secondaryLastName = secondaryLastName;
|
|
734
|
-
}
|
|
735
|
-
if (!existingInstance.sex) {
|
|
736
|
-
json.sex = sex;
|
|
737
|
-
}
|
|
738
|
-
if (!existingInstance.dateOfBirth) {
|
|
739
|
-
json.dateOfBirth = dateOfBirth;
|
|
740
|
-
}
|
|
741
|
-
if (!existingInstance.age) {
|
|
742
|
-
json.age = age;
|
|
743
|
-
}
|
|
744
|
-
if (!existingInstance.isExpired) {
|
|
745
|
-
json.isExpired = isExpired;
|
|
746
|
-
}
|
|
747
|
-
if (!existingInstance.nationality) {
|
|
748
|
-
json.nationality = nationality;
|
|
749
|
-
}
|
|
750
|
-
if (!existingInstance.address) {
|
|
751
|
-
json.address = address;
|
|
752
|
-
}
|
|
753
|
-
if (!existingInstance.documentType) {
|
|
754
|
-
json.documentType = documentType;
|
|
755
|
-
}
|
|
756
|
-
if (!existingInstance.documentSubtype) {
|
|
757
|
-
json.documentSubtype = documentSubtype;
|
|
758
|
-
}
|
|
759
|
-
if (!existingInstance.documentNumber) {
|
|
760
|
-
json.documentNumber = documentNumber;
|
|
761
|
-
}
|
|
762
|
-
if (!existingInstance.issuingCountry) {
|
|
763
|
-
json.issuingCountry = issuingCountry;
|
|
764
|
-
}
|
|
765
|
-
if (!existingInstance.issuingCountryIso) {
|
|
766
|
-
json.issuingCountryIso = issuingCountryIso;
|
|
767
|
-
}
|
|
768
|
-
if (!existingInstance.dateOfExpiry) {
|
|
769
|
-
json.dateOfExpiry = dateOfExpiry;
|
|
770
|
-
}
|
|
771
|
-
if (!existingInstance.dateOfIssue) {
|
|
772
|
-
json.dateOfIssue = dateOfIssue;
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
const object = new CommonCapturedIdFields();
|
|
776
|
-
object.json = json;
|
|
777
|
-
return object;
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
class VIZResult {
|
|
782
|
-
get additionalAddressInformation() {
|
|
783
|
-
return this.json.additionalAddressInformation;
|
|
784
|
-
}
|
|
785
|
-
get additionalNameInformation() {
|
|
786
|
-
return this.json.additionalNameInformation;
|
|
787
|
-
}
|
|
788
|
-
get documentAdditionalNumber() {
|
|
789
|
-
return this.json.documentAdditionalNumber;
|
|
790
|
-
}
|
|
791
|
-
get employer() {
|
|
792
|
-
return this.json.employer;
|
|
793
|
-
}
|
|
794
|
-
get issuingAuthority() {
|
|
795
|
-
return this.json.issuingAuthority;
|
|
796
|
-
}
|
|
797
|
-
get issuingJurisdiction() {
|
|
798
|
-
return this.json.issuingJurisdiction;
|
|
799
|
-
}
|
|
800
|
-
get issuingJurisdictionIso() {
|
|
801
|
-
return this.json.issuingJurisdictionIso;
|
|
802
|
-
}
|
|
803
|
-
get maritalStatus() {
|
|
804
|
-
return this.json.maritalStatus;
|
|
805
|
-
}
|
|
806
|
-
get personalIdNumber() {
|
|
807
|
-
return this.json.personalIdNumber;
|
|
808
|
-
}
|
|
809
|
-
get placeOfBirth() {
|
|
810
|
-
return this.json.placeOfBirth;
|
|
811
|
-
}
|
|
812
|
-
get profession() {
|
|
813
|
-
return this.json.profession;
|
|
814
|
-
}
|
|
815
|
-
get race() {
|
|
816
|
-
return this.json.race;
|
|
817
|
-
}
|
|
818
|
-
get religion() {
|
|
819
|
-
return this.json.religion;
|
|
820
|
-
}
|
|
821
|
-
get residentialStatus() {
|
|
822
|
-
return this.json.residentialStatus;
|
|
823
|
-
}
|
|
824
|
-
get usRealIdStatus() {
|
|
825
|
-
return this.json.usRealIdStatus;
|
|
826
|
-
}
|
|
827
|
-
get capturedSides() {
|
|
828
|
-
return this.json.capturedSides;
|
|
829
|
-
}
|
|
830
|
-
get isBackSideCaptureSupported() {
|
|
831
|
-
return this.json.isBackSideCaptureSupported;
|
|
832
|
-
}
|
|
833
|
-
get bloodType() {
|
|
834
|
-
return this.json.bloodType;
|
|
835
|
-
}
|
|
836
|
-
get sponsor() {
|
|
837
|
-
return this.json.sponsor;
|
|
838
|
-
}
|
|
839
|
-
get mothersName() {
|
|
840
|
-
return this.json.mothersName;
|
|
841
|
-
}
|
|
842
|
-
get fathersName() {
|
|
843
|
-
return this.json.fathersName;
|
|
844
|
-
}
|
|
845
|
-
get passportNumber() {
|
|
846
|
-
return this.json.passportNumber;
|
|
847
|
-
}
|
|
848
|
-
get visaNumber() {
|
|
849
|
-
return this.json.visaNumber;
|
|
850
|
-
}
|
|
851
|
-
get firstName() {
|
|
852
|
-
return this.json.firstName;
|
|
853
|
-
}
|
|
854
|
-
get lastName() {
|
|
855
|
-
return this.json.lastName;
|
|
856
|
-
}
|
|
857
|
-
get secondaryLastName() {
|
|
858
|
-
return this.json.secondaryLastName;
|
|
859
|
-
}
|
|
860
|
-
get fullName() {
|
|
861
|
-
return this.json.fullName;
|
|
862
|
-
}
|
|
863
|
-
static fromJSON(json) {
|
|
864
|
-
const result = new VIZResult();
|
|
865
|
-
result.json = json;
|
|
866
|
-
return result;
|
|
867
|
-
}
|
|
868
|
-
}
|
|
869
|
-
|
|
870
616
|
class ProfessionalDrivingPermit {
|
|
871
617
|
get dateOfExpiry() { return DateResult.fromJSON(this.json.dateOfExpiry); }
|
|
872
618
|
get codes() { return this.json.codes; }
|
|
873
619
|
static fromJSON(json) {
|
|
874
|
-
if (json === null) {
|
|
620
|
+
if (json === null || json === undefined) {
|
|
875
621
|
return null;
|
|
876
622
|
}
|
|
877
623
|
const object = new ProfessionalDrivingPermit();
|
|
@@ -1132,23 +878,207 @@ class BarcodeResult {
|
|
|
1132
878
|
get vehicleClass() {
|
|
1133
879
|
return this.json.vehicleClass;
|
|
1134
880
|
}
|
|
1135
|
-
get vehicleRestrictions() {
|
|
1136
|
-
return this.json.vehicleRestrictions.map(json => VehicleRestriction.fromJSON(json));
|
|
881
|
+
get vehicleRestrictions() {
|
|
882
|
+
return this.json.vehicleRestrictions.map(json => VehicleRestriction.fromJSON(json));
|
|
883
|
+
}
|
|
884
|
+
get version() {
|
|
885
|
+
return this.json.version;
|
|
886
|
+
}
|
|
887
|
+
get weightKg() {
|
|
888
|
+
return this.json.weightKg;
|
|
889
|
+
}
|
|
890
|
+
get weightLbs() {
|
|
891
|
+
return this.json.weightLbs;
|
|
892
|
+
}
|
|
893
|
+
get isRealId() {
|
|
894
|
+
return this.json.isRealId;
|
|
895
|
+
}
|
|
896
|
+
get barcodeDataElements() {
|
|
897
|
+
return this.json.barcodeDataElements;
|
|
898
|
+
}
|
|
899
|
+
// Common Fields
|
|
900
|
+
get firstName() { return this.json.firstName; }
|
|
901
|
+
get lastName() { return this.json.lastName; }
|
|
902
|
+
get fullName() { return this.json.fullName; }
|
|
903
|
+
get sex() { return this.json.sex; }
|
|
904
|
+
get dateOfBirth() { return DateResult.fromJSON(this.json.dateOfBirth); }
|
|
905
|
+
get nationality() { return this.json.nationality; }
|
|
906
|
+
get address() { return this.json.address; }
|
|
907
|
+
get documentNumber() { return this.json.documentNumber; }
|
|
908
|
+
get dateOfExpiry() { return DateResult.fromJSON(this.json.dateOfExpiry); }
|
|
909
|
+
get dateOfIssue() { return DateResult.fromJSON(this.json.dateOfIssue); }
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
class MRZResult {
|
|
913
|
+
get documentCode() { return this.json.documentCode; }
|
|
914
|
+
get namesAreTruncated() { return this.json.namesAreTruncated; }
|
|
915
|
+
get optionalDataInLine1() { return this.json.optionalDataInLine1; }
|
|
916
|
+
get optionalDataInLine2() { return this.json.optionalDataInLine2; }
|
|
917
|
+
get capturedMrz() { return this.json.capturedMrz; }
|
|
918
|
+
get personalIdNumber() { return this.json.personalIdNumber; }
|
|
919
|
+
get renewalTimes() { return this.json.renewalTimes; }
|
|
920
|
+
get fullNameSimplifiedChinese() { return this.json.fullNameSimplifiedChinese; }
|
|
921
|
+
get omittedCharacterCountInGbkName() { return this.json.omittedCharacterCountInGbkName; }
|
|
922
|
+
get omittedNameCount() { return this.json.omittedNameCount; }
|
|
923
|
+
get issuingAuthorityCode() { return this.json.issuingAuthorityCode; }
|
|
924
|
+
get passportIssuerIso() { return this.json.passportIssuerIso; }
|
|
925
|
+
get passportNumber() { return this.json.passportNumber; }
|
|
926
|
+
get passportDateOfExpiry() {
|
|
927
|
+
return DateResult.fromJSON(this.json.passportDateOfExpiry);
|
|
928
|
+
}
|
|
929
|
+
// Common Fields
|
|
930
|
+
get firstName() { return this.json.firstName; }
|
|
931
|
+
get lastName() { return this.json.lastName; }
|
|
932
|
+
get fullName() { return this.json.fullName; }
|
|
933
|
+
get sex() { return this.json.sex; }
|
|
934
|
+
get dateOfBirth() { return DateResult.fromJSON(this.json.dateOfBirth); }
|
|
935
|
+
get nationality() { return this.json.nationality; }
|
|
936
|
+
get address() { return this.json.address; }
|
|
937
|
+
get documentNumber() { return this.json.documentNumber; }
|
|
938
|
+
get dateOfExpiry() { return DateResult.fromJSON(this.json.dateOfExpiry); }
|
|
939
|
+
get dateOfIssue() { return DateResult.fromJSON(this.json.dateOfIssue); }
|
|
940
|
+
static fromJSON(json) {
|
|
941
|
+
const result = new MRZResult();
|
|
942
|
+
result.json = json;
|
|
943
|
+
return result;
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
class DrivingLicenseCategory {
|
|
948
|
+
get code() { return this.json.code; }
|
|
949
|
+
get dateOfIssue() {
|
|
950
|
+
return DateResult.fromJSON(this.json.dateOfIssue);
|
|
951
|
+
}
|
|
952
|
+
get dateOfExpiry() {
|
|
953
|
+
return DateResult.fromJSON(this.json.dateOfExpiry);
|
|
954
|
+
}
|
|
955
|
+
static fromJSON(json) {
|
|
956
|
+
if (json === null || json === undefined) {
|
|
957
|
+
return null;
|
|
958
|
+
}
|
|
959
|
+
const result = new DrivingLicenseCategory();
|
|
960
|
+
result.json = json;
|
|
961
|
+
return result;
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
class DrivingLicenseDetails {
|
|
966
|
+
constructor() {
|
|
967
|
+
this._drivingLicenseCategories = [];
|
|
968
|
+
}
|
|
969
|
+
get drivingLicenseCategories() {
|
|
970
|
+
if (this._drivingLicenseCategories.length === 0) {
|
|
971
|
+
this._drivingLicenseCategories = this.json.drivingLicenseCategories.map(categoryJson => DrivingLicenseCategory.fromJSON(categoryJson)).filter(category => category !== null);
|
|
972
|
+
}
|
|
973
|
+
return this._drivingLicenseCategories;
|
|
974
|
+
}
|
|
975
|
+
get restrictions() {
|
|
976
|
+
return this.json.restrictions;
|
|
977
|
+
}
|
|
978
|
+
get endorsements() {
|
|
979
|
+
return this.json.endorsements;
|
|
980
|
+
}
|
|
981
|
+
static fromJSON(json) {
|
|
982
|
+
if (json === null) {
|
|
983
|
+
return null;
|
|
984
|
+
}
|
|
985
|
+
const result = new DrivingLicenseDetails();
|
|
986
|
+
result.json = json;
|
|
987
|
+
return result;
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
class VIZResult {
|
|
992
|
+
get additionalAddressInformation() {
|
|
993
|
+
return this.json.additionalAddressInformation;
|
|
994
|
+
}
|
|
995
|
+
get additionalNameInformation() {
|
|
996
|
+
return this.json.additionalNameInformation;
|
|
997
|
+
}
|
|
998
|
+
get documentAdditionalNumber() {
|
|
999
|
+
return this.json.documentAdditionalNumber;
|
|
1000
|
+
}
|
|
1001
|
+
get employer() {
|
|
1002
|
+
return this.json.employer;
|
|
1003
|
+
}
|
|
1004
|
+
get issuingAuthority() {
|
|
1005
|
+
return this.json.issuingAuthority;
|
|
1006
|
+
}
|
|
1007
|
+
get issuingJurisdiction() {
|
|
1008
|
+
return this.json.issuingJurisdiction;
|
|
1009
|
+
}
|
|
1010
|
+
get issuingJurisdictionIso() {
|
|
1011
|
+
return this.json.issuingJurisdictionIso;
|
|
1012
|
+
}
|
|
1013
|
+
get maritalStatus() {
|
|
1014
|
+
return this.json.maritalStatus;
|
|
1015
|
+
}
|
|
1016
|
+
get personalIdNumber() {
|
|
1017
|
+
return this.json.personalIdNumber;
|
|
1018
|
+
}
|
|
1019
|
+
get placeOfBirth() {
|
|
1020
|
+
return this.json.placeOfBirth;
|
|
1021
|
+
}
|
|
1022
|
+
get profession() {
|
|
1023
|
+
return this.json.profession;
|
|
1024
|
+
}
|
|
1025
|
+
get race() {
|
|
1026
|
+
return this.json.race;
|
|
1027
|
+
}
|
|
1028
|
+
get religion() {
|
|
1029
|
+
return this.json.religion;
|
|
1030
|
+
}
|
|
1031
|
+
get residentialStatus() {
|
|
1032
|
+
return this.json.residentialStatus;
|
|
1033
|
+
}
|
|
1034
|
+
get usRealIdStatus() {
|
|
1035
|
+
return this.json.usRealIdStatus;
|
|
1036
|
+
}
|
|
1037
|
+
get capturedSides() {
|
|
1038
|
+
return this.json.capturedSides;
|
|
1039
|
+
}
|
|
1040
|
+
get isBackSideCaptureSupported() {
|
|
1041
|
+
return this.json.isBackSideCaptureSupported;
|
|
1042
|
+
}
|
|
1043
|
+
get bloodType() {
|
|
1044
|
+
return this.json.bloodType;
|
|
1045
|
+
}
|
|
1046
|
+
get sponsor() {
|
|
1047
|
+
return this.json.sponsor;
|
|
1048
|
+
}
|
|
1049
|
+
get mothersName() {
|
|
1050
|
+
return this.json.mothersName;
|
|
1051
|
+
}
|
|
1052
|
+
get fathersName() {
|
|
1053
|
+
return this.json.fathersName;
|
|
1137
1054
|
}
|
|
1138
|
-
get
|
|
1139
|
-
return this.json.
|
|
1055
|
+
get passportNumber() {
|
|
1056
|
+
return this.json.passportNumber;
|
|
1140
1057
|
}
|
|
1141
|
-
get
|
|
1142
|
-
return this.json.
|
|
1058
|
+
get visaNumber() {
|
|
1059
|
+
return this.json.visaNumber;
|
|
1143
1060
|
}
|
|
1144
|
-
get
|
|
1145
|
-
return this.json.
|
|
1061
|
+
get vehicleOwner() {
|
|
1062
|
+
return this.json.vehicleOwner;
|
|
1146
1063
|
}
|
|
1147
|
-
get
|
|
1148
|
-
return this.json.
|
|
1064
|
+
get drivingLicenseDetails() {
|
|
1065
|
+
return DrivingLicenseDetails.fromJSON(this.json.drivingLicenseDetails);
|
|
1149
1066
|
}
|
|
1150
|
-
|
|
1151
|
-
|
|
1067
|
+
// Common Fields
|
|
1068
|
+
get firstName() { return this.json.firstName; }
|
|
1069
|
+
get lastName() { return this.json.lastName; }
|
|
1070
|
+
get fullName() { return this.json.fullName; }
|
|
1071
|
+
get sex() { return this.json.sex; }
|
|
1072
|
+
get dateOfBirth() { return DateResult.fromJSON(this.json.dateOfBirth); }
|
|
1073
|
+
get nationality() { return this.json.nationality; }
|
|
1074
|
+
get address() { return this.json.address; }
|
|
1075
|
+
get documentNumber() { return this.json.documentNumber; }
|
|
1076
|
+
get dateOfExpiry() { return DateResult.fromJSON(this.json.dateOfExpiry); }
|
|
1077
|
+
get dateOfIssue() { return DateResult.fromJSON(this.json.dateOfIssue); }
|
|
1078
|
+
static fromJSON(json) {
|
|
1079
|
+
const result = new VIZResult();
|
|
1080
|
+
result.json = json;
|
|
1081
|
+
return result;
|
|
1152
1082
|
}
|
|
1153
1083
|
}
|
|
1154
1084
|
|
|
@@ -1436,60 +1366,177 @@ __decorate([
|
|
|
1436
1366
|
nameForSerialization('documentType')
|
|
1437
1367
|
], VisaIcao.prototype, "_documentType", void 0);
|
|
1438
1368
|
|
|
1439
|
-
class
|
|
1369
|
+
class MobileDocumentResult {
|
|
1440
1370
|
constructor() {
|
|
1441
|
-
this.
|
|
1371
|
+
this._drivingLicenseCategories = [];
|
|
1372
|
+
}
|
|
1373
|
+
get portrait() {
|
|
1374
|
+
return this.json.portrait;
|
|
1375
|
+
}
|
|
1376
|
+
get issuingAuthority() {
|
|
1377
|
+
return this.json.issuingAuthority;
|
|
1378
|
+
}
|
|
1379
|
+
get administrativeNumber() {
|
|
1380
|
+
return this.json.administrativeNumber;
|
|
1381
|
+
}
|
|
1382
|
+
get height() {
|
|
1383
|
+
return this.json.height;
|
|
1384
|
+
}
|
|
1385
|
+
get weight() {
|
|
1386
|
+
return this.json.weight;
|
|
1387
|
+
}
|
|
1388
|
+
get eyeColor() {
|
|
1389
|
+
return this.json.eyeColor;
|
|
1390
|
+
}
|
|
1391
|
+
get hairColor() {
|
|
1392
|
+
return this.json.hairColor;
|
|
1393
|
+
}
|
|
1394
|
+
get birthPlace() {
|
|
1395
|
+
return this.json.birthPlace;
|
|
1396
|
+
}
|
|
1397
|
+
get drivingLicenseCategories() {
|
|
1398
|
+
if (this._drivingLicenseCategories.length === 0) {
|
|
1399
|
+
this._drivingLicenseCategories = this.json.drivingLicenseCategories.map(categoryJson => DrivingLicenseCategory.fromJSON(categoryJson)).filter(category => category !== null);
|
|
1400
|
+
}
|
|
1401
|
+
return this._drivingLicenseCategories;
|
|
1402
|
+
}
|
|
1403
|
+
get residentCity() {
|
|
1404
|
+
return this.json.residentCity;
|
|
1405
|
+
}
|
|
1406
|
+
get residentCountry() {
|
|
1407
|
+
return this.json.residentCountry;
|
|
1442
1408
|
}
|
|
1443
1409
|
get firstName() {
|
|
1444
|
-
return this.
|
|
1410
|
+
return this.json.firstName;
|
|
1445
1411
|
}
|
|
1446
1412
|
get lastName() {
|
|
1447
|
-
return this.
|
|
1413
|
+
return this.json.lastName;
|
|
1448
1414
|
}
|
|
1449
1415
|
get fullName() {
|
|
1450
|
-
return this.
|
|
1451
|
-
}
|
|
1452
|
-
get secondaryLastName() {
|
|
1453
|
-
return this.commonCapturedFields.secondaryLastName;
|
|
1416
|
+
return this.json.fullName;
|
|
1454
1417
|
}
|
|
1455
1418
|
get sex() {
|
|
1456
|
-
return this.
|
|
1419
|
+
return this.json.sex;
|
|
1457
1420
|
}
|
|
1458
1421
|
get dateOfBirth() {
|
|
1459
|
-
return DateResult.fromJSON(this.
|
|
1422
|
+
return DateResult.fromJSON(this.json.dateOfBirth);
|
|
1460
1423
|
}
|
|
1461
1424
|
get age() {
|
|
1462
1425
|
return this.json.age;
|
|
1463
1426
|
}
|
|
1464
|
-
get isExpired() {
|
|
1465
|
-
return this.json.isExpired;
|
|
1466
|
-
}
|
|
1467
1427
|
get nationality() {
|
|
1468
|
-
return this.
|
|
1428
|
+
return this.json.nationality;
|
|
1469
1429
|
}
|
|
1470
1430
|
get address() {
|
|
1471
|
-
return this.
|
|
1472
|
-
}
|
|
1473
|
-
get document() {
|
|
1474
|
-
return this._document;
|
|
1431
|
+
return this.json.address;
|
|
1475
1432
|
}
|
|
1476
1433
|
get issuingCountryIso() {
|
|
1477
|
-
return this.
|
|
1478
|
-
}
|
|
1479
|
-
get issuingCountry() {
|
|
1480
|
-
return this.commonCapturedFields.issuingCountry;
|
|
1434
|
+
return this.json.issuingCountryIso;
|
|
1481
1435
|
}
|
|
1482
|
-
get
|
|
1483
|
-
return this.
|
|
1436
|
+
get issuingJurisdictionIso() {
|
|
1437
|
+
return this.json.issuingJurisdictionIso;
|
|
1484
1438
|
}
|
|
1485
1439
|
get documentNumber() {
|
|
1486
|
-
return this.
|
|
1440
|
+
return this.json.documentNumber;
|
|
1487
1441
|
}
|
|
1488
1442
|
get dateOfExpiry() {
|
|
1489
|
-
return DateResult.fromJSON(this.
|
|
1443
|
+
return DateResult.fromJSON(this.json.dateOfExpiry);
|
|
1490
1444
|
}
|
|
1491
1445
|
get dateOfIssue() {
|
|
1492
|
-
return DateResult.fromJSON(this.
|
|
1446
|
+
return DateResult.fromJSON(this.json.dateOfIssue);
|
|
1447
|
+
}
|
|
1448
|
+
static fromJSON(json) {
|
|
1449
|
+
if (json === null) {
|
|
1450
|
+
return null;
|
|
1451
|
+
}
|
|
1452
|
+
const result = new MobileDocumentResult();
|
|
1453
|
+
result.json = json;
|
|
1454
|
+
return result;
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
class DataConsistencyResult {
|
|
1459
|
+
get allChecksPassed() {
|
|
1460
|
+
return this.json.allChecksPassed;
|
|
1461
|
+
}
|
|
1462
|
+
get failedChecks() {
|
|
1463
|
+
return this.json.failedChecks.map(check => check);
|
|
1464
|
+
}
|
|
1465
|
+
get skippedChecks() {
|
|
1466
|
+
return this.json.skippedChecks.map(check => check);
|
|
1467
|
+
}
|
|
1468
|
+
get passedChecks() {
|
|
1469
|
+
return this.json.passedChecks.map(check => check);
|
|
1470
|
+
}
|
|
1471
|
+
get frontReviewImage() {
|
|
1472
|
+
return this.json.frontReviewImage;
|
|
1473
|
+
}
|
|
1474
|
+
static fromJSON(json) {
|
|
1475
|
+
if (json === null || json === undefined) {
|
|
1476
|
+
return null;
|
|
1477
|
+
}
|
|
1478
|
+
const result = new DataConsistencyResult();
|
|
1479
|
+
result.json = json;
|
|
1480
|
+
return result;
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
class VerificationResult {
|
|
1485
|
+
constructor() {
|
|
1486
|
+
this.json = null;
|
|
1487
|
+
this._dataConsistency = null;
|
|
1488
|
+
this._aamvaBarcodeVerification = null;
|
|
1489
|
+
}
|
|
1490
|
+
get dataConsistency() {
|
|
1491
|
+
var _a;
|
|
1492
|
+
if (this._dataConsistency == null && ((_a = this.json) === null || _a === void 0 ? void 0 : _a.dataConsistency) != null) {
|
|
1493
|
+
this._dataConsistency = DataConsistencyResult.fromJSON(this.json.dataConsistency);
|
|
1494
|
+
}
|
|
1495
|
+
return this._dataConsistency;
|
|
1496
|
+
}
|
|
1497
|
+
get aamvaBarcodeVerification() {
|
|
1498
|
+
var _a;
|
|
1499
|
+
if (this._aamvaBarcodeVerification == null && ((_a = this.json) === null || _a === void 0 ? void 0 : _a.aamvaBarcodeVerification) != null) {
|
|
1500
|
+
this._aamvaBarcodeVerification = AamvaBarcodeVerificationResult.fromJSON(this.json.aamvaBarcodeVerification);
|
|
1501
|
+
}
|
|
1502
|
+
return this._aamvaBarcodeVerification;
|
|
1503
|
+
}
|
|
1504
|
+
static fromJSON(json) {
|
|
1505
|
+
if (json === null || json === undefined) {
|
|
1506
|
+
return new VerificationResult();
|
|
1507
|
+
}
|
|
1508
|
+
const result = new VerificationResult();
|
|
1509
|
+
result.json = json;
|
|
1510
|
+
return result;
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
class CapturedId {
|
|
1515
|
+
constructor() {
|
|
1516
|
+
this._document = null;
|
|
1517
|
+
this._mobileDocument = null;
|
|
1518
|
+
this._verificationResult = null;
|
|
1519
|
+
}
|
|
1520
|
+
get age() {
|
|
1521
|
+
return this.json.age;
|
|
1522
|
+
}
|
|
1523
|
+
get isExpired() {
|
|
1524
|
+
return this.json.isExpired;
|
|
1525
|
+
}
|
|
1526
|
+
get isCitizenPassport() {
|
|
1527
|
+
return this.json.isCitizenPassport;
|
|
1528
|
+
}
|
|
1529
|
+
get document() {
|
|
1530
|
+
return this._document;
|
|
1531
|
+
}
|
|
1532
|
+
get issuingCountryIso() {
|
|
1533
|
+
return this.json.issuingCountryIso;
|
|
1534
|
+
}
|
|
1535
|
+
get issuingCountry() {
|
|
1536
|
+
return this.json.issuingCountry;
|
|
1537
|
+
}
|
|
1538
|
+
get documentAdditionalNumber() {
|
|
1539
|
+
return this.json.documentAdditionalNumber;
|
|
1493
1540
|
}
|
|
1494
1541
|
get barcode() {
|
|
1495
1542
|
if (this._barcodeResult == null && this.json.barcodeResult != null) {
|
|
@@ -1553,20 +1600,45 @@ class CapturedId {
|
|
|
1553
1600
|
get images() {
|
|
1554
1601
|
return this._images;
|
|
1555
1602
|
}
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1603
|
+
get firstName() { return this.json.firstName; }
|
|
1604
|
+
get lastName() { return this.json.lastName; }
|
|
1605
|
+
get fullName() { return this.json.fullName; }
|
|
1606
|
+
get sex() { return this.json.sex; }
|
|
1607
|
+
get dateOfBirth() { return DateResult.fromJSON(this.json.dateOfBirth); }
|
|
1608
|
+
get nationality() { return this.json.nationality; }
|
|
1609
|
+
get address() { return this.json.address; }
|
|
1610
|
+
get documentNumber() { return this.json.documentNumber; }
|
|
1611
|
+
get dateOfExpiry() { return DateResult.fromJSON(this.json.dateOfExpiry); }
|
|
1612
|
+
get dateOfIssue() { return DateResult.fromJSON(this.json.dateOfIssue); }
|
|
1613
|
+
get sexType() {
|
|
1614
|
+
if (this.json.sex) {
|
|
1615
|
+
return this.json.sex;
|
|
1561
1616
|
}
|
|
1562
|
-
|
|
1563
|
-
|
|
1617
|
+
return Sex.Unspecified;
|
|
1618
|
+
}
|
|
1619
|
+
get mobileDocument() {
|
|
1620
|
+
if (this._mobileDocument === null && this.json.mobileDocument !== null) {
|
|
1621
|
+
this._mobileDocument = MobileDocumentResult.fromJSON(this.json.mobileDocument);
|
|
1564
1622
|
}
|
|
1565
|
-
|
|
1566
|
-
|
|
1623
|
+
return this._mobileDocument;
|
|
1624
|
+
}
|
|
1625
|
+
get verificationResult() {
|
|
1626
|
+
if (this._verificationResult === null) {
|
|
1627
|
+
this._verificationResult = VerificationResult.fromJSON(this.json.verificationResult);
|
|
1567
1628
|
}
|
|
1568
|
-
|
|
1569
|
-
|
|
1629
|
+
return this._verificationResult;
|
|
1630
|
+
}
|
|
1631
|
+
get anonymizedFields() {
|
|
1632
|
+
return this.json.anonymizedFields.map(field => field);
|
|
1633
|
+
}
|
|
1634
|
+
isAnonymized(field) {
|
|
1635
|
+
return this.json.anonymizedFields.includes(field);
|
|
1636
|
+
}
|
|
1637
|
+
static fromJSON(json) {
|
|
1638
|
+
const result = new CapturedId();
|
|
1639
|
+
result.json = json;
|
|
1640
|
+
if (result.json.documentType) {
|
|
1641
|
+
result._document = this.getDocument(result.issuingCountry, result.json.documentType, result.json.documentSubtype);
|
|
1570
1642
|
}
|
|
1571
1643
|
result._images = IdImages.fromJSON(json.imageInfo);
|
|
1572
1644
|
return result;
|
|
@@ -1596,15 +1668,85 @@ class CapturedId {
|
|
|
1596
1668
|
}
|
|
1597
1669
|
}
|
|
1598
1670
|
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1671
|
+
/*
|
|
1672
|
+
* This file is part of the Scandit Data Capture SDK
|
|
1673
|
+
*
|
|
1674
|
+
* Copyright (C) 2025 Scandit AG. All rights reserved.
|
|
1675
|
+
*/
|
|
1676
|
+
var IdFieldType;
|
|
1677
|
+
(function (IdFieldType) {
|
|
1678
|
+
IdFieldType["AdditionalAddressInformation"] = "additionalAddressInformation";
|
|
1679
|
+
IdFieldType["AdditionalNameInformation"] = "additionalNameInformation";
|
|
1680
|
+
IdFieldType["Address"] = "address";
|
|
1681
|
+
IdFieldType["Age"] = "age";
|
|
1682
|
+
IdFieldType["BarcodeDictionary"] = "barcodeDictionary";
|
|
1683
|
+
IdFieldType["BloodType"] = "bloodType";
|
|
1684
|
+
IdFieldType["DateOfBirth"] = "dateOfBirth";
|
|
1685
|
+
IdFieldType["DateOfExpiry"] = "dateOfExpiry";
|
|
1686
|
+
IdFieldType["DateOfIssue"] = "dateOfIssue";
|
|
1687
|
+
IdFieldType["DocumentAdditionalNumber"] = "documentAdditionalNumber";
|
|
1688
|
+
IdFieldType["DocumentNumber"] = "documentNumber";
|
|
1689
|
+
IdFieldType["Employer"] = "employer";
|
|
1690
|
+
IdFieldType["FathersName"] = "fathersName";
|
|
1691
|
+
IdFieldType["FirstName"] = "firstName";
|
|
1692
|
+
IdFieldType["FullName"] = "fullName";
|
|
1693
|
+
IdFieldType["IssuingAuthority"] = "issuingAuthority";
|
|
1694
|
+
IdFieldType["LastName"] = "lastName";
|
|
1695
|
+
IdFieldType["MaritalStatus"] = "maritalStatus";
|
|
1696
|
+
IdFieldType["MothersName"] = "mothersName";
|
|
1697
|
+
IdFieldType["MrzOptionalDataInLine1"] = "mrzOptionalDataInLine1";
|
|
1698
|
+
IdFieldType["MrzOptionalDataInLine2"] = "mrzOptionalDataInLine2";
|
|
1699
|
+
IdFieldType["Nationality"] = "nationality";
|
|
1700
|
+
IdFieldType["PersonalIdNumber"] = "personalIdNumber";
|
|
1701
|
+
IdFieldType["PlaceOfBirth"] = "placeOfBirth";
|
|
1702
|
+
IdFieldType["Profession"] = "profession";
|
|
1703
|
+
IdFieldType["Race"] = "race";
|
|
1704
|
+
IdFieldType["Religion"] = "religion";
|
|
1705
|
+
IdFieldType["ResidentialStatus"] = "residentialStatus";
|
|
1706
|
+
IdFieldType["Sex"] = "sex";
|
|
1707
|
+
})(IdFieldType || (IdFieldType = {}));
|
|
1708
|
+
|
|
1709
|
+
class IdCaptureController extends BaseNewController {
|
|
1710
|
+
constructor(idCapture = null) {
|
|
1711
|
+
super('IdCaptureProxy');
|
|
1712
|
+
this.idCapture = null;
|
|
1713
|
+
this.idCapture = idCapture;
|
|
1714
|
+
}
|
|
1715
|
+
reset() {
|
|
1716
|
+
return this._proxy.$resetIdCaptureMode({ modeId: this.modeId });
|
|
1717
|
+
}
|
|
1718
|
+
setModeEnabledState(enabled) {
|
|
1719
|
+
this._proxy.$setModeEnabledState({ modeId: this.modeId, enabled: enabled });
|
|
1720
|
+
}
|
|
1721
|
+
updateIdCaptureMode() {
|
|
1722
|
+
if (this.idCapture == null) {
|
|
1723
|
+
throw new Error('IdCaptureController is not initialized with an IdCapture instance');
|
|
1724
|
+
}
|
|
1725
|
+
return this._proxy.$updateIdCaptureMode({ modeJson: JSON.stringify(this.idCapture.toJSON()), modeId: this.modeId });
|
|
1726
|
+
}
|
|
1727
|
+
applyIdCaptureModeSettings(newSettings) {
|
|
1728
|
+
return this._proxy.$applyIdCaptureModeSettings({ settingsJson: JSON.stringify(newSettings.toJSON()), modeId: this.modeId });
|
|
1729
|
+
}
|
|
1730
|
+
updateFeedback(feedback) {
|
|
1731
|
+
return this._proxy.$updateFeedback({ feedbackJson: JSON.stringify(feedback.toJSON()), modeId: this.modeId });
|
|
1732
|
+
}
|
|
1733
|
+
get modeId() {
|
|
1734
|
+
return this.idCapture.modeId;
|
|
1602
1735
|
}
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
var IdCaptureListenerEvents;
|
|
1739
|
+
(function (IdCaptureListenerEvents) {
|
|
1740
|
+
IdCaptureListenerEvents["didCapture"] = "IdCaptureListener.didCaptureId";
|
|
1741
|
+
IdCaptureListenerEvents["didReject"] = "IdCaptureListener.didRejectId";
|
|
1742
|
+
})(IdCaptureListenerEvents || (IdCaptureListenerEvents = {}));
|
|
1743
|
+
class IdCaptureListenerController extends BaseNewController {
|
|
1603
1744
|
constructor(idCapture) {
|
|
1745
|
+
super('IdCaptureListenerProxy');
|
|
1604
1746
|
this.hasListeners = false;
|
|
1605
|
-
this.
|
|
1747
|
+
this.boundHandleDidCapture = null;
|
|
1748
|
+
this.boundHandleDidReject = null;
|
|
1606
1749
|
this.idCapture = idCapture;
|
|
1607
|
-
this._proxy.isModeEnabled = () => idCapture.isEnabled;
|
|
1608
1750
|
this.initialize();
|
|
1609
1751
|
}
|
|
1610
1752
|
initialize() {
|
|
@@ -1615,13 +1757,22 @@ class IdCaptureListenerController {
|
|
|
1615
1757
|
});
|
|
1616
1758
|
}
|
|
1617
1759
|
subscribeListener() {
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1760
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1761
|
+
if (this.hasListeners) {
|
|
1762
|
+
return;
|
|
1763
|
+
}
|
|
1764
|
+
this.boundHandleDidCapture = this.handleDidCapture.bind(this);
|
|
1765
|
+
this.boundHandleDidReject = this.handleDidReject.bind(this);
|
|
1766
|
+
this._proxy.subscribeForEvents(Object.values(IdCaptureListenerEvents));
|
|
1767
|
+
this._proxy.eventEmitter.on(IdCaptureListenerEvents.didCapture, this.boundHandleDidCapture);
|
|
1768
|
+
this._proxy.eventEmitter.on(IdCaptureListenerEvents.didReject, this.boundHandleDidReject);
|
|
1769
|
+
yield this._proxy.$addIdCaptureListener({ modeId: this.modeId });
|
|
1770
|
+
this.hasListeners = true;
|
|
1771
|
+
});
|
|
1772
|
+
}
|
|
1773
|
+
handleDidCapture(ev) {
|
|
1774
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1775
|
+
const event = EventDataParser.parse(ev.data);
|
|
1625
1776
|
if (event === null) {
|
|
1626
1777
|
console.error('IdCaptureListenerController didCapture payload is null');
|
|
1627
1778
|
return;
|
|
@@ -1632,10 +1783,12 @@ class IdCaptureListenerController {
|
|
|
1632
1783
|
}
|
|
1633
1784
|
const captureId = CapturedId.fromJSON(capturedIdJson);
|
|
1634
1785
|
this.notifyListenersOfDidCapture(captureId);
|
|
1635
|
-
this._proxy
|
|
1786
|
+
this._proxy.$finishDidCaptureCallback({ modeId: this.modeId, enabled: this.idCapture.isEnabled });
|
|
1636
1787
|
});
|
|
1637
|
-
|
|
1638
|
-
|
|
1788
|
+
}
|
|
1789
|
+
handleDidReject(ev) {
|
|
1790
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1791
|
+
const event = EventDataParser.parse(ev.data);
|
|
1639
1792
|
if (event === null) {
|
|
1640
1793
|
console.error('IdCaptureListenerController didReject payload is null');
|
|
1641
1794
|
return;
|
|
@@ -1645,18 +1798,26 @@ class IdCaptureListenerController {
|
|
|
1645
1798
|
rejectedId = CapturedId.fromJSON(JSON.parse(event.id));
|
|
1646
1799
|
}
|
|
1647
1800
|
this.notifyListenersOfDidReject(rejectedId, event.rejectionReason);
|
|
1648
|
-
this._proxy
|
|
1801
|
+
this._proxy.$finishDidRejectCallback({ modeId: this.modeId, enabled: this.idCapture.isEnabled });
|
|
1649
1802
|
});
|
|
1650
|
-
this.hasListeners = true;
|
|
1651
1803
|
}
|
|
1652
1804
|
unsubscribeListener() {
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1805
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1806
|
+
if (!this.hasListeners) {
|
|
1807
|
+
return;
|
|
1808
|
+
}
|
|
1809
|
+
yield this._proxy.$removeIdCaptureListener({ modeId: this.modeId });
|
|
1810
|
+
this._proxy.unsubscribeFromEvents(Object.values(IdCaptureListenerEvents));
|
|
1811
|
+
if (this.boundHandleDidCapture) {
|
|
1812
|
+
this._proxy.eventEmitter.off(IdCaptureListenerEvents.didCapture, this.boundHandleDidCapture);
|
|
1813
|
+
}
|
|
1814
|
+
if (this.boundHandleDidReject) {
|
|
1815
|
+
this._proxy.eventEmitter.off(IdCaptureListenerEvents.didReject, this.boundHandleDidReject);
|
|
1816
|
+
}
|
|
1817
|
+
this.boundHandleDidCapture = null;
|
|
1818
|
+
this.boundHandleDidReject = null;
|
|
1819
|
+
this.hasListeners = false;
|
|
1820
|
+
});
|
|
1660
1821
|
}
|
|
1661
1822
|
notifyListenersOfDidCapture(captureId) {
|
|
1662
1823
|
const mode = this.idCapture;
|
|
@@ -1676,6 +1837,10 @@ class IdCaptureListenerController {
|
|
|
1676
1837
|
}
|
|
1677
1838
|
dispose() {
|
|
1678
1839
|
this.unsubscribeListener();
|
|
1840
|
+
this._proxy.dispose();
|
|
1841
|
+
}
|
|
1842
|
+
get modeId() {
|
|
1843
|
+
return this.idCapture.modeId;
|
|
1679
1844
|
}
|
|
1680
1845
|
}
|
|
1681
1846
|
|
|
@@ -1710,6 +1875,12 @@ class IdCaptureFeedback extends DefaultSerializeable {
|
|
|
1710
1875
|
this._idRejected = idRejected;
|
|
1711
1876
|
this.updateFeedback();
|
|
1712
1877
|
}
|
|
1878
|
+
static get defaultSuccessSound() {
|
|
1879
|
+
return IdCaptureFeedback.idDefaults.IdCapture.DefaultSuccessSound;
|
|
1880
|
+
}
|
|
1881
|
+
static get defaultFailureSound() {
|
|
1882
|
+
return IdCaptureFeedback.idDefaults.IdCapture.DefaultFailureSound;
|
|
1883
|
+
}
|
|
1713
1884
|
static fromJSON(json) {
|
|
1714
1885
|
const idCaptured = Feedback.fromJSON(json.idCaptured);
|
|
1715
1886
|
const idRejected = Feedback.fromJSON(json.idRejected);
|
|
@@ -1745,13 +1916,6 @@ __decorate([
|
|
|
1745
1916
|
], IdCaptureFeedback, "idDefaults", null);
|
|
1746
1917
|
|
|
1747
1918
|
class IdCapture extends DefaultSerializeable {
|
|
1748
|
-
get isEnabled() {
|
|
1749
|
-
return this._isEnabled;
|
|
1750
|
-
}
|
|
1751
|
-
set isEnabled(isEnabled) {
|
|
1752
|
-
this._isEnabled = isEnabled;
|
|
1753
|
-
this.controller.setModeEnabledState(isEnabled);
|
|
1754
|
-
}
|
|
1755
1919
|
get context() {
|
|
1756
1920
|
return this._context;
|
|
1757
1921
|
}
|
|
@@ -1766,14 +1930,19 @@ class IdCapture extends DefaultSerializeable {
|
|
|
1766
1930
|
static createRecommendedCameraSettings() {
|
|
1767
1931
|
return new CameraSettings(IdCapture.idCaptureDefaults.IdCapture.RecommendedCameraSettings);
|
|
1768
1932
|
}
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1933
|
+
get isEnabled() {
|
|
1934
|
+
return this._isEnabled;
|
|
1935
|
+
}
|
|
1936
|
+
set isEnabled(isEnabled) {
|
|
1937
|
+
this._isEnabled = isEnabled;
|
|
1938
|
+
this.controller.setModeEnabledState(isEnabled);
|
|
1939
|
+
}
|
|
1940
|
+
get externalTransactionId() {
|
|
1941
|
+
return this._externalTransactionId;
|
|
1942
|
+
}
|
|
1943
|
+
set externalTransactionId(externalTransactionId) {
|
|
1944
|
+
this._externalTransactionId = externalTransactionId;
|
|
1945
|
+
this.controller.updateIdCaptureMode();
|
|
1777
1946
|
}
|
|
1778
1947
|
get _context() {
|
|
1779
1948
|
return this.privateContext;
|
|
@@ -1792,29 +1961,17 @@ class IdCapture extends DefaultSerializeable {
|
|
|
1792
1961
|
static get idCaptureDefaults() {
|
|
1793
1962
|
return FactoryMaker.getInstance('IdDefaults');
|
|
1794
1963
|
}
|
|
1795
|
-
/**
|
|
1796
|
-
* @deprecated Since 7.6. This factory will be removed in 8.0.
|
|
1797
|
-
* Use the public constructor instead and configure the instance manually:
|
|
1798
|
-
* ```ts
|
|
1799
|
-
* const idCapture = new IdCapture(settings);
|
|
1800
|
-
* context.addMode(idCapture);
|
|
1801
|
-
* ```
|
|
1802
|
-
*/
|
|
1803
|
-
static forContext(context, settings) {
|
|
1804
|
-
const idCapture = new IdCapture(settings);
|
|
1805
|
-
if (context) {
|
|
1806
|
-
context.addMode(idCapture);
|
|
1807
|
-
}
|
|
1808
|
-
return idCapture;
|
|
1809
|
-
}
|
|
1810
1964
|
constructor(settings) {
|
|
1811
1965
|
super();
|
|
1812
1966
|
this.type = 'idCapture';
|
|
1813
1967
|
this.modeId = Math.floor(Math.random() * 100000000);
|
|
1968
|
+
this.parentId = null;
|
|
1814
1969
|
this._isEnabled = true;
|
|
1970
|
+
this._externalTransactionId = null;
|
|
1815
1971
|
this._feedback = IdCaptureFeedback.defaultFeedback;
|
|
1816
1972
|
this.privateContext = null;
|
|
1817
1973
|
this.listeners = [];
|
|
1974
|
+
this._hasListeners = false;
|
|
1818
1975
|
this.listenerController = null;
|
|
1819
1976
|
this.isInListenerCallback = false;
|
|
1820
1977
|
this.settings = settings;
|
|
@@ -1826,33 +1983,45 @@ class IdCapture extends DefaultSerializeable {
|
|
|
1826
1983
|
return this.controller.applyIdCaptureModeSettings(settings);
|
|
1827
1984
|
}
|
|
1828
1985
|
addListener(listener) {
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1986
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1987
|
+
var _a;
|
|
1988
|
+
if (this.listeners.includes(listener)) {
|
|
1989
|
+
return;
|
|
1990
|
+
}
|
|
1991
|
+
this.listeners.push(listener);
|
|
1992
|
+
if (this.listeners.length === 0) {
|
|
1993
|
+
yield ((_a = this.listenerController) === null || _a === void 0 ? void 0 : _a.subscribeListener());
|
|
1994
|
+
}
|
|
1995
|
+
this._hasListeners = this.listeners.length > 0;
|
|
1996
|
+
});
|
|
1837
1997
|
}
|
|
1838
1998
|
removeListener(listener) {
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
(
|
|
1846
|
-
|
|
1999
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2000
|
+
var _a;
|
|
2001
|
+
if (!this.listeners.includes(listener)) {
|
|
2002
|
+
return;
|
|
2003
|
+
}
|
|
2004
|
+
this.listeners.splice(this.listeners.indexOf(listener), 1);
|
|
2005
|
+
if (this.listeners.length === 0) {
|
|
2006
|
+
yield ((_a = this.listenerController) === null || _a === void 0 ? void 0 : _a.unsubscribeListener());
|
|
2007
|
+
}
|
|
2008
|
+
this._hasListeners = this.listeners.length > 0;
|
|
2009
|
+
});
|
|
1847
2010
|
}
|
|
1848
2011
|
reset() {
|
|
1849
2012
|
return this.controller.reset();
|
|
1850
2013
|
}
|
|
1851
2014
|
}
|
|
1852
|
-
IdCapture._recommendedCameraSettings = null;
|
|
1853
2015
|
__decorate([
|
|
1854
|
-
|
|
2016
|
+
nameForSerialization('parentId'),
|
|
2017
|
+
ignoreFromSerializationIfNull
|
|
2018
|
+
], IdCapture.prototype, "parentId", void 0);
|
|
2019
|
+
__decorate([
|
|
2020
|
+
nameForSerialization('enabled')
|
|
1855
2021
|
], IdCapture.prototype, "_isEnabled", void 0);
|
|
2022
|
+
__decorate([
|
|
2023
|
+
nameForSerialization('externalTransactionId')
|
|
2024
|
+
], IdCapture.prototype, "_externalTransactionId", void 0);
|
|
1856
2025
|
__decorate([
|
|
1857
2026
|
nameForSerialization('feedback')
|
|
1858
2027
|
], IdCapture.prototype, "_feedback", void 0);
|
|
@@ -1862,6 +2031,9 @@ __decorate([
|
|
|
1862
2031
|
__decorate([
|
|
1863
2032
|
ignoreFromSerialization
|
|
1864
2033
|
], IdCapture.prototype, "listeners", void 0);
|
|
2034
|
+
__decorate([
|
|
2035
|
+
nameForSerialization('hasListeners')
|
|
2036
|
+
], IdCapture.prototype, "_hasListeners", void 0);
|
|
1865
2037
|
__decorate([
|
|
1866
2038
|
ignoreFromSerialization
|
|
1867
2039
|
], IdCapture.prototype, "controller", void 0);
|
|
@@ -1905,27 +2077,11 @@ class IdCaptureOverlay extends DefaultSerializeable {
|
|
|
1905
2077
|
static get idCaptureDefaults() {
|
|
1906
2078
|
return FactoryMaker.getInstance('IdDefaults');
|
|
1907
2079
|
}
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
*/
|
|
1914
|
-
static withIdCapture(idCapture) {
|
|
1915
|
-
return IdCaptureOverlay.withIdCaptureForView(idCapture, null);
|
|
1916
|
-
}
|
|
1917
|
-
/**
|
|
1918
|
-
* @deprecated Since 7.6. These factories will be removed in 8.0.
|
|
1919
|
-
* Use the public constructor instead and add the overlay to the view manually:
|
|
1920
|
-
* const overlay = new IdCaptureOverlay(idCapture);
|
|
1921
|
-
* view.addOverlay(overlay);
|
|
1922
|
-
*/
|
|
1923
|
-
static withIdCaptureForView(idCapture, view) {
|
|
1924
|
-
const overlay = new IdCaptureOverlay(idCapture);
|
|
1925
|
-
if (view) {
|
|
1926
|
-
view.addOverlay(overlay);
|
|
1927
|
-
}
|
|
1928
|
-
return overlay;
|
|
2080
|
+
static get defaultIdLayoutStyle() {
|
|
2081
|
+
return IdCaptureOverlay.idCaptureDefaults.IdCapture.IdCaptureOverlayDefaults.defaultIdLayoutStyle;
|
|
2082
|
+
}
|
|
2083
|
+
static get defaultIdLayoutLineStyle() {
|
|
2084
|
+
return IdCaptureOverlay.idCaptureDefaults.IdCapture.IdCaptureOverlayDefaults.defaultIdLayoutLineStyle;
|
|
1929
2085
|
}
|
|
1930
2086
|
constructor(mode) {
|
|
1931
2087
|
super();
|
|
@@ -2058,6 +2214,12 @@ __decorate([
|
|
|
2058
2214
|
__decorate([
|
|
2059
2215
|
ignoreFromSerialization
|
|
2060
2216
|
], IdCaptureOverlay, "idCaptureDefaults", null);
|
|
2217
|
+
__decorate([
|
|
2218
|
+
ignoreFromSerialization
|
|
2219
|
+
], IdCaptureOverlay, "defaultIdLayoutStyle", null);
|
|
2220
|
+
__decorate([
|
|
2221
|
+
ignoreFromSerialization
|
|
2222
|
+
], IdCaptureOverlay, "defaultIdLayoutLineStyle", null);
|
|
2061
2223
|
|
|
2062
2224
|
class SingleSideScanner extends DefaultSerializeable {
|
|
2063
2225
|
constructor(barcode, machineReadableZone, visualInspectionZone) {
|
|
@@ -2160,48 +2322,4 @@ __decorate([
|
|
|
2160
2322
|
ignoreFromSerialization
|
|
2161
2323
|
], IdCaptureSettings, "idCaptureDefaults", null);
|
|
2162
2324
|
|
|
2163
|
-
|
|
2164
|
-
* @deprecated Replaced by IdCaptureSettings.rejectForgedAamvaBarcodes
|
|
2165
|
-
*/
|
|
2166
|
-
class AamvaBarcodeVerifier {
|
|
2167
|
-
constructor() {
|
|
2168
|
-
this.controller = new IdCaptureController(null);
|
|
2169
|
-
}
|
|
2170
|
-
static create(context) {
|
|
2171
|
-
const verifier = new AamvaBarcodeVerifier();
|
|
2172
|
-
return new Promise((resolve, reject) => {
|
|
2173
|
-
verifier
|
|
2174
|
-
.controller
|
|
2175
|
-
.createContextForBarcodeVerification(context)
|
|
2176
|
-
.then(() => {
|
|
2177
|
-
verifier.context = context;
|
|
2178
|
-
resolve(verifier);
|
|
2179
|
-
}, reject);
|
|
2180
|
-
});
|
|
2181
|
-
}
|
|
2182
|
-
verify(capturedId) {
|
|
2183
|
-
// Necessary for not exposing internal API on CapturedId, while only passing the private "json" property
|
|
2184
|
-
// to native iOS and Android.
|
|
2185
|
-
const capturedIdAsString = JSON.stringify(capturedId);
|
|
2186
|
-
const capturedIdJsonData = JSON.parse(capturedIdAsString).json;
|
|
2187
|
-
return new Promise((resolve, reject) => {
|
|
2188
|
-
this.controller
|
|
2189
|
-
.verifyCapturedIdAsync(JSON.stringify(capturedIdJsonData))
|
|
2190
|
-
.then((json) => {
|
|
2191
|
-
if (!json) {
|
|
2192
|
-
resolve(AamvaBarcodeVerificationResult
|
|
2193
|
-
.fromJSON(JSON.parse('{}')));
|
|
2194
|
-
}
|
|
2195
|
-
else {
|
|
2196
|
-
resolve(AamvaBarcodeVerificationResult
|
|
2197
|
-
.fromJSON(JSON.parse(json)));
|
|
2198
|
-
}
|
|
2199
|
-
}, reject);
|
|
2200
|
-
});
|
|
2201
|
-
}
|
|
2202
|
-
}
|
|
2203
|
-
__decorate([
|
|
2204
|
-
ignoreFromSerialization
|
|
2205
|
-
], AamvaBarcodeVerifier.prototype, "controller", void 0);
|
|
2206
|
-
|
|
2207
|
-
export { AamvaBarcodeVerificationResult, AamvaBarcodeVerificationStatus, AamvaBarcodeVerifier, BarcodeResult, CapturedId, CapturedSides, CommonCapturedIdFields, DateResult, DriverLicense, Duration, FullDocumentScanner, HealthInsuranceCard, IdAnonymizationMode, IdCapture, IdCaptureController, IdCaptureDocumentType, IdCaptureFeedback, IdCaptureListenerController, IdCaptureListenerEvents, IdCaptureOverlay, IdCaptureOverlayController, IdCaptureRegion, IdCaptureSettings, IdCard, IdImageType, IdImages, IdLayoutLineStyle, IdLayoutStyle, IdSide, MRZResult, Passport, ProfessionalDrivingPermit, RegionSpecific, RegionSpecificSubtype, RejectionReason, ResidencePermit, SingleSideScanner, TextHintPosition, UsRealIdStatus, VIZResult, VehicleRestriction, VisaIcao, getIdDefaults, loadIdDefaults, parseIdDefaults };
|
|
2325
|
+
export { AamvaBarcodeVerificationResult, AamvaBarcodeVerificationStatus, BarcodeResult, CapturedId, CapturedSides, DataConsistencyCheck, DataConsistencyResult, DateResult, DriverLicense, DrivingLicenseCategory, DrivingLicenseDetails, Duration, FullDocumentScanner, HealthInsuranceCard, IdAnonymizationMode, IdCapture, IdCaptureController, IdCaptureDocumentType, IdCaptureFeedback, IdCaptureListenerController, IdCaptureListenerEvents, IdCaptureOverlay, IdCaptureOverlayController, IdCaptureRegion, IdCaptureSettings, IdCard, IdFieldType, IdImageType, IdImages, IdLayoutLineStyle, IdLayoutStyle, IdSide, MRZResult, MobileDocumentResult, Passport, ProfessionalDrivingPermit, RegionSpecific, RegionSpecificSubtype, RejectionReason, ResidencePermit, Sex, SingleSideScanner, TextHintPosition, UsRealIdStatus, VIZResult, VehicleRestriction, VerificationResult, VisaIcao, getIdDefaults, loadIdDefaults, parseIdDefaults };
|