@buddies/notion-lib
v1.0.0
Published
Notion Lib for Buddies ===
Downloads
3
Readme
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'
}
}
})