Notion Helper - v1.3.29
    Preparing search index...

    Function quickPages

    • Parameters

      • options: Object

      Returns Object[]

      • An array of page objects, each of which can be directly passed as the children for a POST request to https://api.notion.com/v1/pages (or as the single argument to notion.pages.create() when using the SDK).
      const dataSource = "abcdefghijklmnopqrstuvwxyz"

      const tasks = [ {
      icon: "😛",
      task: "Build Standing Desk",
      due: "2024-09-10",
      status: "Not started"
      } ]

      const schema = {
      task: [ "Name", "title" ],
      due: [ "Due Date", "date"],
      status: [ "Status", "status" ]
      }

      const pageObjects = quickPages({
      parent: dataSource,
      parent_type: "data_source_id",
      pages: tasks,
      schema: schema,
      childrenFn: (value) => NotionHelper.makeParagraphs(value)
      })