fetchUserEnrichments

Function

Fetch enrichments for Users

Parameters

Parameter Type Default Notes
user Required IUser
enrichments Required UserEnrichment[]
requestOptions Optional IHubRequestOptions

Available requestOptions

Property Type Notes
authentication Optional ArcGISIdentityManager
fetch Optional function(input: RequestInfo, init: RequestInit) : Promise<Response>

The implementation of fetch to use. Defaults to a global fetch.

hubApiUrl Optional string
isPortal Optional boolean
portalSelf Optional IHubRequestOptionsPortalSelf

Returns

Property Type Notes
user IUser
errors Optional Inherited IEnrichmentErrorInfo[]

Any errors encountered when fetching enrichments see https://github.com/ArcGIS/hub-indexer/blob/master/docs/errors.md#response-formatting-for-errors

org Optional Inherited IPortal

Function defined in common/src/users/_internal/enrichments.ts:136