• Gets the data information of an AGO item in its raw (Blob) form and casts it as a file using the supplied name.

    Parameters

    • itemId: string

      Id of an item whose data information is sought

    • filename: string

      Name to use for file

    • authentication: UserSession

      Credentials for the request to AGO

    Returns Promise<File>

    Promise that will resolve with a File, undefined if the Blob is null, or an AGO-style JSON failure response