peopledatalabs-js icon indicating copy to clipboard operation
peopledatalabs-js copied to clipboard

Add matched type in PersonEnrichmentResponse interface

Open muzzamilr opened this issue 2 months ago • 0 comments

Description of the change

  • Update the PersonEnrichmentResponse interface by adding "matched" type, because person enrichment api returns matched array of strings when passed a param 'include_if_matched: true' and it's type was not proper in the sdk and I was unable to destructure "matched" or use it like response.matched in typescript.

https://docs.peopledatalabs.com/docs/output-response-person-enrichment-api#matched

Screenshot from 2024-04-23 20-06-38

Type of change

  • [x] Bug fix (non-breaking change that fixes an issue)
  • [ ] Chore (cleanup or minor QOL tweak that has little to no impact on functionality)
  • [ ] New feature (non-breaking change that adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

muzzamilr avatar Apr 23 '24 17:04 muzzamilr