Add isFile to publishExternalAPI

It seems to be missing from the external api. I'd rather not unnecessarily duplicate the same code in my code, so just make yours public.

Also moved version down one to group isDate with the rest of the code.