fetchGroupEnrichments

Function

Fetch enrichments for Groups

Parameters

Parameter Type Default Notes
group Required IGroup
enrichments Required GroupEnrichment[]
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
group IGroup
contentCount Optional Inherited number
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

membershipAccess Optional Inherited "org" | "collaboration" | "none"

Represents who can become members of the group. This is separate from the access field, which represents who can see the group.

membershipSummary Optional Inherited IGroupMembershipSummary
userMembership Optional Inherited GroupMembership

Function defined in common/src/groups/_internal/enrichments.ts:190