Add missing type parameter annotations to useMutation/useQuery
Summary: Found a few places in code where we don't have type annotations on useMutation and useQuery, adding them here and fixing type errors that surface.
Test Plan: yarn ts
Reviewers: bengotow, sashank, prha
Reviewed By: sashank
Differential Revision: https://dagster.phacility.com/D5345