import { IExtent } from "@esri/arcgis-rest-types" ; import { request , IRequestOptions } from "@esri/arcgis-rest-request" ; import { getPortalUrl } from "./get-portal-url" ; export interface IPortalSettings { allowedRedirectUris : string [ ] ; defaultExtent : IExtent ; helperServices : { [ key ] : any ; } ; informationalBanner : { [ key ] : any ; } ; [ key ] : any ; } param id param requestOptions export function getPortalSettings ( id ? , requestOptions ? ) { const idOrSelf = id ? id : "self" ; const url = `${ getPortalUrl ( requestOptions ) }/portals/${ idOrSelf }/settings` ; const options = { ... { httpMethod : "GET" } , ... requestOptions } ; return request ( url , options ) ; }