Problem
runPDFIngestion is currently located in filesystem.tsx even though it's an api call. The PdfIngestion types also live along with our internal types.
Solution
We should create an api folder containing api call functions and the types (that could be an autogenerated file in the future: #19).
Internal types should be decoupled from API types so nothing outside of this api folder should rely on the API types
Problem
runPDFIngestionis currently located infilesystem.tsxeven though it's an api call. The PdfIngestion types also live along with our internal types.Solution
We should create an
apifolder containing api call functions and the types (that could be an autogenerated file in the future: #19).Internal types should be decoupled from API types so nothing outside of this api folder should rely on the API types