Functions object

The functions object contains a number of useful function interfaces.

These interfaces may assist in building rich content components that retrieve data from other sources.

Object definition

  "fns": {
    resolveUri(uri: string): Promise<unknown>(1)
    resolveMatrixAssetById(assetid: string, attributes?: string[]): Promise<unknown>(2)
    resolveMatrixAssetByURL(url: string, attributes?: string[]): Promise<unknown>(3)
  },
1 Function that resolves dynamic content with credentials pre-configured within the service using a Uniform Resource Identifier.
2 Function that resolves a Content Management asset using an asset ID.
3 Function that resolves a Content Management asset using a URL.

Usage

See these functions in action through the following exemplar functions: