smartystreets-javascript-sdk 6.3.2 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/dist/cjs/AgentSender.cjs +1 -1
  2. package/dist/cjs/BaseUrlSender.cjs +1 -1
  3. package/dist/cjs/Batch.cjs +1 -1
  4. package/dist/cjs/ClientBuilder.cjs +1 -1
  5. package/dist/cjs/CustomHeaderSender.cjs +1 -1
  6. package/dist/cjs/Errors.cjs +1 -1
  7. package/dist/cjs/HttpSender.cjs +1 -1
  8. package/dist/cjs/InputData.cjs +1 -1
  9. package/dist/cjs/LicenseSender.cjs +1 -1
  10. package/dist/cjs/Request.cjs +1 -1
  11. package/dist/cjs/Response.cjs +1 -1
  12. package/dist/cjs/RetrySender.cjs +1 -1
  13. package/dist/cjs/SharedCredentials.cjs +1 -1
  14. package/dist/cjs/SigningSender.cjs +1 -1
  15. package/dist/cjs/StaticCredentials.cjs +1 -1
  16. package/dist/cjs/StatusCodeSender.cjs +1 -1
  17. package/dist/cjs/_virtual/Batch.cjs +1 -0
  18. package/dist/cjs/_virtual/Candidate.cjs +1 -0
  19. package/dist/cjs/_virtual/Candidate2.cjs +1 -0
  20. package/dist/cjs/_virtual/ClientBuilder.cjs +1 -0
  21. package/dist/cjs/_virtual/Errors.cjs +1 -0
  22. package/dist/cjs/_virtual/Lookup.cjs +1 -0
  23. package/dist/cjs/_virtual/Lookup2.cjs +1 -0
  24. package/dist/cjs/_virtual/Lookup3.cjs +1 -0
  25. package/dist/cjs/_virtual/Lookup4.cjs +1 -0
  26. package/dist/cjs/_virtual/Lookup5.cjs +1 -0
  27. package/dist/cjs/_virtual/Lookup6.cjs +1 -0
  28. package/dist/cjs/_virtual/Lookup7.cjs +1 -0
  29. package/dist/cjs/_virtual/Lookup8.cjs +1 -0
  30. package/dist/cjs/_virtual/Response.cjs +1 -0
  31. package/dist/cjs/_virtual/Result.cjs +1 -0
  32. package/dist/cjs/_virtual/Result2.cjs +1 -0
  33. package/dist/cjs/_virtual/SharedCredentials.cjs +1 -0
  34. package/dist/cjs/_virtual/Sleeper.cjs +1 -0
  35. package/dist/cjs/_virtual/StaticCredentials.cjs +1 -0
  36. package/dist/cjs/_virtual/Suggestion.cjs +1 -0
  37. package/dist/cjs/_virtual/Suggestion2.cjs +1 -0
  38. package/dist/cjs/_virtual/_axios.cjs +1 -1
  39. package/dist/cjs/_virtual/_commonjsHelpers.cjs +1 -1
  40. package/dist/cjs/_virtual/buildClients.cjs +1 -0
  41. package/dist/cjs/index.cjs +1 -1
  42. package/dist/cjs/international_address_autocomplete/Client.cjs +1 -1
  43. package/dist/cjs/international_address_autocomplete/Lookup.cjs +1 -1
  44. package/dist/cjs/international_address_autocomplete/Suggestion.cjs +1 -1
  45. package/dist/cjs/international_street/Candidate.cjs +1 -1
  46. package/dist/cjs/international_street/Client.cjs +1 -1
  47. package/dist/cjs/international_street/Lookup.cjs +1 -1
  48. package/dist/cjs/package.json.cjs +1 -1
  49. package/dist/cjs/us_autocomplete_pro/Client.cjs +1 -1
  50. package/dist/cjs/us_autocomplete_pro/Lookup.cjs +1 -1
  51. package/dist/cjs/us_autocomplete_pro/Suggestion.cjs +1 -1
  52. package/dist/cjs/us_enrichment/Client.cjs +1 -1
  53. package/dist/cjs/us_enrichment/Lookup.cjs +1 -1
  54. package/dist/cjs/us_enrichment/Response.cjs +1 -1
  55. package/dist/cjs/us_extract/Address.cjs +1 -1
  56. package/dist/cjs/us_extract/Client.cjs +1 -1
  57. package/dist/cjs/us_extract/Lookup.cjs +1 -1
  58. package/dist/cjs/us_extract/Result.cjs +1 -1
  59. package/dist/cjs/us_reverse_geo/Client.cjs +1 -1
  60. package/dist/cjs/us_reverse_geo/Lookup.cjs +1 -1
  61. package/dist/cjs/us_reverse_geo/Response.cjs +1 -1
  62. package/dist/cjs/us_reverse_geo/Result.cjs +1 -1
  63. package/dist/cjs/us_street/Candidate.cjs +1 -1
  64. package/dist/cjs/us_street/Client.cjs +1 -1
  65. package/dist/cjs/us_street/Lookup.cjs +1 -1
  66. package/dist/cjs/us_zipcode/Client.cjs +1 -1
  67. package/dist/cjs/us_zipcode/Lookup.cjs +1 -1
  68. package/dist/cjs/us_zipcode/Result.cjs +1 -1
  69. package/dist/cjs/util/Sleeper.cjs +1 -1
  70. package/dist/cjs/util/apiToSDKKeyMap.cjs +1 -1
  71. package/dist/cjs/util/buildClients.cjs +1 -1
  72. package/dist/cjs/util/buildInputData.cjs +1 -1
  73. package/dist/cjs/util/buildSmartyResponse.cjs +1 -1
  74. package/dist/cjs/util/sendBatch.cjs +1 -1
  75. package/dist/esm/AgentSender.mjs +1 -1
  76. package/dist/esm/BaseUrlSender.mjs +1 -1
  77. package/dist/esm/Batch.mjs +1 -1
  78. package/dist/esm/ClientBuilder.mjs +1 -1
  79. package/dist/esm/CustomHeaderSender.mjs +1 -1
  80. package/dist/esm/Errors.mjs +1 -1
  81. package/dist/esm/HttpSender.mjs +1 -1
  82. package/dist/esm/InputData.mjs +1 -1
  83. package/dist/esm/LicenseSender.mjs +1 -1
  84. package/dist/esm/Request.mjs +1 -1
  85. package/dist/esm/Response.mjs +1 -1
  86. package/dist/esm/RetrySender.mjs +1 -1
  87. package/dist/esm/SharedCredentials.mjs +1 -1
  88. package/dist/esm/SigningSender.mjs +1 -1
  89. package/dist/esm/StaticCredentials.mjs +1 -1
  90. package/dist/esm/StatusCodeSender.mjs +1 -1
  91. package/dist/esm/_virtual/Batch.mjs +1 -0
  92. package/dist/esm/_virtual/Candidate.mjs +1 -0
  93. package/dist/esm/_virtual/Candidate2.mjs +1 -0
  94. package/dist/esm/_virtual/ClientBuilder.mjs +1 -0
  95. package/dist/esm/_virtual/Errors.mjs +1 -0
  96. package/dist/esm/_virtual/Lookup.mjs +1 -0
  97. package/dist/esm/_virtual/Lookup2.mjs +1 -0
  98. package/dist/esm/_virtual/Lookup3.mjs +1 -0
  99. package/dist/esm/_virtual/Lookup4.mjs +1 -0
  100. package/dist/esm/_virtual/Lookup5.mjs +1 -0
  101. package/dist/esm/_virtual/Lookup6.mjs +1 -0
  102. package/dist/esm/_virtual/Lookup7.mjs +1 -0
  103. package/dist/esm/_virtual/Lookup8.mjs +1 -0
  104. package/dist/esm/_virtual/Response.mjs +1 -0
  105. package/dist/esm/_virtual/Result.mjs +1 -0
  106. package/dist/esm/_virtual/Result2.mjs +1 -0
  107. package/dist/esm/_virtual/SharedCredentials.mjs +1 -0
  108. package/dist/esm/_virtual/Sleeper.mjs +1 -0
  109. package/dist/esm/_virtual/StaticCredentials.mjs +1 -0
  110. package/dist/esm/_virtual/Suggestion.mjs +1 -0
  111. package/dist/esm/_virtual/Suggestion2.mjs +1 -0
  112. package/dist/esm/_virtual/_commonjsHelpers.mjs +1 -1
  113. package/dist/esm/_virtual/buildClients.mjs +1 -0
  114. package/dist/esm/index.mjs +1 -1
  115. package/dist/esm/international_address_autocomplete/Client.mjs +1 -1
  116. package/dist/esm/international_address_autocomplete/Lookup.mjs +1 -1
  117. package/dist/esm/international_address_autocomplete/Suggestion.mjs +1 -1
  118. package/dist/esm/international_street/Candidate.mjs +1 -1
  119. package/dist/esm/international_street/Client.mjs +1 -1
  120. package/dist/esm/international_street/Lookup.mjs +1 -1
  121. package/dist/esm/package.json.mjs +1 -1
  122. package/dist/esm/us_autocomplete_pro/Client.mjs +1 -1
  123. package/dist/esm/us_autocomplete_pro/Lookup.mjs +1 -1
  124. package/dist/esm/us_autocomplete_pro/Suggestion.mjs +1 -1
  125. package/dist/esm/us_enrichment/Client.mjs +1 -1
  126. package/dist/esm/us_enrichment/Lookup.mjs +1 -1
  127. package/dist/esm/us_enrichment/Response.mjs +1 -1
  128. package/dist/esm/us_extract/Address.mjs +1 -1
  129. package/dist/esm/us_extract/Client.mjs +1 -1
  130. package/dist/esm/us_extract/Lookup.mjs +1 -1
  131. package/dist/esm/us_extract/Result.mjs +1 -1
  132. package/dist/esm/us_reverse_geo/Client.mjs +1 -1
  133. package/dist/esm/us_reverse_geo/Lookup.mjs +1 -1
  134. package/dist/esm/us_reverse_geo/Response.mjs +1 -1
  135. package/dist/esm/us_reverse_geo/Result.mjs +1 -1
  136. package/dist/esm/us_street/Candidate.mjs +1 -1
  137. package/dist/esm/us_street/Client.mjs +1 -1
  138. package/dist/esm/us_street/Lookup.mjs +1 -1
  139. package/dist/esm/us_zipcode/Client.mjs +1 -1
  140. package/dist/esm/us_zipcode/Lookup.mjs +1 -1
  141. package/dist/esm/us_zipcode/Result.mjs +1 -1
  142. package/dist/esm/util/Sleeper.mjs +1 -1
  143. package/dist/esm/util/apiToSDKKeyMap.mjs +1 -1
  144. package/dist/esm/util/buildClients.mjs +1 -1
  145. package/dist/esm/util/buildInputData.mjs +1 -1
  146. package/dist/esm/util/buildSmartyResponse.mjs +1 -1
  147. package/dist/esm/util/sendBatch.mjs +1 -1
  148. package/dist/tsconfig.tsbuildinfo +1 -0
  149. package/dist/types/util/Sleeper.d.ts +4 -0
  150. package/package.json +12 -8
@@ -1 +1 @@
1
- "use strict";var s=class{constructor(s){if(this.distance=s.distance,this.address={},s.address&&(this.address.street=s.address.street,this.address.city=s.address.city,this.address.state_abbreviation=s.address.state_abbreviation,this.address.zipcode=s.address.zipcode,this.address.source=s.address.source),this.coordinate={},s.coordinate)if(this.coordinate.latitude=s.coordinate.latitude,this.coordinate.longitude=s.coordinate.longitude,this.coordinate.accuracy=s.coordinate.accuracy,1===s.coordinate.license)this.coordinate.license="SmartyStreets Proprietary";else this.coordinate.license="SmartyStreets"}};exports.Result_1=s;
1
+ "use strict";var e,t;exports.__require=function(){return t?e:(t=1,e=class{constructor(e){if(this.distance=e.distance,this.address={},e.address&&(this.address.street=e.address.street,this.address.city=e.address.city,this.address.state_abbreviation=e.address.state_abbreviation,this.address.zipcode=e.address.zipcode,this.address.source=e.address.source),this.coordinate={},e.coordinate)if(this.coordinate.latitude=e.coordinate.latitude,this.coordinate.longitude=e.coordinate.longitude,this.coordinate.accuracy=e.coordinate.accuracy,1===e.coordinate.license)this.coordinate.license="SmartyStreets Proprietary";else this.coordinate.license="SmartyStreets"}})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../_virtual/_commonjsHelpers.cjs");var e=class{constructor(t){if(this.inputIndex=t.input_index,this.candidateIndex=t.candidate_index,this.addressee=t.addressee,this.deliveryLine1=t.delivery_line_1,this.deliveryLine2=t.delivery_line_2,this.lastLine=t.last_line,this.deliveryPointBarcode=t.delivery_point_barcode,this.smartyKey=t.smarty_key,this.components={},void 0!==t.components&&(this.components.urbanization=t.components.urbanization,this.components.primaryNumber=t.components.primary_number,this.components.streetName=t.components.street_name,this.components.streetPredirection=t.components.street_predirection,this.components.streetPostdirection=t.components.street_postdirection,this.components.streetSuffix=t.components.street_suffix,this.components.secondaryNumber=t.components.secondary_number,this.components.secondaryDesignator=t.components.secondary_designator,this.components.extraSecondaryNumber=t.components.extra_secondary_number,this.components.extraSecondaryDesignator=t.components.extra_secondary_designator,this.components.pmbDesignator=t.components.pmb_designator,this.components.pmbNumber=t.components.pmb_number,this.components.cityName=t.components.city_name,this.components.defaultCityName=t.components.default_city_name,this.components.state=t.components.state_abbreviation,this.components.zipCode=t.components.zipcode,this.components.plus4Code=t.components.plus4_code,this.components.deliveryPoint=t.components.delivery_point,this.components.deliveryPointCheckDigit=t.components.delivery_point_check_digit),this.metadata={},void 0!==t.metadata){if(this.metadata.recordType=t.metadata.record_type,this.metadata.zipType=t.metadata.zip_type,this.metadata.countyFips=t.metadata.county_fips,this.metadata.countyName=t.metadata.county_name,this.metadata.carrierRoute=t.metadata.carrier_route,this.metadata.congressionalDistrict=t.metadata.congressional_district,this.metadata.buildingDefaultIndicator=t.metadata.building_default_indicator,this.metadata.rdi=t.metadata.rdi,this.metadata.elotSequence=t.metadata.elot_sequence,this.metadata.elotSort=t.metadata.elot_sort,this.metadata.latitude=t.metadata.latitude,this.metadata.longitude=t.metadata.longitude,1===t.metadata.coordinate_license)this.metadata.coordinateLicense="SmartyStreets Proprietary";else this.metadata.coordinateLicense="SmartyStreets";this.metadata.precision=t.metadata.precision,this.metadata.timeZone=t.metadata.time_zone,this.metadata.utcOffset=t.metadata.utc_offset,this.metadata.obeysDst=t.metadata.dst,this.metadata.isEwsMatch=t.metadata.ews_match}this.analysis={},void 0!==t.analysis&&(this.analysis.dpvMatchCode=t.analysis.dpv_match_code,this.analysis.dpvFootnotes=t.analysis.dpv_footnotes,this.analysis.cmra=t.analysis.dpv_cmra,this.analysis.vacant=t.analysis.dpv_vacant,this.analysis.noStat=t.analysis.dpv_no_stat,this.analysis.active=t.analysis.active,this.analysis.isEwsMatch=t.analysis.ews_match,this.analysis.footnotes=t.analysis.footnotes,this.analysis.lacsLinkCode=t.analysis.lacslink_code,this.analysis.lacsLinkIndicator=t.analysis.lacslink_indicator,this.analysis.isSuiteLinkMatch=t.analysis.suitelink_match,this.analysis.enhancedMatch=t.analysis.enhanced_match)}},a=t.getDefaultExportFromCjs(e);exports.Candidate_1=e,exports.default=a;
1
+ "use strict";var t,a;exports.__require=function(){return a?t:(a=1,t=class{constructor(t){if(this.inputIndex=t.input_index,this.candidateIndex=t.candidate_index,this.addressee=t.addressee,this.deliveryLine1=t.delivery_line_1,this.deliveryLine2=t.delivery_line_2,this.lastLine=t.last_line,this.deliveryPointBarcode=t.delivery_point_barcode,this.smartyKey=t.smarty_key,this.components={},void 0!==t.components&&(this.components.urbanization=t.components.urbanization,this.components.primaryNumber=t.components.primary_number,this.components.streetName=t.components.street_name,this.components.streetPredirection=t.components.street_predirection,this.components.streetPostdirection=t.components.street_postdirection,this.components.streetSuffix=t.components.street_suffix,this.components.secondaryNumber=t.components.secondary_number,this.components.secondaryDesignator=t.components.secondary_designator,this.components.extraSecondaryNumber=t.components.extra_secondary_number,this.components.extraSecondaryDesignator=t.components.extra_secondary_designator,this.components.pmbDesignator=t.components.pmb_designator,this.components.pmbNumber=t.components.pmb_number,this.components.cityName=t.components.city_name,this.components.defaultCityName=t.components.default_city_name,this.components.state=t.components.state_abbreviation,this.components.zipCode=t.components.zipcode,this.components.plus4Code=t.components.plus4_code,this.components.deliveryPoint=t.components.delivery_point,this.components.deliveryPointCheckDigit=t.components.delivery_point_check_digit),this.metadata={},void 0!==t.metadata){if(this.metadata.recordType=t.metadata.record_type,this.metadata.zipType=t.metadata.zip_type,this.metadata.countyFips=t.metadata.county_fips,this.metadata.countyName=t.metadata.county_name,this.metadata.carrierRoute=t.metadata.carrier_route,this.metadata.congressionalDistrict=t.metadata.congressional_district,this.metadata.buildingDefaultIndicator=t.metadata.building_default_indicator,this.metadata.rdi=t.metadata.rdi,this.metadata.elotSequence=t.metadata.elot_sequence,this.metadata.elotSort=t.metadata.elot_sort,this.metadata.latitude=t.metadata.latitude,this.metadata.longitude=t.metadata.longitude,1===t.metadata.coordinate_license)this.metadata.coordinateLicense="SmartyStreets Proprietary";else this.metadata.coordinateLicense="SmartyStreets";this.metadata.precision=t.metadata.precision,this.metadata.timeZone=t.metadata.time_zone,this.metadata.utcOffset=t.metadata.utc_offset,this.metadata.obeysDst=t.metadata.dst,this.metadata.isEwsMatch=t.metadata.ews_match}this.analysis={},void 0!==t.analysis&&(this.analysis.dpvMatchCode=t.analysis.dpv_match_code,this.analysis.dpvFootnotes=t.analysis.dpv_footnotes,this.analysis.cmra=t.analysis.dpv_cmra,this.analysis.vacant=t.analysis.dpv_vacant,this.analysis.noStat=t.analysis.dpv_no_stat,this.analysis.active=t.analysis.active,this.analysis.isEwsMatch=t.analysis.ews_match,this.analysis.footnotes=t.analysis.footnotes,this.analysis.lacsLinkCode=t.analysis.lacslink_code,this.analysis.lacsLinkIndicator=t.analysis.lacslink_indicator,this.analysis.isSuiteLinkMatch=t.analysis.suitelink_match,this.analysis.enhancedMatch=t.analysis.enhanced_match)}})};
@@ -1 +1 @@
1
- "use strict";var e=require("./Candidate.cjs"),r=require("./Lookup.cjs"),s=require("../Batch.cjs"),t=require("../Errors.cjs"),a=require("../util/sendBatch.cjs"),n=require("../util/apiToSDKKeyMap.cjs");const i=e.Candidate_1,c=r.Lookup_1,o=s.Batch_1,d=t.Errors.UndefinedLookupError,u=a.sendBatch,h=n.apiToSDKKeyMap.usStreet;var p=class{constructor(e){this.sender=e}send(e){const r=e instanceof c;if(!r&&!(e instanceof o))throw new d;let s;return r?(null==e.maxCandidates&&"enhanced"==e.match&&(e.maxCandidates=5),s=new o,s.add(e)):s=e,u(s,this.sender,i,h)}};exports.Client_1=p;
1
+ "use strict";var e,r,i=require("./Candidate.cjs"),t=require("./Lookup.cjs"),n=require("../Batch.cjs"),s=require("../Errors.cjs"),u=require("../util/sendBatch.cjs"),a=require("../util/apiToSDKKeyMap.cjs");exports.__require=function(){if(r)return e;r=1;const c=i.__require(),o=t.__require(),d=n.__require(),_=s.__require().UndefinedLookupError,q=u.__require(),h=a.__require().usStreet;return e=class{constructor(e){this.sender=e}send(e){const r=e instanceof o;if(!r&&!(e instanceof d))throw new _;let i;return r?(null==e.maxCandidates&&"enhanced"==e.match&&(e.maxCandidates=5),i=new d,i.add(e)):i=e,q(i,this.sender,c,h)}}};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../_virtual/_commonjsHelpers.cjs");var s=class{constructor(t,s,e,r,i,a,o,h,u,c,d,m,n,l){this.street=t,this.street2=s,this.secondary=e,this.city=r,this.state=i,this.zipCode=a,this.lastLine=o,this.addressee=h,this.urbanization=u,this.match=c,this.maxCandidates=d,this.inputId=m,this.format=n,this.countySource=l,this.result=[],this.customParameters={}}addCustomParameter(t,s){this.customParameters[t]=s}},e=t.getDefaultExportFromCjs(s);exports.Lookup_1=s,exports.default=e;
1
+ "use strict";var t,s;exports.__require=function(){return s?t:(s=1,t=class{constructor(t,s,i,e,r,a,h,o,u,c,n,d,m,l){this.street=t,this.street2=s,this.secondary=i,this.city=e,this.state=r,this.zipCode=a,this.lastLine=h,this.addressee=o,this.urbanization=u,this.match=c,this.maxCandidates=n,this.inputId=d,this.format=m,this.countySource=l,this.result=[],this.customParameters={}}addCustomParameter(t,s){this.customParameters[t]=s}})};
@@ -1 +1 @@
1
- "use strict";var e=require("./Lookup.cjs"),r=require("./Result.cjs"),s=require("../Batch.cjs"),t=require("../Errors.cjs"),o=require("../util/sendBatch.cjs"),c=require("../util/apiToSDKKeyMap.cjs");const i=e.Lookup_1,n=r.Result_1,u=s.Batch_1,a=t.Errors.UndefinedLookupError,d=o.sendBatch,p=c.apiToSDKKeyMap.usZipcode;var h=class{constructor(e){this.sender=e}send(e){const r=e instanceof i;if(!r&&!(e instanceof u))throw new a;let s;return r?(s=new u,s.add(e)):s=e,d(s,this.sender,n,p)}};exports.Client_1=h;
1
+ "use strict";var e,r,i=require("./Lookup.cjs"),s=require("./Result.cjs"),u=require("../Batch.cjs"),t=require("../Errors.cjs"),n=require("../util/sendBatch.cjs"),c=require("../util/apiToSDKKeyMap.cjs");exports.__require=function(){if(r)return e;r=1;const o=i.__require(),_=s.__require(),q=u.__require(),a=t.__require().UndefinedLookupError,d=n.__require(),f=c.__require().usZipcode;return e=class{constructor(e){this.sender=e}send(e){const r=e instanceof o;if(!r&&!(e instanceof q))throw new a;let i;return r?(i=new q,i.add(e)):i=e,d(i,this.sender,_,f)}}};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../_virtual/_commonjsHelpers.cjs");var e=class{constructor(t,e,s,r){this.city=t,this.state=e,this.zipCode=s,this.inputId=r,this.result=[],this.customParameters={}}addCustomParameter(t,e){this.customParameters[t]=e}},s=t.getDefaultExportFromCjs(e);exports.Lookup_1=e,exports.default=s;
1
+ "use strict";var t,s;exports.__require=function(){return s?t:(s=1,t=class{constructor(t,s,r,e){this.city=t,this.state=s,this.zipCode=r,this.inputId=e,this.result=[],this.customParameters={}}addCustomParameter(t,s){this.customParameters[t]=s}})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../_virtual/_commonjsHelpers.cjs");var e=class{constructor(t){this.inputIndex=t.input_index,this.status=t.status,this.reason=t.reason,this.valid=void 0===this.status&&void 0===this.reason,this.cities=t.city_states?t.city_states.map((t=>({city:t.city,stateAbbreviation:t.state_abbreviation,state:t.state,mailableCity:t.mailable_city}))):[],this.zipcodes=t.zipcodes?t.zipcodes.map((t=>({zipcode:t.zipcode,zipcodeType:t.zipcode_type,defaultCity:t.default_city,countyFips:t.county_fips,countyName:t.county_name,latitude:t.latitude,longitude:t.longitude,precision:t.precision,stateAbbreviation:t.state_abbreviation,state:t.state,alternateCounties:t.alternate_counties?t.alternate_counties.map((t=>({countyFips:t.county_fips,countyName:t.county_name,stateAbbreviation:t.state_abbreviation,state:t.state}))):[]}))):[]}},i=t.getDefaultExportFromCjs(e);exports.Result_1=e,exports.default=i;
1
+ "use strict";var t,e;exports.__require=function(){return e?t:(e=1,t=class{constructor(t){this.inputIndex=t.input_index,this.status=t.status,this.reason=t.reason,this.valid=void 0===this.status&&void 0===this.reason,this.cities=t.city_states?t.city_states.map((t=>({city:t.city,stateAbbreviation:t.state_abbreviation,state:t.state,mailableCity:t.mailable_city}))):[],this.zipcodes=t.zipcodes?t.zipcodes.map((t=>({zipcode:t.zipcode,zipcodeType:t.zipcode_type,defaultCity:t.default_city,countyFips:t.county_fips,countyName:t.county_name,latitude:t.latitude,longitude:t.longitude,precision:t.precision,stateAbbreviation:t.state_abbreviation,state:t.state,alternateCounties:t.alternate_counties?t.alternate_counties.map((t=>({countyFips:t.county_fips,countyName:t.county_name,stateAbbreviation:t.state_abbreviation,state:t.state}))):[]}))):[]}})};
@@ -1 +1 @@
1
- "use strict";var e=class{constructor(){}sleep(e){return new Promise((r=>setTimeout(r,1e3*e)))}};exports.Sleeper_1=e;
1
+ "use strict";var t=function(){function t(){}return t.prototype.sleep=function(t){return new Promise((function(e){return setTimeout(e,1e3*t)}))},t}();exports.default=t;
@@ -1 +1 @@
1
- "use strict";exports.apiToSDKKeyMap={usStreet:{street:"street",street2:"street2",secondary:"secondary",city:"city",state:"state",zipcode:"zipCode",lastline:"lastLine",addressee:"addressee",urbanization:"urbanization",match:"match",format:"format",candidates:"maxCandidates",county_source:"countySource"},usAutocompletePro:{search:"search",selected:"selected",max_results:"maxResults",include_only_cities:"includeOnlyCities",include_only_states:"includeOnlyStates",include_only_zip_codes:"includeOnlyZIPCodes",exclude_states:"excludeStates",prefer_cities:"preferCities",prefer_states:"preferStates",prefer_zip_codes:"preferZIPCodes",prefer_ratio:"preferRatio",prefer_geolocation:"preferGeolocation",source:"source"},usZipcode:{city:"city",state:"state",zipcode:"zipCode"},internationalStreet:{country:"country",freeform:"freeform",address1:"address1",address2:"address2",address3:"address3",address4:"address4",organization:"organization",locality:"locality",administrative_area:"administrativeArea",postal_code:"postalCode",geocode:"geocode",language:"language"},internationalAddressAutocomplete:{search:"search",country:"country",max_results:"maxResults",include_only_administrative_area:"includeOnlyAdministrativeArea",include_only_locality:"includeOnlyLocality",include_only_postal_code:"includeOnlyPostalCode"},usReverseGeo:{latitude:"latitude",longitude:"longitude",source:"source"},usExtract:{html:"html",aggressive:"aggressive",addr_line_breaks:"addressesHaveLineBreaks",addr_per_line:"addressesPerLine"},usEnrichment:{include:"include",exclude:"exclude",dataset:"dataset",data_subset:"dataSubset"}};
1
+ "use strict";var e,t;exports.__require=function(){return t?e:(t=1,e={usStreet:{street:"street",street2:"street2",secondary:"secondary",city:"city",state:"state",zipcode:"zipCode",lastline:"lastLine",addressee:"addressee",urbanization:"urbanization",match:"match",format:"format",candidates:"maxCandidates",county_source:"countySource"},usAutocompletePro:{search:"search",selected:"selected",max_results:"maxResults",include_only_cities:"includeOnlyCities",include_only_states:"includeOnlyStates",include_only_zip_codes:"includeOnlyZIPCodes",exclude_states:"excludeStates",prefer_cities:"preferCities",prefer_states:"preferStates",prefer_zip_codes:"preferZIPCodes",prefer_ratio:"preferRatio",prefer_geolocation:"preferGeolocation",source:"source"},usZipcode:{city:"city",state:"state",zipcode:"zipCode"},internationalStreet:{country:"country",freeform:"freeform",address1:"address1",address2:"address2",address3:"address3",address4:"address4",organization:"organization",locality:"locality",administrative_area:"administrativeArea",postal_code:"postalCode",geocode:"geocode",language:"language"},internationalAddressAutocomplete:{search:"search",country:"country",max_results:"maxResults",include_only_administrative_area:"includeOnlyAdministrativeArea",include_only_locality:"includeOnlyLocality",include_only_postal_code:"includeOnlyPostalCode"},usReverseGeo:{latitude:"latitude",longitude:"longitude",source:"source"},usExtract:{html:"html",aggressive:"aggressive",addr_line_breaks:"addressesHaveLineBreaks",addr_per_line:"addressesPerLine"},usEnrichment:{include:"include",exclude:"exclude",dataset:"dataset",data_subset:"dataSubset"}})};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../_virtual/_commonjsHelpers.cjs");const t=require("../ClientBuilder.cjs").ClientBuilder_1;function n(e){return new t(e)}var r={usStreet:function(e){return n(e).buildUsStreetApiClient()},usAutocompletePro:function(e){return n(e).buildUsAutocompleteProClient()},usExtract:function(e){return n(e).buildUsExtractClient()},usZipcode:function(e){return n(e).buildUsZipcodeClient()},internationalStreet:function(e){return n(e).buildInternationalStreetClient()},usReverseGeo:function(e){return n(e).buildUsReverseGeoClient()},internationalAddressAutocomplete:function(e){return n(e).buildInternationalAddressAutocompleteClient()},usEnrichment:function(e){return n(e).buildUsEnrichmentClient()}},u=e.getDefaultExportFromCjs(r);exports.default=u;
1
+ "use strict";var e,t,n=require("../ClientBuilder.cjs");exports.__require=function(){if(t)return e;t=1;const r=n.__require();function i(e){return new r(e)}return e={usStreet:function(e){return i(e).buildUsStreetApiClient()},usAutocompletePro:function(e){return i(e).buildUsAutocompleteProClient()},usExtract:function(e){return i(e).buildUsExtractClient()},usZipcode:function(e){return i(e).buildUsZipcodeClient()},internationalStreet:function(e){return i(e).buildInternationalStreetClient()},usReverseGeo:function(e){return i(e).buildUsReverseGeoClient()},internationalAddressAutocomplete:function(e){return i(e).buildInternationalAddressAutocompleteClient()},usEnrichment:function(e){return i(e).buildUsEnrichmentClient()}}};
@@ -1 +1 @@
1
- "use strict";const t=require("../InputData.cjs").InputData_1;exports.buildInputData=(e,a)=>{let r=new t(e);const s=Object.keys(e.customParameters??{}).length>0;for(let t in a)r.add(t,a[t]);if(s)for(let t in e.customParameters)r.addCustomParameter(t,e.customParameters[t]);return r.data};
1
+ "use strict";var e,r,t=require("../InputData.cjs");exports.__require=function(){if(r)return e;r=1;const a=t.__require();return e=(e,r)=>{let t=new a(e);const s=Object.keys(e.customParameters??{}).length>0;for(let e in r)t.add(e,r[e]);if(s)for(let r in e.customParameters)t.addCustomParameter(r,e.customParameters[r]);return t.data}};
@@ -1 +1 @@
1
- "use strict";const e=require("../Response.cjs").Response_1;var s={buildSmartyResponse:function(s,r){return s?new e(s.status,s.data,s.error,s.headers):new e(void 0,void 0,r)}};exports.buildSmartyResponse_1=s;
1
+ "use strict";var e,r,t=require("../Response.cjs");exports.__require=function(){if(r)return e;r=1;const n=t.__require();return e={buildSmartyResponse:function(e,r){return e?new n(e.status,e.data,e.error,e.headers):new n(void 0,void 0,r)}}};
@@ -1 +1 @@
1
- "use strict";var r=require("../Request.cjs"),e=require("../Errors.cjs"),t=require("./buildInputData.cjs");const n=r.Request_1,s=e.Errors,u=t.buildInputData;exports.sendBatch=(r,e,t,a)=>{if(r.isEmpty())throw new s.BatchEmptyError;let o=new n;return 1===r.length()?o.parameters=p(r)[0]:o.payload=p(r),new Promise(((n,s)=>{e.send(o).then((e=>{e.error&&s(e.error),n(function(r,e){return e.payload.map((e=>{let n=new t(e);r.getByIndex(n.inputIndex).result.push(n)})),r}(r,e))})).catch(s)}));function p(r){return r.lookups.map((r=>u(r,a)))}};
1
+ "use strict";var r,e,t=require("../Request.cjs"),n=require("../Errors.cjs"),u=require("./buildInputData.cjs");exports.__require=function(){if(e)return r;e=1;const i=t.__require(),s=n.__require(),o=u.__require();return r=(r,e,t,n)=>{if(r.isEmpty())throw new s.BatchEmptyError;let u=new i;return 1===r.length()?u.parameters=a(r)[0]:u.payload=a(r),new Promise(((n,i)=>{e.send(u).then((e=>{e.error&&i(e.error),n(function(r,e){return e.payload.map((e=>{let n=new t(e);r.getByIndex(n.inputIndex).result.push(n)})),r}(r,e))})).catch(i)}));function a(r){return r.lookups.map((r=>o(r,n)))}}};
@@ -1 +1 @@
1
- import s from"./package.json.mjs";var e=class{constructor(s){this.sender=s}send(e){return e.parameters.agent="smarty (sdk:javascript@"+s.version+")",new Promise(((s,r)=>{this.sender.send(e).then(s).catch(r)}))}};export{e as A};
1
+ import r from"./package.json.mjs";var e,s;function t(){if(s)return e;s=1;return e=class{constructor(r){this.sender=r}send(e){return e.parameters.agent="smarty (sdk:javascript@"+r.version+")",new Promise(((r,s)=>{this.sender.send(e).then(r).catch(s)}))}}}export{t as __require};
@@ -1 +1 @@
1
- var r=class{constructor(r,e){this.urlOverride=e,this.sender=r}send(r){return new Promise(((e,s)=>{r.baseUrl=`${this.urlOverride}${r.baseUrlParam?`/${r.baseUrlParam}`:""}`,this.sender.send(r).then(e).catch(s)}))}};export{r as B};
1
+ var r,e;function s(){if(e)return r;e=1;return r=class{constructor(r,e){this.urlOverride=e,this.sender=r}send(r){return new Promise(((e,s)=>{r.baseUrl=`${this.urlOverride}${r.baseUrlParam?`/${r.baseUrlParam}`:""}`,this.sender.send(r).then(e).catch(s)}))}}}export{s as __require};
@@ -1 +1 @@
1
- import{getDefaultExportFromCjs as o}from"./_virtual/_commonjsHelpers.mjs";import{E as s}from"./Errors.mjs";const t=s.BatchFullError;var r=class{constructor(){this.lookups=[]}add(o){if(!this.lookupsHasRoomForLookup())throw new t;this.lookups.push(o)}lookupsHasRoomForLookup(){return this.lookups.length<100}length(){return this.lookups.length}getByIndex(o){return this.lookups[o]}getByInputId(o){return this.lookups.filter((s=>s.inputId===o))[0]}clear(){this.lookups=[]}isEmpty(){return 0===this.length()}},u=o(r);export{r as B,u as default};
1
+ import{__require as o}from"./Errors.mjs";var r,t;function s(){if(t)return r;t=1;const s=o().BatchFullError;return r=class{constructor(){this.lookups=[]}add(o){if(!this.lookupsHasRoomForLookup())throw new s;this.lookups.push(o)}lookupsHasRoomForLookup(){return this.lookups.length<100}length(){return this.lookups.length}getByIndex(o){return this.lookups[o]}getByInputId(o){return this.lookups.filter((r=>r.inputId===o))[0]}clear(){this.lookups=[]}isEmpty(){return 0===this.length()}}}export{s as __require};
@@ -1 +1 @@
1
- import{getDefaultExportFromCjs as t}from"./_virtual/_commonjsHelpers.mjs";import{H as e}from"./HttpSender.mjs";import{S as s}from"./SigningSender.mjs";import{B as r}from"./BaseUrlSender.mjs";import{A as i}from"./AgentSender.mjs";import{S as o}from"./StaticCredentials.mjs";import{S as n}from"./SharedCredentials.mjs";import{C as m}from"./CustomHeaderSender.mjs";import{S as a}from"./StatusCodeSender.mjs";import{L as l}from"./LicenseSender.mjs";import{E as u}from"./Errors.mjs";import{R as h}from"./RetrySender.mjs";import{S as p}from"./util/Sleeper.mjs";import{C as d}from"./us_street/Client.mjs";import{C as c}from"./us_zipcode/Client.mjs";import{C}from"./us_autocomplete_pro/Client.mjs";import{C as b}from"./us_extract/Client.mjs";import{C as f}from"./international_street/Client.mjs";import{C as S}from"./us_reverse_geo/Client.mjs";import{C as j}from"./international_address_autocomplete/Client.mjs";import{C as w}from"./us_enrichment/Client.mjs";const x=e,y=s,U=r,_=i,g=o,v=n,H=m,R=a,A=l,k=u.BadCredentialsError,E=h,B=p,T=d,L=c,z=C,I=b,M=f,P=S,D=j,G=w;var Z=class{constructor(t){if(!t instanceof g||!t instanceof v)throw new k;this.signer=t,this.httpSender=void 0,this.maxRetries=5,this.maxTimeout=1e4,this.baseUrl=void 0,this.proxy=void 0,this.customHeaders={},this.debug=void 0,this.licenses=[]}withMaxRetries(t){return this.maxRetries=t,this}withMaxTimeout(t){return this.maxTimeout=t,this}withSender(t){return this.httpSender=t,this}withBaseUrl(t){return this.baseUrl=t,this}withProxy(t,e,s,r,i){return this.proxy={host:t,port:e,protocol:s},r&&i&&(this.proxy.auth={username:r,password:i}),this}withCustomHeaders(t){return this.customHeaders=t,this}withDebug(){return this.debug=!0,this}withLicenses(t){return this.licenses=t,this}buildSender(){if(this.httpSender)return this.httpSender;const t=new x(this.maxTimeout,this.proxy,this.debug),e=new R(t),s=new y(e,this.signer);let r=new _(s);if(this.maxRetries>0){const t=new E(this.maxRetries,s,new B);r=new _(t)}const i=new H(r,this.customHeaders),o=new U(i,this.baseUrl);return new A(o,this.licenses)}buildClient(t,e){return this.baseUrl||(this.baseUrl=t),new e(this.buildSender())}buildUsStreetApiClient(){return this.buildClient("https://us-street.api.smarty.com/street-address",T)}buildUsZipcodeClient(){return this.buildClient("https://us-zipcode.api.smarty.com/lookup",L)}buildUsAutocompleteProClient(){return this.buildClient("https://us-autocomplete-pro.api.smarty.com/lookup",z)}buildUsExtractClient(){return this.buildClient("https://us-extract.api.smarty.com/",I)}buildInternationalStreetClient(){return this.buildClient("https://international-street.api.smarty.com/verify",M)}buildUsReverseGeoClient(){return this.buildClient("https://us-reverse-geo.api.smarty.com/lookup",P)}buildInternationalAddressAutocompleteClient(){return this.buildClient("https://international-autocomplete.api.smarty.com/v2/lookup",D)}buildUsEnrichmentClient(){return this.buildClient("https://us-enrichment.api.smarty.com/lookup",G)}},q=t(Z);export{Z as C,q as default};
1
+ import{__require as e}from"./HttpSender.mjs";import{__require as t}from"./SigningSender.mjs";import{__require as r}from"./BaseUrlSender.mjs";import{__require as i}from"./AgentSender.mjs";import{__require as s}from"./StaticCredentials.mjs";import{__require as o}from"./SharedCredentials.mjs";import{__require as n}from"./CustomHeaderSender.mjs";import{__require as m}from"./StatusCodeSender.mjs";import{__require as u}from"./LicenseSender.mjs";import{__require as a}from"./Errors.mjs";import{__require as l}from"./RetrySender.mjs";import h from"./_virtual/Sleeper.mjs";import{__require as p}from"./us_street/Client.mjs";import{__require as d}from"./us_zipcode/Client.mjs";import{__require as _}from"./us_autocomplete_pro/Client.mjs";import{__require as c}from"./us_extract/Client.mjs";import{__require as C}from"./international_street/Client.mjs";import{__require as b}from"./us_reverse_geo/Client.mjs";import{__require as f}from"./international_address_autocomplete/Client.mjs";import{__require as w}from"./us_enrichment/Client.mjs";var S,j;function q(){if(j)return S;j=1;const q=e(),x=t(),y=r(),U=i(),g=s(),v=o(),R=n(),H=m(),k=u(),A=a().BadCredentialsError,E=l(),T=h,B=p(),z=d(),I=_(),L=c(),M=C(),P=b(),D=f(),G=w();return S=class{constructor(e){if(!e instanceof g||!e instanceof v)throw new A;this.signer=e,this.httpSender=void 0,this.maxRetries=5,this.maxTimeout=1e4,this.baseUrl=void 0,this.proxy=void 0,this.customHeaders={},this.debug=void 0,this.licenses=[]}withMaxRetries(e){return this.maxRetries=e,this}withMaxTimeout(e){return this.maxTimeout=e,this}withSender(e){return this.httpSender=e,this}withBaseUrl(e){return this.baseUrl=e,this}withProxy(e,t,r,i,s){return this.proxy={host:e,port:t,protocol:r},i&&s&&(this.proxy.auth={username:i,password:s}),this}withCustomHeaders(e){return this.customHeaders=e,this}withDebug(){return this.debug=!0,this}withLicenses(e){return this.licenses=e,this}buildSender(){if(this.httpSender)return this.httpSender;const e=new q(this.maxTimeout,this.proxy,this.debug),t=new H(e),r=new x(t,this.signer);let i=new U(r);if(this.maxRetries>0){const e=new E(this.maxRetries,r,new T);i=new U(e)}const s=new R(i,this.customHeaders),o=new y(s,this.baseUrl);return new k(o,this.licenses)}buildClient(e,t){return this.baseUrl||(this.baseUrl=e),new t(this.buildSender())}buildUsStreetApiClient(){return this.buildClient("https://us-street.api.smarty.com/street-address",B)}buildUsZipcodeClient(){return this.buildClient("https://us-zipcode.api.smarty.com/lookup",z)}buildUsAutocompleteProClient(){return this.buildClient("https://us-autocomplete-pro.api.smarty.com/lookup",I)}buildUsExtractClient(){return this.buildClient("https://us-extract.api.smarty.com/",L)}buildInternationalStreetClient(){return this.buildClient("https://international-street.api.smarty.com/verify",M)}buildUsReverseGeoClient(){return this.buildClient("https://us-reverse-geo.api.smarty.com/lookup",P)}buildInternationalAddressAutocompleteClient(){return this.buildClient("https://international-autocomplete.api.smarty.com/v2/lookup",D)}buildUsEnrichmentClient(){return this.buildClient("https://us-enrichment.api.smarty.com/lookup",G)}}}export{q as __require};
@@ -1 +1 @@
1
- var s=class{constructor(s,e){this.sender=s,this.customHeaders=e}send(s){for(let e in this.customHeaders)s.headers[e]=this.customHeaders[e];return new Promise(((e,t)=>{this.sender.send(s).then(e).catch(t)}))}};export{s as C};
1
+ var e,s;function r(){if(s)return e;s=1;return e=class{constructor(e,s){this.sender=e,this.customHeaders=s}send(e){for(let s in this.customHeaders)e.headers[s]=this.customHeaders[s];return new Promise(((s,r)=>{this.sender.send(e).then(s).catch(r)}))}}}export{r as __require};
@@ -1 +1 @@
1
- import{getDefaultExportFromCjs as e}from"./_virtual/_commonjsHelpers.mjs";class r extends Error{constructor(e="unexpected error"){super(e)}}var t={BatchFullError:class extends r{constructor(){super("A batch can contain a max of 100 lookups.")}},BatchEmptyError:class extends r{constructor(){super("A batch must contain at least 1 lookup.")}},UndefinedLookupError:class extends r{constructor(){super("The lookup provided is missing or undefined. Make sure you're passing a Lookup object.")}},BadCredentialsError:class extends r{constructor(){super("Unauthorized: The credentials were provided incorrectly or did not match any existing active credentials.")}},PaymentRequiredError:class extends r{constructor(){super("Payment Required: There is no active subscription for the account associated with the credentials submitted with the request.")}},RequestEntityTooLargeError:class extends r{constructor(){super("Request Entity Too Large: The request body has exceeded the maximum size.")}},BadRequestError:class extends r{constructor(){super("Bad Request (Malformed Payload): A GET request lacked a street field or the request body of a POST request contained malformed JSON.")}},UnprocessableEntityError:class extends r{constructor(e){super(e)}},TooManyRequestsError:class extends r{constructor(){super("When using the public 'embedded key' authentication, we restrict the number of requests coming from a given source over too short of a time.")}},InternalServerError:class extends r{constructor(){super("Internal Server Error.")}},ServiceUnavailableError:class extends r{constructor(){super("Service Unavailable. Try again later.")}},GatewayTimeoutError:class extends r{constructor(){super("The upstream data provider did not respond in a timely fashion and the request failed. A serious, yet rare occurrence indeed.")}},DefaultError:class extends r{constructor(e){super(e)}}},s=e(t);export{t as E,s as default};
1
+ var e,r;function t(){if(r)return e;r=1;class t extends Error{constructor(e="unexpected error"){super(e)}}return e={BatchFullError:class extends t{constructor(){super("A batch can contain a max of 100 lookups.")}},BatchEmptyError:class extends t{constructor(){super("A batch must contain at least 1 lookup.")}},UndefinedLookupError:class extends t{constructor(){super("The lookup provided is missing or undefined. Make sure you're passing a Lookup object.")}},BadCredentialsError:class extends t{constructor(){super("Unauthorized: The credentials were provided incorrectly or did not match any existing active credentials.")}},PaymentRequiredError:class extends t{constructor(){super("Payment Required: There is no active subscription for the account associated with the credentials submitted with the request.")}},RequestEntityTooLargeError:class extends t{constructor(){super("Request Entity Too Large: The request body has exceeded the maximum size.")}},BadRequestError:class extends t{constructor(){super("Bad Request (Malformed Payload): A GET request lacked a street field or the request body of a POST request contained malformed JSON.")}},UnprocessableEntityError:class extends t{constructor(e){super(e)}},TooManyRequestsError:class extends t{constructor(){super("When using the public 'embedded key' authentication, we restrict the number of requests coming from a given source over too short of a time.")}},InternalServerError:class extends t{constructor(){super("Internal Server Error.")}},ServiceUnavailableError:class extends t{constructor(){super("Service Unavailable. Try again later.")}},GatewayTimeoutError:class extends t{constructor(){super("The upstream data provider did not respond in a timely fashion and the request failed. A serious, yet rare occurrence indeed.")}},DefaultError:class extends t{constructor(e){super(e)}}}}export{t as __require};
@@ -1 +1 @@
1
- import e from"./_virtual/_axios.mjs";import{b as s}from"./util/buildSmartyResponse.mjs";const t=e.default,{buildSmartyResponse:o}=s;var a=class{constructor(e=1e4,s,o=!1){this.axiosInstance=t.create(),this.timeout=e,this.proxyConfig=s,o&&this.enableDebug()}buildRequestConfig({payload:e,parameters:s,headers:t,baseUrl:o}){let a={method:"GET",timeout:this.timeout,params:s,headers:t,baseURL:o,validateStatus:function(e){return e<500}};return e&&(a.method="POST",a.data=e),this.proxyConfig&&(a.proxy=this.proxyConfig),a}send(e){return new Promise(((s,t)=>{let a=this.buildRequestConfig(e);this.axiosInstance(a).then((e=>{let a=o(e);a.statusCode>=400&&t(a),s(a)})).catch((e=>t(o(void 0,e))))}))}enableDebug(){this.axiosInstance.interceptors.request.use((e=>(console.log("Request:\r\n",e),console.log("\r\n*******************************************\r\n"),e))),this.axiosInstance.interceptors.response.use((e=>(console.log("Response:\r\n"),console.log("Status:",e.status,e.statusText),console.log("Headers:",e.headers),console.log("Data:",e.data),e)))}};export{a as H};
1
+ import e from"./_virtual/_axios.mjs";import{__require as t}from"./util/buildSmartyResponse.mjs";var s,o;function r(){if(o)return s;o=1;const r=e.default,{buildSmartyResponse:a}=t();return s=class{constructor(e=1e4,t,s=!1){this.axiosInstance=r.create(),this.timeout=e,this.proxyConfig=t,s&&this.enableDebug()}buildRequestConfig({payload:e,parameters:t,headers:s,baseUrl:o}){let r={method:"GET",timeout:this.timeout,params:t,headers:s,baseURL:o,validateStatus:function(e){return e<500}};return e&&(r.method="POST",r.data=e),this.proxyConfig&&(r.proxy=this.proxyConfig),r}send(e){return new Promise(((t,s)=>{let o=this.buildRequestConfig(e);this.axiosInstance(o).then((e=>{let o=a(e);o.statusCode>=400&&s(o),t(o)})).catch((e=>s(a(void 0,e))))}))}enableDebug(){this.axiosInstance.interceptors.request.use((e=>(console.log("Request:\r\n",e),console.log("\r\n*******************************************\r\n"),e))),this.axiosInstance.interceptors.response.use((e=>(console.log("Response:\r\n"),console.log("Status:",e.status,e.statusText),console.log("Headers:",e.headers),console.log("Data:",e.data),e)))}}}export{r as __require};
@@ -1 +1 @@
1
- var t=class{constructor(t){this.lookup=t,this.data={}}add(t,a){this.lookupFieldIsPopulated(a)&&(this.data[t]=this.formatData(this.lookup[a]))}addCustomParameter(t,a){this.data[t]=a}formatData(t){return Array.isArray(t)?t.join(";"):t}lookupFieldIsPopulated(t){return""!==this.lookup[t]&&void 0!==this.lookup[t]}};export{t as I};
1
+ var t,a;function o(){if(a)return t;a=1;return t=class{constructor(t){this.lookup=t,this.data={}}add(t,a){this.lookupFieldIsPopulated(a)&&(this.data[t]=this.formatData(this.lookup[a]))}addCustomParameter(t,a){this.data[t]=a}formatData(t){return Array.isArray(t)?t.join(";"):t}lookupFieldIsPopulated(t){return""!==this.lookup[t]&&void 0!==this.lookup[t]}}}export{o as __require};
@@ -1 +1 @@
1
- var e=class{constructor(e,s){this.sender=e,this.licenses=s}send(e){return 0!==this.licenses.length&&(e.parameters.license=this.licenses.join(",")),new Promise(((s,n)=>{this.sender.send(e).then(s).catch(n)}))}};export{e as L};
1
+ var e,s;function n(){if(s)return e;s=1;return e=class{constructor(e,s){this.sender=e,this.licenses=s}send(e){return 0!==this.licenses.length&&(e.parameters.license=this.licenses.join(",")),new Promise(((s,n)=>{this.sender.send(e).then(s).catch(n)}))}}}export{n as __require};
@@ -1 +1 @@
1
- var a=class{constructor(a,s={"Content-Type":"application/json; charset=utf-8"}){this.baseUrl="",this.baseUrlParam="",this.payload=a,this.headers=s,this.parameters={}}};export{a as R};
1
+ var r,t;function a(){if(t)return r;t=1;return r=class{constructor(r,t={"Content-Type":"application/json; charset=utf-8"}){this.baseUrl="",this.baseUrlParam="",this.payload=r,this.headers=t,this.parameters={}}}}export{a as __require};
@@ -1 +1 @@
1
- var s=class{constructor(s,t,r,a){this.statusCode=s,this.payload=t,this.error=r,this.headers=a}};export{s as R};
1
+ var r,t;function s(){if(t)return r;t=1;return r=class{constructor(r,t,s,e){this.statusCode=r,this.payload=t,this.error=s,this.headers=e}}}export{s as __require};
@@ -1 +1 @@
1
- var e=class{constructor(e=5,s,t){this.maxRetries=e,this.statusToRetry=[408,429,500,502,503,504],this.statusTooManyRequests=429,this.maxBackoffDuration=10,this.inner=s,this.sleeper=t}async send(e){let s=await this.inner.send(e);for(let t=0;t<this.maxRetries&&this.statusToRetry.includes(parseInt(s.statusCode));t++){if(parseInt(s.statusCode)===this.statusTooManyRequests){let e=10;if(s.headers){const t=s.headers["Retry-After"];Number.isInteger(t)&&(e=t)}await this.rateLimitBackOff(e)}else await this.backoff(t);s=await this.inner.send(e)}return s}async backoff(e){const s=Math.min(e,this.maxBackoffDuration);console.log(`There was an error processing the request. Retrying in ${s} seconds...`),await this.sleeper.sleep(s)}async rateLimitBackOff(e){console.log(`Rate limit reached. Retrying in ${e} seconds...`),await this.sleeper.sleep(e)}};export{e as R};
1
+ var e,t;function s(){if(t)return e;t=1;return e=class{constructor(e=5,t,s){this.maxRetries=e,this.statusToRetry=[408,429,500,502,503,504],this.statusTooManyRequests=429,this.maxBackoffDuration=10,this.inner=t,this.sleeper=s}async send(e){let t=await this.inner.send(e);for(let s=0;s<this.maxRetries&&this.statusToRetry.includes(parseInt(t.statusCode));s++){if(parseInt(t.statusCode)===this.statusTooManyRequests){let e=10;if(t.headers){const s=t.headers["Retry-After"];Number.isInteger(s)&&(e=s)}await this.rateLimitBackOff(e)}else await this.backoff(s);t=await this.inner.send(e)}return t}async backoff(e){const t=Math.min(e,this.maxBackoffDuration);console.log(`There was an error processing the request. Retrying in ${t} seconds...`),await this.sleeper.sleep(t)}async rateLimitBackOff(e){console.log(`Rate limit reached. Retrying in ${e} seconds...`),await this.sleeper.sleep(e)}}}export{s as __require};
@@ -1 +1 @@
1
- import{getDefaultExportFromCjs as s}from"./_virtual/_commonjsHelpers.mjs";var t=class{constructor(s,t){this.authId=s,this.hostName=t}sign(s){s.parameters.key=this.authId,this.hostName&&(s.headers.Referer="https://"+this.hostName)}},e=s(t);export{t as S,e as default};
1
+ var t,e;function s(){if(e)return t;e=1;return t=class{constructor(t,e){this.authId=t,this.hostName=e}sign(t){t.parameters.key=this.authId,this.hostName&&(t.headers.Referer="https://"+this.hostName)}}}export{s as __require};
@@ -1 +1 @@
1
- import{E as e}from"./Errors.mjs";import{S as r}from"./SharedCredentials.mjs";const s=e.UnprocessableEntityError,t=r;var n=class{constructor(e,r){this.signer=r,this.sender=e}send(e){if(e.payload&&this.signer instanceof t){throw new s("Shared credentials cannot be used in batches with a length greater than 1 or when using the US Extract API.")}return new Promise(((r,s)=>{this.signer.sign(e),this.sender.send(e).then(r).catch(s)}))}};export{n as S};
1
+ import{__require as r}from"./Errors.mjs";import{__require as e}from"./SharedCredentials.mjs";var s,t;function n(){if(t)return s;t=1;const n=r().UnprocessableEntityError,i=e();return s=class{constructor(r,e){this.signer=e,this.sender=r}send(r){if(r.payload&&this.signer instanceof i){throw new n("Shared credentials cannot be used in batches with a length greater than 1 or when using the US Extract API.")}return new Promise(((e,s)=>{this.signer.sign(r),this.sender.send(r).then(e).catch(s)}))}}}export{n as __require};
@@ -1 +1 @@
1
- import{getDefaultExportFromCjs as t}from"./_virtual/_commonjsHelpers.mjs";var a=class{constructor(t,a){this.authId=t,this.authToken=a}sign(t){t.parameters["auth-id"]=this.authId,t.parameters["auth-token"]=this.authToken}},s=t(a);export{a as S,s as default};
1
+ var t,r;function a(){if(r)return t;r=1;return t=class{constructor(t,r){this.authId=t,this.authToken=r}sign(t){t.parameters["auth-id"]=this.authId,t.parameters["auth-token"]=this.authToken}}}export{a as __require};
@@ -1 +1 @@
1
- import{E as r}from"./Errors.mjs";const e=r;var a=class{constructor(r){this.sender=r}send(r){return new Promise(((a,s)=>{this.sender.send(r).then(a).catch((r=>{switch(r.statusCode){case 500:r.error=new e.InternalServerError;break;case 503:r.error=new e.ServiceUnavailableError;break;case 504:r.error=new e.GatewayTimeoutError;break;default:r.error=new e.DefaultError(r&&r.payload&&r.payload.errors[0]&&r.payload.errors[0].message)}s(r)}))}))}};export{a as S};
1
+ import{__require as r}from"./Errors.mjs";var e,a;function s(){if(a)return e;a=1;const s=r();return e=class{constructor(r){this.sender=r}send(r){return new Promise(((e,a)=>{this.sender.send(r).then(e).catch((r=>{switch(r.statusCode){case 500:r.error=new s.InternalServerError;break;case 503:r.error=new s.ServiceUnavailableError;break;case 504:r.error=new s.GatewayTimeoutError;break;default:r.error=new s.DefaultError(r&&r.payload&&r.payload.errors[0]&&r.payload.errors[0].message)}a(r)}))}))}}}export{s as __require};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as r}from"./_commonjsHelpers.mjs";import{__require as m}from"../Batch.mjs";var o=r(m());export{o as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as r}from"./_commonjsHelpers.mjs";import{__require as e}from"../us_street/Candidate.mjs";var m=r(e());export{m as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as r}from"./_commonjsHelpers.mjs";import{__require as e}from"../international_street/Candidate.mjs";var t=r(e());export{t as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as r}from"./_commonjsHelpers.mjs";import{__require as e}from"../ClientBuilder.mjs";var m=r(e());export{m as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as r}from"./_commonjsHelpers.mjs";import{__require as m}from"../Errors.mjs";var o=r(m());export{o as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as r}from"./_commonjsHelpers.mjs";import{__require as o}from"../us_street/Lookup.mjs";var e=r(o());export{e as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as o}from"./_commonjsHelpers.mjs";import{__require as r}from"../us_zipcode/Lookup.mjs";var m=o(r());export{m as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as o}from"./_commonjsHelpers.mjs";import{__require as r}from"../us_autocomplete_pro/Lookup.mjs";var m=o(r());export{m as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as r}from"./_commonjsHelpers.mjs";import{__require as o}from"../us_extract/Lookup.mjs";var m=r(o());export{m as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as r}from"./_commonjsHelpers.mjs";import{__require as o}from"../international_street/Lookup.mjs";var e=r(o());export{e as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as r}from"./_commonjsHelpers.mjs";import{__require as e}from"../us_reverse_geo/Lookup.mjs";var o=r(e());export{o as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as o}from"./_commonjsHelpers.mjs";import{__require as r}from"../international_address_autocomplete/Lookup.mjs";var e=o(r());export{e as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as r}from"./_commonjsHelpers.mjs";import{__require as m}from"../us_enrichment/Lookup.mjs";var o=r(m());export{o as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as e}from"./_commonjsHelpers.mjs";import{__require as r}from"../us_enrichment/Response.mjs";var m=e(r());export{m as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as r}from"./_commonjsHelpers.mjs";import{__require as e}from"../us_zipcode/Result.mjs";var m=r(e());export{m as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as r}from"./_commonjsHelpers.mjs";import{__require as e}from"../us_extract/Result.mjs";var m=r(e());export{m as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as r}from"./_commonjsHelpers.mjs";import{__require as e}from"../SharedCredentials.mjs";var m=r(e());export{m as default};
@@ -0,0 +1 @@
1
+ import*as m from"../util/Sleeper.mjs";import{getAugmentedNamespace as r}from"./_commonjsHelpers.mjs";var e=r(m);export{e as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as r}from"./_commonjsHelpers.mjs";import{__require as e}from"../StaticCredentials.mjs";var m=r(e());export{m as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as o}from"./_commonjsHelpers.mjs";import{__require as r}from"../us_autocomplete_pro/Suggestion.mjs";var e=o(r());export{e as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as e}from"./_commonjsHelpers.mjs";import{__require as o}from"../international_address_autocomplete/Suggestion.mjs";var r=e(o());export{r as default};
@@ -1 +1 @@
1
- function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function t(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})})),r}export{t as getAugmentedNamespace,e as getDefaultExportFromCjs};
1
+ function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function t(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})})),r}export{t as getAugmentedNamespace,e as getDefaultExportFromCjs};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as r}from"./_commonjsHelpers.mjs";import{__require as m}from"../util/buildClients.mjs";var e=r(m());export{e as default};
@@ -1 +1 @@
1
- import o from"./Batch.mjs";import t from"./ClientBuilder.mjs";import e from"./util/buildClients.mjs";import r from"./SharedCredentials.mjs";import m from"./StaticCredentials.mjs";import s from"./Errors.mjs";import i from"./us_street/Lookup.mjs";import u from"./us_street/Candidate.mjs";import p from"./us_zipcode/Lookup.mjs";import n from"./us_zipcode/Result.mjs";import a from"./us_autocomplete_pro/Lookup.mjs";import l from"./us_autocomplete_pro/Suggestion.mjs";import d from"./us_extract/Lookup.mjs";import f from"./us_extract/Result.mjs";import c from"./international_street/Lookup.mjs";import j from"./international_street/Candidate.mjs";import _ from"./us_reverse_geo/Lookup.mjs";import k from"./international_address_autocomplete/Lookup.mjs";import L from"./international_address_autocomplete/Suggestion.mjs";import C from"./us_enrichment/Lookup.mjs";import S from"./us_enrichment/Response.mjs";const g={Batch:o,ClientBuilder:t,buildClient:e,SharedCredentials:r,StaticCredentials:m,Errors:s},h={Lookup:i,Candidate:u},R={Lookup:p,Result:n},x={Lookup:a,Suggestion:l},B={Lookup:d,Result:f},E={Lookup:c,Candidate:j},v={Lookup:_},A={Lookup:k,Suggestion:L},b={Lookup:C,Response:S};var z={core:g,usStreet:h,usZipcode:R,usAutocompletePro:x,usExtract:B,internationalStreet:E,usReverseGeo:v,internationalAddressAutocomplete:A,usEnrichment:b};export{g as core,z as default,A as internationalAddressAutocomplete,E as internationalStreet,x as usAutocompletePro,b as usEnrichment,B as usExtract,v as usReverseGeo,h as usStreet,R as usZipcode};
1
+ import o from"./_virtual/Batch.mjs";import r from"./_virtual/ClientBuilder.mjs";import t from"./_virtual/buildClients.mjs";import i from"./_virtual/SharedCredentials.mjs";import m from"./_virtual/StaticCredentials.mjs";import u from"./_virtual/Errors.mjs";import e from"./_virtual/Lookup.mjs";import s from"./_virtual/Candidate.mjs";import a from"./_virtual/Lookup2.mjs";import p from"./_virtual/Result.mjs";import l from"./_virtual/Lookup3.mjs";import n from"./_virtual/Suggestion.mjs";import v from"./_virtual/Lookup4.mjs";import d from"./_virtual/Result2.mjs";import f from"./_virtual/Lookup5.mjs";import j from"./_virtual/Candidate2.mjs";import _ from"./_virtual/Lookup6.mjs";import k from"./_virtual/Lookup7.mjs";import L from"./_virtual/Suggestion2.mjs";import C from"./_virtual/Lookup8.mjs";import c from"./_virtual/Response.mjs";const S={Batch:o,ClientBuilder:r,buildClient:t,SharedCredentials:i,StaticCredentials:m,Errors:u},g={Lookup:e,Candidate:s},R={Lookup:a,Result:p},h={Lookup:l,Suggestion:n},B={Lookup:v,Result:d},E={Lookup:f,Candidate:j},A={Lookup:_},b={Lookup:k,Suggestion:L},x={Lookup:C,Response:c};var G={core:S,usStreet:g,usZipcode:R,usAutocompletePro:h,usExtract:B,internationalStreet:E,usReverseGeo:A,internationalAddressAutocomplete:b,usEnrichment:x};export{S as core,G as default,b as internationalAddressAutocomplete,E as internationalStreet,h as usAutocompletePro,x as usEnrichment,B as usExtract,A as usReverseGeo,g as usStreet,R as usZipcode};
@@ -1 +1 @@
1
- import{E as r}from"../Errors.mjs";import{R as s}from"../Request.mjs";import{S as e}from"./Suggestion.mjs";import{b as a}from"../util/buildInputData.mjs";import{a as t}from"../util/apiToSDKKeyMap.mjs";const o=r,n=s,d=e,i=a,m=t.internationalAddressAutocomplete;var p=class{constructor(r){this.sender=r}send(r){if(void 0===r)throw new o.UndefinedLookupError;let s=new n;return s.parameters=i(r,m),r.addressId&&(s.baseUrlParam=r.addressId),new Promise(((e,a)=>{this.sender.send(s).then((s=>{var t;s.error&&a(s.error),r.result=(t=s.payload)&&null===t.candidates?[]:t.candidates.map((r=>new d(r))),e(r)})).catch(a)}))}};export{p as C};
1
+ import{__require as r}from"../Errors.mjs";import{__require as e}from"../Request.mjs";import{__require as s}from"./Suggestion.mjs";import{__require as t}from"../util/buildInputData.mjs";import{__require as a}from"../util/apiToSDKKeyMap.mjs";var o,i;function n(){if(i)return o;i=1;const n=r(),d=e(),u=s(),m=t(),p=a().internationalAddressAutocomplete;return o=class{constructor(r){this.sender=r}send(r){if(void 0===r)throw new n.UndefinedLookupError;let e=new d;return e.parameters=m(r,p),r.addressId&&(e.baseUrlParam=r.addressId),new Promise(((s,t)=>{this.sender.send(e).then((e=>{var a;e.error&&t(e.error),r.result=(a=e.payload)&&null===a.candidates?[]:a.candidates.map((r=>new u(r))),s(r)})).catch(t)}))}}}export{n as __require};
@@ -1 +1 @@
1
- import{getDefaultExportFromCjs as s}from"../_virtual/_commonjsHelpers.mjs";var t=s(class{constructor({search:s,addressId:t,country:e,maxResults:a=5,includeOnlyLocality:r,includeOnlyPostalCode:l}={}){this.result=[],this.search=s,this.addressId=t,this.country=e,this.maxResults=a,this.includeOnlyLocality=r,this.includeOnlyPostalCode=l,this.customParameters={}}addCustomParameter(s,t){this.customParameters[s]=t}});export{t as default};
1
+ var s,t;function e(){if(t)return s;t=1;return s=class{constructor({search:s,addressId:t,country:e,maxResults:r=5,includeOnlyLocality:a,includeOnlyPostalCode:i}={}){this.result=[],this.search=s,this.addressId=t,this.country=e,this.maxResults=r,this.includeOnlyLocality=a,this.includeOnlyPostalCode=i,this.customParameters={}}addCustomParameter(s,t){this.customParameters[s]=t}}}export{e as __require};
@@ -1 +1 @@
1
- import{getDefaultExportFromCjs as t}from"../_virtual/_commonjsHelpers.mjs";var s=class{constructor(t){this.street=t.street,this.locality=t.locality,this.administrativeArea=t.administrative_area,this.administrativeAreaShort=t.administrative_area_short,this.administrativeAreaLong=t.administrative_area_long,this.postalCode=t.postal_code,this.countryIso3=t.country_iso3,this.entries=t.entries,this.addressText=t.address_text,this.addressId=t.address_id}},i=t(s);export{s as S,i as default};
1
+ var t,i;function s(){if(i)return t;i=1;return t=class{constructor(t){this.street=t.street,this.locality=t.locality,this.administrativeArea=t.administrative_area,this.administrativeAreaShort=t.administrative_area_short,this.administrativeAreaLong=t.administrative_area_long,this.postalCode=t.postal_code,this.countryIso3=t.country_iso3,this.entries=t.entries,this.addressText=t.address_text,this.addressId=t.address_id}}}export{s as __require};
@@ -1 +1 @@
1
- import{getDefaultExportFromCjs as s}from"../_virtual/_commonjsHelpers.mjs";var n=class{constructor(s){this.organization=s.organization,this.address1=s.address1,this.address2=s.address2,this.address3=s.address3,this.address4=s.address4,this.address5=s.address5,this.address6=s.address6,this.address7=s.address7,this.address8=s.address8,this.address9=s.address9,this.address10=s.address10,this.address11=s.address11,this.address12=s.address12,this.components={},void 0!==s.components&&(this.components.countryIso3=s.components.country_iso_3,this.components.superAdministrativeArea=s.components.super_administrative_area,this.components.administrativeArea=s.components.administrative_area,this.components.administrativeAreaIso2=s.components.administrative_area_iso2,this.components.administrativeAreaShort=s.components.administrative_area_short,this.components.administrativeAreaLong=s.components.administrative_area_long,this.components.subAdministrativeArea=s.components.sub_administrative_area,this.components.dependentLocality=s.components.dependent_locality,this.components.dependentLocalityName=s.components.dependent_locality_name,this.components.doubleDependentLocality=s.components.double_dependent_locality,this.components.locality=s.components.locality,this.components.postalCode=s.components.postal_code,this.components.postalCodeShort=s.components.postal_code_short,this.components.postalCodeExtra=s.components.postal_code_extra,this.components.premise=s.components.premise,this.components.premiseExtra=s.components.premise_extra,this.components.premisePrefixNumber=s.components.premise_prefix_number,this.components.premiseNumber=s.components.premise_number,this.components.premiseType=s.components.premise_type,this.components.thoroughfare=s.components.thoroughfare,this.components.thoroughfarePredirection=s.components.thoroughfare_predirection,this.components.thoroughfarePostdirection=s.components.thoroughfare_postdirection,this.components.thoroughfareName=s.components.thoroughfare_name,this.components.thoroughfareTrailingType=s.components.thoroughfare_trailing_type,this.components.thoroughfareType=s.components.thoroughfare_type,this.components.dependentThoroughfare=s.components.dependent_thoroughfare,this.components.dependentThoroughfarePredirection=s.components.dependent_thoroughfare_predirection,this.components.dependentThoroughfarePostdirection=s.components.dependent_thoroughfare_postdirection,this.components.dependentThoroughfareName=s.components.dependent_thoroughfare_name,this.components.dependentThoroughfareTrailingType=s.components.dependent_thoroughfare_trailing_type,this.components.dependentThoroughfareType=s.components.dependent_thoroughfare_type,this.components.building=s.components.building,this.components.buildingLeadingType=s.components.building_leading_type,this.components.buildingName=s.components.building_name,this.components.buildingTrailingType=s.components.building_trailing_type,this.components.subBuildingType=s.components.sub_building_type,this.components.subBuildingNumber=s.components.sub_building_number,this.components.subBuildingName=s.components.sub_building_name,this.components.subBuilding=s.components.sub_building,this.components.levelType=s.components.level_type,this.components.levelNumber=s.components.level_number,this.components.postBox=s.components.post_box,this.components.postBoxType=s.components.post_box_type,this.components.postBoxNumber=s.components.post_box_number,this.components.additionalContent=s.components.additional_content,this.components.deliveryInstallation=s.components.delivery_installation,this.components.deliveryInstallationType=s.components.delivery_installation_type,this.components.deliveryInstallationQualifierName=s.components.delivery_installation_qualifier_name,this.components.route=s.components.route,this.components.routeNumber=s.components.route_number,this.components.routeType=s.components.route_type),this.analysis={},void 0!==s.analysis&&(this.analysis.verificationStatus=s.analysis.verification_status,this.analysis.addressPrecision=s.analysis.address_precision,this.analysis.maxAddressPrecision=s.analysis.max_address_precision,this.analysis.changes={},void 0!==s.analysis.changes&&(this.analysis.changes.organization=s.analysis.changes.organization,this.analysis.changes.address1=s.analysis.changes.address1,this.analysis.changes.address2=s.analysis.changes.address2,this.analysis.changes.address3=s.analysis.changes.address3,this.analysis.changes.address4=s.analysis.changes.address4,this.analysis.changes.address5=s.analysis.changes.address5,this.analysis.changes.address6=s.analysis.changes.address6,this.analysis.changes.address7=s.analysis.changes.address7,this.analysis.changes.address8=s.analysis.changes.address8,this.analysis.changes.address9=s.analysis.changes.address9,this.analysis.changes.address10=s.analysis.changes.address10,this.analysis.changes.address11=s.analysis.changes.address11,this.analysis.changes.address12=s.analysis.changes.address12,this.analysis.changes.components={},void 0!==s.analysis.changes.components&&(this.analysis.changes.components.countryIso3=s.analysis.changes.components.country_iso_3,this.analysis.changes.components.superAdministrativeArea=s.analysis.changes.components.super_administrative_area,this.analysis.changes.components.administrativeArea=s.analysis.changes.components.administrative_area,this.analysis.changes.components.administrativeAreaIso2=s.analysis.changes.components.administrative_area_iso2,this.analysis.changes.components.administrativeAreaShort=s.analysis.changes.components.administrative_area_short,this.analysis.changes.components.administrativeAreaLong=s.analysis.changes.components.administrative_area_long,this.analysis.changes.components.subAdministrativeArea=s.analysis.changes.components.sub_administrative_area,this.analysis.changes.components.dependentLocality=s.analysis.changes.components.dependent_locality,this.analysis.changes.components.dependentLocalityName=s.analysis.changes.components.dependent_locality_name,this.analysis.changes.components.doubleDependentLocality=s.analysis.changes.components.double_dependent_locality,this.analysis.changes.components.locality=s.analysis.changes.components.locality,this.analysis.changes.components.postalCode=s.analysis.changes.components.postal_code,this.analysis.changes.components.postalCodeShort=s.analysis.changes.components.postal_code_short,this.analysis.changes.components.postalCodeExtra=s.analysis.changes.components.postal_code_extra,this.analysis.changes.components.premise=s.analysis.changes.components.premise,this.analysis.changes.components.premiseExtra=s.analysis.changes.components.premise_extra,this.analysis.changes.components.premisePrefixNumber=s.analysis.changes.components.premise_prefix_number,this.analysis.changes.components.premiseNumber=s.analysis.changes.components.premise_number,this.analysis.changes.components.premiseType=s.analysis.changes.components.premise_type,this.analysis.changes.components.thoroughfare=s.analysis.changes.components.thoroughfare,this.analysis.changes.components.thoroughfarePredirection=s.analysis.changes.components.thoroughfare_predirection,this.analysis.changes.components.thoroughfarePostdirection=s.analysis.changes.components.thoroughfare_postdirection,this.analysis.changes.components.thoroughfareName=s.analysis.changes.components.thoroughfare_name,this.analysis.changes.components.thoroughfareTrailingType=s.analysis.changes.components.thoroughfare_trailing_type,this.analysis.changes.components.thoroughfareType=s.analysis.changes.components.thoroughfare_type,this.analysis.changes.components.dependentThoroughfare=s.analysis.changes.components.dependent_thoroughfare,this.analysis.changes.components.dependentThoroughfarePredirection=s.analysis.changes.components.dependent_thoroughfare_predirection,this.analysis.changes.components.dependentThoroughfarePostdirection=s.analysis.changes.components.dependent_thoroughfare_postdirection,this.analysis.changes.components.dependentThoroughfareName=s.analysis.changes.components.dependent_thoroughfare_name,this.analysis.changes.components.dependentThoroughfareTrailingType=s.analysis.changes.components.dependent_thoroughfare_trailing_type,this.analysis.changes.components.dependentThoroughfareType=s.analysis.changes.components.dependent_thoroughfare_type,this.analysis.changes.components.building=s.analysis.changes.components.building,this.analysis.changes.components.buildingLeadingType=s.analysis.changes.components.building_leading_type,this.analysis.changes.components.buildingName=s.analysis.changes.components.building_name,this.analysis.changes.components.buildingTrailingType=s.analysis.changes.components.building_trailing_type,this.analysis.changes.components.subBuildingType=s.analysis.changes.components.sub_building_type,this.analysis.changes.components.subBuildingNumber=s.analysis.changes.components.sub_building_number,this.analysis.changes.components.subBuildingName=s.analysis.changes.components.sub_building_name,this.analysis.changes.components.subBuilding=s.analysis.changes.components.sub_building,this.analysis.changes.components.levelType=s.analysis.changes.components.level_type,this.analysis.changes.components.levelNumber=s.analysis.changes.components.level_number,this.analysis.changes.components.postBox=s.analysis.changes.components.post_box,this.analysis.changes.components.postBoxType=s.analysis.changes.components.post_box_type,this.analysis.changes.components.postBoxNumber=s.analysis.changes.components.post_box_number))),this.metadata={},void 0!==s.metadata&&(this.metadata.latitude=s.metadata.latitude,this.metadata.longitude=s.metadata.longitude,this.metadata.geocodePrecision=s.metadata.geocode_precision,this.metadata.maxGeocodePrecision=s.metadata.max_geocode_precision,this.metadata.addressFormat=s.metadata.address_format)}},e=s(n);export{n as C,e as default};
1
+ var s,n;function e(){if(n)return s;n=1;return s=class{constructor(s){this.organization=s.organization,this.address1=s.address1,this.address2=s.address2,this.address3=s.address3,this.address4=s.address4,this.address5=s.address5,this.address6=s.address6,this.address7=s.address7,this.address8=s.address8,this.address9=s.address9,this.address10=s.address10,this.address11=s.address11,this.address12=s.address12,this.components={},void 0!==s.components&&(this.components.countryIso3=s.components.country_iso_3,this.components.superAdministrativeArea=s.components.super_administrative_area,this.components.administrativeArea=s.components.administrative_area,this.components.administrativeAreaIso2=s.components.administrative_area_iso2,this.components.administrativeAreaShort=s.components.administrative_area_short,this.components.administrativeAreaLong=s.components.administrative_area_long,this.components.subAdministrativeArea=s.components.sub_administrative_area,this.components.dependentLocality=s.components.dependent_locality,this.components.dependentLocalityName=s.components.dependent_locality_name,this.components.doubleDependentLocality=s.components.double_dependent_locality,this.components.locality=s.components.locality,this.components.postalCode=s.components.postal_code,this.components.postalCodeShort=s.components.postal_code_short,this.components.postalCodeExtra=s.components.postal_code_extra,this.components.premise=s.components.premise,this.components.premiseExtra=s.components.premise_extra,this.components.premisePrefixNumber=s.components.premise_prefix_number,this.components.premiseNumber=s.components.premise_number,this.components.premiseType=s.components.premise_type,this.components.thoroughfare=s.components.thoroughfare,this.components.thoroughfarePredirection=s.components.thoroughfare_predirection,this.components.thoroughfarePostdirection=s.components.thoroughfare_postdirection,this.components.thoroughfareName=s.components.thoroughfare_name,this.components.thoroughfareTrailingType=s.components.thoroughfare_trailing_type,this.components.thoroughfareType=s.components.thoroughfare_type,this.components.dependentThoroughfare=s.components.dependent_thoroughfare,this.components.dependentThoroughfarePredirection=s.components.dependent_thoroughfare_predirection,this.components.dependentThoroughfarePostdirection=s.components.dependent_thoroughfare_postdirection,this.components.dependentThoroughfareName=s.components.dependent_thoroughfare_name,this.components.dependentThoroughfareTrailingType=s.components.dependent_thoroughfare_trailing_type,this.components.dependentThoroughfareType=s.components.dependent_thoroughfare_type,this.components.building=s.components.building,this.components.buildingLeadingType=s.components.building_leading_type,this.components.buildingName=s.components.building_name,this.components.buildingTrailingType=s.components.building_trailing_type,this.components.subBuildingType=s.components.sub_building_type,this.components.subBuildingNumber=s.components.sub_building_number,this.components.subBuildingName=s.components.sub_building_name,this.components.subBuilding=s.components.sub_building,this.components.levelType=s.components.level_type,this.components.levelNumber=s.components.level_number,this.components.postBox=s.components.post_box,this.components.postBoxType=s.components.post_box_type,this.components.postBoxNumber=s.components.post_box_number,this.components.additionalContent=s.components.additional_content,this.components.deliveryInstallation=s.components.delivery_installation,this.components.deliveryInstallationType=s.components.delivery_installation_type,this.components.deliveryInstallationQualifierName=s.components.delivery_installation_qualifier_name,this.components.route=s.components.route,this.components.routeNumber=s.components.route_number,this.components.routeType=s.components.route_type),this.analysis={},void 0!==s.analysis&&(this.analysis.verificationStatus=s.analysis.verification_status,this.analysis.addressPrecision=s.analysis.address_precision,this.analysis.maxAddressPrecision=s.analysis.max_address_precision,this.analysis.changes={},void 0!==s.analysis.changes&&(this.analysis.changes.organization=s.analysis.changes.organization,this.analysis.changes.address1=s.analysis.changes.address1,this.analysis.changes.address2=s.analysis.changes.address2,this.analysis.changes.address3=s.analysis.changes.address3,this.analysis.changes.address4=s.analysis.changes.address4,this.analysis.changes.address5=s.analysis.changes.address5,this.analysis.changes.address6=s.analysis.changes.address6,this.analysis.changes.address7=s.analysis.changes.address7,this.analysis.changes.address8=s.analysis.changes.address8,this.analysis.changes.address9=s.analysis.changes.address9,this.analysis.changes.address10=s.analysis.changes.address10,this.analysis.changes.address11=s.analysis.changes.address11,this.analysis.changes.address12=s.analysis.changes.address12,this.analysis.changes.components={},void 0!==s.analysis.changes.components&&(this.analysis.changes.components.countryIso3=s.analysis.changes.components.country_iso_3,this.analysis.changes.components.superAdministrativeArea=s.analysis.changes.components.super_administrative_area,this.analysis.changes.components.administrativeArea=s.analysis.changes.components.administrative_area,this.analysis.changes.components.administrativeAreaIso2=s.analysis.changes.components.administrative_area_iso2,this.analysis.changes.components.administrativeAreaShort=s.analysis.changes.components.administrative_area_short,this.analysis.changes.components.administrativeAreaLong=s.analysis.changes.components.administrative_area_long,this.analysis.changes.components.subAdministrativeArea=s.analysis.changes.components.sub_administrative_area,this.analysis.changes.components.dependentLocality=s.analysis.changes.components.dependent_locality,this.analysis.changes.components.dependentLocalityName=s.analysis.changes.components.dependent_locality_name,this.analysis.changes.components.doubleDependentLocality=s.analysis.changes.components.double_dependent_locality,this.analysis.changes.components.locality=s.analysis.changes.components.locality,this.analysis.changes.components.postalCode=s.analysis.changes.components.postal_code,this.analysis.changes.components.postalCodeShort=s.analysis.changes.components.postal_code_short,this.analysis.changes.components.postalCodeExtra=s.analysis.changes.components.postal_code_extra,this.analysis.changes.components.premise=s.analysis.changes.components.premise,this.analysis.changes.components.premiseExtra=s.analysis.changes.components.premise_extra,this.analysis.changes.components.premisePrefixNumber=s.analysis.changes.components.premise_prefix_number,this.analysis.changes.components.premiseNumber=s.analysis.changes.components.premise_number,this.analysis.changes.components.premiseType=s.analysis.changes.components.premise_type,this.analysis.changes.components.thoroughfare=s.analysis.changes.components.thoroughfare,this.analysis.changes.components.thoroughfarePredirection=s.analysis.changes.components.thoroughfare_predirection,this.analysis.changes.components.thoroughfarePostdirection=s.analysis.changes.components.thoroughfare_postdirection,this.analysis.changes.components.thoroughfareName=s.analysis.changes.components.thoroughfare_name,this.analysis.changes.components.thoroughfareTrailingType=s.analysis.changes.components.thoroughfare_trailing_type,this.analysis.changes.components.thoroughfareType=s.analysis.changes.components.thoroughfare_type,this.analysis.changes.components.dependentThoroughfare=s.analysis.changes.components.dependent_thoroughfare,this.analysis.changes.components.dependentThoroughfarePredirection=s.analysis.changes.components.dependent_thoroughfare_predirection,this.analysis.changes.components.dependentThoroughfarePostdirection=s.analysis.changes.components.dependent_thoroughfare_postdirection,this.analysis.changes.components.dependentThoroughfareName=s.analysis.changes.components.dependent_thoroughfare_name,this.analysis.changes.components.dependentThoroughfareTrailingType=s.analysis.changes.components.dependent_thoroughfare_trailing_type,this.analysis.changes.components.dependentThoroughfareType=s.analysis.changes.components.dependent_thoroughfare_type,this.analysis.changes.components.building=s.analysis.changes.components.building,this.analysis.changes.components.buildingLeadingType=s.analysis.changes.components.building_leading_type,this.analysis.changes.components.buildingName=s.analysis.changes.components.building_name,this.analysis.changes.components.buildingTrailingType=s.analysis.changes.components.building_trailing_type,this.analysis.changes.components.subBuildingType=s.analysis.changes.components.sub_building_type,this.analysis.changes.components.subBuildingNumber=s.analysis.changes.components.sub_building_number,this.analysis.changes.components.subBuildingName=s.analysis.changes.components.sub_building_name,this.analysis.changes.components.subBuilding=s.analysis.changes.components.sub_building,this.analysis.changes.components.levelType=s.analysis.changes.components.level_type,this.analysis.changes.components.levelNumber=s.analysis.changes.components.level_number,this.analysis.changes.components.postBox=s.analysis.changes.components.post_box,this.analysis.changes.components.postBoxType=s.analysis.changes.components.post_box_type,this.analysis.changes.components.postBoxNumber=s.analysis.changes.components.post_box_number))),this.metadata={},void 0!==s.metadata&&(this.metadata.latitude=s.metadata.latitude,this.metadata.longitude=s.metadata.longitude,this.metadata.geocodePrecision=s.metadata.geocode_precision,this.metadata.maxGeocodePrecision=s.metadata.max_geocode_precision,this.metadata.addressFormat=s.metadata.address_format)}}}export{e as __require};
@@ -1 +1 @@
1
- import{R as r}from"../Request.mjs";import{E as e}from"../Errors.mjs";import{C as t}from"./Candidate.mjs";import{b as o}from"../util/buildInputData.mjs";import{a as s}from"../util/apiToSDKKeyMap.mjs";const a=r,n=e,i=t,m=o,p=s.internationalStreet;var u=class{constructor(r){this.sender=r}send(r){if(void 0===r)throw new n.UndefinedLookupError;let e=new a;return e.parameters=m(r,p),new Promise(((t,o)=>{this.sender.send(e).then((e=>{e.error&&o(e.error),t(function(r,e){return r.payload.map((r=>{e.result.push(new i(r))})),e}(e,r))})).catch(o)}))}};export{u as C};
1
+ import{__require as r}from"../Request.mjs";import{__require as e}from"../Errors.mjs";import{__require as t}from"./Candidate.mjs";import{__require as o}from"../util/buildInputData.mjs";import{__require as i}from"../util/apiToSDKKeyMap.mjs";var s,n;function a(){if(n)return s;n=1;const a=r(),u=e(),m=t(),p=o(),_=i().internationalStreet;return s=class{constructor(r){this.sender=r}send(r){if(void 0===r)throw new u.UndefinedLookupError;let e=new a;return e.parameters=p(r,_),new Promise(((t,o)=>{this.sender.send(e).then((e=>{e.error&&o(e.error),t(function(r,e){return r.payload.map((r=>{e.result.push(new m(r))})),e}(e,r))})).catch(o)}))}}}export{a as __require};
@@ -1 +1 @@
1
- import{getDefaultExportFromCjs as t}from"../_virtual/_commonjsHelpers.mjs";import{E as e}from"../Errors.mjs";const i=e.UnprocessableEntityError,r="Country field is required.",s="Either freeform or address1 is required.",o="Insufficient information: One or more required fields were not set on the lookup.",n="Invalid input: geocode can only be set to 'true' (default is 'false'.",a="Invalid input: language can only be set to 'latin' or 'native'. When not set, the the output language will match the language of the input values.";function u(t){if(!t)return!0;return t.replace(/\s/g,"").length<1}function h(t){return!u(t)}var d=t(class{constructor(t,e){this.result=[],this.country=t,this.freeform=e,this.address1=void 0,this.address2=void 0,this.address3=void 0,this.address4=void 0,this.organization=void 0,this.locality=void 0,this.administrativeArea=void 0,this.postalCode=void 0,this.geocode=void 0,this.language=void 0,this.inputId=void 0,this.ensureEnoughInfo=this.ensureEnoughInfo.bind(this),this.ensureValidData=this.ensureValidData.bind(this),this.customParameters={}}addCustomParameter(t,e){this.customParameters[t]=e}ensureEnoughInfo(){if(u(this.country))throw new i(r);if(h(this.freeform))return!0;if(u(this.address1))throw new i(s);if(h(this.postalCode))return!0;if(u(this.locality)||u(this.administrativeArea))throw new i(o);return!0}ensureValidData(){if((()=>h(this.geocode)&&"true"!==this.geocode.toLowerCase())())throw new i(n);if((()=>{let t=t=>this.language.toLowerCase()===t;return h(this.language)&&!(t("latin")||t("native"))})())throw new i(a);return!0}});export{d as default};
1
+ import{__require as e}from"../Errors.mjs";var t,i;function r(){if(i)return t;i=1;const r=e().UnprocessableEntityError,s="Country field is required.",o="Either freeform or address1 is required.",n="Insufficient information: One or more required fields were not set on the lookup.",a="Invalid input: geocode can only be set to 'true' (default is 'false'.",u="Invalid input: language can only be set to 'latin' or 'native'. When not set, the the output language will match the language of the input values.";function h(e){if(!e)return!0;return e.replace(/\s/g,"").length<1}function d(e){return!h(e)}return t=class{constructor(e,t){this.result=[],this.country=e,this.freeform=t,this.address1=void 0,this.address2=void 0,this.address3=void 0,this.address4=void 0,this.organization=void 0,this.locality=void 0,this.administrativeArea=void 0,this.postalCode=void 0,this.geocode=void 0,this.language=void 0,this.inputId=void 0,this.ensureEnoughInfo=this.ensureEnoughInfo.bind(this),this.ensureValidData=this.ensureValidData.bind(this),this.customParameters={}}addCustomParameter(e,t){this.customParameters[e]=t}ensureEnoughInfo(){if(h(this.country))throw new r(s);if(d(this.freeform))return!0;if(h(this.address1))throw new r(o);if(d(this.postalCode))return!0;if(h(this.locality)||h(this.administrativeArea))throw new r(n);return!0}ensureValidData(){if((()=>d(this.geocode)&&"true"!==this.geocode.toLowerCase())())throw new r(a);if((()=>{let e=e=>this.language.toLowerCase()===e;return d(this.language)&&!(e("latin")||e("native"))})())throw new r(u);return!0}}}export{r as __require};
@@ -1 +1 @@
1
- var a="6.3.2",e={version:a};export{e as default,a as version};
1
+ var a="7.0.0",e={version:a};export{e as default,a as version};
@@ -1 +1 @@
1
- import{E as r}from"../Errors.mjs";import{R as s}from"../Request.mjs";import{S as o}from"./Suggestion.mjs";import{b as e}from"../util/buildInputData.mjs";import{a as t}from"../util/apiToSDKKeyMap.mjs";const a=r,m=s,n=o,i=e,u=t.usAutocompletePro;var p=class{constructor(r){this.sender=r}send(r){if(void 0===r)throw new a.UndefinedLookupError;let s=new m;return s.parameters=i(r,u),new Promise(((o,e)=>{this.sender.send(s).then((s=>{var t;s.error&&e(s.error),r.result=null===(t=s.payload).suggestions?[]:t.suggestions.map((r=>new n(r))),o(r)})).catch(e)}))}};export{p as C};
1
+ import{__require as r}from"../Errors.mjs";import{__require as e}from"../Request.mjs";import{__require as s}from"./Suggestion.mjs";import{__require as o}from"../util/buildInputData.mjs";import{__require as t}from"../util/apiToSDKKeyMap.mjs";var i,u;function n(){if(u)return i;u=1;const n=r(),a=e(),m=s(),p=o(),_=t().usAutocompletePro;return i=class{constructor(r){this.sender=r}send(r){if(void 0===r)throw new n.UndefinedLookupError;let e=new a;return e.parameters=p(r,_),new Promise(((s,o)=>{this.sender.send(e).then((e=>{var t;e.error&&o(e.error),r.result=null===(t=e.payload).suggestions?[]:t.suggestions.map((r=>new m(r))),s(r)})).catch(o)}))}}}export{n as __require};
@@ -1 +1 @@
1
- import{getDefaultExportFromCjs as s}from"../_virtual/_commonjsHelpers.mjs";var t=s(class{constructor(s){this.result=[],this.search=s,this.selected=void 0,this.maxResults=void 0,this.includeOnlyCities=[],this.includeOnlyStates=[],this.includeOnlyZIPCodes=[],this.excludeStates=[],this.preferCities=[],this.preferStates=[],this.preferZIPCodes=[],this.preferRatio=void 0,this.preferGeolocation=void 0,this.source=void 0,this.customParameters={}}addCustomParameter(s,t){this.customParameters[s]=t}});export{t as default};
1
+ var e,t;function s(){if(t)return e;t=1;return e=class{constructor(e){this.result=[],this.search=e,this.selected=void 0,this.maxResults=void 0,this.includeOnlyCities=[],this.includeOnlyStates=[],this.includeOnlyZIPCodes=[],this.excludeStates=[],this.preferCities=[],this.preferStates=[],this.preferZIPCodes=[],this.preferRatio=void 0,this.preferGeolocation=void 0,this.source=void 0,this.customParameters={}}addCustomParameter(e,t){this.customParameters[e]=t}}}export{s as __require};
@@ -1 +1 @@
1
- import{getDefaultExportFromCjs as s}from"../_virtual/_commonjsHelpers.mjs";var t=class{constructor(s){this.streetLine=s.street_line,this.secondary=s.secondary,this.city=s.city,this.state=s.state,this.zipcode=s.zipcode,this.entries=s.entries,s.source&&(this.source=s.source)}},e=s(t);export{t as S,e as default};
1
+ var t,e;function s(){if(e)return t;e=1;return t=class{constructor(t){this.streetLine=t.street_line,this.secondary=t.secondary,this.city=t.city,this.state=t.state,this.zipcode=t.zipcode,this.entries=t.entries,t.source&&(this.source=t.source)}}}export{s as __require};
@@ -1 +1 @@
1
- import{E as r}from"../Errors.mjs";import{R as e}from"../Request.mjs";import{b as n}from"../util/buildInputData.mjs";import{a as o}from"../util/apiToSDKKeyMap.mjs";const s=r,a=e,t=n,{usEnrichment:i}=o;var d=class{constructor(r){this.sender=r}sendPrincipal(r){if(void 0===r)throw new s.UndefinedLookupError;let e=new a;return e.parameters=t(r,i),e.baseUrlParam=r.smartyKey+"/property/principal",new Promise(((n,o)=>{this.sender.send(e).then((e=>{e.error&&o(e.error),r.response=e.payload,n(r)})).catch(o)}))}sendFinancial(r){if(void 0===r)throw new s.UndefinedLookupError;let e=new a;return e.parameters=t(r,i),e.baseUrlParam=r.smartyKey+"/property/financial",new Promise(((n,o)=>{this.sender.send(e).then((e=>{e.error&&o(e.error),r.response=e.payload,n(r)})).catch(o)}))}sendGeo(r){if(void 0===r)throw new s.UndefinedLookupError;let e=new a;return e.parameters=t(r,i),e.baseUrlParam=r.smartyKey+"/geo-reference",new Promise(((n,o)=>{this.sender.send(e).then((e=>{e.error&&o(e.error),r.response=e.payload,n(r)})).catch(o)}))}sendSecondary(r){if(void 0===r)throw new s.UndefinedLookupError;let e=new a;return e.parameters=t(r,i),e.baseUrlParam=r.smartyKey+"/secondary",new Promise(((n,o)=>{this.sender.send(e).then((e=>{e.error&&o(e.error),r.response=e.payload,n(r)})).catch(o)}))}sendSecondaryCount(r){if(void 0===r)throw new s.UndefinedLookupError;let e=new a;return e.parameters=t(r,i),e.baseUrlParam=r.smartyKey+"/secondary/count",new Promise(((n,o)=>{this.sender.send(e).then((e=>{e.error&&o(e.error),r.response=e.payload,n(r)})).catch(o)}))}};export{d as C};
1
+ import{__require as r}from"../Errors.mjs";import{__require as e}from"../Request.mjs";import{__require as n}from"../util/buildInputData.mjs";import{__require as o}from"../util/apiToSDKKeyMap.mjs";var s,a;function t(){if(a)return s;a=1;const t=r(),i=e(),d=n(),{usEnrichment:p}=o();return s=class{constructor(r){this.sender=r}sendPrincipal(r){if(void 0===r)throw new t.UndefinedLookupError;let e=new i;return e.parameters=d(r,p),e.baseUrlParam=r.smartyKey+"/property/principal",new Promise(((n,o)=>{this.sender.send(e).then((e=>{e.error&&o(e.error),r.response=e.payload,n(r)})).catch(o)}))}sendFinancial(r){if(void 0===r)throw new t.UndefinedLookupError;let e=new i;return e.parameters=d(r,p),e.baseUrlParam=r.smartyKey+"/property/financial",new Promise(((n,o)=>{this.sender.send(e).then((e=>{e.error&&o(e.error),r.response=e.payload,n(r)})).catch(o)}))}sendGeo(r){if(void 0===r)throw new t.UndefinedLookupError;let e=new i;return e.parameters=d(r,p),e.baseUrlParam=r.smartyKey+"/geo-reference",new Promise(((n,o)=>{this.sender.send(e).then((e=>{e.error&&o(e.error),r.response=e.payload,n(r)})).catch(o)}))}sendSecondary(r){if(void 0===r)throw new t.UndefinedLookupError;let e=new i;return e.parameters=d(r,p),e.baseUrlParam=r.smartyKey+"/secondary",new Promise(((n,o)=>{this.sender.send(e).then((e=>{e.error&&o(e.error),r.response=e.payload,n(r)})).catch(o)}))}sendSecondaryCount(r){if(void 0===r)throw new t.UndefinedLookupError;let e=new i;return e.parameters=d(r,p),e.baseUrlParam=r.smartyKey+"/secondary/count",new Promise(((n,o)=>{this.sender.send(e).then((e=>{e.error&&o(e.error),r.response=e.payload,n(r)})).catch(o)}))}}}export{t as __require};
@@ -1 +1 @@
1
- import{getDefaultExportFromCjs as s}from"../_virtual/_commonjsHelpers.mjs";var t=s(class{constructor(s,t,e,a,r){this.smartyKey=s,this.include=t,this.exclude=e,this.dataset=a,this.dataSubset=r,this.response={},this.customParameters={}}addCustomParameter(s,t){this.customParameters[s]=t}});export{t as default};
1
+ var t,s;function e(){if(s)return t;s=1;return t=class{constructor(t,s,e,r,a){this.smartyKey=t,this.include=s,this.exclude=e,this.dataset=r,this.dataSubset=a,this.response={},this.customParameters={}}addCustomParameter(t,s){this.customParameters[t]=s}}}export{e as __require};