scandit-react-native-datacapture-id 8.4.0 → 8.5.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.
@@ -57,7 +57,7 @@ android {
57
57
  namespace "com.scandit.datacapture.reactnative.id"
58
58
  }
59
59
 
60
- compileSdkVersion safeExtGet("compileSdkVersion", 33)
60
+ compileSdkVersion safeExtGet("compileSdkVersion", 36)
61
61
 
62
62
  sourceSets {
63
63
  main {
@@ -75,7 +75,7 @@ android {
75
75
 
76
76
  defaultConfig {
77
77
  minSdkVersion safeExtGet("minSdkVersion", 24)
78
- targetSdkVersion safeExtGet("targetSdkVersion", 33)
78
+ targetSdkVersion safeExtGet("targetSdkVersion", 36)
79
79
  versionCode 1
80
80
  versionName "1.0"
81
81
  }
@@ -103,7 +103,7 @@ if (file( "${rootProject.projectDir}/build-test.gradle").exists()) {
103
103
  }
104
104
 
105
105
  dependencies {
106
- def sdk_version = "8.4.0"
106
+ def sdk_version = "8.5.0-beta.1"
107
107
 
108
108
  println("Version of the native sdk used in this build: ${safeExtGet("frameworks_sdk_version", sdk_version)}")
109
109
  api project(path: ":scandit-react-native-datacapture-core")
package/dist/id.js CHANGED
@@ -1,4 +1,4 @@
1
- import { nameForSerialization, ignoreFromSerializationIfNull, DefaultSerializeable, FactoryMaker, Feedback, Sound, CameraSettings, Color, BaseController, ignoreFromSerialization, Brush, registerProxies, EventDataParser, SKIP } from 'scandit-react-native-datacapture-core/dist/core';
1
+ import { nameForSerialization, ignoreFromSerializationIfNull, DefaultSerializeable, Feedback, Sound, CameraSettings, Color, FactoryMaker, BaseController, ignoreFromSerialization, Brush, registerProxies, EventDataParser, SKIP } from 'scandit-react-native-datacapture-core/dist/core';
2
2
 
3
3
  class DateResult {
4
4
  constructor(day, month, year) {
@@ -6,9 +6,15 @@ class DateResult {
6
6
  this._month = month !== null && month !== void 0 ? month : 1;
7
7
  this._year = year;
8
8
  }
9
- get day() { return this._day; }
10
- get month() { return this._month; }
11
- get year() { return this._year; }
9
+ get day() {
10
+ return this._day;
11
+ }
12
+ get month() {
13
+ return this._month;
14
+ }
15
+ get year() {
16
+ return this._year;
17
+ }
12
18
  get localDate() {
13
19
  return new Date(this._year, this._month - 1, this._day);
14
20
  }
@@ -410,6 +416,8 @@ var RegionSpecificSubtype;
410
416
  RegionSpecificSubtype["UaeVehicleRegistrationCard"] = "uaeVehicleRegistrationCard";
411
417
  RegionSpecificSubtype["UaeEsaadCard"] = "uaeEsaadCard";
412
418
  RegionSpecificSubtype["UkMilitaryId"] = "ukMilitaryId";
419
+ RegionSpecificSubtype["ChinaBusinessTravelPermitHongKongMacau"] = "chinaBusinessTravelPermitHongKongMacau";
420
+ RegionSpecificSubtype["IrelandAgeCard"] = "irelandAgeCard";
413
421
  })(RegionSpecificSubtype || (RegionSpecificSubtype = {}));
414
422
 
415
423
  var IdSide;
@@ -429,8 +437,14 @@ class IdImages {
429
437
  }
430
438
  return result;
431
439
  }
432
- get face() { var _a, _b, _c; return (_c = (_b = (_a = this.json) === null || _a === void 0 ? void 0 : _a.front) === null || _b === void 0 ? void 0 : _b.face) !== null && _c !== void 0 ? _c : null; }
433
- get frame() { var _a, _b, _c; return (_c = (_b = (_a = this.json) === null || _a === void 0 ? void 0 : _a.front) === null || _b === void 0 ? void 0 : _b.frame) !== null && _c !== void 0 ? _c : null; }
440
+ get face() {
441
+ var _a, _b, _c;
442
+ return (_c = (_b = (_a = this.json) === null || _a === void 0 ? void 0 : _a.front) === null || _b === void 0 ? void 0 : _b.face) !== null && _c !== void 0 ? _c : null;
443
+ }
444
+ get frame() {
445
+ var _a, _b, _c;
446
+ return (_c = (_b = (_a = this.json) === null || _a === void 0 ? void 0 : _a.front) === null || _b === void 0 ? void 0 : _b.frame) !== null && _c !== void 0 ? _c : null;
447
+ }
434
448
  getFrame(side) {
435
449
  var _a, _b, _c, _d, _e, _f;
436
450
  switch (side) {
@@ -527,31 +541,6 @@ var Sex;
527
541
  Sex["Unspecified"] = "unspecified";
528
542
  })(Sex || (Sex = {}));
529
543
 
530
- let idDefaultsLoader;
531
- function setIdDefaultsLoader(loader) {
532
- idDefaultsLoader = loader;
533
- }
534
- function ensureIdDefaults() {
535
- var _a, _b;
536
- const existing = (_a = FactoryMaker.instances.get('IdDefaults')) === null || _a === void 0 ? void 0 : _a.instance;
537
- if (existing) {
538
- return existing;
539
- }
540
- idDefaultsLoader === null || idDefaultsLoader === void 0 ? void 0 : idDefaultsLoader();
541
- const reloaded = (_b = FactoryMaker.instances.get('IdDefaults')) === null || _b === void 0 ? void 0 : _b.instance;
542
- if (reloaded) {
543
- return reloaded;
544
- }
545
- throw new Error('IdDefaults missing and re-init failed');
546
- }
547
- function loadIdDefaults(jsonDefaults) {
548
- const idDefaults = parseIdDefaults(jsonDefaults);
549
- FactoryMaker.bindInstanceIfNotExists('IdDefaults', idDefaults);
550
- }
551
-
552
- function getIdDefaults() {
553
- return ensureIdDefaults();
554
- }
555
544
  function parseIdDefaults(jsonDefaults) {
556
545
  const idDefaults = {
557
546
  IdCapture: {
@@ -561,28 +550,21 @@ function parseIdDefaults(jsonDefaults) {
561
550
  },
562
551
  DefaultSuccessSound: Sound.fromJSON(JSON.parse(jsonDefaults.defaultSuccessSound)),
563
552
  DefaultFailureSound: Sound.fromJSON(JSON.parse(jsonDefaults.defaultFailureSound)),
564
- RecommendedCameraSettings: CameraSettings
565
- .fromJSON(jsonDefaults.RecommendedCameraSettings),
553
+ RecommendedCameraSettings: CameraSettings.fromJSON(jsonDefaults.RecommendedCameraSettings),
566
554
  IdCaptureOverlayDefaults: {
567
555
  defaultCapturedBrush: {
568
- fillColor: Color
569
- .fromJSON(jsonDefaults.IdCaptureOverlay.DefaultCapturedBrush.fillColor),
570
- strokeColor: Color
571
- .fromJSON(jsonDefaults.IdCaptureOverlay.DefaultCapturedBrush.strokeColor),
556
+ fillColor: Color.fromJSON(jsonDefaults.IdCaptureOverlay.DefaultCapturedBrush.fillColor),
557
+ strokeColor: Color.fromJSON(jsonDefaults.IdCaptureOverlay.DefaultCapturedBrush.strokeColor),
572
558
  strokeWidth: jsonDefaults.IdCaptureOverlay.DefaultCapturedBrush.strokeWidth,
573
559
  },
574
560
  defaultLocalizedBrush: {
575
- fillColor: Color
576
- .fromJSON(jsonDefaults.IdCaptureOverlay.DefaultLocalizedBrush.fillColor),
577
- strokeColor: Color
578
- .fromJSON(jsonDefaults.IdCaptureOverlay.DefaultLocalizedBrush.strokeColor),
561
+ fillColor: Color.fromJSON(jsonDefaults.IdCaptureOverlay.DefaultLocalizedBrush.fillColor),
562
+ strokeColor: Color.fromJSON(jsonDefaults.IdCaptureOverlay.DefaultLocalizedBrush.strokeColor),
579
563
  strokeWidth: jsonDefaults.IdCaptureOverlay.DefaultLocalizedBrush.strokeWidth,
580
564
  },
581
565
  defaultRejectedBrush: {
582
- fillColor: Color
583
- .fromJSON(jsonDefaults.IdCaptureOverlay.DefaultRejectedBrush.fillColor),
584
- strokeColor: Color
585
- .fromJSON(jsonDefaults.IdCaptureOverlay.DefaultRejectedBrush.strokeColor),
566
+ fillColor: Color.fromJSON(jsonDefaults.IdCaptureOverlay.DefaultRejectedBrush.fillColor),
567
+ strokeColor: Color.fromJSON(jsonDefaults.IdCaptureOverlay.DefaultRejectedBrush.strokeColor),
586
568
  strokeWidth: jsonDefaults.IdCaptureOverlay.DefaultRejectedBrush.strokeWidth,
587
569
  },
588
570
  defaultIdLayoutStyle: jsonDefaults.IdCaptureOverlay.defaultIdLayoutStyle,
@@ -594,8 +576,9 @@ function parseIdDefaults(jsonDefaults) {
594
576
  rejectVoidedIds: jsonDefaults.IdCaptureSettings.rejectVoidedIds,
595
577
  decodeBackOfEuropeanDrivingLicense: jsonDefaults.IdCaptureSettings.decodeBackOfEuropeanDrivingLicense,
596
578
  rejectExpiredIds: jsonDefaults.IdCaptureSettings.rejectExpiredIds,
597
- rejectIdsExpiringIn: jsonDefaults.IdCaptureSettings.rejectIdsExpiringIn ? Duration
598
- .fromJSON(jsonDefaults.IdCaptureSettings.rejectIdsExpiringIn) : null,
579
+ rejectIdsExpiringIn: jsonDefaults.IdCaptureSettings.rejectIdsExpiringIn
580
+ ? Duration.fromJSON(jsonDefaults.IdCaptureSettings.rejectIdsExpiringIn)
581
+ : null,
599
582
  rejectNotRealIdCompliant: jsonDefaults.IdCaptureSettings.rejectNotRealIdCompliant,
600
583
  rejectForgedAamvaBarcodes: jsonDefaults.IdCaptureSettings.rejectForgedAamvaBarcodes,
601
584
  rejectInconsistentData: jsonDefaults.IdCaptureSettings.rejectInconsistentData,
@@ -606,6 +589,32 @@ function parseIdDefaults(jsonDefaults) {
606
589
  return idDefaults;
607
590
  }
608
591
 
592
+ let idDefaultsLoader;
593
+ function setIdDefaultsLoader(loader) {
594
+ idDefaultsLoader = loader;
595
+ }
596
+ function ensureIdDefaults() {
597
+ var _a, _b;
598
+ const existing = (_a = FactoryMaker.instances.get('IdDefaults')) === null || _a === void 0 ? void 0 : _a.instance;
599
+ if (existing) {
600
+ return existing;
601
+ }
602
+ idDefaultsLoader === null || idDefaultsLoader === void 0 ? void 0 : idDefaultsLoader();
603
+ const reloaded = (_b = FactoryMaker.instances.get('IdDefaults')) === null || _b === void 0 ? void 0 : _b.instance;
604
+ if (reloaded) {
605
+ return reloaded;
606
+ }
607
+ throw new Error('IdDefaults missing and re-init failed');
608
+ }
609
+ function loadIdDefaults(jsonDefaults) {
610
+ const idDefaults = parseIdDefaults(jsonDefaults);
611
+ FactoryMaker.bindInstanceIfNotExists('IdDefaults', idDefaults);
612
+ }
613
+
614
+ function getIdDefaults() {
615
+ return ensureIdDefaults();
616
+ }
617
+
609
618
  var AamvaBarcodeVerificationStatus;
610
619
  (function (AamvaBarcodeVerificationStatus) {
611
620
  AamvaBarcodeVerificationStatus["Authentic"] = "authentic";
@@ -614,7 +623,9 @@ var AamvaBarcodeVerificationStatus;
614
623
  })(AamvaBarcodeVerificationStatus || (AamvaBarcodeVerificationStatus = {}));
615
624
 
616
625
  class AamvaBarcodeVerificationResult {
617
- get allChecksPassed() { return this.json.allChecksPassed; }
626
+ get allChecksPassed() {
627
+ return this.json.allChecksPassed;
628
+ }
618
629
  get status() {
619
630
  return this._status;
620
631
  }
@@ -622,13 +633,13 @@ class AamvaBarcodeVerificationResult {
622
633
  const result = new AamvaBarcodeVerificationResult();
623
634
  result.json = json;
624
635
  switch (result.json.verificationStatus) {
625
- case "authentic":
636
+ case 'authentic':
626
637
  result._status = AamvaBarcodeVerificationStatus.Authentic;
627
638
  break;
628
- case "maybeForged":
639
+ case 'maybeForged':
629
640
  result._status = AamvaBarcodeVerificationStatus.LikelyForged;
630
641
  break;
631
- case "forged":
642
+ case 'forged':
632
643
  result._status = AamvaBarcodeVerificationStatus.Forged;
633
644
  break;
634
645
  }
@@ -637,8 +648,12 @@ class AamvaBarcodeVerificationResult {
637
648
  }
638
649
 
639
650
  class ProfessionalDrivingPermit {
640
- get dateOfExpiry() { return DateResult.fromJSON(this.json.dateOfExpiry); }
641
- get codes() { return this.json.codes; }
651
+ get dateOfExpiry() {
652
+ return DateResult.fromJSON(this.json.dateOfExpiry);
653
+ }
654
+ get codes() {
655
+ return this.json.codes;
656
+ }
642
657
  static fromJSON(json) {
643
658
  if (json === null || json === undefined) {
644
659
  return null;
@@ -650,9 +665,15 @@ class ProfessionalDrivingPermit {
650
665
  }
651
666
 
652
667
  class VehicleRestriction {
653
- get vehicleCode() { return this.json.vehicleCode; }
654
- get vehicleRestriction() { return this.json.vehicleRestriction; }
655
- get dateOfIssue() { return DateResult.fromJSON(this.json.dateOfIssue); }
668
+ get vehicleCode() {
669
+ return this.json.vehicleCode;
670
+ }
671
+ get vehicleRestriction() {
672
+ return this.json.vehicleRestriction;
673
+ }
674
+ get dateOfIssue() {
675
+ return DateResult.fromJSON(this.json.dateOfIssue);
676
+ }
656
677
  static fromJSON(json) {
657
678
  if (json === null) {
658
679
  return null;
@@ -920,46 +941,112 @@ class BarcodeResult {
920
941
  return this.json.barcodeDataElements;
921
942
  }
922
943
  // Common Fields
923
- get firstName() { return this.json.firstName; }
924
- get lastName() { return this.json.lastName; }
925
- get fullName() { return this.json.fullName; }
926
- get sex() { return this.json.sex; }
927
- get dateOfBirth() { return DateResult.fromJSON(this.json.dateOfBirth); }
928
- get nationality() { return this.json.nationality; }
929
- get address() { return this.json.address; }
930
- get documentNumber() { return this.json.documentNumber; }
931
- get dateOfExpiry() { return DateResult.fromJSON(this.json.dateOfExpiry); }
932
- get dateOfIssue() { return DateResult.fromJSON(this.json.dateOfIssue); }
944
+ get firstName() {
945
+ return this.json.firstName;
946
+ }
947
+ get lastName() {
948
+ return this.json.lastName;
949
+ }
950
+ get fullName() {
951
+ return this.json.fullName;
952
+ }
953
+ get sex() {
954
+ return this.json.sex;
955
+ }
956
+ get dateOfBirth() {
957
+ return DateResult.fromJSON(this.json.dateOfBirth);
958
+ }
959
+ get nationality() {
960
+ return this.json.nationality;
961
+ }
962
+ get address() {
963
+ return this.json.address;
964
+ }
965
+ get documentNumber() {
966
+ return this.json.documentNumber;
967
+ }
968
+ get dateOfExpiry() {
969
+ return DateResult.fromJSON(this.json.dateOfExpiry);
970
+ }
971
+ get dateOfIssue() {
972
+ return DateResult.fromJSON(this.json.dateOfIssue);
973
+ }
933
974
  }
934
975
 
935
976
  class MRZResult {
936
- get documentCode() { return this.json.documentCode; }
937
- get namesAreTruncated() { return this.json.namesAreTruncated; }
938
- get optionalDataInLine1() { return this.json.optionalDataInLine1; }
939
- get optionalDataInLine2() { return this.json.optionalDataInLine2; }
940
- get capturedMrz() { return this.json.capturedMrz; }
941
- get personalIdNumber() { return this.json.personalIdNumber; }
942
- get renewalTimes() { return this.json.renewalTimes; }
943
- get fullNameSimplifiedChinese() { return this.json.fullNameSimplifiedChinese; }
944
- get omittedCharacterCountInGbkName() { return this.json.omittedCharacterCountInGbkName; }
945
- get omittedNameCount() { return this.json.omittedNameCount; }
946
- get issuingAuthorityCode() { return this.json.issuingAuthorityCode; }
947
- get passportIssuerIso() { return this.json.passportIssuerIso; }
948
- get passportNumber() { return this.json.passportNumber; }
977
+ get documentCode() {
978
+ return this.json.documentCode;
979
+ }
980
+ get namesAreTruncated() {
981
+ return this.json.namesAreTruncated;
982
+ }
983
+ get optionalDataInLine1() {
984
+ return this.json.optionalDataInLine1;
985
+ }
986
+ get optionalDataInLine2() {
987
+ return this.json.optionalDataInLine2;
988
+ }
989
+ get capturedMrz() {
990
+ return this.json.capturedMrz;
991
+ }
992
+ get personalIdNumber() {
993
+ return this.json.personalIdNumber;
994
+ }
995
+ get renewalTimes() {
996
+ return this.json.renewalTimes;
997
+ }
998
+ get fullNameSimplifiedChinese() {
999
+ return this.json.fullNameSimplifiedChinese;
1000
+ }
1001
+ get omittedCharacterCountInGbkName() {
1002
+ return this.json.omittedCharacterCountInGbkName;
1003
+ }
1004
+ get omittedNameCount() {
1005
+ return this.json.omittedNameCount;
1006
+ }
1007
+ get issuingAuthorityCode() {
1008
+ return this.json.issuingAuthorityCode;
1009
+ }
1010
+ get passportIssuerIso() {
1011
+ return this.json.passportIssuerIso;
1012
+ }
1013
+ get passportNumber() {
1014
+ return this.json.passportNumber;
1015
+ }
949
1016
  get passportDateOfExpiry() {
950
1017
  return DateResult.fromJSON(this.json.passportDateOfExpiry);
951
1018
  }
952
1019
  // Common Fields
953
- get firstName() { return this.json.firstName; }
954
- get lastName() { return this.json.lastName; }
955
- get fullName() { return this.json.fullName; }
956
- get sex() { return this.json.sex; }
957
- get dateOfBirth() { return DateResult.fromJSON(this.json.dateOfBirth); }
958
- get nationality() { return this.json.nationality; }
959
- get address() { return this.json.address; }
960
- get documentNumber() { return this.json.documentNumber; }
961
- get dateOfExpiry() { return DateResult.fromJSON(this.json.dateOfExpiry); }
962
- get dateOfIssue() { return DateResult.fromJSON(this.json.dateOfIssue); }
1020
+ get firstName() {
1021
+ return this.json.firstName;
1022
+ }
1023
+ get lastName() {
1024
+ return this.json.lastName;
1025
+ }
1026
+ get fullName() {
1027
+ return this.json.fullName;
1028
+ }
1029
+ get sex() {
1030
+ return this.json.sex;
1031
+ }
1032
+ get dateOfBirth() {
1033
+ return DateResult.fromJSON(this.json.dateOfBirth);
1034
+ }
1035
+ get nationality() {
1036
+ return this.json.nationality;
1037
+ }
1038
+ get address() {
1039
+ return this.json.address;
1040
+ }
1041
+ get documentNumber() {
1042
+ return this.json.documentNumber;
1043
+ }
1044
+ get dateOfExpiry() {
1045
+ return DateResult.fromJSON(this.json.dateOfExpiry);
1046
+ }
1047
+ get dateOfIssue() {
1048
+ return DateResult.fromJSON(this.json.dateOfIssue);
1049
+ }
963
1050
  static fromJSON(json) {
964
1051
  const result = new MRZResult();
965
1052
  result.json = json;
@@ -968,7 +1055,9 @@ class MRZResult {
968
1055
  }
969
1056
 
970
1057
  class DrivingLicenseCategory {
971
- get code() { return this.json.code; }
1058
+ get code() {
1059
+ return this.json.code;
1060
+ }
972
1061
  get dateOfIssue() {
973
1062
  return DateResult.fromJSON(this.json.dateOfIssue);
974
1063
  }
@@ -999,7 +1088,9 @@ class DrivingLicenseDetails {
999
1088
  }
1000
1089
  get drivingLicenseCategories() {
1001
1090
  if (this._drivingLicenseCategories.length === 0) {
1002
- this._drivingLicenseCategories = this.json.drivingLicenseCategories.map(categoryJson => DrivingLicenseCategory.fromJSON(categoryJson)).filter((category) => category !== null);
1091
+ this._drivingLicenseCategories = this.json.drivingLicenseCategories
1092
+ .map(categoryJson => DrivingLicenseCategory.fromJSON(categoryJson))
1093
+ .filter((category) => category !== null);
1003
1094
  }
1004
1095
  return this._drivingLicenseCategories;
1005
1096
  }
@@ -1088,16 +1179,36 @@ class VIZResult {
1088
1179
  return DrivingLicenseDetails.fromJSON(this.json.drivingLicenseDetails);
1089
1180
  }
1090
1181
  // Common Fields
1091
- get firstName() { return this.json.firstName; }
1092
- get lastName() { return this.json.lastName; }
1093
- get fullName() { return this.json.fullName; }
1094
- get sex() { return this.json.sex; }
1095
- get dateOfBirth() { return DateResult.fromJSON(this.json.dateOfBirth); }
1096
- get nationality() { return this.json.nationality; }
1097
- get address() { return this.json.address; }
1098
- get documentNumber() { return this.json.documentNumber; }
1099
- get dateOfExpiry() { return DateResult.fromJSON(this.json.dateOfExpiry); }
1100
- get dateOfIssue() { return DateResult.fromJSON(this.json.dateOfIssue); }
1182
+ get firstName() {
1183
+ return this.json.firstName;
1184
+ }
1185
+ get lastName() {
1186
+ return this.json.lastName;
1187
+ }
1188
+ get fullName() {
1189
+ return this.json.fullName;
1190
+ }
1191
+ get sex() {
1192
+ return this.json.sex;
1193
+ }
1194
+ get dateOfBirth() {
1195
+ return DateResult.fromJSON(this.json.dateOfBirth);
1196
+ }
1197
+ get nationality() {
1198
+ return this.json.nationality;
1199
+ }
1200
+ get address() {
1201
+ return this.json.address;
1202
+ }
1203
+ get documentNumber() {
1204
+ return this.json.documentNumber;
1205
+ }
1206
+ get dateOfExpiry() {
1207
+ return DateResult.fromJSON(this.json.dateOfExpiry);
1208
+ }
1209
+ get dateOfIssue() {
1210
+ return DateResult.fromJSON(this.json.dateOfIssue);
1211
+ }
1101
1212
  static fromJSON(json) {
1102
1213
  const result = new VIZResult();
1103
1214
  result.json = json;
@@ -1490,7 +1601,9 @@ class MobileDocumentResult {
1490
1601
  }
1491
1602
  get drivingLicenseCategories() {
1492
1603
  if (this._drivingLicenseCategories.length === 0) {
1493
- this._drivingLicenseCategories = this.json.drivingLicenseCategories.map(categoryJson => DrivingLicenseCategory.fromJSON(categoryJson)).filter((category) => category !== null);
1604
+ this._drivingLicenseCategories = this.json.drivingLicenseCategories
1605
+ .map(categoryJson => DrivingLicenseCategory.fromJSON(categoryJson))
1606
+ .filter((category) => category !== null);
1494
1607
  }
1495
1608
  return this._drivingLicenseCategories;
1496
1609
  }
@@ -1727,17 +1840,39 @@ class CapturedId {
1727
1840
  get images() {
1728
1841
  return this._images;
1729
1842
  }
1730
- get firstName() { return this.json.firstName; }
1731
- get lastName() { return this.json.lastName; }
1732
- get fullName() { return this.json.fullName; }
1733
- get sex() { return this.json.sex; }
1734
- get dateOfBirth() { return DateResult.fromJSON(this.json.dateOfBirth); }
1735
- get nationality() { return this.json.nationality; }
1736
- get nationalityISO() { return this.json.nationalityISO; }
1737
- get address() { return this.json.address; }
1738
- get documentNumber() { return this.json.documentNumber; }
1739
- get dateOfExpiry() { return DateResult.fromJSON(this.json.dateOfExpiry); }
1740
- get dateOfIssue() { return DateResult.fromJSON(this.json.dateOfIssue); }
1843
+ get firstName() {
1844
+ return this.json.firstName;
1845
+ }
1846
+ get lastName() {
1847
+ return this.json.lastName;
1848
+ }
1849
+ get fullName() {
1850
+ return this.json.fullName;
1851
+ }
1852
+ get sex() {
1853
+ return this.json.sex;
1854
+ }
1855
+ get dateOfBirth() {
1856
+ return DateResult.fromJSON(this.json.dateOfBirth);
1857
+ }
1858
+ get nationality() {
1859
+ return this.json.nationality;
1860
+ }
1861
+ get nationalityISO() {
1862
+ return this.json.nationalityISO;
1863
+ }
1864
+ get address() {
1865
+ return this.json.address;
1866
+ }
1867
+ get documentNumber() {
1868
+ return this.json.documentNumber;
1869
+ }
1870
+ get dateOfExpiry() {
1871
+ return DateResult.fromJSON(this.json.dateOfExpiry);
1872
+ }
1873
+ get dateOfIssue() {
1874
+ return DateResult.fromJSON(this.json.dateOfIssue);
1875
+ }
1741
1876
  get sexType() {
1742
1877
  if (this.json.sex) {
1743
1878
  return this.json.sex;
@@ -1756,8 +1891,7 @@ class CapturedId {
1756
1891
  */
1757
1892
  get mobileDocumentOcr() {
1758
1893
  if (this._mobileDocumentOcr === null && this.json.mobileDocumentOcrResult !== null) {
1759
- this._mobileDocumentOcr = MobileDocumentOCRResult
1760
- .fromJSON(this.json.mobileDocumentOcrResult);
1894
+ this._mobileDocumentOcr = MobileDocumentOCRResult.fromJSON(this.json.mobileDocumentOcrResult);
1761
1895
  }
1762
1896
  return this._mobileDocumentOcr;
1763
1897
  }
@@ -2595,7 +2729,7 @@ class SingleSideScanner extends DefaultSerializeable {
2595
2729
  this.options = {
2596
2730
  barcode: this._barcode,
2597
2731
  machineReadableZone: this._machineReadableZone,
2598
- visualInspectionZone: this._visualInspectionZone
2732
+ visualInspectionZone: this._visualInspectionZone,
2599
2733
  };
2600
2734
  }
2601
2735
  get barcode() {
@@ -2631,7 +2765,7 @@ class FullDocumentScanner extends DefaultSerializeable {
2631
2765
  this.options = {
2632
2766
  barcode: this._barcode,
2633
2767
  machineReadableZone: this._machineReadableZone,
2634
- visualInspectionZone: this._visualInspectionZone
2768
+ visualInspectionZone: this._visualInspectionZone,
2635
2769
  };
2636
2770
  }
2637
2771
  }
@@ -2723,9 +2857,7 @@ __decorate([
2723
2857
  ignoreFromSerialization
2724
2858
  ], IdCaptureSettings, "idCaptureDefaults", null);
2725
2859
 
2726
- const ID_PROXY_TYPE_NAMES = [
2727
- 'IdProxy',
2728
- ];
2860
+ const ID_PROXY_TYPE_NAMES = ['IdProxy'];
2729
2861
 
2730
2862
  function registerIdProxies(provider) {
2731
2863
  registerProxies(ID_PROXY_TYPE_NAMES, provider);