Notionex.Renderer.Block behaviour (notionex v0.1.0)

Summary

Callbacks

Link to this callback

block(%Notionex.Object.Block{}, map)

@callback block(
  %Notionex.Object.Block{
    archived: term(),
    bookmark: term(),
    breadcrumb: term(),
    bulleted_list_item: term(),
    callout: term(),
    child_database: term(),
    child_page: term(),
    code: term(),
    column: term(),
    column_list: term(),
    created_by: term(),
    created_time: term(),
    divider: term(),
    embed: term(),
    equation: term(),
    file: term(),
    has_children: term(),
    heading_1: term(),
    heading_2: term(),
    heading_3: term(),
    id: term(),
    image: term(),
    last_edited_by: term(),
    last_edited_time: term(),
    link_preview: term(),
    link_to_page: term(),
    numbered_list_item: term(),
    numbered_list_item_number: term(),
    object: term(),
    paragraph: term(),
    parent: term(),
    pdf: term(),
    quote: term(),
    synced_block: term(),
    table: term(),
    table_of_contents: term(),
    table_row: term(),
    template: term(),
    to_do: term(),
    toggle: term(),
    type: term(),
    unsupported: term(),
    video: term()
  },
  %{}
) :: any()
Link to this callback

blocks(%Notionex.Object.List{}, map)

@callback blocks(
  %Notionex.Object.List{
    has_more: term(),
    next_cursor: term(),
    object: term(),
    page_or_database: term(),
    results: term(),
    type: term()
  },
  %{}
) :: any()