Convert a Hub API dataset resource to Hub Content


Parameter Type Default Notes
dataset Required DatasetResource


Hub content object

Property Type Notes
isDownloadable boolean

Whether the content is downloadable in the Hub app

permissions {

Content visibility and access control, including groups

publishedDate Date

Date the content was published (formal metadata), defaults to the date the content was created

createdDate Inherited Date

Date the item was created

hubType Inherited HubType

Type of Hub resource

name Inherited string

Generic term for the primary label (title, fullname, username, etc.)

updatedDate Inherited Date

Date the item was last updated

data Optional [key: string]: any

The item data associated w/ most types of content the format of the data depends on the item type

errors Optional IEnrichmentErrorInfo[]

Any errors encountered when indexing or composing the content see

family Optional HubFamily
groupIds Optional string[]

The ids of any groups that the item belongs to

hubActions Optional object

Configure which Hub application actions (i.e. create web map) are available for this content

hubId Optional string

The content's ID for use with the Hub API For most content this will be the item's id For layers this will be <itemId>_<layerId> This will be undefined for private items and in enterprise because only public online items are included in the Hub API

itemCategories Optional string[]

Item categories are the original, non-flattened item category strings.

layer Optional Partial<ILayerDefinition>

layer information (geometryType, fields, etc)

layers Optional Array<Partial<ILayerDefinition>>

layer information (geometryType, fields, etc) for related layers in the service

metrics Optional {
Visibility | "updateGroups"
normalizedType Optional string

The normalized item type (we run normalizeItemType on the item in order to compute this prop)

org Optional Partial<IPortal>

The owner's organization (portal) details (id, name, extent, etc)

orgId Optional string

The owner's organization id

portalDataUrl Optional string

URL of the Portal API data endpoint for the resource

publishedDateSource Optional string

Description of the source of the published date

recordCount Optional number
server Optional Partial<IFeatureServiceDefinition>

service information (currentVersion, capabilities, maxRecordCount etc)

slug Optional string

The content's unique URL slug in the Hub app

structuredLicense Optional IStructuredLicense

The content's structured license info

updateFrequency Optional string
boundary Optional Inherited IHubGeography

boundary will default to the item extent but can be overwritten by enrichments from the Hub API (inline) or fetched from a location such as /resources/boundary.json

createdDateSource Optional Inherited string

description of what was used for this attribute the item key, e.g. item.created or item.metadata.created_date

metadata Optional Inherited any

Additional metadata from a metadata document using a formal or custom schema. For example, item metadata in ArcGIS Online Metadata stored in XML format is parsed into JSON.

portalApiUrl Optional Inherited string

URL of the Portal API endpoint for the resource

portalHomeUrl Optional Inherited string

URL of the resource's page in the Portal Home application

summary Optional Inherited string

Content snippet or other summary

thumbnailUrl Optional Inherited string

Fully qualified URL for the item's thumbnail, including current user's token if authenticated and required

updatedDateSource Optional Inherited string

description of what was used for this attribute the item key, e.g. item.modified or item.metadata.modified_date

Function defined in common/src/content/index.ts:489