A Portal URI, which is a special URI in the form "portal://item-id" or "portal://portal-id/item-id".

Constructors

  • Creates a new PortalUri object.

    Parameters

    • Optionaluri: string

      An optional string representation of a portal:// URI to build from.

    Returns PortalUri

Properties

itemId: string

The item's id.

portalId: string

The unique ID of the portal where the item is located. See !Config.portals.

Methods

  • Fetches the item data associated with a given portal item URI.

    Parameters

    • OptionalresponseType: "text"

      The expected type of response.

    Returns Promise<string>

  • Fetches the item data associated with a given portal item URI.

    Parameters

    • OptionalresponseType:
          | "blob"
          | "xml"
          | "text"
          | "json"
          | "document"
          | "array-buffer"

      The expected type of response.

    Returns Promise<unknown>

  • Returns a new URI that is fully qualified with the given portal ID if this URI does not already have an explicit portal ID.

    Parameters

    • portalId: string

      The unique ID of the portal.

    Returns PortalUri

  • Returns a PortalItem object corresponding to this URI.

    Returns PortalItem

  • Converts the URI to a string.

    Returns string