react-native-scanbot-barcode-scanner-sdk 5.1.2-alpha.1 → 6.1.0-rc.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.
Files changed (154) hide show
  1. package/Libraries.txt +439 -16
  2. package/RNScanbotBarcodeSDK.podspec +1 -1
  3. package/android/build.gradle +1 -1
  4. package/android/gradle.properties +4 -4
  5. package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkModule.kt +27 -25
  6. package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkPluginResultDelegate.kt +2 -2
  7. package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcode_scanner_view/ScanbotBarcodeScannerViewEvents.kt +4 -4
  8. package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcode_scanner_view/ScanbotBarcodeScannerViewManager.kt +0 -1
  9. package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/models/ScanbotBarcodeScannerModels.kt +4 -10
  10. package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerLegacyView.m +4 -4
  11. package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerView.mm +0 -4
  12. package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewControllerWrapper.h +0 -3
  13. package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewControllerWrapper.m +1 -5
  14. package/ios/ScanbotBarcodeSdk.m +57 -48
  15. package/ios/ScanbotBarcodeSdkPluginResultDelegate.h +1 -1
  16. package/ios/ScanbotBarcodeSdkPluginResultDelegate.m +13 -13
  17. package/lib/commonjs/component/spec/ScanbotBarcodeScannerViewNativeComponent.js.map +1 -1
  18. package/lib/commonjs/documents/BarcodeDocumentModel.js +612 -613
  19. package/lib/commonjs/documents/BarcodeDocumentModel.js.map +1 -1
  20. package/lib/commonjs/documents/GenericDocument.js +82 -49
  21. package/lib/commonjs/documents/GenericDocument.js.map +1 -1
  22. package/lib/commonjs/index.js +15 -13
  23. package/lib/commonjs/index.js.map +1 -1
  24. package/lib/commonjs/ui_v2/barcode/ArTrackingOverlayConfiguration.js +10 -47
  25. package/lib/commonjs/ui_v2/barcode/ArTrackingOverlayConfiguration.js.map +1 -1
  26. package/lib/commonjs/ui_v2/barcode/BarcodeRecognizerConfiguration.js +47 -19
  27. package/lib/commonjs/ui_v2/barcode/BarcodeRecognizerConfiguration.js.map +1 -1
  28. package/lib/commonjs/ui_v2/barcode/BarcodeScannerConfiguration.js.map +1 -1
  29. package/lib/commonjs/ui_v2/barcode/FindAndPickScanningModeUseCase.js +8 -4
  30. package/lib/commonjs/ui_v2/barcode/FindAndPickScanningModeUseCase.js.map +1 -1
  31. package/lib/commonjs/ui_v2/barcode/MultipleScanningModeUseCase.js +9 -1
  32. package/lib/commonjs/ui_v2/barcode/MultipleScanningModeUseCase.js.map +1 -1
  33. package/lib/commonjs/ui_v2/barcode/SingleScanningModeUseCase.js +1 -1
  34. package/lib/commonjs/ui_v2/barcode/SingleScanningModeUseCase.js.map +1 -1
  35. package/lib/commonjs/ui_v2/common/CameraPermission.js +22 -6
  36. package/lib/commonjs/ui_v2/common/CameraPermission.js.map +1 -1
  37. package/lib/commonjs/ui_v2/common/Common.js +175 -5
  38. package/lib/commonjs/ui_v2/common/Common.js.map +1 -1
  39. package/lib/commonjs/ui_v2/common/NavigationBarConfiguration.js +6 -0
  40. package/lib/commonjs/ui_v2/common/NavigationBarConfiguration.js.map +1 -0
  41. package/lib/commonjs/ui_v2/common/ScanbotAlertDialog.js +27 -5
  42. package/lib/commonjs/ui_v2/common/ScanbotAlertDialog.js.map +1 -1
  43. package/lib/commonjs/ui_v2/common/UserGuidanceConfiguration.js +48 -1
  44. package/lib/commonjs/ui_v2/common/UserGuidanceConfiguration.js.map +1 -1
  45. package/lib/commonjs/ui_v2/index.js +14 -1
  46. package/lib/commonjs/ui_v2/index.js.map +1 -1
  47. package/lib/commonjs/utils.js +8 -1
  48. package/lib/commonjs/utils.js.map +1 -1
  49. package/lib/module/component/spec/ScanbotBarcodeScannerViewNativeComponent.js.map +1 -1
  50. package/lib/module/documents/BarcodeDocumentModel.js +611 -612
  51. package/lib/module/documents/BarcodeDocumentModel.js.map +1 -1
  52. package/lib/module/documents/GenericDocument.js +84 -51
  53. package/lib/module/documents/GenericDocument.js.map +1 -1
  54. package/lib/module/index.js +7 -1
  55. package/lib/module/index.js.map +1 -1
  56. package/lib/module/ui_v2/barcode/ArTrackingOverlayConfiguration.js +1 -36
  57. package/lib/module/ui_v2/barcode/ArTrackingOverlayConfiguration.js.map +1 -1
  58. package/lib/module/ui_v2/barcode/BarcodeRecognizerConfiguration.js +47 -19
  59. package/lib/module/ui_v2/barcode/BarcodeRecognizerConfiguration.js.map +1 -1
  60. package/lib/module/ui_v2/barcode/BarcodeScannerConfiguration.js.map +1 -1
  61. package/lib/module/ui_v2/barcode/FindAndPickScanningModeUseCase.js +6 -2
  62. package/lib/module/ui_v2/barcode/FindAndPickScanningModeUseCase.js.map +1 -1
  63. package/lib/module/ui_v2/barcode/MultipleScanningModeUseCase.js +9 -1
  64. package/lib/module/ui_v2/barcode/MultipleScanningModeUseCase.js.map +1 -1
  65. package/lib/module/ui_v2/barcode/SingleScanningModeUseCase.js +1 -1
  66. package/lib/module/ui_v2/barcode/SingleScanningModeUseCase.js.map +1 -1
  67. package/lib/module/ui_v2/common/CameraPermission.js +22 -6
  68. package/lib/module/ui_v2/common/CameraPermission.js.map +1 -1
  69. package/lib/module/ui_v2/common/Common.js +168 -2
  70. package/lib/module/ui_v2/common/Common.js.map +1 -1
  71. package/lib/module/ui_v2/common/NavigationBarConfiguration.js +2 -0
  72. package/lib/module/ui_v2/common/NavigationBarConfiguration.js.map +1 -0
  73. package/lib/module/ui_v2/common/ScanbotAlertDialog.js +28 -5
  74. package/lib/module/ui_v2/common/ScanbotAlertDialog.js.map +1 -1
  75. package/lib/module/ui_v2/common/UserGuidanceConfiguration.js +47 -0
  76. package/lib/module/ui_v2/common/UserGuidanceConfiguration.js.map +1 -1
  77. package/lib/module/ui_v2/index.js +3 -1
  78. package/lib/module/ui_v2/index.js.map +1 -1
  79. package/lib/module/utils.js +6 -0
  80. package/lib/module/utils.js.map +1 -1
  81. package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.d.ts +3 -5
  82. package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.d.ts.map +1 -1
  83. package/lib/typescript/src/component/spec/ScanbotBarcodeScannerViewNativeComponent.d.ts +0 -1
  84. package/lib/typescript/src/component/spec/ScanbotBarcodeScannerViewNativeComponent.d.ts.map +1 -1
  85. package/lib/typescript/src/configurations.d.ts +13 -5
  86. package/lib/typescript/src/configurations.d.ts.map +1 -1
  87. package/lib/typescript/src/customConfigurations.d.ts +19 -3
  88. package/lib/typescript/src/customConfigurations.d.ts.map +1 -1
  89. package/lib/typescript/src/documents/BarcodeDocumentModel.d.ts +70 -71
  90. package/lib/typescript/src/documents/BarcodeDocumentModel.d.ts.map +1 -1
  91. package/lib/typescript/src/documents/CommonFieldType.d.ts +58 -109
  92. package/lib/typescript/src/documents/CommonFieldType.d.ts.map +1 -1
  93. package/lib/typescript/src/documents/GenericDocument.d.ts +95 -86
  94. package/lib/typescript/src/documents/GenericDocument.d.ts.map +1 -1
  95. package/lib/typescript/src/index.d.ts +5 -1
  96. package/lib/typescript/src/index.d.ts.map +1 -1
  97. package/lib/typescript/src/results.d.ts +1 -13
  98. package/lib/typescript/src/results.d.ts.map +1 -1
  99. package/lib/typescript/src/types.d.ts +25 -20
  100. package/lib/typescript/src/types.d.ts.map +1 -1
  101. package/lib/typescript/src/ui_v2/barcode/ArTrackingOverlayConfiguration.d.ts +1 -22
  102. package/lib/typescript/src/ui_v2/barcode/ArTrackingOverlayConfiguration.d.ts.map +1 -1
  103. package/lib/typescript/src/ui_v2/barcode/BarcodeRecognizerConfiguration.d.ts +41 -19
  104. package/lib/typescript/src/ui_v2/barcode/BarcodeRecognizerConfiguration.d.ts.map +1 -1
  105. package/lib/typescript/src/ui_v2/barcode/BarcodeScannerConfiguration.d.ts.map +1 -1
  106. package/lib/typescript/src/ui_v2/barcode/FindAndPickScanningModeUseCase.d.ts +4 -0
  107. package/lib/typescript/src/ui_v2/barcode/FindAndPickScanningModeUseCase.d.ts.map +1 -1
  108. package/lib/typescript/src/ui_v2/barcode/MultipleScanningModeUseCase.d.ts +5 -0
  109. package/lib/typescript/src/ui_v2/barcode/MultipleScanningModeUseCase.d.ts.map +1 -1
  110. package/lib/typescript/src/ui_v2/common/CameraPermission.d.ts.map +1 -1
  111. package/lib/typescript/src/ui_v2/common/Common.d.ts +103 -1
  112. package/lib/typescript/src/ui_v2/common/Common.d.ts.map +1 -1
  113. package/lib/typescript/src/ui_v2/common/NavigationBarConfiguration.d.ts +12 -0
  114. package/lib/typescript/src/ui_v2/common/NavigationBarConfiguration.d.ts.map +1 -0
  115. package/lib/typescript/src/ui_v2/common/ScanbotAlertDialog.d.ts +4 -0
  116. package/lib/typescript/src/ui_v2/common/ScanbotAlertDialog.d.ts.map +1 -1
  117. package/lib/typescript/src/ui_v2/common/UserGuidanceConfiguration.d.ts +25 -0
  118. package/lib/typescript/src/ui_v2/common/UserGuidanceConfiguration.d.ts.map +1 -1
  119. package/lib/typescript/src/ui_v2/index.d.ts +1 -0
  120. package/lib/typescript/src/ui_v2/index.d.ts.map +1 -1
  121. package/lib/typescript/src/utils.d.ts +5 -0
  122. package/lib/typescript/src/utils.d.ts.map +1 -1
  123. package/package.json +2 -2
  124. package/src/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.ts +2 -5
  125. package/src/component/spec/ScanbotBarcodeScannerViewNativeComponent.ts +0 -1
  126. package/src/configurations.ts +19 -7
  127. package/src/customConfigurations.ts +19 -3
  128. package/src/documents/BarcodeDocumentModel.ts +644 -623
  129. package/src/documents/CommonFieldType.ts +59 -82
  130. package/src/documents/GenericDocument.ts +104 -86
  131. package/src/index.ts +7 -1
  132. package/src/results.ts +1 -16
  133. package/src/types.ts +26 -23
  134. package/src/ui_v2/barcode/ArTrackingOverlayConfiguration.ts +1 -36
  135. package/src/ui_v2/barcode/BarcodeRecognizerConfiguration.ts +60 -22
  136. package/src/ui_v2/barcode/BarcodeScannerConfiguration.ts +2 -2
  137. package/src/ui_v2/barcode/BarcodeUseCase.ts +1 -1
  138. package/src/ui_v2/barcode/FindAndPickScanningModeUseCase.ts +6 -2
  139. package/src/ui_v2/barcode/MultipleScanningModeUseCase.ts +9 -1
  140. package/src/ui_v2/barcode/SingleScanningModeUseCase.ts +1 -1
  141. package/src/ui_v2/common/CameraPermission.ts +22 -6
  142. package/src/ui_v2/common/Common.ts +168 -2
  143. package/src/ui_v2/common/NavigationBarConfiguration.ts +13 -0
  144. package/src/ui_v2/common/ScanbotAlertDialog.ts +25 -6
  145. package/src/ui_v2/common/UserGuidanceConfiguration.ts +41 -0
  146. package/src/ui_v2/index.ts +5 -9
  147. package/src/utils.ts +10 -0
  148. package/lib/commonjs/documents/Point.js +0 -14
  149. package/lib/commonjs/documents/Point.js.map +0 -1
  150. package/lib/module/documents/Point.js +0 -7
  151. package/lib/module/documents/Point.js.map +0 -1
  152. package/lib/typescript/src/documents/Point.d.ts +0 -6
  153. package/lib/typescript/src/documents/Point.d.ts.map +0 -1
  154. package/src/documents/Point.ts +0 -10
@@ -3,77 +3,77 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.VCardXMLDocumentTypeName = exports.VCardVersionDocumentTypeName = exports.VCardURLDocumentTypeName = exports.VCardUIDDocumentTypeName = exports.VCardTitleDocumentTypeName = exports.VCardTimeZoneDocumentTypeName = exports.VCardTelephoneNumberDocumentTypeName = exports.VCardSourceDocumentTypeName = exports.VCardSoundDocumentTypeName = exports.VCardRoleDocumentTypeName = exports.VCardRevisionDocumentTypeName = exports.VCardRelatedDocumentTypeName = exports.VCardPublicKeyDocumentTypeName = exports.VCardProductIdDocumentTypeName = exports.VCardPhotoDocumentTypeName = exports.VCardOrganisationDocumentTypeName = exports.VCardNoteDocumentTypeName = exports.VCardNicknameDocumentTypeName = exports.VCardNameDocumentTypeName = exports.VCardMemberDocumentTypeName = exports.VCardLogoDocumentTypeName = exports.VCardLanguagesDocumentTypeName = exports.VCardKindDocumentTypeName = exports.VCardIMPPDocumentTypeName = exports.VCardGeoLocationDocumentTypeName = exports.VCardGenderDocumentTypeName = exports.VCardFirstNameDocumentTypeName = exports.VCardEntryDocumentTypeName = exports.VCardEmailDocumentTypeName = exports.VCardDocumentTypeName = exports.VCardDeliveryAddressDocumentTypeName = exports.VCardCustomDocumentTypeName = exports.VCardClientPIDMapDocumentTypeName = exports.VCardCategoriesDocumentTypeName = exports.VCardCalendarURIForRequestsDocumentTypeName = exports.VCardCalendarURIDocumentTypeName = exports.VCardBusyTimeURLDocumentTypeName = exports.VCardBirthdayDocumentTypeName = exports.VCardAnniversaryDocumentTypeName = exports.VCard = exports.SwissQRDocumentTypeName = exports.SwissQR = exports.SEPADocumentTypeName = exports.SEPA = exports.MedicalCertificateDocumentTypeName = exports.MedicalCertificate = exports.IDCardPDF417DocumentTypeName = exports.IDCardPDF417 = exports.GS1ElementValidationErrorDocumentTypeName = exports.GS1ElementDocumentTypeName = exports.GS1DocumentTypeName = exports.GS1 = exports.DEMedicalPlanSubheadingPrescriptionDocumentTypeName = exports.DEMedicalPlanSubheadingMedicineSubstanceDocumentTypeName = exports.DEMedicalPlanSubheadingMedicineDocumentTypeName = exports.DEMedicalPlanSubheadingDocumentTypeName = exports.DEMedicalPlanPatientDocumentTypeName = exports.DEMedicalPlanDocumentTypeName = exports.DEMedicalPlanDoctorDocumentTypeName = exports.DEMedicalPlan = exports.BoardingPassLegDocumentTypeName = exports.BoardingPassDocumentTypeName = exports.BoardingPass = exports.AAMVAVehicleSafetyInspectionDataDocumentTypeName = exports.AAMVAVehicleOwnerDataDocumentTypeName = exports.AAMVAVehicleDataDocumentTypeName = exports.AAMVATitleDataDocumentTypeName = exports.AAMVARegistrationDataDocumentTypeName = exports.AAMVARegistrantAndVehicleDataDocumentTypeName = exports.AAMVARawDocumentDocumentTypeName = exports.AAMVAMotorCarrierDataDocumentTypeName = exports.AAMVAIDCardDocumentTypeName = exports.AAMVAEnhancedDriverLicenseDocumentTypeName = exports.AAMVADriverLicenseDocumentTypeName = exports.AAMVADocumentTypeName = exports.AAMVADLIDDocumentTypeName = exports.AAMVA = void 0;
6
+ exports.VCardXMLDocumentType = exports.VCardVersionDocumentType = exports.VCardURLDocumentType = exports.VCardUIDDocumentType = exports.VCardTitleDocumentType = exports.VCardTimeZoneDocumentType = exports.VCardTelephoneNumberDocumentType = exports.VCardSourceDocumentType = exports.VCardSoundDocumentType = exports.VCardRoleDocumentType = exports.VCardRevisionDocumentType = exports.VCardRelatedDocumentType = exports.VCardPublicKeyDocumentType = exports.VCardProductIdDocumentType = exports.VCardPhotoDocumentType = exports.VCardOrganisationDocumentType = exports.VCardNoteDocumentType = exports.VCardNicknameDocumentType = exports.VCardNameDocumentType = exports.VCardMemberDocumentType = exports.VCardLogoDocumentType = exports.VCardLanguagesDocumentType = exports.VCardKindDocumentType = exports.VCardIMPPDocumentType = exports.VCardGeoLocationDocumentType = exports.VCardGenderDocumentType = exports.VCardFirstNameDocumentType = exports.VCardEntryDocumentType = exports.VCardEmailDocumentType = exports.VCardDocumentType = exports.VCardDeliveryAddressDocumentType = exports.VCardCustomDocumentType = exports.VCardClientPIDMapDocumentType = exports.VCardCategoriesDocumentType = exports.VCardCalendarURIForRequestsDocumentType = exports.VCardCalendarURIDocumentType = exports.VCardBusyTimeURLDocumentType = exports.VCardBirthdayDocumentType = exports.VCardAnniversaryDocumentType = exports.VCard = exports.SwissQRDocumentType = exports.SwissQR = exports.SEPADocumentType = exports.SEPA = exports.MedicalCertificateDocumentType = exports.MedicalCertificate = exports.IDCardPDF417DocumentType = exports.IDCardPDF417 = exports.GS1ElementValidationErrorDocumentType = exports.GS1ElementDocumentType = exports.GS1DocumentType = exports.GS1 = exports.DEMedicalPlanSubheadingPrescriptionDocumentType = exports.DEMedicalPlanSubheadingMedicineSubstanceDocumentType = exports.DEMedicalPlanSubheadingMedicineDocumentType = exports.DEMedicalPlanSubheadingDocumentType = exports.DEMedicalPlanPatientDocumentType = exports.DEMedicalPlanDocumentType = exports.DEMedicalPlanDoctorDocumentType = exports.DEMedicalPlan = exports.BoardingPassLegDocumentType = exports.BoardingPassDocumentType = exports.BoardingPass = exports.AAMVAVehicleSafetyInspectionDataDocumentType = exports.AAMVAVehicleOwnerDataDocumentType = exports.AAMVAVehicleDataDocumentType = exports.AAMVATitleDataDocumentType = exports.AAMVARegistrationDataDocumentType = exports.AAMVARegistrantAndVehicleDataDocumentType = exports.AAMVARawDocumentDocumentType = exports.AAMVAMotorCarrierDataDocumentType = exports.AAMVAIDCardDocumentType = exports.AAMVAEnhancedDriverLicenseDocumentType = exports.AAMVADriverLicenseDocumentType = exports.AAMVADocumentType = exports.AAMVADLIDDocumentType = exports.AAMVA = void 0;
7
7
  /// All possible root document types.
8
8
 
9
- const BoardingPassDocumentTypeName = exports.BoardingPassDocumentTypeName = 'BoardingPass';
10
- const BoardingPassLegDocumentTypeName = exports.BoardingPassLegDocumentTypeName = 'Leg';
11
- const SwissQRDocumentTypeName = exports.SwissQRDocumentTypeName = 'SwissQR';
12
- const DEMedicalPlanDocumentTypeName = exports.DEMedicalPlanDocumentTypeName = 'DEMedicalPlan';
13
- const DEMedicalPlanPatientDocumentTypeName = exports.DEMedicalPlanPatientDocumentTypeName = 'Patient';
14
- const DEMedicalPlanDoctorDocumentTypeName = exports.DEMedicalPlanDoctorDocumentTypeName = 'Doctor';
15
- const DEMedicalPlanSubheadingDocumentTypeName = exports.DEMedicalPlanSubheadingDocumentTypeName = 'Subheading';
16
- const DEMedicalPlanSubheadingMedicineDocumentTypeName = exports.DEMedicalPlanSubheadingMedicineDocumentTypeName = 'Medicine';
17
- const DEMedicalPlanSubheadingMedicineSubstanceDocumentTypeName = exports.DEMedicalPlanSubheadingMedicineSubstanceDocumentTypeName = 'Substance';
18
- const DEMedicalPlanSubheadingPrescriptionDocumentTypeName = exports.DEMedicalPlanSubheadingPrescriptionDocumentTypeName = 'Prescription';
19
- const IDCardPDF417DocumentTypeName = exports.IDCardPDF417DocumentTypeName = 'IDCardPDF417';
20
- const GS1DocumentTypeName = exports.GS1DocumentTypeName = 'GS1';
21
- const GS1ElementDocumentTypeName = exports.GS1ElementDocumentTypeName = 'Element';
22
- const GS1ElementValidationErrorDocumentTypeName = exports.GS1ElementValidationErrorDocumentTypeName = 'ValidationError';
23
- const SEPADocumentTypeName = exports.SEPADocumentTypeName = 'SEPA';
24
- const MedicalCertificateDocumentTypeName = exports.MedicalCertificateDocumentTypeName = 'MedicalCertificate';
25
- const VCardDocumentTypeName = exports.VCardDocumentTypeName = 'VCard';
26
- const VCardEntryDocumentTypeName = exports.VCardEntryDocumentTypeName = 'Entry';
27
- const VCardVersionDocumentTypeName = exports.VCardVersionDocumentTypeName = 'Version';
28
- const VCardSourceDocumentTypeName = exports.VCardSourceDocumentTypeName = 'Source';
29
- const VCardKindDocumentTypeName = exports.VCardKindDocumentTypeName = 'Kind';
30
- const VCardXMLDocumentTypeName = exports.VCardXMLDocumentTypeName = 'XML';
31
- const VCardNameDocumentTypeName = exports.VCardNameDocumentTypeName = 'Name';
32
- const VCardFirstNameDocumentTypeName = exports.VCardFirstNameDocumentTypeName = 'FirstName';
33
- const VCardNicknameDocumentTypeName = exports.VCardNicknameDocumentTypeName = 'Nickname';
34
- const VCardBirthdayDocumentTypeName = exports.VCardBirthdayDocumentTypeName = 'Birthday';
35
- const VCardAnniversaryDocumentTypeName = exports.VCardAnniversaryDocumentTypeName = 'Anniversary';
36
- const VCardGenderDocumentTypeName = exports.VCardGenderDocumentTypeName = 'Gender';
37
- const VCardDeliveryAddressDocumentTypeName = exports.VCardDeliveryAddressDocumentTypeName = 'DeliveryAddress';
38
- const VCardPhotoDocumentTypeName = exports.VCardPhotoDocumentTypeName = 'Photo';
39
- const VCardTelephoneNumberDocumentTypeName = exports.VCardTelephoneNumberDocumentTypeName = 'TelephoneNumber';
40
- const VCardEmailDocumentTypeName = exports.VCardEmailDocumentTypeName = 'Email';
41
- const VCardIMPPDocumentTypeName = exports.VCardIMPPDocumentTypeName = 'IMPP';
42
- const VCardLanguagesDocumentTypeName = exports.VCardLanguagesDocumentTypeName = 'Languages';
43
- const VCardTimeZoneDocumentTypeName = exports.VCardTimeZoneDocumentTypeName = 'TimeZone';
44
- const VCardGeoLocationDocumentTypeName = exports.VCardGeoLocationDocumentTypeName = 'GeoLocation';
45
- const VCardTitleDocumentTypeName = exports.VCardTitleDocumentTypeName = 'Title';
46
- const VCardRoleDocumentTypeName = exports.VCardRoleDocumentTypeName = 'Role';
47
- const VCardLogoDocumentTypeName = exports.VCardLogoDocumentTypeName = 'Logo';
48
- const VCardOrganisationDocumentTypeName = exports.VCardOrganisationDocumentTypeName = 'Organisation';
49
- const VCardMemberDocumentTypeName = exports.VCardMemberDocumentTypeName = 'Member';
50
- const VCardRelatedDocumentTypeName = exports.VCardRelatedDocumentTypeName = 'Related';
51
- const VCardCategoriesDocumentTypeName = exports.VCardCategoriesDocumentTypeName = 'Categories';
52
- const VCardNoteDocumentTypeName = exports.VCardNoteDocumentTypeName = 'Note';
53
- const VCardProductIdDocumentTypeName = exports.VCardProductIdDocumentTypeName = 'ProductId';
54
- const VCardRevisionDocumentTypeName = exports.VCardRevisionDocumentTypeName = 'Revision';
55
- const VCardSoundDocumentTypeName = exports.VCardSoundDocumentTypeName = 'Sound';
56
- const VCardUIDDocumentTypeName = exports.VCardUIDDocumentTypeName = 'UID';
57
- const VCardClientPIDMapDocumentTypeName = exports.VCardClientPIDMapDocumentTypeName = 'ClientPIDMap';
58
- const VCardURLDocumentTypeName = exports.VCardURLDocumentTypeName = 'URL';
59
- const VCardPublicKeyDocumentTypeName = exports.VCardPublicKeyDocumentTypeName = 'PublicKey';
60
- const VCardBusyTimeURLDocumentTypeName = exports.VCardBusyTimeURLDocumentTypeName = 'BusyTimeURL';
61
- const VCardCalendarURIForRequestsDocumentTypeName = exports.VCardCalendarURIForRequestsDocumentTypeName = 'CalendarURIForRequests';
62
- const VCardCalendarURIDocumentTypeName = exports.VCardCalendarURIDocumentTypeName = 'CalendarURI';
63
- const VCardCustomDocumentTypeName = exports.VCardCustomDocumentTypeName = 'Custom';
64
- const AAMVADocumentTypeName = exports.AAMVADocumentTypeName = 'AAMVA';
65
- const AAMVATitleDataDocumentTypeName = exports.AAMVATitleDataDocumentTypeName = 'TitleData';
66
- const AAMVARegistrationDataDocumentTypeName = exports.AAMVARegistrationDataDocumentTypeName = 'RegistrationData';
67
- const AAMVAMotorCarrierDataDocumentTypeName = exports.AAMVAMotorCarrierDataDocumentTypeName = 'MotorCarrierData';
68
- const AAMVARegistrantAndVehicleDataDocumentTypeName = exports.AAMVARegistrantAndVehicleDataDocumentTypeName = 'RegistrantAndVehicleData';
69
- const AAMVAVehicleOwnerDataDocumentTypeName = exports.AAMVAVehicleOwnerDataDocumentTypeName = 'VehicleOwnerData';
70
- const AAMVAVehicleDataDocumentTypeName = exports.AAMVAVehicleDataDocumentTypeName = 'VehicleData';
71
- const AAMVAVehicleSafetyInspectionDataDocumentTypeName = exports.AAMVAVehicleSafetyInspectionDataDocumentTypeName = 'VehicleSafetyInspectionData';
72
- const AAMVADLIDDocumentTypeName = exports.AAMVADLIDDocumentTypeName = 'DLID';
73
- const AAMVADriverLicenseDocumentTypeName = exports.AAMVADriverLicenseDocumentTypeName = 'DriverLicense';
74
- const AAMVAIDCardDocumentTypeName = exports.AAMVAIDCardDocumentTypeName = 'IDCard';
75
- const AAMVAEnhancedDriverLicenseDocumentTypeName = exports.AAMVAEnhancedDriverLicenseDocumentTypeName = 'EnhancedDriverLicense';
76
- const AAMVARawDocumentDocumentTypeName = exports.AAMVARawDocumentDocumentTypeName = 'RawDocument';
9
+ const BoardingPassDocumentType = exports.BoardingPassDocumentType = 'BoardingPass';
10
+ const BoardingPassLegDocumentType = exports.BoardingPassLegDocumentType = 'Leg';
11
+ const SwissQRDocumentType = exports.SwissQRDocumentType = 'SwissQR';
12
+ const DEMedicalPlanDocumentType = exports.DEMedicalPlanDocumentType = 'DEMedicalPlan';
13
+ const DEMedicalPlanPatientDocumentType = exports.DEMedicalPlanPatientDocumentType = 'Patient';
14
+ const DEMedicalPlanDoctorDocumentType = exports.DEMedicalPlanDoctorDocumentType = 'Doctor';
15
+ const DEMedicalPlanSubheadingDocumentType = exports.DEMedicalPlanSubheadingDocumentType = 'Subheading';
16
+ const DEMedicalPlanSubheadingMedicineDocumentType = exports.DEMedicalPlanSubheadingMedicineDocumentType = 'Medicine';
17
+ const DEMedicalPlanSubheadingMedicineSubstanceDocumentType = exports.DEMedicalPlanSubheadingMedicineSubstanceDocumentType = 'Substance';
18
+ const DEMedicalPlanSubheadingPrescriptionDocumentType = exports.DEMedicalPlanSubheadingPrescriptionDocumentType = 'Prescription';
19
+ const IDCardPDF417DocumentType = exports.IDCardPDF417DocumentType = 'IDCardPDF417';
20
+ const GS1DocumentType = exports.GS1DocumentType = 'GS1';
21
+ const GS1ElementDocumentType = exports.GS1ElementDocumentType = 'Element';
22
+ const GS1ElementValidationErrorDocumentType = exports.GS1ElementValidationErrorDocumentType = 'ValidationError';
23
+ const SEPADocumentType = exports.SEPADocumentType = 'SEPA';
24
+ const MedicalCertificateDocumentType = exports.MedicalCertificateDocumentType = 'MedicalCertificate';
25
+ const VCardDocumentType = exports.VCardDocumentType = 'VCard';
26
+ const VCardEntryDocumentType = exports.VCardEntryDocumentType = 'Entry';
27
+ const VCardVersionDocumentType = exports.VCardVersionDocumentType = 'Version';
28
+ const VCardSourceDocumentType = exports.VCardSourceDocumentType = 'Source';
29
+ const VCardKindDocumentType = exports.VCardKindDocumentType = 'Kind';
30
+ const VCardXMLDocumentType = exports.VCardXMLDocumentType = 'XML';
31
+ const VCardNameDocumentType = exports.VCardNameDocumentType = 'Name';
32
+ const VCardFirstNameDocumentType = exports.VCardFirstNameDocumentType = 'FirstName';
33
+ const VCardNicknameDocumentType = exports.VCardNicknameDocumentType = 'Nickname';
34
+ const VCardBirthdayDocumentType = exports.VCardBirthdayDocumentType = 'Birthday';
35
+ const VCardAnniversaryDocumentType = exports.VCardAnniversaryDocumentType = 'Anniversary';
36
+ const VCardGenderDocumentType = exports.VCardGenderDocumentType = 'Gender';
37
+ const VCardDeliveryAddressDocumentType = exports.VCardDeliveryAddressDocumentType = 'DeliveryAddress';
38
+ const VCardPhotoDocumentType = exports.VCardPhotoDocumentType = 'Photo';
39
+ const VCardTelephoneNumberDocumentType = exports.VCardTelephoneNumberDocumentType = 'TelephoneNumber';
40
+ const VCardEmailDocumentType = exports.VCardEmailDocumentType = 'Email';
41
+ const VCardIMPPDocumentType = exports.VCardIMPPDocumentType = 'IMPP';
42
+ const VCardLanguagesDocumentType = exports.VCardLanguagesDocumentType = 'Languages';
43
+ const VCardTimeZoneDocumentType = exports.VCardTimeZoneDocumentType = 'TimeZone';
44
+ const VCardGeoLocationDocumentType = exports.VCardGeoLocationDocumentType = 'GeoLocation';
45
+ const VCardTitleDocumentType = exports.VCardTitleDocumentType = 'Title';
46
+ const VCardRoleDocumentType = exports.VCardRoleDocumentType = 'Role';
47
+ const VCardLogoDocumentType = exports.VCardLogoDocumentType = 'Logo';
48
+ const VCardOrganisationDocumentType = exports.VCardOrganisationDocumentType = 'Organisation';
49
+ const VCardMemberDocumentType = exports.VCardMemberDocumentType = 'Member';
50
+ const VCardRelatedDocumentType = exports.VCardRelatedDocumentType = 'Related';
51
+ const VCardCategoriesDocumentType = exports.VCardCategoriesDocumentType = 'Categories';
52
+ const VCardNoteDocumentType = exports.VCardNoteDocumentType = 'Note';
53
+ const VCardProductIdDocumentType = exports.VCardProductIdDocumentType = 'ProductId';
54
+ const VCardRevisionDocumentType = exports.VCardRevisionDocumentType = 'Revision';
55
+ const VCardSoundDocumentType = exports.VCardSoundDocumentType = 'Sound';
56
+ const VCardUIDDocumentType = exports.VCardUIDDocumentType = 'UID';
57
+ const VCardClientPIDMapDocumentType = exports.VCardClientPIDMapDocumentType = 'ClientPIDMap';
58
+ const VCardURLDocumentType = exports.VCardURLDocumentType = 'URL';
59
+ const VCardPublicKeyDocumentType = exports.VCardPublicKeyDocumentType = 'PublicKey';
60
+ const VCardBusyTimeURLDocumentType = exports.VCardBusyTimeURLDocumentType = 'BusyTimeURL';
61
+ const VCardCalendarURIForRequestsDocumentType = exports.VCardCalendarURIForRequestsDocumentType = 'CalendarURIForRequests';
62
+ const VCardCalendarURIDocumentType = exports.VCardCalendarURIDocumentType = 'CalendarURI';
63
+ const VCardCustomDocumentType = exports.VCardCustomDocumentType = 'Custom';
64
+ const AAMVADocumentType = exports.AAMVADocumentType = 'AAMVA';
65
+ const AAMVATitleDataDocumentType = exports.AAMVATitleDataDocumentType = 'TitleData';
66
+ const AAMVARegistrationDataDocumentType = exports.AAMVARegistrationDataDocumentType = 'RegistrationData';
67
+ const AAMVAMotorCarrierDataDocumentType = exports.AAMVAMotorCarrierDataDocumentType = 'MotorCarrierData';
68
+ const AAMVARegistrantAndVehicleDataDocumentType = exports.AAMVARegistrantAndVehicleDataDocumentType = 'RegistrantAndVehicleData';
69
+ const AAMVAVehicleOwnerDataDocumentType = exports.AAMVAVehicleOwnerDataDocumentType = 'VehicleOwnerData';
70
+ const AAMVAVehicleDataDocumentType = exports.AAMVAVehicleDataDocumentType = 'VehicleData';
71
+ const AAMVAVehicleSafetyInspectionDataDocumentType = exports.AAMVAVehicleSafetyInspectionDataDocumentType = 'VehicleSafetyInspectionData';
72
+ const AAMVADLIDDocumentType = exports.AAMVADLIDDocumentType = 'DLID';
73
+ const AAMVADriverLicenseDocumentType = exports.AAMVADriverLicenseDocumentType = 'DriverLicense';
74
+ const AAMVAIDCardDocumentType = exports.AAMVAIDCardDocumentType = 'IDCard';
75
+ const AAMVAEnhancedDriverLicenseDocumentType = exports.AAMVAEnhancedDriverLicenseDocumentType = 'EnhancedDriverLicense';
76
+ const AAMVARawDocumentDocumentType = exports.AAMVARawDocumentDocumentType = 'RawDocument';
77
77
 
78
78
  /** Boarding Pass */
79
79
  class BoardingPass {
@@ -81,38 +81,38 @@ class BoardingPass {
81
81
  return this._document;
82
82
  }
83
83
  constructor(document) {
84
- if (document.type.name != this.requiredDocumentType()) {
84
+ if (document.type.name !== this.requiredDocumentType()) {
85
85
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
86
86
  }
87
87
  this._document = document;
88
88
  }
89
89
  requiredDocumentType() {
90
- return BoardingPassDocumentTypeName;
90
+ return BoardingPassDocumentType;
91
91
  }
92
92
 
93
93
  /** Electronic Ticket */
94
94
  get electronicTicket() {
95
- return this.document.fields.find(f => f.type.name == 'ElectronicTicket');
95
+ return this.document.fields.find(f => f.type.name === 'ElectronicTicket');
96
96
  }
97
97
 
98
98
  /** Name */
99
99
  get name() {
100
- return this.document.fields.find(f => f.type.name == 'Name');
100
+ return this.document.fields.find(f => f.type.name === 'Name');
101
101
  }
102
102
 
103
103
  /** Number Of Legs */
104
104
  get numberOfLegs() {
105
- return this.document.fields.find(f => f.type.name == 'NumberOfLegs');
105
+ return this.document.fields.find(f => f.type.name === 'NumberOfLegs');
106
106
  }
107
107
 
108
108
  /** Security Data */
109
109
  get securityData() {
110
- return this.document.fields.find(f => f.type.name == 'SecurityData');
110
+ return this.document.fields.find(f => f.type.name === 'SecurityData');
111
111
  }
112
112
 
113
113
  /** An array of all children of type "Leg". */
114
114
  get legs() {
115
- return this.document.children.filter(c => c.type.name == 'Leg').map(c => new BoardingPass.Leg(c));
115
+ return this.document.children.filter(c => c.type.name === 'Leg').map(c => new BoardingPass.Leg(c));
116
116
  }
117
117
  }
118
118
  exports.BoardingPass = BoardingPass;
@@ -122,168 +122,168 @@ exports.BoardingPass = BoardingPass;
122
122
  return this._document;
123
123
  }
124
124
  constructor(document) {
125
- if (document.type.name != this.requiredDocumentType()) {
125
+ if (document.type.name !== this.requiredDocumentType()) {
126
126
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
127
127
  }
128
128
  this._document = document;
129
129
  }
130
130
  requiredDocumentType() {
131
- return BoardingPassLegDocumentTypeName;
131
+ return BoardingPassLegDocumentType;
132
132
  }
133
133
 
134
134
  /** Airline Designator Of Boarding Pass Issuer */
135
135
  get airlineDesignatorOfBoardingPassIssuer() {
136
- return this.document.fields.find(f => f.type.name == 'AirlineDesignatorOfBoardingPassIssuer');
136
+ return this.document.fields.find(f => f.type.name === 'AirlineDesignatorOfBoardingPassIssuer');
137
137
  }
138
138
 
139
139
  /** Airline Numeric Code */
140
140
  get airlineNumericCode() {
141
- return this.document.fields.find(f => f.type.name == 'AirlineNumericCode');
141
+ return this.document.fields.find(f => f.type.name === 'AirlineNumericCode');
142
142
  }
143
143
 
144
144
  /** Baggage Tag License Plate Numbers */
145
145
  get baggageTagLicensePlateNumbers() {
146
- return this.document.fields.find(f => f.type.name == 'BaggageTagLicensePlateNumbers');
146
+ return this.document.fields.find(f => f.type.name === 'BaggageTagLicensePlateNumbers');
147
147
  }
148
148
 
149
149
  /** Check In Sequence Number */
150
150
  get checkInSequenceNumber() {
151
- return this.document.fields.find(f => f.type.name == 'CheckInSequenceNumber');
151
+ return this.document.fields.find(f => f.type.name === 'CheckInSequenceNumber');
152
152
  }
153
153
 
154
154
  /** Compartment Code */
155
155
  get compartmentCode() {
156
- return this.document.fields.find(f => f.type.name == 'CompartmentCode');
156
+ return this.document.fields.find(f => f.type.name === 'CompartmentCode');
157
157
  }
158
158
 
159
159
  /** Date Of Boarding Pass Issuance Julian */
160
160
  get dateOfBoardingPassIssuanceJulian() {
161
- return this.document.fields.find(f => f.type.name == 'DateOfBoardingPassIssuanceJulian');
161
+ return this.document.fields.find(f => f.type.name === 'DateOfBoardingPassIssuanceJulian');
162
162
  }
163
163
 
164
164
  /** Date Of Flight Julian */
165
165
  get dateOfFlightJulian() {
166
- return this.document.fields.find(f => f.type.name == 'DateOfFlightJulian');
166
+ return this.document.fields.find(f => f.type.name === 'DateOfFlightJulian');
167
167
  }
168
168
 
169
169
  /** Departure Airport Code */
170
170
  get departureAirportCode() {
171
- return this.document.fields.find(f => f.type.name == 'DepartureAirportCode');
171
+ return this.document.fields.find(f => f.type.name === 'DepartureAirportCode');
172
172
  }
173
173
 
174
174
  /** Destination Airport Code */
175
175
  get destinationAirportCode() {
176
- return this.document.fields.find(f => f.type.name == 'DestinationAirportCode');
176
+ return this.document.fields.find(f => f.type.name === 'DestinationAirportCode');
177
177
  }
178
178
 
179
179
  /** Document Form Serial Number */
180
180
  get documentFormSerialNumber() {
181
- return this.document.fields.find(f => f.type.name == 'DocumentFormSerialNumber');
181
+ return this.document.fields.find(f => f.type.name === 'DocumentFormSerialNumber');
182
182
  }
183
183
 
184
184
  /** Document Type */
185
185
  get documentType() {
186
- return this.document.fields.find(f => f.type.name == 'DocumentType');
186
+ return this.document.fields.find(f => f.type.name === 'DocumentType');
187
187
  }
188
188
 
189
189
  /** Fast Track */
190
190
  get fastTrack() {
191
- return this.document.fields.find(f => f.type.name == 'FastTrack');
191
+ return this.document.fields.find(f => f.type.name === 'FastTrack');
192
192
  }
193
193
 
194
194
  /** First Non Consecutive Baggage Tag License Plate Number */
195
195
  get firstNonConsecutiveBaggageTagLicensePlateNumber() {
196
- return this.document.fields.find(f => f.type.name == 'FirstNonConsecutiveBaggageTagLicensePlateNumber');
196
+ return this.document.fields.find(f => f.type.name === 'FirstNonConsecutiveBaggageTagLicensePlateNumber');
197
197
  }
198
198
 
199
199
  /** Flight Number */
200
200
  get flightNumber() {
201
- return this.document.fields.find(f => f.type.name == 'FlightNumber');
201
+ return this.document.fields.find(f => f.type.name === 'FlightNumber');
202
202
  }
203
203
 
204
204
  /** For Individual Airline Use */
205
205
  get forIndividualAirlineUse() {
206
- return this.document.fields.find(f => f.type.name == 'ForIndividualAirlineUse');
206
+ return this.document.fields.find(f => f.type.name === 'ForIndividualAirlineUse');
207
207
  }
208
208
 
209
209
  /** Free Baggage Allowance */
210
210
  get freeBaggageAllowance() {
211
- return this.document.fields.find(f => f.type.name == 'FreeBaggageAllowance');
211
+ return this.document.fields.find(f => f.type.name === 'FreeBaggageAllowance');
212
212
  }
213
213
 
214
214
  /** Frequent Flyer Airline Designator */
215
215
  get frequentFlyerAirlineDesignator() {
216
- return this.document.fields.find(f => f.type.name == 'FrequentFlyerAirlineDesignator');
216
+ return this.document.fields.find(f => f.type.name === 'FrequentFlyerAirlineDesignator');
217
217
  }
218
218
 
219
219
  /** Frequent Flyer Number */
220
220
  get frequentFlyerNumber() {
221
- return this.document.fields.find(f => f.type.name == 'FrequentFlyerNumber');
221
+ return this.document.fields.find(f => f.type.name === 'FrequentFlyerNumber');
222
222
  }
223
223
 
224
224
  /** IDAD Indicator */
225
225
  get idadIndicator() {
226
- return this.document.fields.find(f => f.type.name == 'IDADIndicator');
226
+ return this.document.fields.find(f => f.type.name === 'IDADIndicator');
227
227
  }
228
228
 
229
229
  /** International Documentation Verification */
230
230
  get internationalDocumentationVerification() {
231
- return this.document.fields.find(f => f.type.name == 'InternationalDocumentationVerification');
231
+ return this.document.fields.find(f => f.type.name === 'InternationalDocumentationVerification');
232
232
  }
233
233
 
234
234
  /** Marketing Carrier Designator */
235
235
  get marketingCarrierDesignator() {
236
- return this.document.fields.find(f => f.type.name == 'MarketingCarrierDesignator');
236
+ return this.document.fields.find(f => f.type.name === 'MarketingCarrierDesignator');
237
237
  }
238
238
 
239
239
  /** Operating Carrier Designator */
240
240
  get operatingCarrierDesignator() {
241
- return this.document.fields.find(f => f.type.name == 'OperatingCarrierDesignator');
241
+ return this.document.fields.find(f => f.type.name === 'OperatingCarrierDesignator');
242
242
  }
243
243
 
244
244
  /** Operating Carrier PNR Code */
245
245
  get operatingCarrierPNRCode() {
246
- return this.document.fields.find(f => f.type.name == 'OperatingCarrierPNRCode');
246
+ return this.document.fields.find(f => f.type.name === 'OperatingCarrierPNRCode');
247
247
  }
248
248
 
249
249
  /** Passenger Description */
250
250
  get passengerDescription() {
251
- return this.document.fields.find(f => f.type.name == 'PassengerDescription');
251
+ return this.document.fields.find(f => f.type.name === 'PassengerDescription');
252
252
  }
253
253
 
254
254
  /** Passenger Status */
255
255
  get passengerStatus() {
256
- return this.document.fields.find(f => f.type.name == 'PassengerStatus');
256
+ return this.document.fields.find(f => f.type.name === 'PassengerStatus');
257
257
  }
258
258
 
259
259
  /** Seat Number */
260
260
  get seatNumber() {
261
- return this.document.fields.find(f => f.type.name == 'SeatNumber');
261
+ return this.document.fields.find(f => f.type.name === 'SeatNumber');
262
262
  }
263
263
 
264
264
  /** Second Non Consecutive Baggage Tag License Plate Number */
265
265
  get secondNonConsecutiveBaggageTagLicensePlateNumber() {
266
- return this.document.fields.find(f => f.type.name == 'SecondNonConsecutiveBaggageTagLicensePlateNumber');
266
+ return this.document.fields.find(f => f.type.name === 'SecondNonConsecutiveBaggageTagLicensePlateNumber');
267
267
  }
268
268
 
269
269
  /** Selectee Indicator */
270
270
  get selecteeIndicator() {
271
- return this.document.fields.find(f => f.type.name == 'SelecteeIndicator');
271
+ return this.document.fields.find(f => f.type.name === 'SelecteeIndicator');
272
272
  }
273
273
 
274
274
  /** Source Of Boarding Pass Issuance */
275
275
  get sourceOfBoardingPassIssuance() {
276
- return this.document.fields.find(f => f.type.name == 'SourceOfBoardingPassIssuance');
276
+ return this.document.fields.find(f => f.type.name === 'SourceOfBoardingPassIssuance');
277
277
  }
278
278
 
279
279
  /** Source Of Check In */
280
280
  get sourceOfCheckIn() {
281
- return this.document.fields.find(f => f.type.name == 'SourceOfCheckIn');
281
+ return this.document.fields.find(f => f.type.name === 'SourceOfCheckIn');
282
282
  }
283
283
 
284
284
  /** VersionNumber */
285
285
  get versionNumber() {
286
- return this.document.fields.find(f => f.type.name == 'VersionNumber');
286
+ return this.document.fields.find(f => f.type.name === 'VersionNumber');
287
287
  }
288
288
  }
289
289
  _BoardingPass.Leg = Leg;
@@ -294,178 +294,178 @@ class SwissQR {
294
294
  return this._document;
295
295
  }
296
296
  constructor(document) {
297
- if (document.type.name != this.requiredDocumentType()) {
297
+ if (document.type.name !== this.requiredDocumentType()) {
298
298
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
299
299
  }
300
300
  this._document = document;
301
301
  }
302
302
  requiredDocumentType() {
303
- return SwissQRDocumentTypeName;
303
+ return SwissQRDocumentType;
304
304
  }
305
305
 
306
306
  /** Additional Billing Information */
307
307
  get additionalBillingInformation() {
308
- return this.document.fields.find(f => f.type.name == 'AdditionalBillingInformation');
308
+ return this.document.fields.find(f => f.type.name === 'AdditionalBillingInformation');
309
309
  }
310
310
 
311
311
  /** Additional Info Trailer */
312
312
  get additionalInfoTrailer() {
313
- return this.document.fields.find(f => f.type.name == 'AdditionalInfoTrailer');
313
+ return this.document.fields.find(f => f.type.name === 'AdditionalInfoTrailer');
314
314
  }
315
315
 
316
316
  /** Additional Info Unstructured */
317
317
  get additionalInfoUnstructured() {
318
- return this.document.fields.find(f => f.type.name == 'AdditionalInfoUnstructured');
318
+ return this.document.fields.find(f => f.type.name === 'AdditionalInfoUnstructured');
319
319
  }
320
320
 
321
321
  /** Alternative Procedure Parameter */
322
322
  get alternativeProcedureParameter() {
323
- return this.document.fields.find(f => f.type.name == 'AlternativeProcedureParameter');
323
+ return this.document.fields.find(f => f.type.name === 'AlternativeProcedureParameter');
324
324
  }
325
325
 
326
326
  /** Amount */
327
327
  get amount() {
328
- return this.document.fields.find(f => f.type.name == 'Amount');
328
+ return this.document.fields.find(f => f.type.name === 'Amount');
329
329
  }
330
330
 
331
331
  /** Currency */
332
332
  get currency() {
333
- return this.document.fields.find(f => f.type.name == 'Currency');
333
+ return this.document.fields.find(f => f.type.name === 'Currency');
334
334
  }
335
335
 
336
336
  /** Debtor Address Type */
337
337
  get debtorAddressType() {
338
- return this.document.fields.find(f => f.type.name == 'DebtorAddressType');
338
+ return this.document.fields.find(f => f.type.name === 'DebtorAddressType');
339
339
  }
340
340
 
341
341
  /** Debtor Building Or Address Line 2 */
342
342
  get debtorBuildingOrAddressLine2() {
343
- return this.document.fields.find(f => f.type.name == 'DebtorBuildingOrAddressLine2');
343
+ return this.document.fields.find(f => f.type.name === 'DebtorBuildingOrAddressLine2');
344
344
  }
345
345
 
346
346
  /** Debtor Country */
347
347
  get debtorCountry() {
348
- return this.document.fields.find(f => f.type.name == 'DebtorCountry');
348
+ return this.document.fields.find(f => f.type.name === 'DebtorCountry');
349
349
  }
350
350
 
351
351
  /** Debtor Name */
352
352
  get debtorName() {
353
- return this.document.fields.find(f => f.type.name == 'DebtorName');
353
+ return this.document.fields.find(f => f.type.name === 'DebtorName');
354
354
  }
355
355
 
356
356
  /** Debtor Place */
357
357
  get debtorPlace() {
358
- return this.document.fields.find(f => f.type.name == 'DebtorPlace');
358
+ return this.document.fields.find(f => f.type.name === 'DebtorPlace');
359
359
  }
360
360
 
361
361
  /** Debtor Postal Code */
362
362
  get debtorPostalCode() {
363
- return this.document.fields.find(f => f.type.name == 'DebtorPostalCode');
363
+ return this.document.fields.find(f => f.type.name === 'DebtorPostalCode');
364
364
  }
365
365
 
366
366
  /** Debtor Street Or Address Line 1 */
367
367
  get debtorStreetOrAddressLine1() {
368
- return this.document.fields.find(f => f.type.name == 'DebtorStreetOrAddressLine1');
368
+ return this.document.fields.find(f => f.type.name === 'DebtorStreetOrAddressLine1');
369
369
  }
370
370
 
371
371
  /** Due Date */
372
372
  get dueDate() {
373
- return this.document.fields.find(f => f.type.name == 'DueDate');
373
+ return this.document.fields.find(f => f.type.name === 'DueDate');
374
374
  }
375
375
 
376
376
  /** Encoding */
377
377
  get encoding() {
378
- return this.document.fields.find(f => f.type.name == 'Encoding');
378
+ return this.document.fields.find(f => f.type.name === 'Encoding');
379
379
  }
380
380
 
381
381
  /** Final Payee Address Type */
382
382
  get finalPayeeAddressType() {
383
- return this.document.fields.find(f => f.type.name == 'FinalPayeeAddressType');
383
+ return this.document.fields.find(f => f.type.name === 'FinalPayeeAddressType');
384
384
  }
385
385
 
386
386
  /** Final Payee Building Or Address Line 2 */
387
387
  get finalPayeeBuildingOrAddressLine2() {
388
- return this.document.fields.find(f => f.type.name == 'FinalPayeeBuildingOrAddressLine2');
388
+ return this.document.fields.find(f => f.type.name === 'FinalPayeeBuildingOrAddressLine2');
389
389
  }
390
390
 
391
391
  /** Final Payee Country */
392
392
  get finalPayeeCountry() {
393
- return this.document.fields.find(f => f.type.name == 'FinalPayeeCountry');
393
+ return this.document.fields.find(f => f.type.name === 'FinalPayeeCountry');
394
394
  }
395
395
 
396
396
  /** Final Payee Name */
397
397
  get finalPayeeName() {
398
- return this.document.fields.find(f => f.type.name == 'FinalPayeeName');
398
+ return this.document.fields.find(f => f.type.name === 'FinalPayeeName');
399
399
  }
400
400
 
401
401
  /** Final Payee Place */
402
402
  get finalPayeePlace() {
403
- return this.document.fields.find(f => f.type.name == 'FinalPayeePlace');
403
+ return this.document.fields.find(f => f.type.name === 'FinalPayeePlace');
404
404
  }
405
405
 
406
406
  /** Final Payee Postal Code */
407
407
  get finalPayeePostalCode() {
408
- return this.document.fields.find(f => f.type.name == 'FinalPayeePostalCode');
408
+ return this.document.fields.find(f => f.type.name === 'FinalPayeePostalCode');
409
409
  }
410
410
 
411
411
  /** Final Payee Street Or Address Line 1 */
412
412
  get finalPayeeStreetOrAddressLine1() {
413
- return this.document.fields.find(f => f.type.name == 'FinalPayeeStreetOrAddressLine1');
413
+ return this.document.fields.find(f => f.type.name === 'FinalPayeeStreetOrAddressLine1');
414
414
  }
415
415
 
416
416
  /** IBAN */
417
417
  get iban() {
418
- return this.document.fields.find(f => f.type.name == 'IBAN');
418
+ return this.document.fields.find(f => f.type.name === 'IBAN');
419
419
  }
420
420
 
421
421
  /** Payee Address Type */
422
422
  get payeeAddressType() {
423
- return this.document.fields.find(f => f.type.name == 'PayeeAddressType');
423
+ return this.document.fields.find(f => f.type.name === 'PayeeAddressType');
424
424
  }
425
425
 
426
426
  /** Payee Building Or Address Line 2 */
427
427
  get payeeBuildingOrAddressLine2() {
428
- return this.document.fields.find(f => f.type.name == 'PayeeBuildingOrAddressLine2');
428
+ return this.document.fields.find(f => f.type.name === 'PayeeBuildingOrAddressLine2');
429
429
  }
430
430
 
431
431
  /** Payee Country */
432
432
  get payeeCountry() {
433
- return this.document.fields.find(f => f.type.name == 'PayeeCountry');
433
+ return this.document.fields.find(f => f.type.name === 'PayeeCountry');
434
434
  }
435
435
 
436
436
  /** Payee Name */
437
437
  get payeeName() {
438
- return this.document.fields.find(f => f.type.name == 'PayeeName');
438
+ return this.document.fields.find(f => f.type.name === 'PayeeName');
439
439
  }
440
440
 
441
441
  /** Payee Place */
442
442
  get payeePlace() {
443
- return this.document.fields.find(f => f.type.name == 'PayeePlace');
443
+ return this.document.fields.find(f => f.type.name === 'PayeePlace');
444
444
  }
445
445
 
446
446
  /** Payee Postal Code */
447
447
  get payeePostalCode() {
448
- return this.document.fields.find(f => f.type.name == 'PayeePostalCode');
448
+ return this.document.fields.find(f => f.type.name === 'PayeePostalCode');
449
449
  }
450
450
 
451
451
  /** Payee Street Or Address Line 1 */
452
452
  get payeeStreetOrAddressLine1() {
453
- return this.document.fields.find(f => f.type.name == 'PayeeStreetOrAddressLine1');
453
+ return this.document.fields.find(f => f.type.name === 'PayeeStreetOrAddressLine1');
454
454
  }
455
455
 
456
456
  /** Payment Reference */
457
457
  get paymentReference() {
458
- return this.document.fields.find(f => f.type.name == 'PaymentReference');
458
+ return this.document.fields.find(f => f.type.name === 'PaymentReference');
459
459
  }
460
460
 
461
461
  /** Payment Reference Type */
462
462
  get paymentReferenceType() {
463
- return this.document.fields.find(f => f.type.name == 'PaymentReferenceType');
463
+ return this.document.fields.find(f => f.type.name === 'PaymentReferenceType');
464
464
  }
465
465
 
466
466
  /** Version */
467
467
  get version() {
468
- return this.document.fields.find(f => f.type.name == 'Version');
468
+ return this.document.fields.find(f => f.type.name === 'Version');
469
469
  }
470
470
  }
471
471
 
@@ -476,60 +476,60 @@ class DEMedicalPlan {
476
476
  return this._document;
477
477
  }
478
478
  constructor(document) {
479
- if (document.type.name != this.requiredDocumentType()) {
479
+ if (document.type.name !== this.requiredDocumentType()) {
480
480
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
481
481
  }
482
482
  this._document = document;
483
483
  }
484
484
  requiredDocumentType() {
485
- return DEMedicalPlanDocumentTypeName;
485
+ return DEMedicalPlanDocumentType;
486
486
  }
487
487
 
488
488
  /** Current Page */
489
489
  get currentPage() {
490
- return this.document.fields.find(f => f.type.name == 'CurrentPage');
490
+ return this.document.fields.find(f => f.type.name === 'CurrentPage');
491
491
  }
492
492
 
493
493
  /** Document Version Number */
494
494
  get documentVersionNumber() {
495
- return this.document.fields.find(f => f.type.name == 'DocumentVersionNumber');
495
+ return this.document.fields.find(f => f.type.name === 'DocumentVersionNumber');
496
496
  }
497
497
 
498
498
  /** GUID */
499
499
  get guid() {
500
- return this.document.fields.find(f => f.type.name == 'GUID');
500
+ return this.document.fields.find(f => f.type.name === 'GUID');
501
501
  }
502
502
 
503
503
  /** Language Country Code */
504
504
  get languageCountryCode() {
505
- return this.document.fields.find(f => f.type.name == 'LanguageCountryCode');
505
+ return this.document.fields.find(f => f.type.name === 'LanguageCountryCode');
506
506
  }
507
507
 
508
508
  /** Patch Version Number */
509
509
  get patchVersionNumber() {
510
- return this.document.fields.find(f => f.type.name == 'PatchVersionNumber');
510
+ return this.document.fields.find(f => f.type.name === 'PatchVersionNumber');
511
511
  }
512
512
 
513
513
  /** Total Number Of Pages */
514
514
  get totalNumberOfPages() {
515
- return this.document.fields.find(f => f.type.name == 'TotalNumberOfPages');
515
+ return this.document.fields.find(f => f.type.name === 'TotalNumberOfPages');
516
516
  }
517
517
 
518
518
  /** The child document of type "Patient". */
519
519
  get patient() {
520
- const child = this.document.children.find(c => c.type.name == 'Patient');
520
+ const child = this.document.children.find(c => c.type.name === 'Patient');
521
521
  return new DEMedicalPlan.Patient(child);
522
522
  }
523
523
 
524
524
  /** The child document of type "Doctor". */
525
525
  get doctor() {
526
- const child = this.document.children.find(c => c.type.name == 'Doctor');
526
+ const child = this.document.children.find(c => c.type.name === 'Doctor');
527
527
  return new DEMedicalPlan.Doctor(child);
528
528
  }
529
529
 
530
530
  /** An array of all children of type "Subheading". */
531
531
  get subheadings() {
532
- return this.document.children.filter(c => c.type.name == 'Subheading').map(c => new DEMedicalPlan.Subheading(c));
532
+ return this.document.children.filter(c => c.type.name === 'Subheading').map(c => new DEMedicalPlan.Subheading(c));
533
533
  }
534
534
  }
535
535
  exports.DEMedicalPlan = DEMedicalPlan;
@@ -539,88 +539,88 @@ exports.DEMedicalPlan = DEMedicalPlan;
539
539
  return this._document;
540
540
  }
541
541
  constructor(document) {
542
- if (document.type.name != this.requiredDocumentType()) {
542
+ if (document.type.name !== this.requiredDocumentType()) {
543
543
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
544
544
  }
545
545
  this._document = document;
546
546
  }
547
547
  requiredDocumentType() {
548
- return DEMedicalPlanPatientDocumentTypeName;
548
+ return DEMedicalPlanPatientDocumentType;
549
549
  }
550
550
 
551
551
  /** Allergies And Intolerances */
552
552
  get allergiesAndIntolerances() {
553
- return this.document.fields.find(f => f.type.name == 'AllergiesAndIntolerances');
553
+ return this.document.fields.find(f => f.type.name === 'AllergiesAndIntolerances');
554
554
  }
555
555
 
556
556
  /** Birth Date */
557
557
  get birthDate() {
558
- return this.document.fields.find(f => f.type.name == 'BirthDate');
558
+ return this.document.fields.find(f => f.type.name === 'BirthDate');
559
559
  }
560
560
 
561
561
  /** Breast Feeding */
562
562
  get breastFeeding() {
563
- return this.document.fields.find(f => f.type.name == 'BreastFeeding');
563
+ return this.document.fields.find(f => f.type.name === 'BreastFeeding');
564
564
  }
565
565
 
566
566
  /** Creatinine Value */
567
567
  get creatinineValue() {
568
- return this.document.fields.find(f => f.type.name == 'CreatinineValue');
568
+ return this.document.fields.find(f => f.type.name === 'CreatinineValue');
569
569
  }
570
570
 
571
571
  /** First Name */
572
572
  get firstName() {
573
- return this.document.fields.find(f => f.type.name == 'FirstName');
573
+ return this.document.fields.find(f => f.type.name === 'FirstName');
574
574
  }
575
575
 
576
576
  /** Gender */
577
577
  get gender() {
578
- return this.document.fields.find(f => f.type.name == 'Gender');
578
+ return this.document.fields.find(f => f.type.name === 'Gender');
579
579
  }
580
580
 
581
581
  /** Height */
582
582
  get height() {
583
- return this.document.fields.find(f => f.type.name == 'Height');
583
+ return this.document.fields.find(f => f.type.name === 'Height');
584
584
  }
585
585
 
586
586
  /** Last Name */
587
587
  get lastName() {
588
- return this.document.fields.find(f => f.type.name == 'LastName');
588
+ return this.document.fields.find(f => f.type.name === 'LastName');
589
589
  }
590
590
 
591
591
  /** Patient Free Text */
592
592
  get patientFreeText() {
593
- return this.document.fields.find(f => f.type.name == 'PatientFreeText');
593
+ return this.document.fields.find(f => f.type.name === 'PatientFreeText');
594
594
  }
595
595
 
596
596
  /** Patient ID */
597
597
  get patientID() {
598
- return this.document.fields.find(f => f.type.name == 'PatientID');
598
+ return this.document.fields.find(f => f.type.name === 'PatientID');
599
599
  }
600
600
 
601
601
  /** Pre Name */
602
602
  get preName() {
603
- return this.document.fields.find(f => f.type.name == 'PreName');
603
+ return this.document.fields.find(f => f.type.name === 'PreName');
604
604
  }
605
605
 
606
606
  /** Pregnant */
607
607
  get pregnant() {
608
- return this.document.fields.find(f => f.type.name == 'Pregnant');
608
+ return this.document.fields.find(f => f.type.name === 'Pregnant');
609
609
  }
610
610
 
611
611
  /** Name Suffix */
612
612
  get suffix() {
613
- return this.document.fields.find(f => f.type.name == 'Suffix');
613
+ return this.document.fields.find(f => f.type.name === 'Suffix');
614
614
  }
615
615
 
616
616
  /** Title */
617
617
  get title() {
618
- return this.document.fields.find(f => f.type.name == 'Title');
618
+ return this.document.fields.find(f => f.type.name === 'Title');
619
619
  }
620
620
 
621
621
  /** Weight */
622
622
  get weight() {
623
- return this.document.fields.find(f => f.type.name == 'Weight');
623
+ return this.document.fields.find(f => f.type.name === 'Weight');
624
624
  }
625
625
  }
626
626
  _DEMedicalPlan.Patient = Patient;
@@ -629,63 +629,63 @@ exports.DEMedicalPlan = DEMedicalPlan;
629
629
  return this._document;
630
630
  }
631
631
  constructor(document) {
632
- if (document.type.name != this.requiredDocumentType()) {
632
+ if (document.type.name !== this.requiredDocumentType()) {
633
633
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
634
634
  }
635
635
  this._document = document;
636
636
  }
637
637
  requiredDocumentType() {
638
- return DEMedicalPlanDoctorDocumentTypeName;
638
+ return DEMedicalPlanDoctorDocumentType;
639
639
  }
640
640
 
641
641
  /** Doctor Number */
642
642
  get doctorNumber() {
643
- return this.document.fields.find(f => f.type.name == 'DoctorNumber');
643
+ return this.document.fields.find(f => f.type.name === 'DoctorNumber');
644
644
  }
645
645
 
646
646
  /** Email */
647
647
  get email() {
648
- return this.document.fields.find(f => f.type.name == 'Email');
648
+ return this.document.fields.find(f => f.type.name === 'Email');
649
649
  }
650
650
 
651
651
  /** Hospital ID */
652
652
  get hospitalID() {
653
- return this.document.fields.find(f => f.type.name == 'HospitalID');
653
+ return this.document.fields.find(f => f.type.name === 'HospitalID');
654
654
  }
655
655
 
656
656
  /** Issuer Name */
657
657
  get issuerName() {
658
- return this.document.fields.find(f => f.type.name == 'IssuerName');
658
+ return this.document.fields.find(f => f.type.name === 'IssuerName');
659
659
  }
660
660
 
661
661
  /** Issuing Date And Time */
662
662
  get issuingDateAndTime() {
663
- return this.document.fields.find(f => f.type.name == 'IssuingDateAndTime');
663
+ return this.document.fields.find(f => f.type.name === 'IssuingDateAndTime');
664
664
  }
665
665
 
666
666
  /** Pharmacy ID */
667
667
  get pharmacyID() {
668
- return this.document.fields.find(f => f.type.name == 'PharmacyID');
668
+ return this.document.fields.find(f => f.type.name === 'PharmacyID');
669
669
  }
670
670
 
671
671
  /** Place */
672
672
  get place() {
673
- return this.document.fields.find(f => f.type.name == 'Place');
673
+ return this.document.fields.find(f => f.type.name === 'Place');
674
674
  }
675
675
 
676
676
  /** Postal Code */
677
677
  get postalCode() {
678
- return this.document.fields.find(f => f.type.name == 'PostalCode');
678
+ return this.document.fields.find(f => f.type.name === 'PostalCode');
679
679
  }
680
680
 
681
681
  /** Street */
682
682
  get street() {
683
- return this.document.fields.find(f => f.type.name == 'Street');
683
+ return this.document.fields.find(f => f.type.name === 'Street');
684
684
  }
685
685
 
686
686
  /** Telephone Number */
687
687
  get telephoneNumber() {
688
- return this.document.fields.find(f => f.type.name == 'TelephoneNumber');
688
+ return this.document.fields.find(f => f.type.name === 'TelephoneNumber');
689
689
  }
690
690
  }
691
691
  _DEMedicalPlan.Doctor = Doctor;
@@ -694,38 +694,38 @@ exports.DEMedicalPlan = DEMedicalPlan;
694
694
  return this._document;
695
695
  }
696
696
  constructor(document) {
697
- if (document.type.name != this.requiredDocumentType()) {
697
+ if (document.type.name !== this.requiredDocumentType()) {
698
698
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
699
699
  }
700
700
  this._document = document;
701
701
  }
702
702
  requiredDocumentType() {
703
- return DEMedicalPlanSubheadingDocumentTypeName;
703
+ return DEMedicalPlanSubheadingDocumentType;
704
704
  }
705
705
 
706
706
  /** General Note */
707
707
  get generalNotes() {
708
- return this.document.fields.filter(f => f.type.name == 'GeneralNote');
708
+ return this.document.fields.filter(f => f.type.name === 'GeneralNote');
709
709
  }
710
710
 
711
711
  /** Key Words */
712
712
  get keyWords() {
713
- return this.document.fields.find(f => f.type.name == 'KeyWords');
713
+ return this.document.fields.find(f => f.type.name === 'KeyWords');
714
714
  }
715
715
 
716
716
  /** Subheading Free Text */
717
717
  get subheadingFreeText() {
718
- return this.document.fields.find(f => f.type.name == 'SubheadingFreeText');
718
+ return this.document.fields.find(f => f.type.name === 'SubheadingFreeText');
719
719
  }
720
720
 
721
721
  /** An array of all children of type "Medicine". */
722
722
  get medicines() {
723
- return this.document.children.filter(c => c.type.name == 'Medicine').map(c => new DEMedicalPlan.Subheading.Medicine(c));
723
+ return this.document.children.filter(c => c.type.name === 'Medicine').map(c => new DEMedicalPlan.Subheading.Medicine(c));
724
724
  }
725
725
 
726
726
  /** An array of all children of type "Prescription". */
727
727
  get prescriptions() {
728
- return this.document.children.filter(c => c.type.name == 'Prescription').map(c => new DEMedicalPlan.Subheading.Prescription(c));
728
+ return this.document.children.filter(c => c.type.name === 'Prescription').map(c => new DEMedicalPlan.Subheading.Prescription(c));
729
729
  }
730
730
  }
731
731
  _DEMedicalPlan.Subheading = Subheading;
@@ -735,88 +735,88 @@ exports.DEMedicalPlan = DEMedicalPlan;
735
735
  return this._document;
736
736
  }
737
737
  constructor(document) {
738
- if (document.type.name != this.requiredDocumentType()) {
738
+ if (document.type.name !== this.requiredDocumentType()) {
739
739
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
740
740
  }
741
741
  this._document = document;
742
742
  }
743
743
  requiredDocumentType() {
744
- return DEMedicalPlanSubheadingMedicineDocumentTypeName;
744
+ return DEMedicalPlanSubheadingMedicineDocumentType;
745
745
  }
746
746
 
747
747
  /** Dosage Form */
748
748
  get dosageForm() {
749
- return this.document.fields.find(f => f.type.name == 'DosageForm');
749
+ return this.document.fields.find(f => f.type.name === 'DosageForm');
750
750
  }
751
751
 
752
752
  /** Dosage Form Free Text */
753
753
  get dosageFormFreeText() {
754
- return this.document.fields.find(f => f.type.name == 'DosageFormFreeText');
754
+ return this.document.fields.find(f => f.type.name === 'DosageFormFreeText');
755
755
  }
756
756
 
757
757
  /** Dosage Free Text */
758
758
  get dosageFreeText() {
759
- return this.document.fields.find(f => f.type.name == 'DosageFreeText');
759
+ return this.document.fields.find(f => f.type.name === 'DosageFreeText');
760
760
  }
761
761
 
762
762
  /** Dosing Unit */
763
763
  get dosingUnit() {
764
- return this.document.fields.find(f => f.type.name == 'DosingUnit');
764
+ return this.document.fields.find(f => f.type.name === 'DosingUnit');
765
765
  }
766
766
 
767
767
  /** Dosing Unit Free Text */
768
768
  get dosingUnitFreeText() {
769
- return this.document.fields.find(f => f.type.name == 'DosingUnitFreeText');
769
+ return this.document.fields.find(f => f.type.name === 'DosingUnitFreeText');
770
770
  }
771
771
 
772
772
  /** Drug Name */
773
773
  get drugName() {
774
- return this.document.fields.find(f => f.type.name == 'DrugName');
774
+ return this.document.fields.find(f => f.type.name === 'DrugName');
775
775
  }
776
776
 
777
777
  /** Evening Intake Dose */
778
778
  get evening() {
779
- return this.document.fields.find(f => f.type.name == 'Evening');
779
+ return this.document.fields.find(f => f.type.name === 'Evening');
780
780
  }
781
781
 
782
782
  /** General Notes */
783
783
  get generalNotes() {
784
- return this.document.fields.find(f => f.type.name == 'GeneralNotes');
784
+ return this.document.fields.find(f => f.type.name === 'GeneralNotes');
785
785
  }
786
786
 
787
787
  /** Midday Intake Dose */
788
788
  get midday() {
789
- return this.document.fields.find(f => f.type.name == 'Midday');
789
+ return this.document.fields.find(f => f.type.name === 'Midday');
790
790
  }
791
791
 
792
792
  /** Morning Intake Dose */
793
793
  get morning() {
794
- return this.document.fields.find(f => f.type.name == 'Morning');
794
+ return this.document.fields.find(f => f.type.name === 'Morning');
795
795
  }
796
796
 
797
797
  /** Night Intake Dose */
798
798
  get night() {
799
- return this.document.fields.find(f => f.type.name == 'Night');
799
+ return this.document.fields.find(f => f.type.name === 'Night');
800
800
  }
801
801
 
802
802
  /** Pharmaceutical Number */
803
803
  get pharmaceuticalNumber() {
804
- return this.document.fields.find(f => f.type.name == 'PharmaceuticalNumber');
804
+ return this.document.fields.find(f => f.type.name === 'PharmaceuticalNumber');
805
805
  }
806
806
 
807
807
  /** Reason For Treatment */
808
808
  get reasonForTreatment() {
809
- return this.document.fields.find(f => f.type.name == 'ReasonForTreatment');
809
+ return this.document.fields.find(f => f.type.name === 'ReasonForTreatment');
810
810
  }
811
811
 
812
812
  /** Relevant Info */
813
813
  get relevantInfo() {
814
- return this.document.fields.find(f => f.type.name == 'RelevantInfo');
814
+ return this.document.fields.find(f => f.type.name === 'RelevantInfo');
815
815
  }
816
816
 
817
817
  /** An array of all children of type "Substance". */
818
818
  get substances() {
819
- return this.document.children.filter(c => c.type.name == 'Substance').map(c => new DEMedicalPlan.Subheading.Medicine.Substance(c));
819
+ return this.document.children.filter(c => c.type.name === 'Substance').map(c => new DEMedicalPlan.Subheading.Medicine.Substance(c));
820
820
  }
821
821
  }
822
822
  _Subheading.Medicine = Medicine;
@@ -826,23 +826,23 @@ exports.DEMedicalPlan = DEMedicalPlan;
826
826
  return this._document;
827
827
  }
828
828
  constructor(document) {
829
- if (document.type.name != this.requiredDocumentType()) {
829
+ if (document.type.name !== this.requiredDocumentType()) {
830
830
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
831
831
  }
832
832
  this._document = document;
833
833
  }
834
834
  requiredDocumentType() {
835
- return DEMedicalPlanSubheadingMedicineSubstanceDocumentTypeName;
835
+ return DEMedicalPlanSubheadingMedicineSubstanceDocumentType;
836
836
  }
837
837
 
838
838
  /** Active Substance */
839
839
  get activeSubstance() {
840
- return this.document.fields.find(f => f.type.name == 'ActiveSubstance');
840
+ return this.document.fields.find(f => f.type.name === 'ActiveSubstance');
841
841
  }
842
842
 
843
843
  /** Potency */
844
844
  get potency() {
845
- return this.document.fields.find(f => f.type.name == 'Potency');
845
+ return this.document.fields.find(f => f.type.name === 'Potency');
846
846
  }
847
847
  }
848
848
  _Medicine.Substance = Substance;
@@ -852,23 +852,23 @@ exports.DEMedicalPlan = DEMedicalPlan;
852
852
  return this._document;
853
853
  }
854
854
  constructor(document) {
855
- if (document.type.name != this.requiredDocumentType()) {
855
+ if (document.type.name !== this.requiredDocumentType()) {
856
856
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
857
857
  }
858
858
  this._document = document;
859
859
  }
860
860
  requiredDocumentType() {
861
- return DEMedicalPlanSubheadingPrescriptionDocumentTypeName;
861
+ return DEMedicalPlanSubheadingPrescriptionDocumentType;
862
862
  }
863
863
 
864
864
  /** General Information */
865
865
  get generalInformation() {
866
- return this.document.fields.find(f => f.type.name == 'GeneralInformation');
866
+ return this.document.fields.find(f => f.type.name === 'GeneralInformation');
867
867
  }
868
868
 
869
869
  /** Prescription Free Text */
870
870
  get prescriptionFreeText() {
871
- return this.document.fields.find(f => f.type.name == 'PrescriptionFreeText');
871
+ return this.document.fields.find(f => f.type.name === 'PrescriptionFreeText');
872
872
  }
873
873
  }
874
874
  _Subheading.Prescription = Prescription;
@@ -880,48 +880,48 @@ class IDCardPDF417 {
880
880
  return this._document;
881
881
  }
882
882
  constructor(document) {
883
- if (document.type.name != this.requiredDocumentType()) {
883
+ if (document.type.name !== this.requiredDocumentType()) {
884
884
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
885
885
  }
886
886
  this._document = document;
887
887
  }
888
888
  requiredDocumentType() {
889
- return IDCardPDF417DocumentTypeName;
889
+ return IDCardPDF417DocumentType;
890
890
  }
891
891
 
892
892
  /** Birth Date. The format is ISO8601 with delimiters */
893
893
  get birthDate() {
894
- return this.document.fields.find(f => f.type.name == 'BirthDate');
894
+ return this.document.fields.find(f => f.type.name === 'BirthDate');
895
895
  }
896
896
 
897
897
  /** Date Expired. The format is ISO8601 with delimiters */
898
898
  get dateExpired() {
899
- return this.document.fields.find(f => f.type.name == 'DateExpired');
899
+ return this.document.fields.find(f => f.type.name === 'DateExpired');
900
900
  }
901
901
 
902
902
  /** Date Issued. The format is ISO8601 with delimiters */
903
903
  get dateIssued() {
904
- return this.document.fields.find(f => f.type.name == 'DateIssued');
904
+ return this.document.fields.find(f => f.type.name === 'DateIssued');
905
905
  }
906
906
 
907
907
  /** Document Code */
908
908
  get documentCode() {
909
- return this.document.fields.find(f => f.type.name == 'DocumentCode');
909
+ return this.document.fields.find(f => f.type.name === 'DocumentCode');
910
910
  }
911
911
 
912
912
  /** First Name */
913
913
  get firstName() {
914
- return this.document.fields.find(f => f.type.name == 'FirstName');
914
+ return this.document.fields.find(f => f.type.name === 'FirstName');
915
915
  }
916
916
 
917
917
  /** Last Name */
918
918
  get lastName() {
919
- return this.document.fields.find(f => f.type.name == 'LastName');
919
+ return this.document.fields.find(f => f.type.name === 'LastName');
920
920
  }
921
921
 
922
922
  /** Optional */
923
923
  get optional() {
924
- return this.document.fields.find(f => f.type.name == 'Optional');
924
+ return this.document.fields.find(f => f.type.name === 'Optional');
925
925
  }
926
926
  }
927
927
 
@@ -932,18 +932,18 @@ class GS1 {
932
932
  return this._document;
933
933
  }
934
934
  constructor(document) {
935
- if (document.type.name != this.requiredDocumentType()) {
935
+ if (document.type.name !== this.requiredDocumentType()) {
936
936
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
937
937
  }
938
938
  this._document = document;
939
939
  }
940
940
  requiredDocumentType() {
941
- return GS1DocumentTypeName;
941
+ return GS1DocumentType;
942
942
  }
943
943
 
944
944
  /** An array of all children of type "Element". */
945
945
  get elements() {
946
- return this.document.children.filter(c => c.type.name == 'Element').map(c => new GS1.Element(c));
946
+ return this.document.children.filter(c => c.type.name === 'Element').map(c => new GS1.Element(c));
947
947
  }
948
948
  }
949
949
  exports.GS1 = GS1;
@@ -953,38 +953,38 @@ exports.GS1 = GS1;
953
953
  return this._document;
954
954
  }
955
955
  constructor(document) {
956
- if (document.type.name != this.requiredDocumentType()) {
956
+ if (document.type.name !== this.requiredDocumentType()) {
957
957
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
958
958
  }
959
959
  this._document = document;
960
960
  }
961
961
  requiredDocumentType() {
962
- return GS1ElementDocumentTypeName;
962
+ return GS1ElementDocumentType;
963
963
  }
964
964
 
965
965
  /** Application Identifier */
966
966
  get applicationIdentifier() {
967
- return this.document.fields.find(f => f.type.name == 'ApplicationIdentifier');
967
+ return this.document.fields.find(f => f.type.name === 'ApplicationIdentifier');
968
968
  }
969
969
 
970
970
  /** Data Title */
971
971
  get dataTitle() {
972
- return this.document.fields.find(f => f.type.name == 'DataTitle');
972
+ return this.document.fields.find(f => f.type.name === 'DataTitle');
973
973
  }
974
974
 
975
975
  /** Description */
976
976
  get elementDescription() {
977
- return this.document.fields.find(f => f.type.name == 'ElementDescription');
977
+ return this.document.fields.find(f => f.type.name === 'ElementDescription');
978
978
  }
979
979
 
980
980
  /** Raw Value */
981
981
  get rawValue() {
982
- return this.document.fields.find(f => f.type.name == 'RawValue');
982
+ return this.document.fields.find(f => f.type.name === 'RawValue');
983
983
  }
984
984
 
985
985
  /** An array of all children of type "ValidationError". */
986
986
  get validationErrors() {
987
- return this.document.children.filter(c => c.type.name == 'ValidationError').map(c => new GS1.Element.ValidationError(c));
987
+ return this.document.children.filter(c => c.type.name === 'ValidationError').map(c => new GS1.Element.ValidationError(c));
988
988
  }
989
989
  }
990
990
  _GS.Element = Element;
@@ -994,23 +994,23 @@ exports.GS1 = GS1;
994
994
  return this._document;
995
995
  }
996
996
  constructor(document) {
997
- if (document.type.name != this.requiredDocumentType()) {
997
+ if (document.type.name !== this.requiredDocumentType()) {
998
998
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
999
999
  }
1000
1000
  this._document = document;
1001
1001
  }
1002
1002
  requiredDocumentType() {
1003
- return GS1ElementValidationErrorDocumentTypeName;
1003
+ return GS1ElementValidationErrorDocumentType;
1004
1004
  }
1005
1005
 
1006
1006
  /** Error Code */
1007
1007
  get code() {
1008
- return this.document.fields.find(f => f.type.name == 'Code');
1008
+ return this.document.fields.find(f => f.type.name === 'Code');
1009
1009
  }
1010
1010
 
1011
1011
  /** Reason */
1012
1012
  get reason() {
1013
- return this.document.fields.find(f => f.type.name == 'Reason');
1013
+ return this.document.fields.find(f => f.type.name === 'Reason');
1014
1014
  }
1015
1015
  }
1016
1016
  _Element.ValidationError = ValidationError;
@@ -1022,68 +1022,68 @@ class SEPA {
1022
1022
  return this._document;
1023
1023
  }
1024
1024
  constructor(document) {
1025
- if (document.type.name != this.requiredDocumentType()) {
1025
+ if (document.type.name !== this.requiredDocumentType()) {
1026
1026
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
1027
1027
  }
1028
1028
  this._document = document;
1029
1029
  }
1030
1030
  requiredDocumentType() {
1031
- return SEPADocumentTypeName;
1031
+ return SEPADocumentType;
1032
1032
  }
1033
1033
 
1034
1034
  /** Amount */
1035
1035
  get amount() {
1036
- return this.document.fields.find(f => f.type.name == 'Amount');
1036
+ return this.document.fields.find(f => f.type.name === 'Amount');
1037
1037
  }
1038
1038
 
1039
1039
  /** Character Set */
1040
1040
  get characterSet() {
1041
- return this.document.fields.find(f => f.type.name == 'CharacterSet');
1041
+ return this.document.fields.find(f => f.type.name === 'CharacterSet');
1042
1042
  }
1043
1043
 
1044
1044
  /** Identification */
1045
1045
  get identification() {
1046
- return this.document.fields.find(f => f.type.name == 'Identification');
1046
+ return this.document.fields.find(f => f.type.name === 'Identification');
1047
1047
  }
1048
1048
 
1049
1049
  /** Information */
1050
1050
  get information() {
1051
- return this.document.fields.find(f => f.type.name == 'Information');
1051
+ return this.document.fields.find(f => f.type.name === 'Information');
1052
1052
  }
1053
1053
 
1054
1054
  /** Amount */
1055
1055
  get purpose() {
1056
- return this.document.fields.find(f => f.type.name == 'Purpose');
1056
+ return this.document.fields.find(f => f.type.name === 'Purpose');
1057
1057
  }
1058
1058
 
1059
1059
  /** Receiver BIC */
1060
1060
  get receiverBIC() {
1061
- return this.document.fields.find(f => f.type.name == 'ReceiverBIC');
1061
+ return this.document.fields.find(f => f.type.name === 'ReceiverBIC');
1062
1062
  }
1063
1063
 
1064
1064
  /** Receiver IBAN */
1065
1065
  get receiverIBAN() {
1066
- return this.document.fields.find(f => f.type.name == 'ReceiverIBAN');
1066
+ return this.document.fields.find(f => f.type.name === 'ReceiverIBAN');
1067
1067
  }
1068
1068
 
1069
1069
  /** Receiver Name */
1070
1070
  get receiverName() {
1071
- return this.document.fields.find(f => f.type.name == 'ReceiverName');
1071
+ return this.document.fields.find(f => f.type.name === 'ReceiverName');
1072
1072
  }
1073
1073
 
1074
1074
  /** Remittance */
1075
1075
  get remittance() {
1076
- return this.document.fields.find(f => f.type.name == 'Remittance');
1076
+ return this.document.fields.find(f => f.type.name === 'Remittance');
1077
1077
  }
1078
1078
 
1079
1079
  /** Service Tag */
1080
1080
  get serviceTag() {
1081
- return this.document.fields.find(f => f.type.name == 'ServiceTag');
1081
+ return this.document.fields.find(f => f.type.name === 'ServiceTag');
1082
1082
  }
1083
1083
 
1084
1084
  /** Version */
1085
1085
  get version() {
1086
- return this.document.fields.find(f => f.type.name == 'Version');
1086
+ return this.document.fields.find(f => f.type.name === 'Version');
1087
1087
  }
1088
1088
  }
1089
1089
 
@@ -1094,118 +1094,118 @@ class MedicalCertificate {
1094
1094
  return this._document;
1095
1095
  }
1096
1096
  constructor(document) {
1097
- if (document.type.name != this.requiredDocumentType()) {
1097
+ if (document.type.name !== this.requiredDocumentType()) {
1098
1098
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
1099
1099
  }
1100
1100
  this._document = document;
1101
1101
  }
1102
1102
  requiredDocumentType() {
1103
- return MedicalCertificateDocumentTypeName;
1103
+ return MedicalCertificateDocumentType;
1104
1104
  }
1105
1105
 
1106
1106
  /** Accident */
1107
1107
  get accident() {
1108
- return this.document.fields.find(f => f.type.name == 'Accident');
1108
+ return this.document.fields.find(f => f.type.name === 'Accident');
1109
1109
  }
1110
1110
 
1111
1111
  /** Assigned To Accident Insurance Doctor */
1112
1112
  get assignedToAccidentInsuranceDoctor() {
1113
- return this.document.fields.find(f => f.type.name == 'AssignedToAccidentInsuranceDoctor');
1113
+ return this.document.fields.find(f => f.type.name === 'AssignedToAccidentInsuranceDoctor');
1114
1114
  }
1115
1115
 
1116
1116
  /** Birth Date. The format is ISO8601 with delimiters */
1117
1117
  get birthDate() {
1118
- return this.document.fields.find(f => f.type.name == 'BirthDate');
1118
+ return this.document.fields.find(f => f.type.name === 'BirthDate');
1119
1119
  }
1120
1120
 
1121
1121
  /** Child Needs Care From */
1122
1122
  get childNeedsCareFrom() {
1123
- return this.document.fields.find(f => f.type.name == 'ChildNeedsCareFrom');
1123
+ return this.document.fields.find(f => f.type.name === 'ChildNeedsCareFrom');
1124
1124
  }
1125
1125
 
1126
1126
  /** Child Needs Care Until */
1127
1127
  get childNeedsCareUntil() {
1128
- return this.document.fields.find(f => f.type.name == 'ChildNeedsCareUntil');
1128
+ return this.document.fields.find(f => f.type.name === 'ChildNeedsCareUntil');
1129
1129
  }
1130
1130
 
1131
1131
  /** Diagnose */
1132
1132
  get diagnose() {
1133
- return this.document.fields.find(f => f.type.name == 'Diagnose');
1133
+ return this.document.fields.find(f => f.type.name === 'Diagnose');
1134
1134
  }
1135
1135
 
1136
1136
  /** Diagnosed On. The format is ISO8601 with delimiters */
1137
1137
  get diagnosedOn() {
1138
- return this.document.fields.find(f => f.type.name == 'DiagnosedOn');
1138
+ return this.document.fields.find(f => f.type.name === 'DiagnosedOn');
1139
1139
  }
1140
1140
 
1141
1141
  /** Doctor Number */
1142
1142
  get doctorNumber() {
1143
- return this.document.fields.find(f => f.type.name == 'DoctorNumber');
1143
+ return this.document.fields.find(f => f.type.name === 'DoctorNumber');
1144
1144
  }
1145
1145
 
1146
1146
  /** Document Date. The format is ISO8601 with delimiters */
1147
1147
  get documentDate() {
1148
- return this.document.fields.find(f => f.type.name == 'DocumentDate');
1148
+ return this.document.fields.find(f => f.type.name === 'DocumentDate');
1149
1149
  }
1150
1150
 
1151
1151
  /** First Name */
1152
1152
  get firstName() {
1153
- return this.document.fields.find(f => f.type.name == 'FirstName');
1153
+ return this.document.fields.find(f => f.type.name === 'FirstName');
1154
1154
  }
1155
1155
 
1156
1156
  /** Health Insurance Number */
1157
1157
  get healthInsuranceNumber() {
1158
- return this.document.fields.find(f => f.type.name == 'HealthInsuranceNumber');
1158
+ return this.document.fields.find(f => f.type.name === 'HealthInsuranceNumber');
1159
1159
  }
1160
1160
 
1161
1161
  /** Incapable Of Work Since. The format is ISO8601 with delimiters */
1162
1162
  get incapableOfWorkSince() {
1163
- return this.document.fields.find(f => f.type.name == 'IncapableOfWorkSince');
1163
+ return this.document.fields.find(f => f.type.name === 'IncapableOfWorkSince');
1164
1164
  }
1165
1165
 
1166
1166
  /** Incapable Of Work Until. The format is ISO8601 with delimiters */
1167
1167
  get incapableOfWorkUntil() {
1168
- return this.document.fields.find(f => f.type.name == 'IncapableOfWorkUntil');
1168
+ return this.document.fields.find(f => f.type.name === 'IncapableOfWorkUntil');
1169
1169
  }
1170
1170
 
1171
1171
  /** Initial Certificate */
1172
1172
  get initialCertificate() {
1173
- return this.document.fields.find(f => f.type.name == 'InitialCertificate');
1173
+ return this.document.fields.find(f => f.type.name === 'InitialCertificate');
1174
1174
  }
1175
1175
 
1176
1176
  /** Insured Person Number */
1177
1177
  get insuredPersonNumber() {
1178
- return this.document.fields.find(f => f.type.name == 'InsuredPersonNumber');
1178
+ return this.document.fields.find(f => f.type.name === 'InsuredPersonNumber');
1179
1179
  }
1180
1180
 
1181
1181
  /** Last Name */
1182
1182
  get lastName() {
1183
- return this.document.fields.find(f => f.type.name == 'LastName');
1183
+ return this.document.fields.find(f => f.type.name === 'LastName');
1184
1184
  }
1185
1185
 
1186
1186
  /** Place Of Operation Number */
1187
1187
  get placeOfOperationNumber() {
1188
- return this.document.fields.find(f => f.type.name == 'PlaceOfOperationNumber');
1188
+ return this.document.fields.find(f => f.type.name === 'PlaceOfOperationNumber');
1189
1189
  }
1190
1190
 
1191
1191
  /** Renewed Certificate */
1192
1192
  get renewedCertificate() {
1193
- return this.document.fields.find(f => f.type.name == 'RenewedCertificate');
1193
+ return this.document.fields.find(f => f.type.name === 'RenewedCertificate');
1194
1194
  }
1195
1195
 
1196
1196
  /** Requires Care */
1197
1197
  get requiresCare() {
1198
- return this.document.fields.find(f => f.type.name == 'RequiresCare');
1198
+ return this.document.fields.find(f => f.type.name === 'RequiresCare');
1199
1199
  }
1200
1200
 
1201
1201
  /** Status */
1202
1202
  get status() {
1203
- return this.document.fields.find(f => f.type.name == 'Status');
1203
+ return this.document.fields.find(f => f.type.name === 'Status');
1204
1204
  }
1205
1205
 
1206
1206
  /** Work Accident */
1207
1207
  get workAccident() {
1208
- return this.document.fields.find(f => f.type.name == 'WorkAccident');
1208
+ return this.document.fields.find(f => f.type.name === 'WorkAccident');
1209
1209
  }
1210
1210
  }
1211
1211
 
@@ -1216,234 +1216,234 @@ class VCard {
1216
1216
  return this._document;
1217
1217
  }
1218
1218
  constructor(document) {
1219
- if (document.type.name != this.requiredDocumentType()) {
1219
+ if (document.type.name !== this.requiredDocumentType()) {
1220
1220
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
1221
1221
  }
1222
1222
  this._document = document;
1223
1223
  }
1224
1224
  requiredDocumentType() {
1225
- return VCardDocumentTypeName;
1225
+ return VCardDocumentType;
1226
1226
  }
1227
1227
 
1228
1228
  /** The child document of type "Version". */
1229
1229
  get version() {
1230
- const child = this.document.children.find(c => c.type.name == 'Version');
1230
+ const child = this.document.children.find(c => c.type.name === 'Version');
1231
1231
  return new VCard.Version(child);
1232
1232
  }
1233
1233
 
1234
1234
  /** The child document of type "Source". */
1235
1235
  get source() {
1236
- const child = this.document.children.find(c => c.type.name == 'Source');
1236
+ const child = this.document.children.find(c => c.type.name === 'Source');
1237
1237
  return child ? new VCard.Source(child) : undefined;
1238
1238
  }
1239
1239
 
1240
1240
  /** The child document of type "Kind". */
1241
1241
  get kind() {
1242
- const child = this.document.children.find(c => c.type.name == 'Kind');
1242
+ const child = this.document.children.find(c => c.type.name === 'Kind');
1243
1243
  return child ? new VCard.Kind(child) : undefined;
1244
1244
  }
1245
1245
 
1246
1246
  /** The child document of type "XML". */
1247
1247
  get xml() {
1248
- const child = this.document.children.find(c => c.type.name == 'XML');
1248
+ const child = this.document.children.find(c => c.type.name === 'XML');
1249
1249
  return child ? new VCard.XML(child) : undefined;
1250
1250
  }
1251
1251
 
1252
1252
  /** The child document of type "Name". */
1253
1253
  get name() {
1254
- const child = this.document.children.find(c => c.type.name == 'Name');
1254
+ const child = this.document.children.find(c => c.type.name === 'Name');
1255
1255
  return child ? new VCard.Name(child) : undefined;
1256
1256
  }
1257
1257
 
1258
1258
  /** The child document of type "FirstName". */
1259
1259
  get firstName() {
1260
- const child = this.document.children.find(c => c.type.name == 'FirstName');
1260
+ const child = this.document.children.find(c => c.type.name === 'FirstName');
1261
1261
  return child ? new VCard.FirstName(child) : undefined;
1262
1262
  }
1263
1263
 
1264
1264
  /** The child document of type "Nickname". */
1265
1265
  get nickname() {
1266
- const child = this.document.children.find(c => c.type.name == 'Nickname');
1266
+ const child = this.document.children.find(c => c.type.name === 'Nickname');
1267
1267
  return child ? new VCard.Nickname(child) : undefined;
1268
1268
  }
1269
1269
 
1270
1270
  /** The child document of type "Birthday". */
1271
1271
  get birthday() {
1272
- const child = this.document.children.find(c => c.type.name == 'Birthday');
1272
+ const child = this.document.children.find(c => c.type.name === 'Birthday');
1273
1273
  return child ? new VCard.Birthday(child) : undefined;
1274
1274
  }
1275
1275
 
1276
1276
  /** The child document of type "Anniversary". */
1277
1277
  get anniversary() {
1278
- const child = this.document.children.find(c => c.type.name == 'Anniversary');
1278
+ const child = this.document.children.find(c => c.type.name === 'Anniversary');
1279
1279
  return child ? new VCard.Anniversary(child) : undefined;
1280
1280
  }
1281
1281
 
1282
1282
  /** The child document of type "Gender". */
1283
1283
  get gender() {
1284
- const child = this.document.children.find(c => c.type.name == 'Gender');
1284
+ const child = this.document.children.find(c => c.type.name === 'Gender');
1285
1285
  return child ? new VCard.Gender(child) : undefined;
1286
1286
  }
1287
1287
 
1288
1288
  /** The child document of type "DeliveryAddress". */
1289
1289
  get deliveryAddress() {
1290
- const child = this.document.children.find(c => c.type.name == 'DeliveryAddress');
1290
+ const child = this.document.children.find(c => c.type.name === 'DeliveryAddress');
1291
1291
  return child ? new VCard.DeliveryAddress(child) : undefined;
1292
1292
  }
1293
1293
 
1294
1294
  /** The child document of type "Photo". */
1295
1295
  get photo() {
1296
- const child = this.document.children.find(c => c.type.name == 'Photo');
1296
+ const child = this.document.children.find(c => c.type.name === 'Photo');
1297
1297
  return child ? new VCard.Photo(child) : undefined;
1298
1298
  }
1299
1299
 
1300
1300
  /** The child document of type "TelephoneNumber". */
1301
1301
  get telephoneNumber() {
1302
- const child = this.document.children.find(c => c.type.name == 'TelephoneNumber');
1302
+ const child = this.document.children.find(c => c.type.name === 'TelephoneNumber');
1303
1303
  return child ? new VCard.TelephoneNumber(child) : undefined;
1304
1304
  }
1305
1305
 
1306
1306
  /** The child document of type "Email". */
1307
1307
  get email() {
1308
- const child = this.document.children.find(c => c.type.name == 'Email');
1308
+ const child = this.document.children.find(c => c.type.name === 'Email');
1309
1309
  return child ? new VCard.Email(child) : undefined;
1310
1310
  }
1311
1311
 
1312
1312
  /** The child document of type "IMPP". */
1313
1313
  get impp() {
1314
- const child = this.document.children.find(c => c.type.name == 'IMPP');
1314
+ const child = this.document.children.find(c => c.type.name === 'IMPP');
1315
1315
  return child ? new VCard.IMPP(child) : undefined;
1316
1316
  }
1317
1317
 
1318
1318
  /** The child document of type "Languages". */
1319
1319
  get languages() {
1320
- const child = this.document.children.find(c => c.type.name == 'Languages');
1320
+ const child = this.document.children.find(c => c.type.name === 'Languages');
1321
1321
  return child ? new VCard.Languages(child) : undefined;
1322
1322
  }
1323
1323
 
1324
1324
  /** The child document of type "TimeZone". */
1325
1325
  get timeZone() {
1326
- const child = this.document.children.find(c => c.type.name == 'TimeZone');
1326
+ const child = this.document.children.find(c => c.type.name === 'TimeZone');
1327
1327
  return child ? new VCard.TimeZone(child) : undefined;
1328
1328
  }
1329
1329
 
1330
1330
  /** The child document of type "GeoLocation". */
1331
1331
  get geoLocation() {
1332
- const child = this.document.children.find(c => c.type.name == 'GeoLocation');
1332
+ const child = this.document.children.find(c => c.type.name === 'GeoLocation');
1333
1333
  return child ? new VCard.GeoLocation(child) : undefined;
1334
1334
  }
1335
1335
 
1336
1336
  /** The child document of type "Title". */
1337
1337
  get title() {
1338
- const child = this.document.children.find(c => c.type.name == 'Title');
1338
+ const child = this.document.children.find(c => c.type.name === 'Title');
1339
1339
  return child ? new VCard.Title(child) : undefined;
1340
1340
  }
1341
1341
 
1342
1342
  /** The child document of type "Role". */
1343
1343
  get role() {
1344
- const child = this.document.children.find(c => c.type.name == 'Role');
1344
+ const child = this.document.children.find(c => c.type.name === 'Role');
1345
1345
  return child ? new VCard.Role(child) : undefined;
1346
1346
  }
1347
1347
 
1348
1348
  /** The child document of type "Logo". */
1349
1349
  get logo() {
1350
- const child = this.document.children.find(c => c.type.name == 'Logo');
1350
+ const child = this.document.children.find(c => c.type.name === 'Logo');
1351
1351
  return child ? new VCard.Logo(child) : undefined;
1352
1352
  }
1353
1353
 
1354
1354
  /** The child document of type "Organisation". */
1355
1355
  get organisation() {
1356
- const child = this.document.children.find(c => c.type.name == 'Organisation');
1356
+ const child = this.document.children.find(c => c.type.name === 'Organisation');
1357
1357
  return child ? new VCard.Organisation(child) : undefined;
1358
1358
  }
1359
1359
 
1360
1360
  /** The child document of type "Member". */
1361
1361
  get member() {
1362
- const child = this.document.children.find(c => c.type.name == 'Member');
1362
+ const child = this.document.children.find(c => c.type.name === 'Member');
1363
1363
  return child ? new VCard.Member(child) : undefined;
1364
1364
  }
1365
1365
 
1366
1366
  /** The child document of type "Related". */
1367
1367
  get related() {
1368
- const child = this.document.children.find(c => c.type.name == 'Related');
1368
+ const child = this.document.children.find(c => c.type.name === 'Related');
1369
1369
  return child ? new VCard.Related(child) : undefined;
1370
1370
  }
1371
1371
 
1372
1372
  /** The child document of type "Categories". */
1373
1373
  get categories() {
1374
- const child = this.document.children.find(c => c.type.name == 'Categories');
1374
+ const child = this.document.children.find(c => c.type.name === 'Categories');
1375
1375
  return child ? new VCard.Categories(child) : undefined;
1376
1376
  }
1377
1377
 
1378
1378
  /** The child document of type "Note". */
1379
1379
  get note() {
1380
- const child = this.document.children.find(c => c.type.name == 'Note');
1380
+ const child = this.document.children.find(c => c.type.name === 'Note');
1381
1381
  return child ? new VCard.Note(child) : undefined;
1382
1382
  }
1383
1383
 
1384
1384
  /** The child document of type "ProductId". */
1385
1385
  get productId() {
1386
- const child = this.document.children.find(c => c.type.name == 'ProductId');
1386
+ const child = this.document.children.find(c => c.type.name === 'ProductId');
1387
1387
  return child ? new VCard.ProductId(child) : undefined;
1388
1388
  }
1389
1389
 
1390
1390
  /** The child document of type "Revision". */
1391
1391
  get revision() {
1392
- const child = this.document.children.find(c => c.type.name == 'Revision');
1392
+ const child = this.document.children.find(c => c.type.name === 'Revision');
1393
1393
  return child ? new VCard.Revision(child) : undefined;
1394
1394
  }
1395
1395
 
1396
1396
  /** The child document of type "Sound". */
1397
1397
  get sound() {
1398
- const child = this.document.children.find(c => c.type.name == 'Sound');
1398
+ const child = this.document.children.find(c => c.type.name === 'Sound');
1399
1399
  return child ? new VCard.Sound(child) : undefined;
1400
1400
  }
1401
1401
 
1402
1402
  /** The child document of type "UID". */
1403
1403
  get uid() {
1404
- const child = this.document.children.find(c => c.type.name == 'UID');
1404
+ const child = this.document.children.find(c => c.type.name === 'UID');
1405
1405
  return child ? new VCard.UID(child) : undefined;
1406
1406
  }
1407
1407
 
1408
1408
  /** The child document of type "ClientPIDMap". */
1409
1409
  get clientPIDMap() {
1410
- const child = this.document.children.find(c => c.type.name == 'ClientPIDMap');
1410
+ const child = this.document.children.find(c => c.type.name === 'ClientPIDMap');
1411
1411
  return child ? new VCard.ClientPIDMap(child) : undefined;
1412
1412
  }
1413
1413
 
1414
1414
  /** The child document of type "URL". */
1415
1415
  get url() {
1416
- const child = this.document.children.find(c => c.type.name == 'URL');
1416
+ const child = this.document.children.find(c => c.type.name === 'URL');
1417
1417
  return child ? new VCard.URL(child) : undefined;
1418
1418
  }
1419
1419
 
1420
1420
  /** The child document of type "PublicKey". */
1421
1421
  get publicKey() {
1422
- const child = this.document.children.find(c => c.type.name == 'PublicKey');
1422
+ const child = this.document.children.find(c => c.type.name === 'PublicKey');
1423
1423
  return child ? new VCard.PublicKey(child) : undefined;
1424
1424
  }
1425
1425
 
1426
1426
  /** The child document of type "BusyTimeURL". */
1427
1427
  get busyTimeURL() {
1428
- const child = this.document.children.find(c => c.type.name == 'BusyTimeURL');
1428
+ const child = this.document.children.find(c => c.type.name === 'BusyTimeURL');
1429
1429
  return child ? new VCard.BusyTimeURL(child) : undefined;
1430
1430
  }
1431
1431
 
1432
1432
  /** The child document of type "CalendarURIForRequests". */
1433
1433
  get calendarURIForRequests() {
1434
- const child = this.document.children.find(c => c.type.name == 'CalendarURIForRequests');
1434
+ const child = this.document.children.find(c => c.type.name === 'CalendarURIForRequests');
1435
1435
  return child ? new VCard.CalendarURIForRequests(child) : undefined;
1436
1436
  }
1437
1437
 
1438
1438
  /** The child document of type "CalendarURI". */
1439
1439
  get calendarURI() {
1440
- const child = this.document.children.find(c => c.type.name == 'CalendarURI');
1440
+ const child = this.document.children.find(c => c.type.name === 'CalendarURI');
1441
1441
  return child ? new VCard.CalendarURI(child) : undefined;
1442
1442
  }
1443
1443
 
1444
1444
  /** An array of all children of type "Custom". */
1445
1445
  get customs() {
1446
- return this.document.children.filter(c => c.type.name == 'Custom').map(c => new VCard.Custom(c));
1446
+ return this.document.children.filter(c => c.type.name === 'Custom').map(c => new VCard.Custom(c));
1447
1447
  }
1448
1448
  }
1449
1449
  exports.VCard = VCard;
@@ -1453,24 +1453,24 @@ exports.VCard = VCard;
1453
1453
  return this._document;
1454
1454
  }
1455
1455
  constructor(document) {
1456
- if (document.type.name != this.requiredDocumentType()) {
1456
+ if (document.type.name !== this.requiredDocumentType()) {
1457
1457
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
1458
1458
  }
1459
1459
  this._document = document;
1460
1460
  }
1461
1461
  /** Raw Value */
1462
1462
  get rawValue() {
1463
- return this.document.fields.find(f => f.type.name == 'RawValue');
1463
+ return this.document.fields.find(f => f.type.name === 'RawValue');
1464
1464
  }
1465
1465
 
1466
1466
  /** Type Modifier */
1467
1467
  get typeModifiers() {
1468
- return this.document.fields.filter(f => f.type.name == 'TypeModifier');
1468
+ return this.document.fields.filter(f => f.type.name === 'TypeModifier');
1469
1469
  }
1470
1470
 
1471
1471
  /** Value */
1472
1472
  get values() {
1473
- return this.document.fields.filter(f => f.type.name == 'Value');
1473
+ return this.document.fields.filter(f => f.type.name === 'Value');
1474
1474
  }
1475
1475
  }
1476
1476
  _VCard.Entry = Entry;
@@ -1479,7 +1479,7 @@ exports.VCard = VCard;
1479
1479
  super(document);
1480
1480
  }
1481
1481
  requiredDocumentType() {
1482
- return VCardVersionDocumentTypeName;
1482
+ return VCardVersionDocumentType;
1483
1483
  }
1484
1484
  }
1485
1485
  _VCard.Version = Version;
@@ -1488,7 +1488,7 @@ exports.VCard = VCard;
1488
1488
  super(document);
1489
1489
  }
1490
1490
  requiredDocumentType() {
1491
- return VCardSourceDocumentTypeName;
1491
+ return VCardSourceDocumentType;
1492
1492
  }
1493
1493
  }
1494
1494
  _VCard.Source = Source;
@@ -1497,7 +1497,7 @@ exports.VCard = VCard;
1497
1497
  super(document);
1498
1498
  }
1499
1499
  requiredDocumentType() {
1500
- return VCardKindDocumentTypeName;
1500
+ return VCardKindDocumentType;
1501
1501
  }
1502
1502
  }
1503
1503
  _VCard.Kind = Kind;
@@ -1506,7 +1506,7 @@ exports.VCard = VCard;
1506
1506
  super(document);
1507
1507
  }
1508
1508
  requiredDocumentType() {
1509
- return VCardXMLDocumentTypeName;
1509
+ return VCardXMLDocumentType;
1510
1510
  }
1511
1511
  }
1512
1512
  _VCard.XML = XML;
@@ -1515,7 +1515,7 @@ exports.VCard = VCard;
1515
1515
  super(document);
1516
1516
  }
1517
1517
  requiredDocumentType() {
1518
- return VCardNameDocumentTypeName;
1518
+ return VCardNameDocumentType;
1519
1519
  }
1520
1520
  }
1521
1521
  _VCard.Name = Name;
@@ -1524,7 +1524,7 @@ exports.VCard = VCard;
1524
1524
  super(document);
1525
1525
  }
1526
1526
  requiredDocumentType() {
1527
- return VCardFirstNameDocumentTypeName;
1527
+ return VCardFirstNameDocumentType;
1528
1528
  }
1529
1529
  }
1530
1530
  _VCard.FirstName = FirstName;
@@ -1533,7 +1533,7 @@ exports.VCard = VCard;
1533
1533
  super(document);
1534
1534
  }
1535
1535
  requiredDocumentType() {
1536
- return VCardNicknameDocumentTypeName;
1536
+ return VCardNicknameDocumentType;
1537
1537
  }
1538
1538
  }
1539
1539
  _VCard.Nickname = Nickname;
@@ -1542,7 +1542,7 @@ exports.VCard = VCard;
1542
1542
  super(document);
1543
1543
  }
1544
1544
  requiredDocumentType() {
1545
- return VCardBirthdayDocumentTypeName;
1545
+ return VCardBirthdayDocumentType;
1546
1546
  }
1547
1547
  }
1548
1548
  _VCard.Birthday = Birthday;
@@ -1551,7 +1551,7 @@ exports.VCard = VCard;
1551
1551
  super(document);
1552
1552
  }
1553
1553
  requiredDocumentType() {
1554
- return VCardAnniversaryDocumentTypeName;
1554
+ return VCardAnniversaryDocumentType;
1555
1555
  }
1556
1556
  }
1557
1557
  _VCard.Anniversary = Anniversary;
@@ -1560,7 +1560,7 @@ exports.VCard = VCard;
1560
1560
  super(document);
1561
1561
  }
1562
1562
  requiredDocumentType() {
1563
- return VCardGenderDocumentTypeName;
1563
+ return VCardGenderDocumentType;
1564
1564
  }
1565
1565
  }
1566
1566
  _VCard.Gender = Gender;
@@ -1569,7 +1569,7 @@ exports.VCard = VCard;
1569
1569
  super(document);
1570
1570
  }
1571
1571
  requiredDocumentType() {
1572
- return VCardDeliveryAddressDocumentTypeName;
1572
+ return VCardDeliveryAddressDocumentType;
1573
1573
  }
1574
1574
  }
1575
1575
  _VCard.DeliveryAddress = DeliveryAddress;
@@ -1578,7 +1578,7 @@ exports.VCard = VCard;
1578
1578
  super(document);
1579
1579
  }
1580
1580
  requiredDocumentType() {
1581
- return VCardPhotoDocumentTypeName;
1581
+ return VCardPhotoDocumentType;
1582
1582
  }
1583
1583
  }
1584
1584
  _VCard.Photo = Photo;
@@ -1587,7 +1587,7 @@ exports.VCard = VCard;
1587
1587
  super(document);
1588
1588
  }
1589
1589
  requiredDocumentType() {
1590
- return VCardTelephoneNumberDocumentTypeName;
1590
+ return VCardTelephoneNumberDocumentType;
1591
1591
  }
1592
1592
  }
1593
1593
  _VCard.TelephoneNumber = TelephoneNumber;
@@ -1596,7 +1596,7 @@ exports.VCard = VCard;
1596
1596
  super(document);
1597
1597
  }
1598
1598
  requiredDocumentType() {
1599
- return VCardEmailDocumentTypeName;
1599
+ return VCardEmailDocumentType;
1600
1600
  }
1601
1601
  }
1602
1602
  _VCard.Email = Email;
@@ -1605,7 +1605,7 @@ exports.VCard = VCard;
1605
1605
  super(document);
1606
1606
  }
1607
1607
  requiredDocumentType() {
1608
- return VCardIMPPDocumentTypeName;
1608
+ return VCardIMPPDocumentType;
1609
1609
  }
1610
1610
  }
1611
1611
  _VCard.IMPP = IMPP;
@@ -1614,7 +1614,7 @@ exports.VCard = VCard;
1614
1614
  super(document);
1615
1615
  }
1616
1616
  requiredDocumentType() {
1617
- return VCardLanguagesDocumentTypeName;
1617
+ return VCardLanguagesDocumentType;
1618
1618
  }
1619
1619
  }
1620
1620
  _VCard.Languages = Languages;
@@ -1623,7 +1623,7 @@ exports.VCard = VCard;
1623
1623
  super(document);
1624
1624
  }
1625
1625
  requiredDocumentType() {
1626
- return VCardTimeZoneDocumentTypeName;
1626
+ return VCardTimeZoneDocumentType;
1627
1627
  }
1628
1628
  }
1629
1629
  _VCard.TimeZone = TimeZone;
@@ -1632,7 +1632,7 @@ exports.VCard = VCard;
1632
1632
  super(document);
1633
1633
  }
1634
1634
  requiredDocumentType() {
1635
- return VCardGeoLocationDocumentTypeName;
1635
+ return VCardGeoLocationDocumentType;
1636
1636
  }
1637
1637
  }
1638
1638
  _VCard.GeoLocation = GeoLocation;
@@ -1641,7 +1641,7 @@ exports.VCard = VCard;
1641
1641
  super(document);
1642
1642
  }
1643
1643
  requiredDocumentType() {
1644
- return VCardTitleDocumentTypeName;
1644
+ return VCardTitleDocumentType;
1645
1645
  }
1646
1646
  }
1647
1647
  _VCard.Title = Title;
@@ -1650,7 +1650,7 @@ exports.VCard = VCard;
1650
1650
  super(document);
1651
1651
  }
1652
1652
  requiredDocumentType() {
1653
- return VCardRoleDocumentTypeName;
1653
+ return VCardRoleDocumentType;
1654
1654
  }
1655
1655
  }
1656
1656
  _VCard.Role = Role;
@@ -1659,7 +1659,7 @@ exports.VCard = VCard;
1659
1659
  super(document);
1660
1660
  }
1661
1661
  requiredDocumentType() {
1662
- return VCardLogoDocumentTypeName;
1662
+ return VCardLogoDocumentType;
1663
1663
  }
1664
1664
  }
1665
1665
  _VCard.Logo = Logo;
@@ -1668,7 +1668,7 @@ exports.VCard = VCard;
1668
1668
  super(document);
1669
1669
  }
1670
1670
  requiredDocumentType() {
1671
- return VCardOrganisationDocumentTypeName;
1671
+ return VCardOrganisationDocumentType;
1672
1672
  }
1673
1673
  }
1674
1674
  _VCard.Organisation = Organisation;
@@ -1677,7 +1677,7 @@ exports.VCard = VCard;
1677
1677
  super(document);
1678
1678
  }
1679
1679
  requiredDocumentType() {
1680
- return VCardMemberDocumentTypeName;
1680
+ return VCardMemberDocumentType;
1681
1681
  }
1682
1682
  }
1683
1683
  _VCard.Member = Member;
@@ -1686,7 +1686,7 @@ exports.VCard = VCard;
1686
1686
  super(document);
1687
1687
  }
1688
1688
  requiredDocumentType() {
1689
- return VCardRelatedDocumentTypeName;
1689
+ return VCardRelatedDocumentType;
1690
1690
  }
1691
1691
  }
1692
1692
  _VCard.Related = Related;
@@ -1695,7 +1695,7 @@ exports.VCard = VCard;
1695
1695
  super(document);
1696
1696
  }
1697
1697
  requiredDocumentType() {
1698
- return VCardCategoriesDocumentTypeName;
1698
+ return VCardCategoriesDocumentType;
1699
1699
  }
1700
1700
  }
1701
1701
  _VCard.Categories = Categories;
@@ -1704,7 +1704,7 @@ exports.VCard = VCard;
1704
1704
  super(document);
1705
1705
  }
1706
1706
  requiredDocumentType() {
1707
- return VCardNoteDocumentTypeName;
1707
+ return VCardNoteDocumentType;
1708
1708
  }
1709
1709
  }
1710
1710
  _VCard.Note = Note;
@@ -1713,7 +1713,7 @@ exports.VCard = VCard;
1713
1713
  super(document);
1714
1714
  }
1715
1715
  requiredDocumentType() {
1716
- return VCardProductIdDocumentTypeName;
1716
+ return VCardProductIdDocumentType;
1717
1717
  }
1718
1718
  }
1719
1719
  _VCard.ProductId = ProductId;
@@ -1722,7 +1722,7 @@ exports.VCard = VCard;
1722
1722
  super(document);
1723
1723
  }
1724
1724
  requiredDocumentType() {
1725
- return VCardRevisionDocumentTypeName;
1725
+ return VCardRevisionDocumentType;
1726
1726
  }
1727
1727
  }
1728
1728
  _VCard.Revision = Revision;
@@ -1731,7 +1731,7 @@ exports.VCard = VCard;
1731
1731
  super(document);
1732
1732
  }
1733
1733
  requiredDocumentType() {
1734
- return VCardSoundDocumentTypeName;
1734
+ return VCardSoundDocumentType;
1735
1735
  }
1736
1736
  }
1737
1737
  _VCard.Sound = Sound;
@@ -1740,7 +1740,7 @@ exports.VCard = VCard;
1740
1740
  super(document);
1741
1741
  }
1742
1742
  requiredDocumentType() {
1743
- return VCardUIDDocumentTypeName;
1743
+ return VCardUIDDocumentType;
1744
1744
  }
1745
1745
  }
1746
1746
  _VCard.UID = UID;
@@ -1749,7 +1749,7 @@ exports.VCard = VCard;
1749
1749
  super(document);
1750
1750
  }
1751
1751
  requiredDocumentType() {
1752
- return VCardClientPIDMapDocumentTypeName;
1752
+ return VCardClientPIDMapDocumentType;
1753
1753
  }
1754
1754
  }
1755
1755
  _VCard.ClientPIDMap = ClientPIDMap;
@@ -1758,7 +1758,7 @@ exports.VCard = VCard;
1758
1758
  super(document);
1759
1759
  }
1760
1760
  requiredDocumentType() {
1761
- return VCardURLDocumentTypeName;
1761
+ return VCardURLDocumentType;
1762
1762
  }
1763
1763
  }
1764
1764
  _VCard.URL = URL;
@@ -1767,7 +1767,7 @@ exports.VCard = VCard;
1767
1767
  super(document);
1768
1768
  }
1769
1769
  requiredDocumentType() {
1770
- return VCardPublicKeyDocumentTypeName;
1770
+ return VCardPublicKeyDocumentType;
1771
1771
  }
1772
1772
  }
1773
1773
  _VCard.PublicKey = PublicKey;
@@ -1776,7 +1776,7 @@ exports.VCard = VCard;
1776
1776
  super(document);
1777
1777
  }
1778
1778
  requiredDocumentType() {
1779
- return VCardBusyTimeURLDocumentTypeName;
1779
+ return VCardBusyTimeURLDocumentType;
1780
1780
  }
1781
1781
  }
1782
1782
  _VCard.BusyTimeURL = BusyTimeURL;
@@ -1785,7 +1785,7 @@ exports.VCard = VCard;
1785
1785
  super(document);
1786
1786
  }
1787
1787
  requiredDocumentType() {
1788
- return VCardCalendarURIForRequestsDocumentTypeName;
1788
+ return VCardCalendarURIForRequestsDocumentType;
1789
1789
  }
1790
1790
  }
1791
1791
  _VCard.CalendarURIForRequests = CalendarURIForRequests;
@@ -1794,7 +1794,7 @@ exports.VCard = VCard;
1794
1794
  super(document);
1795
1795
  }
1796
1796
  requiredDocumentType() {
1797
- return VCardCalendarURIDocumentTypeName;
1797
+ return VCardCalendarURIDocumentType;
1798
1798
  }
1799
1799
  }
1800
1800
  _VCard.CalendarURI = CalendarURI;
@@ -1803,7 +1803,7 @@ exports.VCard = VCard;
1803
1803
  super(document);
1804
1804
  }
1805
1805
  requiredDocumentType() {
1806
- return VCardCustomDocumentTypeName;
1806
+ return VCardCustomDocumentType;
1807
1807
  }
1808
1808
  }
1809
1809
  _VCard.Custom = Custom;
@@ -1814,93 +1814,93 @@ class AAMVA {
1814
1814
  return this._document;
1815
1815
  }
1816
1816
  constructor(document) {
1817
- if (document.type.name != this.requiredDocumentType()) {
1817
+ if (document.type.name !== this.requiredDocumentType()) {
1818
1818
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
1819
1819
  }
1820
1820
  this._document = document;
1821
1821
  }
1822
1822
  requiredDocumentType() {
1823
- return AAMVADocumentTypeName;
1823
+ return AAMVADocumentType;
1824
1824
  }
1825
1825
 
1826
1826
  /** Issuer Identification Number */
1827
1827
  get issuerIdentificationNumber() {
1828
- return this.document.fields.find(f => f.type.name == 'IssuerIdentificationNumber');
1828
+ return this.document.fields.find(f => f.type.name === 'IssuerIdentificationNumber');
1829
1829
  }
1830
1830
 
1831
1831
  /** Jurisdiction Version Number */
1832
1832
  get jurisdictionVersionNumber() {
1833
- return this.document.fields.find(f => f.type.name == 'JurisdictionVersionNumber');
1833
+ return this.document.fields.find(f => f.type.name === 'JurisdictionVersionNumber');
1834
1834
  }
1835
1835
 
1836
1836
  /** Version */
1837
1837
  get version() {
1838
- return this.document.fields.find(f => f.type.name == 'Version');
1838
+ return this.document.fields.find(f => f.type.name === 'Version');
1839
1839
  }
1840
1840
 
1841
1841
  /** The child document of type "TitleData". */
1842
1842
  get titleData() {
1843
- const child = this.document.children.find(c => c.type.name == 'TitleData');
1843
+ const child = this.document.children.find(c => c.type.name === 'TitleData');
1844
1844
  return child ? new AAMVA.TitleData(child) : undefined;
1845
1845
  }
1846
1846
 
1847
1847
  /** The child document of type "RegistrationData". */
1848
1848
  get registrationData() {
1849
- const child = this.document.children.find(c => c.type.name == 'RegistrationData');
1849
+ const child = this.document.children.find(c => c.type.name === 'RegistrationData');
1850
1850
  return child ? new AAMVA.RegistrationData(child) : undefined;
1851
1851
  }
1852
1852
 
1853
1853
  /** The child document of type "MotorCarrierData". */
1854
1854
  get motorCarrierData() {
1855
- const child = this.document.children.find(c => c.type.name == 'MotorCarrierData');
1855
+ const child = this.document.children.find(c => c.type.name === 'MotorCarrierData');
1856
1856
  return child ? new AAMVA.MotorCarrierData(child) : undefined;
1857
1857
  }
1858
1858
 
1859
1859
  /** The child document of type "RegistrantAndVehicleData". */
1860
1860
  get registrantAndVehicleData() {
1861
- const child = this.document.children.find(c => c.type.name == 'RegistrantAndVehicleData');
1861
+ const child = this.document.children.find(c => c.type.name === 'RegistrantAndVehicleData');
1862
1862
  return child ? new AAMVA.RegistrantAndVehicleData(child) : undefined;
1863
1863
  }
1864
1864
 
1865
1865
  /** The child document of type "VehicleOwnerData". */
1866
1866
  get vehicleOwnerData() {
1867
- const child = this.document.children.find(c => c.type.name == 'VehicleOwnerData');
1867
+ const child = this.document.children.find(c => c.type.name === 'VehicleOwnerData');
1868
1868
  return child ? new AAMVA.VehicleOwnerData(child) : undefined;
1869
1869
  }
1870
1870
 
1871
1871
  /** The child document of type "VehicleData". */
1872
1872
  get vehicleData() {
1873
- const child = this.document.children.find(c => c.type.name == 'VehicleData');
1873
+ const child = this.document.children.find(c => c.type.name === 'VehicleData');
1874
1874
  return child ? new AAMVA.VehicleData(child) : undefined;
1875
1875
  }
1876
1876
 
1877
1877
  /** The child document of type "VehicleSafetyInspectionData". */
1878
1878
  get vehicleSafetyInspectionData() {
1879
- const child = this.document.children.find(c => c.type.name == 'VehicleSafetyInspectionData');
1879
+ const child = this.document.children.find(c => c.type.name === 'VehicleSafetyInspectionData');
1880
1880
  return child ? new AAMVA.VehicleSafetyInspectionData(child) : undefined;
1881
1881
  }
1882
1882
 
1883
1883
  /** The child document of type "DriverLicense". */
1884
1884
  get driverLicense() {
1885
- const child = this.document.children.find(c => c.type.name == 'DriverLicense');
1885
+ const child = this.document.children.find(c => c.type.name === 'DriverLicense');
1886
1886
  return child ? new AAMVA.DriverLicense(child) : undefined;
1887
1887
  }
1888
1888
 
1889
1889
  /** The child document of type "IDCard". */
1890
1890
  get idCard() {
1891
- const child = this.document.children.find(c => c.type.name == 'IDCard');
1891
+ const child = this.document.children.find(c => c.type.name === 'IDCard');
1892
1892
  return child ? new AAMVA.IDCard(child) : undefined;
1893
1893
  }
1894
1894
 
1895
1895
  /** The child document of type "EnhancedDriverLicense". */
1896
1896
  get enhancedDriverLicense() {
1897
- const child = this.document.children.find(c => c.type.name == 'EnhancedDriverLicense');
1897
+ const child = this.document.children.find(c => c.type.name === 'EnhancedDriverLicense');
1898
1898
  return child ? new AAMVA.EnhancedDriverLicense(child) : undefined;
1899
1899
  }
1900
1900
 
1901
1901
  /** The child document of type "RawDocument". */
1902
1902
  get rawDocument() {
1903
- const child = this.document.children.find(c => c.type.name == 'RawDocument');
1903
+ const child = this.document.children.find(c => c.type.name === 'RawDocument');
1904
1904
  return new AAMVA.RawDocument(child);
1905
1905
  }
1906
1906
  }
@@ -1911,149 +1911,148 @@ exports.AAMVA = AAMVA;
1911
1911
  return this._document;
1912
1912
  }
1913
1913
  constructor(document) {
1914
- if (document.type.name != this.requiredDocumentType()) {
1914
+ if (document.type.name !== this.requiredDocumentType()) {
1915
1915
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
1916
1916
  }
1917
1917
  this._document = document;
1918
1918
  }
1919
1919
  requiredDocumentType() {
1920
- return AAMVATitleDataDocumentTypeName;
1920
+ return AAMVATitleDataDocumentType;
1921
1921
  }
1922
1922
 
1923
1923
  /** Data element ID "NAT". City portion of the owner's address. */
1924
1924
  get addressCity() {
1925
- return this.document.fields.find(f => f.type.name == 'AddressCity');
1925
+ return this.document.fields.find(f => f.type.name === 'AddressCity');
1926
1926
  }
1927
1927
 
1928
1928
  /** Data element ID "NAU". Jurisdiction portion of the owner's address. */
1929
1929
  get addressJurisdictionCode() {
1930
- return this.document.fields.find(f => f.type.name == 'AddressJurisdictionCode');
1930
+ return this.document.fields.find(f => f.type.name === 'AddressJurisdictionCode');
1931
1931
  }
1932
1932
 
1933
1933
  /** Data element ID "NAR". Street portion of the owner's address. */
1934
1934
  get addressStreet() {
1935
- return this.document.fields.find(f => f.type.name == 'AddressStreet');
1935
+ return this.document.fields.find(f => f.type.name === 'AddressStreet');
1936
1936
  }
1937
1937
 
1938
1938
  /** Data element ID "NAV". The ZIP code or Postal code portion of the owner's address. */
1939
1939
  get addressZipCode() {
1940
- return this.document.fields.find(f => f.type.name == 'AddressZipCode');
1940
+ return this.document.fields.find(f => f.type.name === 'AddressZipCode');
1941
1941
  }
1942
1942
 
1943
1943
  /** Data element ID "BBC". The name of business that owns the vehicle. */
1944
1944
  get businessName() {
1945
- return this.document.fields.find(f => f.type.name == 'BusinessName');
1945
+ return this.document.fields.find(f => f.type.name === 'BusinessName');
1946
1946
  }
1947
1947
 
1948
1948
  /** Data element ID "NAA". Family name (commonly called surname or last name) of the owner of the vehicle. */
1949
1949
  get familyName() {
1950
- return this.document.fields.find(f => f.type.name == 'FamilyName');
1950
+ return this.document.fields.find(f => f.type.name === 'FamilyName');
1951
1951
  }
1952
1952
 
1953
1953
  /** Data element ID "LAF". A code that uniquely identifies the first holder of a lien. */
1954
1954
  get firstLienHolderId() {
1955
- return this.document.fields.find(f => f.type.name == 'FirstLienHolderId');
1955
+ return this.document.fields.find(f => f.type.name === 'FirstLienHolderId');
1956
1956
  }
1957
1957
 
1958
1958
  /** Data element ID "LAA". Name of the first lien holder of the vehicle. */
1959
1959
  get firstLienHolderName() {
1960
- return this.document.fields.find(f => f.type.name == 'FirstLienHolderName');
1960
+ return this.document.fields.find(f => f.type.name === 'FirstLienHolderName');
1961
1961
  }
1962
1962
 
1963
1963
  /** Data element ID "NAE". Given name or names (includes all of what are commonly referred to as first and middle names) of the owner of the vehicle. */
1964
1964
  get givenName() {
1965
- return this.document.fields.find(f => f.type.name == 'GivenName');
1965
+ return this.document.fields.find(f => f.type.name === 'GivenName');
1966
1966
  }
1967
1967
 
1968
- /** Data element ID "TAW". This code represents whether the vehicle/vessel is new or used. Note: jurisdictions' definitions of these classifications may vary a little due to state regulations on demo vehicles, slates between dealers, application of state taxes, etc. N = New, U = Used.
1969
- */
1968
+ /** Data element ID "TAW". This code represents whether the vehicle/vessel is new or used. Note: jurisdictions' definitions of these classifications may vary a little due to state regulations on demo vehicles, slates between dealers, application of state taxes, etc. N = New, U = Used. */
1970
1969
  get newUsedIndicator() {
1971
- return this.document.fields.find(f => f.type.name == 'NewUsedIndicator');
1970
+ return this.document.fields.find(f => f.type.name === 'NewUsedIndicator');
1972
1971
  }
1973
1972
 
1974
1973
  /** Data element ID "TAH". The date the odometer reading was recorded by the jurisdiction. */
1975
1974
  get odometerDate() {
1976
- return this.document.fields.find(f => f.type.name == 'OdometerDate');
1975
+ return this.document.fields.find(f => f.type.name === 'OdometerDate');
1977
1976
  }
1978
1977
 
1979
1978
  /** Data element ID "TAG". This is the federal odometer mileage disclosure. The mandatory information is: (1) Actual vehicle mileage; (2) Mileage exceeds mechanical limitations; (3) Not actual mileage; (4) Mileage disclosure not required. */
1980
1979
  get odometerDisclosure() {
1981
- return this.document.fields.find(f => f.type.name == 'OdometerDisclosure');
1980
+ return this.document.fields.find(f => f.type.name === 'OdometerDisclosure');
1982
1981
  }
1983
1982
 
1984
1983
  /** Data element ID "TAI". This is the odometer reading registered with the DMV either at the time of titling or registration renewal in kilometers. */
1985
1984
  get odometerReadingKilometers() {
1986
- return this.document.fields.find(f => f.type.name == 'OdometerReadingKilometers');
1985
+ return this.document.fields.find(f => f.type.name === 'OdometerReadingKilometers');
1987
1986
  }
1988
1987
 
1989
1988
  /** Data element ID "TAF". This is the odometer reading registered with the DMV either at the time of titling or registration renewal. */
1990
1989
  get odometerReadingMileage() {
1991
- return this.document.fields.find(f => f.type.name == 'OdometerReadingMileage');
1990
+ return this.document.fields.find(f => f.type.name === 'OdometerReadingMileage');
1992
1991
  }
1993
1992
 
1994
1993
  /** Data element ID "TAZ". The title number assigned to the vehicle by the previous titling jurisdiction. */
1995
1994
  get previousTitleNumber() {
1996
- return this.document.fields.find(f => f.type.name == 'PreviousTitleNumber');
1995
+ return this.document.fields.find(f => f.type.name === 'PreviousTitleNumber');
1997
1996
  }
1998
1997
 
1999
1998
  /** Data element ID "TPJ". The code for the jurisdiction (U.S., Canadian, or Mexican) that titled the vehicle immediately prior to the current titling jurisdiction. */
2000
1999
  get previousTitlingJurisdiction() {
2001
- return this.document.fields.find(f => f.type.name == 'PreviousTitlingJurisdiction');
2000
+ return this.document.fields.find(f => f.type.name === 'PreviousTitlingJurisdiction');
2002
2001
  }
2003
2002
 
2004
2003
  /** Data element ID "TAY". Code providing information about the brand applied to the title. */
2005
2004
  get titleBrand() {
2006
- return this.document.fields.find(f => f.type.name == 'TitleBrand');
2005
+ return this.document.fields.find(f => f.type.name === 'TitleBrand');
2007
2006
  }
2008
2007
 
2009
2008
  /** Data element ID "TAV". The date the jurisdiction's titling authority issued a title to the owner of the vehicle. The format is CCYYMMDD. */
2010
2009
  get titleIssueDate() {
2011
- return this.document.fields.find(f => f.type.name == 'TitleIssueDate');
2010
+ return this.document.fields.find(f => f.type.name === 'TitleIssueDate');
2012
2011
  }
2013
2012
 
2014
2013
  /** Data element ID "TAA". The date the jurisdiction's titling authority issued a title to the owner of the vehicle. The format is CCYYMMDD. */
2015
2014
  get titleNumber() {
2016
- return this.document.fields.find(f => f.type.name == 'TitleNumber');
2015
+ return this.document.fields.find(f => f.type.name === 'TitleNumber');
2017
2016
  }
2018
2017
 
2019
2018
  /** Data element ID "TAC". A unique set of alphanumeric characters assigned by the titling jurisdiction to the certificate of title of a vehicle. */
2020
2019
  get titlingJurisdiction() {
2021
- return this.document.fields.find(f => f.type.name == 'TitlingJurisdiction');
2020
+ return this.document.fields.find(f => f.type.name === 'TitlingJurisdiction');
2022
2021
  }
2023
2022
 
2024
2023
  /** Data element ID "VAO". The general configuration or shape of a vehicle distinguished by characteristics such as number of doors, seats, windows, roofline, and type of top. The vehicle body type is 2-character alphanumeric. */
2025
2024
  get vehicleBodyStyle() {
2026
- return this.document.fields.find(f => f.type.name == 'VehicleBodyStyle');
2025
+ return this.document.fields.find(f => f.type.name === 'VehicleBodyStyle');
2027
2026
  }
2028
2027
 
2029
2028
  /** Data element ID "VBD". Where the vehicle/vessel is one color, this is the appropriate code describing that color. When the vehicle is two colors, this is the code for the top-most or front-most color. */
2030
2029
  get vehicleColor() {
2031
- return this.document.fields.find(f => f.type.name == 'VehicleColor');
2030
+ return this.document.fields.find(f => f.type.name === 'VehicleColor');
2032
2031
  }
2033
2032
 
2034
2033
  /** Data element ID "VAD". A unique combination of alphanumeric characters that identifies a specific vehicle or component. The VIN is affixed to the vehicle in specific locations and formulated by the manufacturer. State agencies under some controlled instances may assign a VIN to a vehicle. */
2035
2034
  get vehicleIdentificationNumber() {
2036
- return this.document.fields.find(f => f.type.name == 'VehicleIdentificationNumber');
2035
+ return this.document.fields.find(f => f.type.name === 'VehicleIdentificationNumber');
2037
2036
  }
2038
2037
 
2039
2038
  /** Data element ID "VAK". The distinctive (coded) name applied to a group of vehicles by a manufacturer. */
2040
2039
  get vehicleMake() {
2041
- return this.document.fields.find(f => f.type.name == 'VehicleMake');
2040
+ return this.document.fields.find(f => f.type.name === 'VehicleMake');
2042
2041
  }
2043
2042
 
2044
2043
  /** Data element ID "VAM". A code denoting a family of vehicles (within a make), which has a degree of similarity in construction, such as body, chassis, etc. The field does not necessarily contain a standard code; it may contain a value provided by the originator of the field. */
2045
2044
  get vehicleModel() {
2046
- return this.document.fields.find(f => f.type.name == 'VehicleModel');
2045
+ return this.document.fields.find(f => f.type.name === 'VehicleModel');
2047
2046
  }
2048
2047
 
2049
2048
  /** Data element ID "VAL". The year that is assigned to a vehicle by the manufacturer. The format is CCYY. */
2050
2049
  get vehicleModelYear() {
2051
- return this.document.fields.find(f => f.type.name == 'VehicleModelYear');
2050
+ return this.document.fields.find(f => f.type.name === 'VehicleModelYear');
2052
2051
  }
2053
2052
 
2054
2053
  /** Data element ID "TAU". The date a vehicle was purchased by the current owner. The format is ISO8601 with delimiters. */
2055
2054
  get vehiclePurchaseDate() {
2056
- return this.document.fields.find(f => f.type.name == 'VehiclePurchaseDate');
2055
+ return this.document.fields.find(f => f.type.name === 'VehiclePurchaseDate');
2057
2056
  }
2058
2057
  }
2059
2058
  _AAMVA.TitleData = TitleData;
@@ -2062,123 +2061,123 @@ exports.AAMVA = AAMVA;
2062
2061
  return this._document;
2063
2062
  }
2064
2063
  constructor(document) {
2065
- if (document.type.name != this.requiredDocumentType()) {
2064
+ if (document.type.name !== this.requiredDocumentType()) {
2066
2065
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
2067
2066
  }
2068
2067
  this._document = document;
2069
2068
  }
2070
2069
  requiredDocumentType() {
2071
- return AAMVARegistrationDataDocumentTypeName;
2070
+ return AAMVARegistrationDataDocumentType;
2072
2071
  }
2073
2072
 
2074
2073
  /** Data element ID "RBK". City portion of the owner's address. */
2075
2074
  get addressCity() {
2076
- return this.document.fields.find(f => f.type.name == 'AddressCity');
2075
+ return this.document.fields.find(f => f.type.name === 'AddressCity');
2077
2076
  }
2078
2077
 
2079
2078
  /** Data element ID "RBL". Jurisdiction portion of the owner's address. */
2080
2079
  get addressJurisdictionCode() {
2081
- return this.document.fields.find(f => f.type.name == 'AddressJurisdictionCode');
2080
+ return this.document.fields.find(f => f.type.name === 'AddressJurisdictionCode');
2082
2081
  }
2083
2082
 
2084
2083
  /** Data element ID "RBI". Street portion of the owner's address. */
2085
2084
  get addressStreet() {
2086
- return this.document.fields.find(f => f.type.name == 'AddressStreet');
2085
+ return this.document.fields.find(f => f.type.name === 'AddressStreet');
2087
2086
  }
2088
2087
 
2089
2088
  /** Data element ID "RBM". The Zip code or Postal code of the vehicle owner's residence address. */
2090
2089
  get addressZipCode() {
2091
- return this.document.fields.find(f => f.type.name == 'AddressZipCode');
2090
+ return this.document.fields.find(f => f.type.name === 'AddressZipCode');
2092
2091
  }
2093
2092
 
2094
2093
  /** Data element ID "VBC". The number of common axles of rotation of one or more wheels of a vehicle, whether power driven or freely rotating. */
2095
2094
  get axles() {
2096
- return this.document.fields.find(f => f.type.name == 'Axles');
2095
+ return this.document.fields.find(f => f.type.name === 'Axles');
2097
2096
  }
2098
2097
 
2099
2098
  /** Data element ID "BBC". The business name of the first registrant of a vehicle. */
2100
2099
  get businessName() {
2101
- return this.document.fields.find(f => f.type.name == 'BusinessName');
2100
+ return this.document.fields.find(f => f.type.name === 'BusinessName');
2102
2101
  }
2103
2102
 
2104
2103
  /** Data element ID "FUL". The type of fuel used by the vehicle. In most cases, the fuel type would be diesel. */
2105
2104
  get fuel() {
2106
- return this.document.fields.find(f => f.type.name == 'Fuel');
2105
+ return this.document.fields.find(f => f.type.name === 'Fuel');
2107
2106
  }
2108
2107
 
2109
2108
  /** Data element ID "VAT". The unladen weight of the vehicle (e.g., the single-unit truck, truck combination) plus the weight of the load being carried at a specific point in time. */
2110
2109
  get grossVehicleWeight() {
2111
- return this.document.fields.find(f => f.type.name == 'GrossVehicleWeight');
2110
+ return this.document.fields.find(f => f.type.name === 'GrossVehicleWeight');
2112
2111
  }
2113
2112
 
2114
2113
  /** Data element ID "RBD". Family name (commonly called surname or last name) of the registered owner of a vehicle. */
2115
2114
  get registrantFamilyName() {
2116
- return this.document.fields.find(f => f.type.name == 'RegistrantFamilyName');
2115
+ return this.document.fields.find(f => f.type.name === 'RegistrantFamilyName');
2117
2116
  }
2118
2117
 
2119
2118
  /** Data element ID "RBE". Given name or names (includes all of what are commonly referred to as first and middle names) of the registered owner of a vehicle. */
2120
2119
  get registrantGivenName() {
2121
- return this.document.fields.find(f => f.type.name == 'RegistrantGivenName');
2120
+ return this.document.fields.find(f => f.type.name === 'RegistrantGivenName');
2122
2121
  }
2123
2122
 
2124
2123
  /** Data element ID "RAG". The date in which the registration expired. The format is ISO8601 with delimiters. */
2125
2124
  get registrationExpiryDate() {
2126
- return this.document.fields.find(f => f.type.name == 'RegistrationExpiryDate');
2125
+ return this.document.fields.find(f => f.type.name === 'RegistrationExpiryDate');
2127
2126
  }
2128
2127
 
2129
2128
  /** Data element ID "RBB". The date in which the registration was issued. The format is ISO8601 with delimiters. */
2130
2129
  get registrationIssueDate() {
2131
- return this.document.fields.find(f => f.type.name == 'RegistrationIssueDate');
2130
+ return this.document.fields.find(f => f.type.name === 'RegistrationIssueDate');
2132
2131
  }
2133
2132
 
2134
2133
  /** Data element ID "RAM". The characters assigned to a registration plate or tag affixed to the vehicle, assigned by the jurisdiction. */
2135
2134
  get registrationPlateNumber() {
2136
- return this.document.fields.find(f => f.type.name == 'RegistrationPlateNumber');
2135
+ return this.document.fields.find(f => f.type.name === 'RegistrationPlateNumber');
2137
2136
  }
2138
2137
 
2139
2138
  /** Data element ID "RBU". A unique number printed on the tab/decal and stored as part of the registration record. */
2140
2139
  get registrationWindowStickerDecal() {
2141
- return this.document.fields.find(f => f.type.name == 'RegistrationWindowStickerDecal');
2140
+ return this.document.fields.find(f => f.type.name === 'RegistrationWindowStickerDecal');
2142
2141
  }
2143
2142
 
2144
2143
  /** Data element ID "RBT". The year of registration. */
2145
2144
  get registrationYear() {
2146
- return this.document.fields.find(f => f.type.name == 'RegistrationYear');
2145
+ return this.document.fields.find(f => f.type.name === 'RegistrationYear');
2147
2146
  }
2148
2147
 
2149
2148
  /** Data element ID "VAO". The general configuration or shape of a vehicle distinguished by characteristics such as number of doors, seats, windows, roofline, and type of top. The vehicle body type is 2-character alphanumeric. */
2150
2149
  get vehicleBodyStyle() {
2151
- return this.document.fields.find(f => f.type.name == 'VehicleBodyStyle');
2150
+ return this.document.fields.find(f => f.type.name === 'VehicleBodyStyle');
2152
2151
  }
2153
2152
 
2154
2153
  /** Data element ID "VBD". Where the vehicle is one color, this is the appropriate code describing that color. When the vehicle is two colors, this is the code for the top-most or front-most color. */
2155
2154
  get vehicleColor() {
2156
- return this.document.fields.find(f => f.type.name == 'VehicleColor');
2155
+ return this.document.fields.find(f => f.type.name === 'VehicleColor');
2157
2156
  }
2158
2157
 
2159
2158
  /** Data element ID "VAD". A unique combination of alphanumeric characters that identifies a specific vehicle or component. The VIN is affixed to the vehicle in specific locations and formulated by the manufacturer. State agencies under some controlled instances my assign a VIN to a vehicle. */
2160
2159
  get vehicleIdentificationNumber() {
2161
- return this.document.fields.find(f => f.type.name == 'VehicleIdentificationNumber');
2160
+ return this.document.fields.find(f => f.type.name === 'VehicleIdentificationNumber');
2162
2161
  }
2163
2162
 
2164
2163
  /** Data element ID "VAK". The distinctive (coded) name applied to a group of vehicles by a manufacturer. */
2165
2164
  get vehicleMake() {
2166
- return this.document.fields.find(f => f.type.name == 'VehicleMake');
2165
+ return this.document.fields.find(f => f.type.name === 'VehicleMake');
2167
2166
  }
2168
2167
 
2169
2168
  /** Data element ID "VAM". A code denoting a family of vehicles (within a make), which has a degree of similarity in construction, such as body, chassis, etc. The field does not necessarily contain a standard code; it may contain a value provided by the originator of the field. */
2170
2169
  get vehicleModel() {
2171
- return this.document.fields.find(f => f.type.name == 'VehicleModel');
2170
+ return this.document.fields.find(f => f.type.name === 'VehicleModel');
2172
2171
  }
2173
2172
 
2174
2173
  /** Data element ID "VAL". The year which is assigned to a vehicle by the manufacturer. The format is CCYY. */
2175
2174
  get vehicleModelYear() {
2176
- return this.document.fields.find(f => f.type.name == 'VehicleModelYear');
2175
+ return this.document.fields.find(f => f.type.name === 'VehicleModelYear');
2177
2176
  }
2178
2177
 
2179
2178
  /** Data element ID "VPC". Indicates the use of the vehicle. */
2180
2179
  get vehicleUse() {
2181
- return this.document.fields.find(f => f.type.name == 'VehicleUse');
2180
+ return this.document.fields.find(f => f.type.name === 'VehicleUse');
2182
2181
  }
2183
2182
  }
2184
2183
  _AAMVA.RegistrationData = RegistrationData;
@@ -2187,43 +2186,43 @@ exports.AAMVA = AAMVA;
2187
2186
  return this._document;
2188
2187
  }
2189
2188
  constructor(document) {
2190
- if (document.type.name != this.requiredDocumentType()) {
2189
+ if (document.type.name !== this.requiredDocumentType()) {
2191
2190
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
2192
2191
  }
2193
2192
  this._document = document;
2194
2193
  }
2195
2194
  requiredDocumentType() {
2196
- return AAMVAMotorCarrierDataDocumentTypeName;
2195
+ return AAMVAMotorCarrierDataDocumentType;
2197
2196
  }
2198
2197
 
2199
2198
  /** Data element ID "MAA". The name of the carrier responsible for safety. This can be an individual, partnership or corporation responsible for the transportation of persons or property. This is the name that is recognized by law. */
2200
2199
  get carrierName() {
2201
- return this.document.fields.find(f => f.type.name == 'CarrierName');
2200
+ return this.document.fields.find(f => f.type.name === 'CarrierName');
2202
2201
  }
2203
2202
 
2204
2203
  /** Data element ID "MAL". This is the city for the mailing address of the individual carrier. This information is utilized by the base jurisdiction to send information to the carrier that purchased the IRP credentials. */
2205
2204
  get city() {
2206
- return this.document.fields.find(f => f.type.name == 'City');
2205
+ return this.document.fields.find(f => f.type.name === 'City');
2207
2206
  }
2208
2207
 
2209
2208
  /** Data element ID "MAI". This is the jurisdiction of the residential address of the individual carrier. This information is utilized by the base jurisdiction to send information to the carrier that purchased the IRP credentials. */
2210
2209
  get jurisdiction() {
2211
- return this.document.fields.find(f => f.type.name == 'Jurisdiction');
2210
+ return this.document.fields.find(f => f.type.name === 'Jurisdiction');
2212
2211
  }
2213
2212
 
2214
2213
  /** Data element ID "MAK". This is the mailing address of the individual carrier. This information is utilized by the base jurisdiction to send information to the carrier that purchased the IRP credentials. */
2215
2214
  get streetAddress() {
2216
- return this.document.fields.find(f => f.type.name == 'StreetAddress');
2215
+ return this.document.fields.find(f => f.type.name === 'StreetAddress');
2217
2216
  }
2218
2217
 
2219
2218
  /** Data element ID "MAN". A unique identifier assigned to the carrier responsible for safety issued by the U.S. Department of Transportation – Federal Motor Carrier Safety Administration. */
2220
2219
  get usdotNumber() {
2221
- return this.document.fields.find(f => f.type.name == 'USDOTNumber');
2220
+ return this.document.fields.find(f => f.type.name === 'USDOTNumber');
2222
2221
  }
2223
2222
 
2224
2223
  /** Data element ID "MAO". The ZIP or Postal code of the resident address of the vehicle owner. */
2225
2224
  get zip() {
2226
- return this.document.fields.find(f => f.type.name == 'Zip');
2225
+ return this.document.fields.find(f => f.type.name === 'Zip');
2227
2226
  }
2228
2227
  }
2229
2228
  _AAMVA.MotorCarrierData = MotorCarrierData;
@@ -2232,108 +2231,108 @@ exports.AAMVA = AAMVA;
2232
2231
  return this._document;
2233
2232
  }
2234
2233
  constructor(document) {
2235
- if (document.type.name != this.requiredDocumentType()) {
2234
+ if (document.type.name !== this.requiredDocumentType()) {
2236
2235
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
2237
2236
  }
2238
2237
  this._document = document;
2239
2238
  }
2240
2239
  requiredDocumentType() {
2241
- return AAMVARegistrantAndVehicleDataDocumentTypeName;
2240
+ return AAMVARegistrantAndVehicleDataDocumentType;
2242
2241
  }
2243
2242
 
2244
2243
  /** Data element ID "RBI". The first line of the registrant's residence address. */
2245
2244
  get address() {
2246
- return this.document.fields.find(f => f.type.name == 'Address');
2245
+ return this.document.fields.find(f => f.type.name === 'Address');
2247
2246
  }
2248
2247
 
2249
2248
  /** Data element ID "RAU". The declared base jurisdiction registration weight. */
2250
2249
  get baseJurisdictionRegisteredWeight() {
2251
- return this.document.fields.find(f => f.type.name == 'BaseJurisdictionRegisteredWeight');
2250
+ return this.document.fields.find(f => f.type.name === 'BaseJurisdictionRegisteredWeight');
2252
2251
  }
2253
2252
 
2254
2253
  /** Data element ID "RBC". The name of the first registrant of a vehicle. Registrant's name may be a combined individual name or the name of a business */
2255
2254
  get carrierNameRegistrant() {
2256
- return this.document.fields.find(f => f.type.name == 'CarrierNameRegistrant');
2255
+ return this.document.fields.find(f => f.type.name === 'CarrierNameRegistrant');
2257
2256
  }
2258
2257
 
2259
2258
  /** Data element ID "RBK". The registrant's residence city name. */
2260
2259
  get city() {
2261
- return this.document.fields.find(f => f.type.name == 'City');
2260
+ return this.document.fields.find(f => f.type.name === 'City');
2262
2261
  }
2263
2262
 
2264
2263
  /** Data element ID "VAT". The unladen weight of the vehicle (e.g., single-unit truck, truck combination) plus the weight of the maximum load for which vehicle registration fees have been paid within a particular jurisdiction. */
2265
2264
  get grossVehicleWeight() {
2266
- return this.document.fields.find(f => f.type.name == 'GrossVehicleWeight');
2265
+ return this.document.fields.find(f => f.type.name === 'GrossVehicleWeight');
2267
2266
  }
2268
2267
 
2269
2268
  /** Data element ID "RBL". The state or province of the registrant's residence address. */
2270
2269
  get jurisdiction() {
2271
- return this.document.fields.find(f => f.type.name == 'Jurisdiction');
2270
+ return this.document.fields.find(f => f.type.name === 'Jurisdiction');
2272
2271
  }
2273
2272
 
2274
2273
  /** Data element ID "VAL". The year which is assigned to a vehicle by the manufacturer. The format is YY. */
2275
2274
  get modelYear() {
2276
- return this.document.fields.find(f => f.type.name == 'ModelYear');
2275
+ return this.document.fields.find(f => f.type.name === 'ModelYear');
2277
2276
  }
2278
2277
 
2279
2278
  /** Data element IDs "RAP", "VBC". The seat capacity of a commercial vehicle designed for transportation of more than then passengers. The number of common axles of rotation of one or more wheels of a vehicle, whether power design or freely rotating. */
2280
2279
  get numberOfSeats() {
2281
- return this.document.fields.find(f => f.type.name == 'NumberOfSeats');
2280
+ return this.document.fields.find(f => f.type.name === 'NumberOfSeats');
2282
2281
  }
2283
2282
 
2284
2283
  /** Data element ID "RAD". The number assigned to the registration decal in those jurisdictions that issue decals. */
2285
2284
  get registrationDecalNumber() {
2286
- return this.document.fields.find(f => f.type.name == 'RegistrationDecalNumber');
2285
+ return this.document.fields.find(f => f.type.name === 'RegistrationDecalNumber');
2287
2286
  }
2288
2287
 
2289
2288
  /** Data element ID "RAF". The registration enforcement date is the date that the current registration was enforced. This may or may not be the original registration date. The format is ISO8601 with delimiters */
2290
2289
  get registrationEnforcementDate() {
2291
- return this.document.fields.find(f => f.type.name == 'RegistrationEnforcementDate');
2290
+ return this.document.fields.find(f => f.type.name === 'RegistrationEnforcementDate');
2292
2291
  }
2293
2292
 
2294
2293
  /** Data element ID "RAG". The date in which the registration expired. The format is ISO8601 with delimiters. */
2295
2294
  get registrationExpirationDate() {
2296
- return this.document.fields.find(f => f.type.name == 'RegistrationExpirationDate');
2295
+ return this.document.fields.find(f => f.type.name === 'RegistrationExpirationDate');
2297
2296
  }
2298
2297
 
2299
2298
  /** Data element ID "IFJ". The date in which the registration was issued. The format is ISO8601 with delimiters. */
2300
2299
  get registrationIssueDate() {
2301
- return this.document.fields.find(f => f.type.name == 'RegistrationIssueDate');
2300
+ return this.document.fields.find(f => f.type.name === 'RegistrationIssueDate');
2302
2301
  }
2303
2302
 
2304
2303
  /** Data element ID "RAM". The characters assigned to a registration plate or tag affixed to the vehicle, assigned by the jurisdiction. */
2305
2304
  get registrationPlateNumber() {
2306
- return this.document.fields.find(f => f.type.name == 'RegistrationPlateNumber');
2305
+ return this.document.fields.find(f => f.type.name === 'RegistrationPlateNumber');
2307
2306
  }
2308
2307
 
2309
2308
  /** Data element ID "RBT". This field is the registration year assigned by the jurisdiction. The format is CCYY. */
2310
2309
  get registrationYear() {
2311
- return this.document.fields.find(f => f.type.name == 'RegistrationYear');
2310
+ return this.document.fields.find(f => f.type.name === 'RegistrationYear');
2312
2311
  }
2313
2312
 
2314
2313
  /** Data element ID "VBB". The type of vehicle operated for the transportation of persons or property in the furtherance of any commercial or industrial enterprise, for hire or not for hire. Not all states will use all values. */
2315
2314
  get typeOfVehicle() {
2316
- return this.document.fields.find(f => f.type.name == 'TypeOfVehicle');
2315
+ return this.document.fields.find(f => f.type.name === 'TypeOfVehicle');
2317
2316
  }
2318
2317
 
2319
2318
  /** Data element ID "IEG". A number, assigned by the registrant of the commercial vehicle or trailer, to identify the vehicle or trailer in the fleet. No two units in a fleet can have the same number. A.K.A vehicle unit number or owner's equipment number. */
2320
2319
  get unitNumber() {
2321
- return this.document.fields.find(f => f.type.name == 'UnitNumber');
2320
+ return this.document.fields.find(f => f.type.name === 'UnitNumber');
2322
2321
  }
2323
2322
 
2324
2323
  /** Data element ID "VAD". A unique combination of alphanumeric characters that identifies a specific vehicle or component. The VIN is affixed to the vehicle in specific locations and formulated by the manufacturer. State agencies under some controlled instances may assign a VIN to a vehicle. */
2325
2324
  get vehicleIdentificationNumber() {
2326
- return this.document.fields.find(f => f.type.name == 'VehicleIdentificationNumber');
2325
+ return this.document.fields.find(f => f.type.name === 'VehicleIdentificationNumber');
2327
2326
  }
2328
2327
 
2329
2328
  /** Data element ID "VAK". The distinctive (coded) name applied to a group of vehicles by a manufacturer. */
2330
2329
  get vehicleMake() {
2331
- return this.document.fields.find(f => f.type.name == 'VehicleMake');
2330
+ return this.document.fields.find(f => f.type.name === 'VehicleMake');
2332
2331
  }
2333
2332
 
2334
2333
  /** Data element ID "RBM". The ZIP or Postal code of the resident address of the registrant. */
2335
2334
  get zipCode() {
2336
- return this.document.fields.find(f => f.type.name == 'ZipCode');
2335
+ return this.document.fields.find(f => f.type.name === 'ZipCode');
2337
2336
  }
2338
2337
  }
2339
2338
  _AAMVA.RegistrantAndVehicleData = RegistrantAndVehicleData;
@@ -2342,123 +2341,123 @@ exports.AAMVA = AAMVA;
2342
2341
  return this._document;
2343
2342
  }
2344
2343
  constructor(document) {
2345
- if (document.type.name != this.requiredDocumentType()) {
2344
+ if (document.type.name !== this.requiredDocumentType()) {
2346
2345
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
2347
2346
  }
2348
2347
  this._document = document;
2349
2348
  }
2350
2349
  requiredDocumentType() {
2351
- return AAMVAVehicleOwnerDataDocumentTypeName;
2350
+ return AAMVAVehicleOwnerDataDocumentType;
2352
2351
  }
2353
2352
 
2354
2353
  /** Data element ID "NAX". The unique customer number/ID of the first vehicle owner. */
2355
2354
  get firstOwnerIdNumber() {
2356
- return this.document.fields.find(f => f.type.name == 'FirstOwnerIdNumber');
2355
+ return this.document.fields.find(f => f.type.name === 'FirstOwnerIdNumber');
2357
2356
  }
2358
2357
 
2359
2358
  /** Data element ID "NAB". Last Name or Surname of the Owner. Hyphenated names acceptable, spaces between names acceptable, but no other use of special symbols. */
2360
2359
  get firstOwnerLastName() {
2361
- return this.document.fields.find(f => f.type.name == 'FirstOwnerLastName');
2360
+ return this.document.fields.find(f => f.type.name === 'FirstOwnerLastName');
2362
2361
  }
2363
2362
 
2364
2363
  /** Data element ID "NBA". The legal status of the first vehicle owner. This is only used when a vehicle has multiple owners. A legal status may be ("AND", "OR"). */
2365
2364
  get firstOwnerLegalStatus() {
2366
- return this.document.fields.find(f => f.type.name == 'FirstOwnerLegalStatus');
2365
+ return this.document.fields.find(f => f.type.name === 'FirstOwnerLegalStatus');
2367
2366
  }
2368
2367
 
2369
2368
  /** Data element ID "NAD". Middle Name(s) or Initial(s) of the Owner. Hyphenated names acceptable, spaces, between names acceptable, but no other use of special symbols. */
2370
2369
  get firstOwnerMiddleName() {
2371
- return this.document.fields.find(f => f.type.name == 'FirstOwnerMiddleName');
2370
+ return this.document.fields.find(f => f.type.name === 'FirstOwnerMiddleName');
2372
2371
  }
2373
2372
 
2374
2373
  /** Data element ID "NAC". First Name or Given Name of the Owner. Hyphenated names acceptable, but no other use of special symbols. */
2375
2374
  get firstOwnerName() {
2376
- return this.document.fields.find(f => f.type.name == 'FirstOwnerName');
2375
+ return this.document.fields.find(f => f.type.name === 'FirstOwnerName');
2377
2376
  }
2378
2377
 
2379
2378
  /** Data element ID "NAA". Name of the (or one of the) individual(s) who owns the Vehicle as defined in the ANSI D- 20 Data Element Dictionary. (Lastname@Firstname@MI@Suffix if any.) */
2380
2379
  get firstOwnerTotalName() {
2381
- return this.document.fields.find(f => f.type.name == 'FirstOwnerTotalName');
2380
+ return this.document.fields.find(f => f.type.name === 'FirstOwnerTotalName');
2382
2381
  }
2383
2382
 
2384
2383
  /** Data element ID "NAR". Street address line 1. (Mailing) */
2385
2384
  get mailingAddress1() {
2386
- return this.document.fields.find(f => f.type.name == 'MailingAddress1');
2385
+ return this.document.fields.find(f => f.type.name === 'MailingAddress1');
2387
2386
  }
2388
2387
 
2389
2388
  /** Data element ID "NAS". Street address line 2. (Mailing) */
2390
2389
  get mailingAddress2() {
2391
- return this.document.fields.find(f => f.type.name == 'MailingAddress2');
2390
+ return this.document.fields.find(f => f.type.name === 'MailingAddress2');
2392
2391
  }
2393
2392
 
2394
2393
  /** Data element ID "NAT". Name of city for mailing address. */
2395
2394
  get mailingCity() {
2396
- return this.document.fields.find(f => f.type.name == 'MailingCity');
2395
+ return this.document.fields.find(f => f.type.name === 'MailingCity');
2397
2396
  }
2398
2397
 
2399
2398
  /** Data element ID "NAU". Jurisdiction code for mailing address. Conforms to Canadian, Mexican and US jurisdictions as appropriate. Codes for provinces (Canada) and states (US and Mexico). */
2400
2399
  get mailingJurisdictionCode() {
2401
- return this.document.fields.find(f => f.type.name == 'MailingJurisdictionCode');
2400
+ return this.document.fields.find(f => f.type.name === 'MailingJurisdictionCode');
2402
2401
  }
2403
2402
 
2404
2403
  /** Data element ID "NAV". The ZIP code or Postal code used for mailing. (As used by Canadian, Mexican and US jurisdictions.) */
2405
2404
  get mailingZipCode() {
2406
- return this.document.fields.find(f => f.type.name == 'MailingZipCode');
2405
+ return this.document.fields.find(f => f.type.name === 'MailingZipCode');
2407
2406
  }
2408
2407
 
2409
2408
  /** Data element ID "NAM". Street address line 1. (Mailing) */
2410
2409
  get residenceAddress1() {
2411
- return this.document.fields.find(f => f.type.name == 'ResidenceAddress1');
2410
+ return this.document.fields.find(f => f.type.name === 'ResidenceAddress1');
2412
2411
  }
2413
2412
 
2414
2413
  /** Data element ID "NAN". Street address line 2. (Mailing) */
2415
2414
  get residenceAddress2() {
2416
- return this.document.fields.find(f => f.type.name == 'ResidenceAddress2');
2415
+ return this.document.fields.find(f => f.type.name === 'ResidenceAddress2');
2417
2416
  }
2418
2417
 
2419
2418
  /** Data element ID "NAO". Name of city for mailing address. */
2420
2419
  get residenceCity() {
2421
- return this.document.fields.find(f => f.type.name == 'ResidenceCity');
2420
+ return this.document.fields.find(f => f.type.name === 'ResidenceCity');
2422
2421
  }
2423
2422
 
2424
2423
  /** Data element ID "NAP". Jurisdiction code for mailing address. Conforms to Canadian, Mexican and US jurisdictions as appropriate. Codes for provinces (Canada) and states (US and Mexico). */
2425
2424
  get residenceJurisdictionCode() {
2426
- return this.document.fields.find(f => f.type.name == 'ResidenceJurisdictionCode');
2425
+ return this.document.fields.find(f => f.type.name === 'ResidenceJurisdictionCode');
2427
2426
  }
2428
2427
 
2429
2428
  /** Data element ID "NAQ". The ZIP code or Postal code used for mailing. (As used by Canadian, Mexican and US jurisdictions). */
2430
2429
  get residenceZipCode() {
2431
- return this.document.fields.find(f => f.type.name == 'ResidenceZipCode');
2430
+ return this.document.fields.find(f => f.type.name === 'ResidenceZipCode');
2432
2431
  }
2433
2432
 
2434
2433
  /** Data element ID "NAY". The unique customer number/ID of the second vehicle owner. */
2435
2434
  get secondOwnerIdNumber() {
2436
- return this.document.fields.find(f => f.type.name == 'SecondOwnerIdNumber');
2435
+ return this.document.fields.find(f => f.type.name === 'SecondOwnerIdNumber');
2437
2436
  }
2438
2437
 
2439
2438
  /** Data element ID "NAF". Last Name or Surname of the Owner. Hyphenated names acceptable, spaces between names acceptable, but no other use of special symbols. */
2440
2439
  get secondOwnerLastName() {
2441
- return this.document.fields.find(f => f.type.name == 'SecondOwnerLastName');
2440
+ return this.document.fields.find(f => f.type.name === 'SecondOwnerLastName');
2442
2441
  }
2443
2442
 
2444
2443
  /** Data element ID "NBB". The legal status of the second vehicle owner. This is only used when a vehicle has multiple owners. A legal status may be ("AND", "OR"). */
2445
2444
  get secondOwnerLegalStatus() {
2446
- return this.document.fields.find(f => f.type.name == 'SecondOwnerLegalStatus');
2445
+ return this.document.fields.find(f => f.type.name === 'SecondOwnerLegalStatus');
2447
2446
  }
2448
2447
 
2449
2448
  /** Data element ID "NAH". Middle Name(s) or Initial(s) of the Owner. Hyphenated names acceptable, spaces between names acceptable, but no other use of special symbols. */
2450
2449
  get secondOwnerMiddleName() {
2451
- return this.document.fields.find(f => f.type.name == 'SecondOwnerMiddleName');
2450
+ return this.document.fields.find(f => f.type.name === 'SecondOwnerMiddleName');
2452
2451
  }
2453
2452
 
2454
2453
  /** Data element ID "NAG". First Name or Given Name of the Owner. Hyphenated names acceptable, but no other use of special symbols. */
2455
2454
  get secondOwnerName() {
2456
- return this.document.fields.find(f => f.type.name == 'SecondOwnerName');
2455
+ return this.document.fields.find(f => f.type.name === 'SecondOwnerName');
2457
2456
  }
2458
2457
 
2459
2458
  /** Data element ID "NAE". Name of the (or one of the) individual(s) who owns the Vehicle as defined in the ANSI D- 20 Data Element Dictionary. (Lastname@Firstname@MI@Suffix if any.) */
2460
2459
  get secondOwnerTotalName() {
2461
- return this.document.fields.find(f => f.type.name == 'SecondOwnerTotalName');
2460
+ return this.document.fields.find(f => f.type.name === 'SecondOwnerTotalName');
2462
2461
  }
2463
2462
  }
2464
2463
  _AAMVA.VehicleOwnerData = VehicleOwnerData;
@@ -2467,158 +2466,158 @@ exports.AAMVA = AAMVA;
2467
2466
  return this._document;
2468
2467
  }
2469
2468
  constructor(document) {
2470
- if (document.type.name != this.requiredDocumentType()) {
2469
+ if (document.type.name !== this.requiredDocumentType()) {
2471
2470
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
2472
2471
  }
2473
2472
  this._document = document;
2474
2473
  }
2475
2474
  requiredDocumentType() {
2476
- return AAMVAVehicleDataDocumentTypeName;
2475
+ return AAMVAVehicleDataDocumentType;
2477
2476
  }
2478
2477
 
2479
2478
  /** Data element ID "VAO". Vehicle manufacture body style. */
2480
2479
  get bodyStyle() {
2481
- return this.document.fields.find(f => f.type.name == 'BodyStyle');
2480
+ return this.document.fields.find(f => f.type.name === 'BodyStyle');
2482
2481
  }
2483
2482
 
2484
2483
  /** Data element ID "VAG". Date vehicle reported junked. The format is ISO8601 with delimiters. */
2485
2484
  get dateJunked() {
2486
- return this.document.fields.find(f => f.type.name == 'DateJunked');
2485
+ return this.document.fields.find(f => f.type.name === 'DateJunked');
2487
2486
  }
2488
2487
 
2489
2488
  /** Data element ID "VAJ". Date vehicle reported recovered. The format is ISO8601 with delimiters. */
2490
2489
  get dateRecovered() {
2491
- return this.document.fields.find(f => f.type.name == 'DateRecovered');
2490
+ return this.document.fields.find(f => f.type.name === 'DateRecovered');
2492
2491
  }
2493
2492
 
2494
2493
  /** Data element ID "VAI". Date vehicle reported stolen. The format is ISO8601 with delimiters. */
2495
2494
  get dateStolen() {
2496
- return this.document.fields.find(f => f.type.name == 'DateStolen');
2495
+ return this.document.fields.find(f => f.type.name === 'DateStolen');
2497
2496
  }
2498
2497
 
2499
2498
  /** Data element ID "VAW". Manufacturer's rated engine displacement. */
2500
2499
  get engineDisplacement() {
2501
- return this.document.fields.find(f => f.type.name == 'EngineDisplacement');
2500
+ return this.document.fields.find(f => f.type.name === 'EngineDisplacement');
2502
2501
  }
2503
2502
 
2504
2503
  /** Data element ID "VAR". The size of a vehicle's engine. */
2505
2504
  get engineSize() {
2506
- return this.document.fields.find(f => f.type.name == 'EngineSize');
2505
+ return this.document.fields.find(f => f.type.name === 'EngineSize');
2507
2506
  }
2508
2507
 
2509
2508
  /** Data element ID "VAN". Type of fuel the vehicle utilizes. */
2510
2509
  get fuelType() {
2511
- return this.document.fields.find(f => f.type.name == 'FuelType');
2510
+ return this.document.fields.find(f => f.type.name === 'FuelType');
2512
2511
  }
2513
2512
 
2514
2513
  /** Data element ID "VAU". Manufacturer's rated horsepower. */
2515
2514
  get horsepower() {
2516
- return this.document.fields.find(f => f.type.name == 'Horsepower');
2515
+ return this.document.fields.find(f => f.type.name === 'Horsepower');
2517
2516
  }
2518
2517
 
2519
2518
  /** Data element ID "VAY". International fuel tax indicator */
2520
2519
  get iftaIndicator() {
2521
- return this.document.fields.find(f => f.type.name == 'IFTAIndicator');
2520
+ return this.document.fields.find(f => f.type.name === 'IFTAIndicator');
2522
2521
  }
2523
2522
 
2524
2523
  /** Data element ID "VAX". International registration plan indicator. */
2525
2524
  get irpIndicator() {
2526
- return this.document.fields.find(f => f.type.name == 'IRPIndicator');
2525
+ return this.document.fields.find(f => f.type.name === 'IRPIndicator');
2527
2526
  }
2528
2527
 
2529
2528
  /** Data element ID "VAF". Vehicle has been junked. */
2530
2529
  get junkedIndicator() {
2531
- return this.document.fields.find(f => f.type.name == 'JunkedIndicator');
2530
+ return this.document.fields.find(f => f.type.name === 'JunkedIndicator');
2532
2531
  }
2533
2532
 
2534
2533
  /** Data element ID "VAE". Manufacturer's Suggested Retail Price. No decimal places. Right Justified Zero or space fill. */
2535
2534
  get msrp() {
2536
- return this.document.fields.find(f => f.type.name == 'MSRP');
2535
+ return this.document.fields.find(f => f.type.name === 'MSRP');
2537
2536
  }
2538
2537
 
2539
2538
  /** Data element ID "VAA". State to provide definition. */
2540
2539
  get majorCode() {
2541
- return this.document.fields.find(f => f.type.name == 'MajorCode');
2540
+ return this.document.fields.find(f => f.type.name === 'MajorCode');
2542
2541
  }
2543
2542
 
2544
2543
  /** Data element ID "VAL". Vehicle manufacture year. */
2545
2544
  get makeYear() {
2546
- return this.document.fields.find(f => f.type.name == 'MakeYear');
2545
+ return this.document.fields.find(f => f.type.name === 'MakeYear');
2547
2546
  }
2548
2547
 
2549
2548
  /** Data element ID "VAT". Manufacturer's gross vehicle weight rating. */
2550
2549
  get manufactureGrossWeight() {
2551
- return this.document.fields.find(f => f.type.name == 'ManufactureGrossWeight');
2550
+ return this.document.fields.find(f => f.type.name === 'ManufactureGrossWeight');
2552
2551
  }
2553
2552
 
2554
2553
  /** Data element ID "VAB". State to provide definition. */
2555
2554
  get minorCode() {
2556
- return this.document.fields.find(f => f.type.name == 'MinorCode');
2555
+ return this.document.fields.find(f => f.type.name === 'MinorCode');
2557
2556
  }
2558
2557
 
2559
2558
  /** Data element ID "VBC". Number of axles the vehicle has. */
2560
2559
  get numberOfAxles() {
2561
- return this.document.fields.find(f => f.type.name == 'NumberOfAxles');
2560
+ return this.document.fields.find(f => f.type.name === 'NumberOfAxles');
2562
2561
  }
2563
2562
 
2564
2563
  /** Data element ID "VAQ". Number of cylinders the vehicle has. */
2565
2564
  get numberOfCylinders() {
2566
- return this.document.fields.find(f => f.type.name == 'NumberOfCylinders');
2565
+ return this.document.fields.find(f => f.type.name === 'NumberOfCylinders');
2567
2566
  }
2568
2567
 
2569
2568
  /** Data element ID "VAP". Number of doors on the vehicle. */
2570
2569
  get numberOfDoors() {
2571
- return this.document.fields.find(f => f.type.name == 'NumberOfDoors');
2570
+ return this.document.fields.find(f => f.type.name === 'NumberOfDoors');
2572
2571
  }
2573
2572
 
2574
2573
  /** Data element ID "VAH". Indicates stolen vehicle. */
2575
2574
  get stolenIndicator() {
2576
- return this.document.fields.find(f => f.type.name == 'StolenIndicator');
2575
+ return this.document.fields.find(f => f.type.name === 'StolenIndicator');
2577
2576
  }
2578
2577
 
2579
2578
  /** Data element ID "VAC". Type of transmission the vehicle carries. */
2580
2579
  get transmissionCode() {
2581
- return this.document.fields.find(f => f.type.name == 'TransmissionCode');
2580
+ return this.document.fields.find(f => f.type.name === 'TransmissionCode');
2582
2581
  }
2583
2582
 
2584
2583
  /** Data element ID "VAV". Gross weight of the vehicle unloaded. */
2585
2584
  get unladenWeight() {
2586
- return this.document.fields.find(f => f.type.name == 'UnladenWeight');
2585
+ return this.document.fields.find(f => f.type.name === 'UnladenWeight');
2587
2586
  }
2588
2587
 
2589
2588
  /** Data element ID "VAZ". Vehicle license tax calculation from date of purchase. */
2590
2589
  get vltClacFromDate() {
2591
- return this.document.fields.find(f => f.type.name == 'VLTClacFromDate');
2590
+ return this.document.fields.find(f => f.type.name === 'VLTClacFromDate');
2592
2591
  }
2593
2592
 
2594
2593
  /** Data element ID "VBA". Unique number to identify the vehicle record. */
2595
2594
  get vehicleIdNumber() {
2596
- return this.document.fields.find(f => f.type.name == 'VehicleIdNumber');
2595
+ return this.document.fields.find(f => f.type.name === 'VehicleIdNumber');
2597
2596
  }
2598
2597
 
2599
2598
  /** Data element ID "VAD". A unique combination of alphanumeric characters that identifies a specific vehicle or component. The VIN is affixed to the vehicle in specific locations and formulated by the manufacturer. State agencies under some controlled instances may assign a VIN to a vehicle. */
2600
2599
  get vehicleIdentificationNumber() {
2601
- return this.document.fields.find(f => f.type.name == 'VehicleIdentificationNumber');
2600
+ return this.document.fields.find(f => f.type.name === 'VehicleIdentificationNumber');
2602
2601
  }
2603
2602
 
2604
2603
  /** Data element ID "VAK". The distinctive (coded) name applied to a group of vehicles by a manufacturer. */
2605
2604
  get vehicleMake() {
2606
- return this.document.fields.find(f => f.type.name == 'VehicleMake');
2605
+ return this.document.fields.find(f => f.type.name === 'VehicleMake');
2607
2606
  }
2608
2607
 
2609
2608
  /** Data element ID "VAM". Vehicle manufacture model. */
2610
2609
  get vehicleModel() {
2611
- return this.document.fields.find(f => f.type.name == 'VehicleModel');
2610
+ return this.document.fields.find(f => f.type.name === 'VehicleModel');
2612
2611
  }
2613
2612
 
2614
2613
  /** Data element ID "VAS". This is the status of the vehicle (e.g., active, suspend, etc.) */
2615
2614
  get vehicleStatusCode() {
2616
- return this.document.fields.find(f => f.type.name == 'VehicleStatusCode');
2615
+ return this.document.fields.find(f => f.type.name === 'VehicleStatusCode');
2617
2616
  }
2618
2617
 
2619
2618
  /** Data element ID "VBB". EPA vehicle classification. */
2620
2619
  get vehicleTypeCode() {
2621
- return this.document.fields.find(f => f.type.name == 'VehicleTypeCode');
2620
+ return this.document.fields.find(f => f.type.name === 'VehicleTypeCode');
2622
2621
  }
2623
2622
  }
2624
2623
  _AAMVA.VehicleData = VehicleData;
@@ -2627,73 +2626,73 @@ exports.AAMVA = AAMVA;
2627
2626
  return this._document;
2628
2627
  }
2629
2628
  constructor(document) {
2630
- if (document.type.name != this.requiredDocumentType()) {
2629
+ if (document.type.name !== this.requiredDocumentType()) {
2631
2630
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
2632
2631
  }
2633
2632
  this._document = document;
2634
2633
  }
2635
2634
  requiredDocumentType() {
2636
- return AAMVAVehicleSafetyInspectionDataDocumentTypeName;
2635
+ return AAMVAVehicleSafetyInspectionDataDocumentType;
2637
2636
  }
2638
2637
 
2639
2638
  /** Data element ID "IAN". The street name and number, city, state and zip code of the inspection facility. */
2640
2639
  get inspectionAddress() {
2641
- return this.document.fields.find(f => f.type.name == 'InspectionAddress');
2640
+ return this.document.fields.find(f => f.type.name === 'InspectionAddress');
2642
2641
  }
2643
2642
 
2644
2643
  /** Data element ID "IPD". Identifies whether the pollution control devices meet the minimum inspection criteria. */
2645
2644
  get inspectionAirPollutionDeviceConditions() {
2646
- return this.document.fields.find(f => f.type.name == 'InspectionAirPollutionDeviceConditions');
2645
+ return this.document.fields.find(f => f.type.name === 'InspectionAirPollutionDeviceConditions');
2647
2646
  }
2648
2647
 
2649
2648
  /** Data element ID "IFI". The unique number assigned to an inspection facility. */
2650
2649
  get inspectionFacilityIdentifier() {
2651
- return this.document.fields.find(f => f.type.name == 'InspectionFacilityIdentifier');
2650
+ return this.document.fields.find(f => f.type.name === 'InspectionFacilityIdentifier');
2652
2651
  }
2653
2652
 
2654
2653
  /** Data element ID "INC". A unique number assigned to a current vehicle inspection form for identification purposes or a preprinted unique number on the motor vehicle inspection sticker currently issued to a motor vehicle which has passed inspection. */
2655
2654
  get inspectionFormOrStickerNumberCurrent() {
2656
- return this.document.fields.find(f => f.type.name == 'InspectionFormOrStickerNumberCurrent');
2655
+ return this.document.fields.find(f => f.type.name === 'InspectionFormOrStickerNumberCurrent');
2657
2656
  }
2658
2657
 
2659
2658
  /** Data element ID "INP". The number of the last inspection form excluding the current inspection or the certification number of the last inspection sticker, excluding the current inspection. */
2660
2659
  get inspectionFormOrStickerNumberPrevious() {
2661
- return this.document.fields.find(f => f.type.name == 'InspectionFormOrStickerNumberPrevious');
2660
+ return this.document.fields.find(f => f.type.name === 'InspectionFormOrStickerNumberPrevious');
2662
2661
  }
2663
2662
 
2664
2663
  /** Data element ID "ISC". An indicator that specifies whether or not the vehicle has a current smog certificate. */
2665
2664
  get inspectionSmogCertificateIndicator() {
2666
- return this.document.fields.find(f => f.type.name == 'InspectionSmogCertificateIndicator');
2665
+ return this.document.fields.find(f => f.type.name === 'InspectionSmogCertificateIndicator');
2667
2666
  }
2668
2667
 
2669
2668
  /** Data element ID "ISN". Station number performing the inspection. */
2670
2669
  get inspectionStationNumber() {
2671
- return this.document.fields.find(f => f.type.name == 'InspectionStationNumber');
2670
+ return this.document.fields.find(f => f.type.name === 'InspectionStationNumber');
2672
2671
  }
2673
2672
 
2674
2673
  /** Data element ID "IIN". A unique number assigned to each licensed vehicle inspector. */
2675
2674
  get inspectorIdentificationNumber() {
2676
- return this.document.fields.find(f => f.type.name == 'InspectorIdentificationNumber');
2675
+ return this.document.fields.find(f => f.type.name === 'InspectorIdentificationNumber');
2677
2676
  }
2678
2677
 
2679
2678
  /** Data element ID "ORI". The vehicle's odometer reading (to the nearest mile or kilometer) at the time of inspection. */
2680
2679
  get odometerReadingAtInspection() {
2681
- return this.document.fields.find(f => f.type.name == 'OdometerReadingAtInspection');
2680
+ return this.document.fields.find(f => f.type.name === 'OdometerReadingAtInspection');
2682
2681
  }
2683
2682
 
2684
2683
  /** Data element ID "VAO". The general configuration or shape of a vehicle distinguished by characteristics such as number of doors, seats, windows, roofline, and type of top. The vehicle body type is 2- character alphanumeric. */
2685
2684
  get vehicleBodyType() {
2686
- return this.document.fields.find(f => f.type.name == 'VehicleBodyType');
2685
+ return this.document.fields.find(f => f.type.name === 'VehicleBodyType');
2687
2686
  }
2688
2687
 
2689
2688
  /** Data element ID "VAK". The distinctive (coded) name applied to a group of vehicles by a manufacturer. */
2690
2689
  get vehicleMake() {
2691
- return this.document.fields.find(f => f.type.name == 'VehicleMake');
2690
+ return this.document.fields.find(f => f.type.name === 'VehicleMake');
2692
2691
  }
2693
2692
 
2694
2693
  /** Data element ID "VAL". The year which is assigned to a vehicle by the manufacturer. The format is CCYY. */
2695
2694
  get vehicleModelYear() {
2696
- return this.document.fields.find(f => f.type.name == 'VehicleModelYear');
2695
+ return this.document.fields.find(f => f.type.name === 'VehicleModelYear');
2697
2696
  }
2698
2697
  }
2699
2698
  _AAMVA.VehicleSafetyInspectionData = VehicleSafetyInspectionData;
@@ -2702,424 +2701,424 @@ exports.AAMVA = AAMVA;
2702
2701
  return this._document;
2703
2702
  }
2704
2703
  constructor(document) {
2705
- if (document.type.name != this.requiredDocumentType()) {
2704
+ if (document.type.name !== this.requiredDocumentType()) {
2706
2705
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
2707
2706
  }
2708
2707
  this._document = document;
2709
2708
  }
2710
2709
  /** Data element ID "DAI". City portion of the cardholder address. */
2711
2710
  get addressCity() {
2712
- return this.document.fields.find(f => f.type.name == 'AddressCity');
2711
+ return this.document.fields.find(f => f.type.name === 'AddressCity');
2713
2712
  }
2714
2713
 
2715
2714
  /** Data element ID "DAJ". State portion of the cardholder address. */
2716
2715
  get addressJurisdictionCode() {
2717
- return this.document.fields.find(f => f.type.name == 'AddressJurisdictionCode');
2716
+ return this.document.fields.find(f => f.type.name === 'AddressJurisdictionCode');
2718
2717
  }
2719
2718
 
2720
2719
  /** Data element ID "DAK". Postal code portion of the cardholder address in the U.S. and Canada. If the trailing portion of the postal code in the U.S. is not known, zeros will be used to fill the trailing set of numbers up to nine (9) digits. */
2721
2720
  get addressPostalCode() {
2722
- return this.document.fields.find(f => f.type.name == 'AddressPostalCode');
2721
+ return this.document.fields.find(f => f.type.name === 'AddressPostalCode');
2723
2722
  }
2724
2723
 
2725
2724
  /** Data element ID "DAG". Street portion of the cardholder address. */
2726
2725
  get addressStreet1() {
2727
- return this.document.fields.find(f => f.type.name == 'AddressStreet1');
2726
+ return this.document.fields.find(f => f.type.name === 'AddressStreet1');
2728
2727
  }
2729
2728
 
2730
2729
  /** Data element ID "DAH". Second line of street portion of the cardholder address. */
2731
2730
  get addressStreet2() {
2732
- return this.document.fields.find(f => f.type.name == 'AddressStreet2');
2731
+ return this.document.fields.find(f => f.type.name === 'AddressStreet2');
2733
2732
  }
2734
2733
 
2735
2734
  /** Data element ID "DCJ". A string of letters and/or numbers that identifies when, where, and by whom a driver license/ID card was made. If audit information is not used on the card or the MRT, it must be included in the driver record. */
2736
2735
  get adultInformation() {
2737
- return this.document.fields.find(f => f.type.name == 'AdultInformation');
2736
+ return this.document.fields.find(f => f.type.name === 'AdultInformation');
2738
2737
  }
2739
2738
 
2740
2739
  /** Data element ID "DBN". Other family name by which cardholder is known. */
2741
2740
  get aliasFamilyName() {
2742
- return this.document.fields.find(f => f.type.name == 'AliasFamilyName');
2741
+ return this.document.fields.find(f => f.type.name === 'AliasFamilyName');
2743
2742
  }
2744
2743
 
2745
2744
  /** Data element ID "DBG". Other given name by which cardholder is known. */
2746
2745
  get aliasGivenName() {
2747
- return this.document.fields.find(f => f.type.name == 'AliasGivenName');
2746
+ return this.document.fields.find(f => f.type.name === 'AliasGivenName');
2748
2747
  }
2749
2748
 
2750
2749
  /** Data element ID "DBQ". Other middle name by which cardholder is known. */
2751
2750
  get aliasMiddleName() {
2752
- return this.document.fields.find(f => f.type.name == 'AliasMiddleName');
2751
+ return this.document.fields.find(f => f.type.name === 'AliasMiddleName');
2753
2752
  }
2754
2753
 
2755
2754
  /** Data element ID "DBR". Other prefix by which cardholder is known. */
2756
2755
  get aliasPrefixName() {
2757
- return this.document.fields.find(f => f.type.name == 'AliasPrefixName');
2756
+ return this.document.fields.find(f => f.type.name === 'AliasPrefixName');
2758
2757
  }
2759
2758
 
2760
2759
  /** Data element ID "DBS". Other suffix by which cardholder is known. */
2761
2760
  get aliasSuffixName() {
2762
- return this.document.fields.find(f => f.type.name == 'AliasSuffixName');
2761
+ return this.document.fields.find(f => f.type.name === 'AliasSuffixName');
2763
2762
  }
2764
2763
 
2765
2764
  /** Data element ID "DDB". DHS required field that indicates date of the most recent version change or modification to the visible format of the DL/ID. The format is ISO8601 with delimiters. */
2766
2765
  get cardRevisionDate() {
2767
- return this.document.fields.find(f => f.type.name == 'CardRevisionDate');
2766
+ return this.document.fields.find(f => f.type.name === 'CardRevisionDate');
2768
2767
  }
2769
2768
 
2770
2769
  /** Data element ID "DDA". DHS required field that indicates compliance: "F" = compliant; and, "N" = non-compliant. */
2771
2770
  get complianceType() {
2772
- return this.document.fields.find(f => f.type.name == 'ComplianceType');
2771
+ return this.document.fields.find(f => f.type.name === 'ComplianceType');
2773
2772
  }
2774
2773
 
2775
2774
  /** Data element ID "DCG". Country in which DL/ID is issued. U.S. = USA, Canada = CAN. */
2776
2775
  get countryIdentification() {
2777
- return this.document.fields.find(f => f.type.name == 'CountryIdentification');
2776
+ return this.document.fields.find(f => f.type.name === 'CountryIdentification');
2778
2777
  }
2779
2778
 
2780
2779
  /** Data element ID "DCS". Family name of the cardholder. (Family name is sometimes also called “last name” or “surname.”) Collect full name for record, print as many characters as possible on portrait side of DL/ID. */
2781
2780
  get customerFamilyName() {
2782
- return this.document.fields.find(f => f.type.name == 'CustomerFamilyName');
2781
+ return this.document.fields.find(f => f.type.name === 'CustomerFamilyName');
2783
2782
  }
2784
2783
 
2785
2784
  /** Data element ID "DAC". First name of the cardholder. */
2786
2785
  get customerFirstName() {
2787
- return this.document.fields.find(f => f.type.name == 'CustomerFirstName');
2786
+ return this.document.fields.find(f => f.type.name === 'CustomerFirstName');
2788
2787
  }
2789
2788
 
2790
2789
  /** Data element ID "DCT". Given names of the cardholder. (Given names include all names other than the Family Name. This includes all those names sometimes also called “first” and “middle” names.) */
2791
2790
  get customerGivenNames() {
2792
- return this.document.fields.find(f => f.type.name == 'CustomerGivenNames');
2791
+ return this.document.fields.find(f => f.type.name === 'CustomerGivenNames');
2793
2792
  }
2794
2793
 
2795
2794
  /** Data element ID "DAQ". The number assigned or calculated by the issuing authority. */
2796
2795
  get customerIdNumber() {
2797
- return this.document.fields.find(f => f.type.name == 'CustomerIdNumber');
2796
+ return this.document.fields.find(f => f.type.name === 'CustomerIdNumber');
2798
2797
  }
2799
2798
 
2800
2799
  /** Data element ID "DAD". Middle name(s) of the cardholder. In the case of multiple middle names they shall be separated by a comma “,”. */
2801
2800
  get customerMiddleName() {
2802
- return this.document.fields.find(f => f.type.name == 'CustomerMiddleName');
2801
+ return this.document.fields.find(f => f.type.name === 'CustomerMiddleName');
2803
2802
  }
2804
2803
 
2805
2804
  /** Data element ID "DBB". Date on which the cardholder was born. The format is ISO8601 with delimiters. */
2806
2805
  get dateOfBirth() {
2807
- return this.document.fields.find(f => f.type.name == 'DateOfBirth');
2806
+ return this.document.fields.find(f => f.type.name === 'DateOfBirth');
2808
2807
  }
2809
2808
 
2810
2809
  /** Data element ID "DCF". Number must uniquely identify a particular document issued to that customer from others that may have been issued in the past. This number may serve multiple purposes of document discrimination, audit information number, and/or inventory control. */
2811
2810
  get documentDiscriminator() {
2812
- return this.document.fields.find(f => f.type.name == 'DocumentDiscriminator');
2811
+ return this.document.fields.find(f => f.type.name === 'DocumentDiscriminator');
2813
2812
  }
2814
2813
 
2815
2814
  /** Data element ID "DBA". Date on which the driving and identification privileges granted by the document are no longer valid. The format is ISO8601 with delimtiers. */
2816
2815
  get documentExpirationDate() {
2817
- return this.document.fields.find(f => f.type.name == 'DocumentExpirationDate');
2816
+ return this.document.fields.find(f => f.type.name === 'DocumentExpirationDate');
2818
2817
  }
2819
2818
 
2820
2819
  /** Data element ID "DBD". Date on which the document was issued. The format is ISO8601 with delimiters. */
2821
2820
  get documentIssueDate() {
2822
- return this.document.fields.find(f => f.type.name == 'DocumentIssueDate');
2821
+ return this.document.fields.find(f => f.type.name === 'DocumentIssueDate');
2823
2822
  }
2824
2823
 
2825
2824
  /** Data element ID "DBL". Alternative dates given as date of birth. */
2826
2825
  get driverAliasDateOfBirthField() {
2827
- return this.document.fields.find(f => f.type.name == 'DriverAliasDateOfBirthField');
2826
+ return this.document.fields.find(f => f.type.name === 'DriverAliasDateOfBirthField');
2828
2827
  }
2829
2828
 
2830
2829
  /** Data element ID "DBP". Alternative fist name or given name of the individual holding the Driver License or ID. Hyphenated names acceptable, but no other use of special symbols. */
2831
2830
  get driverAliasFirstName() {
2832
- return this.document.fields.find(f => f.type.name == 'DriverAliasFirstName');
2831
+ return this.document.fields.find(f => f.type.name === 'DriverAliasFirstName');
2833
2832
  }
2834
2833
 
2835
2834
  /** Data element ID "DBO". Alternative last name or surname of the individual holding the Driver License or ID. Hyphenated names acceptable, but no other use of special symbols. */
2836
2835
  get driverAliasLastName() {
2837
- return this.document.fields.find(f => f.type.name == 'DriverAliasLastName');
2836
+ return this.document.fields.find(f => f.type.name === 'DriverAliasLastName');
2838
2837
  }
2839
2838
 
2840
2839
  /** Data element ID "DBM". DriverAliasSocialSecurityNumber */
2841
2840
  get driverAliasSocialSecurityNumber() {
2842
- return this.document.fields.find(f => f.type.name == 'DriverAliasSocialSecurityNumber');
2841
+ return this.document.fields.find(f => f.type.name === 'DriverAliasSocialSecurityNumber');
2843
2842
  }
2844
2843
 
2845
2844
  /** Data element ID "DAB". Last name or surname of the individual holding the Driver License or ID. Hyphenated names acceptable, but no other use of special symbols. */
2846
2845
  get driverLastName() {
2847
- return this.document.fields.find(f => f.type.name == 'DriverLastName');
2846
+ return this.document.fields.find(f => f.type.name === 'DriverLastName');
2848
2847
  }
2849
2848
 
2850
2849
  /** Data element ID "DAR". A=Class A; B=Class B; C=Class C (Class A, B and C are defined by Federal Highway regulations); M=Class M motorcycle as defined by AAMVA; others are defined by DL Classification Code Standards. */
2851
2850
  get driverLicenseClassificationCode() {
2852
- return this.document.fields.find(f => f.type.name == 'DriverLicenseClassificationCode');
2851
+ return this.document.fields.find(f => f.type.name === 'DriverLicenseClassificationCode');
2853
2852
  }
2854
2853
 
2855
2854
  /** Data element ID "DAT". Any endorsements on a driver license which authorize the operation of specified types of vehicles or the operation of vehicles carrying specified loads. Endorsements shall be specific to classification of a driver license. */
2856
2855
  get driverLicenseEndorsementsCode() {
2857
- return this.document.fields.find(f => f.type.name == 'DriverLicenseEndorsementsCode');
2856
+ return this.document.fields.find(f => f.type.name === 'DriverLicenseEndorsementsCode');
2858
2857
  }
2859
2858
 
2860
2859
  /** Data element ID "DAA". Name of the individual holding the Driver License or ID as defined in ANSI D20 Data Dictionary. (Lastname@Firstname@MI@ suffix if any) (Machine, Mag Stripe uses ‘$' and Bar Code uses ‘,' in place of ‘@') Firstname, Middle Initial, Lastname (Human) */
2861
2860
  get driverLicenseName() {
2862
- return this.document.fields.find(f => f.type.name == 'DriverLicenseName');
2861
+ return this.document.fields.find(f => f.type.name === 'DriverLicenseName');
2863
2862
  }
2864
2863
 
2865
2864
  /** Data element ID "DAS". A restriction applicable to a driver license. */
2866
2865
  get driverLicenseRestrictionCode() {
2867
- return this.document.fields.find(f => f.type.name == 'DriverLicenseRestrictionCode');
2866
+ return this.document.fields.find(f => f.type.name === 'DriverLicenseRestrictionCode');
2868
2867
  }
2869
2868
 
2870
2869
  /** Data element ID "DAF". Prefix to Driver Name. Not defined in ANSI D20. Freeform as defined by issuing jurisdiction. */
2871
2870
  get driverNamePrefix() {
2872
- return this.document.fields.find(f => f.type.name == 'DriverNamePrefix');
2871
+ return this.document.fields.find(f => f.type.name === 'DriverNamePrefix');
2873
2872
  }
2874
2873
 
2875
2874
  /** Data element ID "DAE". An affix occurring at the end of a word, e.g.; Sr., Jr., II, III, IV, etc. */
2876
2875
  get driverNameSuffix() {
2877
- return this.document.fields.find(f => f.type.name == 'DriverNameSuffix');
2876
+ return this.document.fields.find(f => f.type.name === 'DriverNameSuffix');
2878
2877
  }
2879
2878
 
2880
2879
  /** Data element ID "PAA". Identifies the type of permit as defined by ANSI D20. */
2881
2880
  get driverPermitClassificationCode() {
2882
- return this.document.fields.find(f => f.type.name == 'DriverPermitClassificationCode');
2881
+ return this.document.fields.find(f => f.type.name === 'DriverPermitClassificationCode');
2883
2882
  }
2884
2883
 
2885
2884
  /** Data element ID "PAF". Permit endorsements as defined by ANSI D20. */
2886
2885
  get driverPermitEndorsementCode() {
2887
- return this.document.fields.find(f => f.type.name == 'DriverPermitEndorsementCode');
2886
+ return this.document.fields.find(f => f.type.name === 'DriverPermitEndorsementCode');
2888
2887
  }
2889
2888
 
2890
2889
  /** Data element ID "PAD". Date permit was issued. The format is ISO8601 with delimiters. */
2891
2890
  get driverPermitIssueDate() {
2892
- return this.document.fields.find(f => f.type.name == 'DriverPermitIssueDate');
2891
+ return this.document.fields.find(f => f.type.name === 'DriverPermitIssueDate');
2893
2892
  }
2894
2893
 
2895
2894
  /** Data element ID "PAE". Permit restrictions as defined by ANSI D20. */
2896
2895
  get driverPermitRestrictionCode() {
2897
- return this.document.fields.find(f => f.type.name == 'DriverPermitRestrictionCode');
2896
+ return this.document.fields.find(f => f.type.name === 'DriverPermitRestrictionCode');
2898
2897
  }
2899
2898
 
2900
2899
  /** Data element ID "DAN". Name of city for mailing address. */
2901
2900
  get driverResidenceCity() {
2902
- return this.document.fields.find(f => f.type.name == 'DriverResidenceCity');
2901
+ return this.document.fields.find(f => f.type.name === 'DriverResidenceCity');
2903
2902
  }
2904
2903
 
2905
2904
  /** Data element ID "DAO". Jurisdiction code for mailing address. Conforms to Canadian, Mexican and US Jurisdictions as appropriate. Codes for provinces (Canada) and states (US and Mexico). */
2906
2905
  get driverResidenceJurisdictionCode() {
2907
- return this.document.fields.find(f => f.type.name == 'DriverResidenceJurisdictionCode');
2906
+ return this.document.fields.find(f => f.type.name === 'DriverResidenceJurisdictionCode');
2908
2907
  }
2909
2908
 
2910
2909
  /** Data element ID "DAP". Postal code of residence */
2911
2910
  get driverResidencePostalCode() {
2912
- return this.document.fields.find(f => f.type.name == 'DriverResidencePostalCode');
2911
+ return this.document.fields.find(f => f.type.name === 'DriverResidencePostalCode');
2913
2912
  }
2914
2913
 
2915
2914
  /** Data element ID "DAL". Street address line 1 (mailing). */
2916
2915
  get driverResidenceStreetAddress1() {
2917
- return this.document.fields.find(f => f.type.name == 'DriverResidenceStreetAddress1');
2916
+ return this.document.fields.find(f => f.type.name === 'DriverResidenceStreetAddress1');
2918
2917
  }
2919
2918
 
2920
2919
  /** Data element ID "DAM". Street address line 2 (mailing). */
2921
2920
  get driverResidenceStreetAddress2() {
2922
- return this.document.fields.find(f => f.type.name == 'DriverResidenceStreetAddress2');
2921
+ return this.document.fields.find(f => f.type.name === 'DriverResidenceStreetAddress2');
2923
2922
  }
2924
2923
 
2925
2924
  /** Data element ID "DDE". A code that indicates whether a field has been truncated (T), has not been truncated (N), or – unknown whether truncated (U). */
2926
2925
  get familyNameTruncation() {
2927
- return this.document.fields.find(f => f.type.name == 'FamilyNameTruncation');
2926
+ return this.document.fields.find(f => f.type.name === 'FamilyNameTruncation');
2928
2927
  }
2929
2928
 
2930
2929
  /** Data element ID "DCH". Federal Commercial Vehicle Codes */
2931
2930
  get federalCommercialVehicleCodes() {
2932
- return this.document.fields.find(f => f.type.name == 'FederalCommercialVehicleCodes');
2931
+ return this.document.fields.find(f => f.type.name === 'FederalCommercialVehicleCodes');
2933
2932
  }
2934
2933
 
2935
2934
  /** Data element ID "DDF". A code that indicates whether a field has been truncated (T), has not been truncated (N), or – unknown whether truncated (U). */
2936
2935
  get firstNameTruncation() {
2937
- return this.document.fields.find(f => f.type.name == 'FirstNameTruncation');
2936
+ return this.document.fields.find(f => f.type.name === 'FirstNameTruncation');
2938
2937
  }
2939
2938
 
2940
2939
  /** Data element ID "DDC". Date on which the hazardous material endorsement granted by the document is no longer valid. The format is ISO8601 with delimiters. */
2941
2940
  get hazmatEndorsementExpirationDate() {
2942
- return this.document.fields.find(f => f.type.name == 'HAZMATEndorsementExpirationDate');
2941
+ return this.document.fields.find(f => f.type.name === 'HAZMATEndorsementExpirationDate');
2943
2942
  }
2944
2943
 
2945
2944
  /** Data element ID "DAZ". Color of cardholder's hair. ANSI D-20 codes converted to human readable format according to the ANSI D20 Data Dictionary. */
2946
2945
  get hairColor() {
2947
- return this.document.fields.find(f => f.type.name == 'HairColor');
2946
+ return this.document.fields.find(f => f.type.name === 'HairColor');
2948
2947
  }
2949
2948
 
2950
2949
  /** Data element ID "DAV". Height in centimeters */
2951
2950
  get height() {
2952
- return this.document.fields.find(f => f.type.name == 'Height');
2951
+ return this.document.fields.find(f => f.type.name === 'Height');
2953
2952
  }
2954
2953
 
2955
2954
  /** Data element ID "DCK". A string of letters and/or numbers that is affixed to the raw materials (card stock, laminate, etc.) used in producing driver licenses and ID cards. (DHS recommended field). */
2956
2955
  get inventoryControlNumber() {
2957
- return this.document.fields.find(f => f.type.name == 'InventoryControlNumber');
2956
+ return this.document.fields.find(f => f.type.name === 'InventoryControlNumber');
2958
2957
  }
2959
2958
 
2960
2959
  /** Data element ID "DBE". A string used by some jurisdictions to validate the document against their data base. */
2961
2960
  get issueTimeStamp() {
2962
- return this.document.fields.find(f => f.type.name == 'IssueTimeStamp');
2961
+ return this.document.fields.find(f => f.type.name === 'IssueTimeStamp');
2963
2962
  }
2964
2963
 
2965
2964
  /** Data element ID "DCQ". Text that explains the jurisdiction-specific code(s) that indicates additional driving privileges granted to the cardholder beyond the vehicle class. */
2966
2965
  get jurisdictionSpecificEndorsementCodeDescription() {
2967
- return this.document.fields.find(f => f.type.name == 'JurisdictionSpecificEndorsementCodeDescription');
2966
+ return this.document.fields.find(f => f.type.name === 'JurisdictionSpecificEndorsementCodeDescription');
2968
2967
  }
2969
2968
 
2970
2969
  /** Data element ID "DCD". Jurisdiction-specific codes that represent additional privileges granted to the cardholder beyond the vehicle class (such as transportation of passengers, hazardous materials, operation of motorcycles, etc.). */
2971
2970
  get jurisdictionSpecificEndorsementCodes() {
2972
- return this.document.fields.find(f => f.type.name == 'JurisdictionSpecificEndorsementCodes');
2971
+ return this.document.fields.find(f => f.type.name === 'JurisdictionSpecificEndorsementCodes');
2973
2972
  }
2974
2973
 
2975
2974
  /** Data element ID "DCR". Text describing the jurisdiction-specific restriction code(s) that curtail driving privileges. */
2976
2975
  get jurisdictionSpecificRestrictionCodeDescription() {
2977
- return this.document.fields.find(f => f.type.name == 'JurisdictionSpecificRestrictionCodeDescription');
2976
+ return this.document.fields.find(f => f.type.name === 'JurisdictionSpecificRestrictionCodeDescription');
2978
2977
  }
2979
2978
 
2980
2979
  /** Data element ID "DCB". Jurisdiction-specific codes that represent restrictions to driving privileges (such as airbrakes, automatic transmission, daylight only, etc.). */
2981
2980
  get jurisdictionSpecificRestrictionCodes() {
2982
- return this.document.fields.find(f => f.type.name == 'JurisdictionSpecificRestrictionCodes');
2981
+ return this.document.fields.find(f => f.type.name === 'JurisdictionSpecificRestrictionCodes');
2983
2982
  }
2984
2983
 
2985
2984
  /** Data element ID "DCA". Jurisdiction-specific vehicle class / group code, designating the type of vehicle the cardholder has privilege to drive. */
2986
2985
  get jurisdictionSpecificVehicleClass() {
2987
- return this.document.fields.find(f => f.type.name == 'JurisdictionSpecificVehicleClass');
2986
+ return this.document.fields.find(f => f.type.name === 'JurisdictionSpecificVehicleClass');
2988
2987
  }
2989
2988
 
2990
2989
  /** Data element ID "DCP". Text that explains the jurisdiction-specific code(s) for classifications of vehicles cardholder is authorized to drive. */
2991
2990
  get jurisdictionSpecificVehicleClassificationDescription() {
2992
- return this.document.fields.find(f => f.type.name == 'JurisdictionSpecificVehicleClassificationDescription');
2991
+ return this.document.fields.find(f => f.type.name === 'JurisdictionSpecificVehicleClassificationDescription');
2993
2992
  }
2994
2993
 
2995
2994
  /** Data element ID "DDD". DHS required field that indicates that the cardholder has temporary lawful status = "1". */
2996
2995
  get limitedDurationDocumentIndicator() {
2997
- return this.document.fields.find(f => f.type.name == 'LimitedDurationDocumentIndicator');
2996
+ return this.document.fields.find(f => f.type.name === 'LimitedDurationDocumentIndicator');
2998
2997
  }
2999
2998
 
3000
2999
  /** Data element ID "DDG". A code that indicates whether a field has been truncated (T), has not been truncated (N), or – unknown whether truncated (U). */
3001
3000
  get middleNameTruncation() {
3002
- return this.document.fields.find(f => f.type.name == 'MiddleNameTruncation');
3001
+ return this.document.fields.find(f => f.type.name === 'MiddleNameTruncation');
3003
3002
  }
3004
3003
 
3005
3004
  /** Data element ID "DCU". Name Suffix (If jurisdiction participates in systems requiring name suffix (PDPS, CDLIS, etc.), the suffix must be collected and displayed on the DL/ID and in the MRT). Collect full name for record, print as many characters as possible on portrait side of DL/ID. JR (Junior), SR (Senior), 1ST or I (First), 2ND or II (Second), 3RD or III (Third), 4TH or IV (Fourth), 5TH or V (Fifth), 6TH or VI (Sixth), 7TH or VII (Seventh), 8TH or VIII (Eighth), 9TH or IX (Ninth). */
3006
3005
  get nameSuffix() {
3007
- return this.document.fields.find(f => f.type.name == 'NameSuffix');
3006
+ return this.document.fields.find(f => f.type.name === 'NameSuffix');
3008
3007
  }
3009
3008
 
3010
3009
  /** Data element ID "DBI". "Y"; Used by some jurisdictions to indicate holder of the document is a non-resident. */
3011
3010
  get nonResidentIndicator() {
3012
- return this.document.fields.find(f => f.type.name == 'NonResidentIndicator');
3011
+ return this.document.fields.find(f => f.type.name === 'NonResidentIndicator');
3013
3012
  }
3014
3013
 
3015
3014
  /** Data element ID "DBF". Number of duplicate cards issued for a license or ID if any. */
3016
3015
  get numberOfDuplicates() {
3017
- return this.document.fields.find(f => f.type.name == 'NumberOfDuplicates');
3016
+ return this.document.fields.find(f => f.type.name === 'NumberOfDuplicates');
3018
3017
  }
3019
3018
 
3020
3019
  /** Data element ID "DBH". Organ Donor */
3021
3020
  get organDonor() {
3022
- return this.document.fields.find(f => f.type.name == 'OrganDonor');
3021
+ return this.document.fields.find(f => f.type.name === 'OrganDonor');
3023
3022
  }
3024
3023
 
3025
3024
  /** Data element ID "DDK". Field that indicates that the cardholder is an organ donor = "1". */
3026
3025
  get organDonorIndicator() {
3027
- return this.document.fields.find(f => f.type.name == 'OrganDonorIndicator');
3026
+ return this.document.fields.find(f => f.type.name === 'OrganDonorIndicator');
3028
3027
  }
3029
3028
 
3030
3029
  /** Data element ID "PAB". Date permit expires, The format is ISO8601 with delimiters. */
3031
3030
  get permitExpirationDate() {
3032
- return this.document.fields.find(f => f.type.name == 'PermitExpirationDate');
3031
+ return this.document.fields.find(f => f.type.name === 'PermitExpirationDate');
3033
3032
  }
3034
3033
 
3035
3034
  /** Data element ID "PAC". Type of permit. */
3036
3035
  get permitIdentifier() {
3037
- return this.document.fields.find(f => f.type.name == 'PermitIdentifier');
3036
+ return this.document.fields.find(f => f.type.name === 'PermitIdentifier');
3038
3037
  }
3039
3038
 
3040
3039
  /** Data element ID "DAY". Color of cardholder's eyes. ANSI D-20 codes converted to human readable format according to the ANSI D20 Data Dictionary. */
3041
3040
  get physicalDescriptionEyeColor() {
3042
- return this.document.fields.find(f => f.type.name == 'PhysicalDescriptionEyeColor');
3041
+ return this.document.fields.find(f => f.type.name === 'PhysicalDescriptionEyeColor');
3043
3042
  }
3044
3043
 
3045
3044
  /** Data element ID "DAU". Height of cardholder. Inches (in): number of inches followed by " in" or Centimeters (cm): number of centimeters followed by " cm." */
3046
3045
  get physicalDescriptionHeight() {
3047
- return this.document.fields.find(f => f.type.name == 'PhysicalDescriptionHeight');
3046
+ return this.document.fields.find(f => f.type.name === 'PhysicalDescriptionHeight');
3048
3047
  }
3049
3048
 
3050
3049
  /** Data element ID "DBC". Gender of the cardholder. "Male" or "Female". */
3051
3050
  get physicalDescriptionSex() {
3052
- return this.document.fields.find(f => f.type.name == 'PhysicalDescriptionSex');
3051
+ return this.document.fields.find(f => f.type.name === 'PhysicalDescriptionSex');
3053
3052
  }
3054
3053
 
3055
3054
  /** Data element ID "DCE". Indicates the approximate weight range of the cardholder: 0 = up to 31 kg (up to 70 lbs), 1 = 32 – 45 kg (71 – 100 lbs), 2 = 46 - 59 kg (101 – 130 lbs), 3 = 60 - 70 kg (131 – 160 lbs), 4 = 71 - 86 kg (161 – 190 lbs), 5 = 87 - 100 kg (191 – 220 lbs), 6 = 101 - 113 kg (221 – 250 lbs), 7 = 114 - 127 kg (251 – 280 lbs), 8 = 128 – 145 kg (281 – 320 lbs), 9 = 146+ kg (321+ lbs). */
3056
3055
  get physicalDescriptionWeightRange() {
3057
- return this.document.fields.find(f => f.type.name == 'PhysicalDescriptionWeightRange');
3056
+ return this.document.fields.find(f => f.type.name === 'PhysicalDescriptionWeightRange');
3058
3057
  }
3059
3058
 
3060
3059
  /** Data element ID "DCI". Country and municipality and/or state/province. */
3061
3060
  get placeOfBirth() {
3062
- return this.document.fields.find(f => f.type.name == 'PlaceOfBirth');
3061
+ return this.document.fields.find(f => f.type.name === 'PlaceOfBirth');
3063
3062
  }
3064
3063
 
3065
3064
  /** Data element ID "DCL". Codes for race or ethnicity of the cardholder. ANSI D-20 codes converted to human readable format according to the ANSI D20 Data Dictionary. */
3066
3065
  get raceEthnicity() {
3067
- return this.document.fields.find(f => f.type.name == 'RaceEthnicity');
3066
+ return this.document.fields.find(f => f.type.name === 'RaceEthnicity');
3068
3067
  }
3069
3068
 
3070
3069
  /** Data element ID "DBK". The number assigned to an individual by the Social Security Administration. */
3071
3070
  get socialSecurityNumber() {
3072
- return this.document.fields.find(f => f.type.name == 'SocialSecurityNumber');
3071
+ return this.document.fields.find(f => f.type.name === 'SocialSecurityNumber');
3073
3072
  }
3074
3073
 
3075
3074
  /** Data element ID "DCN". Standard endorsement code(s) for cardholder. See codes in D20. This data element is a placeholder for future efforts to standardize endorsement codes. */
3076
3075
  get standardEndorsementCode() {
3077
- return this.document.fields.find(f => f.type.name == 'StandardEndorsementCode');
3076
+ return this.document.fields.find(f => f.type.name === 'StandardEndorsementCode');
3078
3077
  }
3079
3078
 
3080
3079
  /** Data element ID "DCO". Standard restriction code(s) for cardholder. See codes in D20. This data element is a placeholder for future efforts to standardize restriction codes. */
3081
3080
  get standardRestrictionCode() {
3082
- return this.document.fields.find(f => f.type.name == 'StandardRestrictionCode');
3081
+ return this.document.fields.find(f => f.type.name === 'StandardRestrictionCode');
3083
3082
  }
3084
3083
 
3085
3084
  /** Data element ID "DCM". Standard vehicle classification code(s) for cardholder. This data element is a placeholder for future efforts to standardize vehicle classifications. */
3086
3085
  get standardVehicleClassification() {
3087
- return this.document.fields.find(f => f.type.name == 'StandardVehicleClassification');
3086
+ return this.document.fields.find(f => f.type.name === 'StandardVehicleClassification');
3088
3087
  }
3089
3088
 
3090
3089
  /** Data element ID "DDH". Date on which the cardholder turns 18 years old. The format is ISO8601 with delimiters. */
3091
3090
  get under18Until() {
3092
- return this.document.fields.find(f => f.type.name == 'Under18Until');
3091
+ return this.document.fields.find(f => f.type.name === 'Under18Until');
3093
3092
  }
3094
3093
 
3095
3094
  /** Data element ID "DDI". Date on which the cardholder turns 19 years old. The format is ISO8601 with delimiters. */
3096
3095
  get under19Until() {
3097
- return this.document.fields.find(f => f.type.name == 'Under19Until');
3096
+ return this.document.fields.find(f => f.type.name === 'Under19Until');
3098
3097
  }
3099
3098
 
3100
3099
  /** Data element ID "DDJ". Date on which the cardholder turns 21 years old. The format is ISO8601 with delimiters. */
3101
3100
  get under21Until() {
3102
- return this.document.fields.find(f => f.type.name == 'Under21Until');
3101
+ return this.document.fields.find(f => f.type.name === 'Under21Until');
3103
3102
  }
3104
3103
 
3105
3104
  /** Data element ID "DBJ". A number or alphanumeric string used by some jurisdictions to identify a "customer" across multiple data bases. */
3106
3105
  get uniqueCustomerIdentifier() {
3107
- return this.document.fields.find(f => f.type.name == 'UniqueCustomerIdentifier');
3106
+ return this.document.fields.find(f => f.type.name === 'UniqueCustomerIdentifier');
3108
3107
  }
3109
3108
 
3110
3109
  /** Data element ID "DDL". Field that indicates that the cardholder is a veteran = "1". */
3111
3110
  get veteranIndicator() {
3112
- return this.document.fields.find(f => f.type.name == 'VeteranIndicator');
3111
+ return this.document.fields.find(f => f.type.name === 'VeteranIndicator');
3113
3112
  }
3114
3113
 
3115
3114
  /** Data element ID "DAX". Cardholder weight in kilograms Ex. 84 kg = "084" */
3116
3115
  get weightKilograms() {
3117
- return this.document.fields.find(f => f.type.name == 'WeightKilograms');
3116
+ return this.document.fields.find(f => f.type.name === 'WeightKilograms');
3118
3117
  }
3119
3118
 
3120
3119
  /** Data element ID "DAW". Cardholder weight in pounds Ex. 185 lb = "185" */
3121
3120
  get weightPounds() {
3122
- return this.document.fields.find(f => f.type.name == 'WeightPounds');
3121
+ return this.document.fields.find(f => f.type.name === 'WeightPounds');
3123
3122
  }
3124
3123
  }
3125
3124
  _AAMVA.DLID = DLID;
@@ -3128,7 +3127,7 @@ exports.AAMVA = AAMVA;
3128
3127
  super(document);
3129
3128
  }
3130
3129
  requiredDocumentType() {
3131
- return AAMVADriverLicenseDocumentTypeName;
3130
+ return AAMVADriverLicenseDocumentType;
3132
3131
  }
3133
3132
  }
3134
3133
  _AAMVA.DriverLicense = DriverLicense;
@@ -3137,7 +3136,7 @@ exports.AAMVA = AAMVA;
3137
3136
  super(document);
3138
3137
  }
3139
3138
  requiredDocumentType() {
3140
- return AAMVAIDCardDocumentTypeName;
3139
+ return AAMVAIDCardDocumentType;
3141
3140
  }
3142
3141
  }
3143
3142
  _AAMVA.IDCard = IDCard;
@@ -3146,7 +3145,7 @@ exports.AAMVA = AAMVA;
3146
3145
  super(document);
3147
3146
  }
3148
3147
  requiredDocumentType() {
3149
- return AAMVAEnhancedDriverLicenseDocumentTypeName;
3148
+ return AAMVAEnhancedDriverLicenseDocumentType;
3150
3149
  }
3151
3150
  }
3152
3151
  _AAMVA.EnhancedDriverLicense = EnhancedDriverLicense;
@@ -3155,13 +3154,13 @@ exports.AAMVA = AAMVA;
3155
3154
  return this._document;
3156
3155
  }
3157
3156
  constructor(document) {
3158
- if (document.type.name != this.requiredDocumentType()) {
3157
+ if (document.type.name !== this.requiredDocumentType()) {
3159
3158
  throw new Error(`Expected document type ${this.requiredDocumentType()}, got ${document.type.name}`);
3160
3159
  }
3161
3160
  this._document = document;
3162
3161
  }
3163
3162
  requiredDocumentType() {
3164
- return AAMVARawDocumentDocumentTypeName;
3163
+ return AAMVARawDocumentDocumentType;
3165
3164
  }
3166
3165
  }
3167
3166
  _AAMVA.RawDocument = RawDocument;