1.0.0 • Published 1 year ago

@buddies/notion-lib v1.0.0

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

Notion Lib for Buddies

Examples

import { Client } from '@notionhq/client'
import { BuddiesNotion } from '@buddies/notion-lib'

const client = new Client({
    auth: 'secret'
})

const buddies = new BuddiesNotion(client)

const chapters = await buddies.chapters.getAll()
const deliverables = await buddies.deliverables.getAll()
const events = await buddies.events.getAll()
const members = await buddies.members.getAll()
const memos = await buddies.memos.getAll()
const stories = await buddies.stories.getAll()

const storiesOfASpecificUser = await buddies.stories.getAll({
    filter: {
        property: 'Who',
        relation: {
            contains: 'user id'
        }
    }
})