Add additional corp types to entity type mapping, and convert to entity type as needed.
Basically, every legalType passed in the entities search query string inbusiness-lookup-services.ts needs to be a valid entity type in namex. When it is not, we need to convert the corp type to a valid entity type before posting it to namex. This should also fix bcgov/entity#17780 and bcgov/entity#17791.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namerequest license (Apache 2.0).
Issue #: /bcgov/entity#17692
Description of changes:
legalType
passed in the entities search query string inbusiness-lookup-services.ts
needs to be a valid entity type in namex. When it is not, we need to convert the corp type to a valid entity type before posting it to namex. This should also fix bcgov/entity#17780 and bcgov/entity#17791.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namerequest license (Apache 2.0).