basic support for automatically generating queries
moved API to a type synonym of the APIT transformer