import { IItem } from "@esri/arcgis-rest-types" ; import { IHubRequestOptions , upgradeSiteSchema } from "@esri/hub-common" ; import { getItemData } from "@esri/arcgis-rest-portal" ; param { Object } item param { IHubRequestOptions } hubRequestOptions export function getDataForSiteItem ( item , hubRequestOptions ) { return getItemData ( item . id , hubRequestOptions ) . then ( ( data ) => { return upgradeSiteSchema ( { item , data , } ) ; } ) ; }