Function | Description |
---|---|
getAllPagesInSpace(rootPageId, rootSpaceId, getPage, { concurrency, traverseCollections }) | Performs a traversal over a given Notion workspace starting from a seed page.Returns a map containing all of the pages that are reachable from the seed page in the space.If rootSpaceId is not defined, the space ID of the root page will be used to scope traversal. |
getBlockIcon(block, recordMap) | |
getBlockTitle(block, recordMap) | |
getPageProperty(propertyName, block, recordMap) | Gets the value of a collection property for a given page (collection item).TODO: handle non-text property types. |
getPageTitle(recordMap) |
Interface | Description |
---|---|
TableOfContentsEntry |
Variable | Description |
---|---|
getBlockParentPage | Returns the parent page block containing a given page.Note that many times this will not be the direct parent block since some non-page content blocks can contain sub-blocks. |
getCanonicalPageId | Gets the canonical, display-friendly version of a page's ID for use in URLs. |
getDateValue | Attempts to find a valid date from a given property. |
getPageContentBlockIds | Gets the IDs of all blocks contained on a page starting from a root block ID. |
getPageTableOfContents | Gets the metadata for a table of contents block by parsing the page's H1, H2, and H3 elements. |
getTextContent | Gets the raw, unformatted text content of a block's content value.This is useful, for instance, for extracting a block's title without any rich text formatting. |
idToUuid | |
normalizeTitle | |
parsePageId | Robustly extracts the notion page ID from a notion URL or pathname suffix.Defaults to returning a UUID (with dashes). |
uuidToId |