NYCPlanning / deprecated-labs-zap-api

Deprecated version of the ZAP API, see https://github.com/NYCPlanning/labs-zap-api
Other
5 stars 3 forks source link

Refactor action type lookup to be more reusable #117

Open ghost opened 5 years ago

ghost commented 5 years ago

action type lookup currently exports a Transform stream, which makes it only compatible with the csv download that uses streams.

extract the lookup logic & export that, so it can be used in a transform stream for csv download and applied as a mapping for other download types which compose & return a full object (no streaming)