Rather than refactor all of the react query logic to be a whole "layer" on top of the API to provide type safety to the frontend, and constantly keep the types up to date, it is probably quicker and easier in the long run to refactor the whole thing to use tRPC