aboutsummaryrefslogtreecommitdiff
path: root/src/models (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-08-28Fix incorrect key for `child_database` block objectfix-block-child-db-keyGravatar Anshul Gupta 1-3/+3
Changes key from `child_page` to `child_database`. See: https://developers.notion.com/reference/block#child-database
2024-08-12add new props (#66)Gravatar Ivy Pierlot 2-23/+115
2023-02-25Add new CreateBlock children to page creation (#49)Gravatar Mark Cola 12-746/+922
* extract block to mod * add CreateBlock struct, implement Into<CreateBlock> for Block, and add children to PageCreateRequest * move tests into block mod and fix up use
2023-01-23move And and Or variants to FilterCondition to support recursive nesting (#52)Gravatar Mark Cola 1-14/+84
2023-01-07Fixed properties docs and added Status (#46)Gravatar AusCyberman 1-32/+70
Make rollup function in line with rollup page in documentation
2023-01-02style(clippy+fmt): Format code and fix clippy issuesGravatar Jake Swenson 1-1/+1
2023-01-02Add create page functionality (#44)Gravatar ahmetrehaseker 4-12/+25
* Change text to rich_text * Add craete page functionality Co-authored-by: Jake Swenson <jakeswenson@users.noreply.github.com>
2022-11-19style(cargo fmt): Add rustfmt config, and fmt codeGravatar Jake Swenson 5-29/+49
2022-05-17style(cargo fmt): Format codeGravatar Jake Swenson 4-344/+392
2022-05-17Upgrade notion version (#39)Gravatar Shashank Pachava 15-0/+1545
* Upgrade constant * Fix lint * Change module file tree Changed around module file tree, but module structure hasn't changed. Converted models.rs to mod.rs under models folder * Minor refactoring * Add MentionObject for rich text mention types * Add new fields to BlockCommon. Modify existing field model Text. Add heading 1 test Add created_by and last_edited_by fields to BlockCommon. Change field text to rich_text for model Text to handle breaking change in API version 2022-02-22 * Differentiate between unsupported and unknown block types * Change text field to rich_text in paragraph block * Add callout block. Add file and emoji object * Fix as_id for unsupported block * Fix lint issues * Move quote block to follow documentation order. Add color field to TextAndChildren struct * Add color field to ToDoFields struct * Formatting * Add caption field to code block Add caption field to code block. Create enum CodeLanguage for code block. Reorder code block to reflect documentation * Add child database block * Create embed block * Refactor notion file object struct name * Create image block * Create video block * Create file block * Fix video block field * Create pdf block * Change text field to rich_text in TodoFields for Notion API version 2022-02-22 * Create bookmark block * Create divider block * Create table of contents block * Create breadcrumb block * Create column list and column block * Create link preview block * Create template block * Formatting * Create link to page block * Fix ColumnListFields struct * Create table and table row block * Fix AsIdentifier trait impl for Block * Create synced block
2021-12-28fix(#32): Fix rollup value parsing issues (#33)Gravatar Jake Swenson 3-9/+130
Fixes #32: Rollup values were not being parsed correctly.
2021-12-17Url property can be null (#26)Gravatar Dmitry Gavrovsky 1-1/+1
* Url property can be null * removed comment in wrong place
2021-12-11fix(example): Example wasn't compling + lib fixes (#19)Gravatar Dmitry Gavrovsky 1-1/+3
* get page + query database bugfixes * fixed wrong error type * clap integration fix * comments cleaning * source formatting using cargo format
2021-09-22feat: Paging improvements and ergonomicsGravatar Jake Swenson 6-10/+44
2021-08-30Improve ergonomicsGravatar Jake Swenson 2-3/+16
2021-08-29Notion API Version 2021-08-16 support; fix a bunch of modling errors as wellGravatar Jake Swenson 14-18/+450
2021-08-28Number format parsing bug. Fixes #15 (#16)Gravatar Jake Swenson 5-70/+174
2021-05-23Add initial todo example (#13)Gravatar Jake Swenson 2-0/+20
2021-05-17feat: adding proper error type with snafu (#8)Gravatar Jake Swenson 2-15/+15
2021-05-16chore: lots of little cleanup (#7)Gravatar Jake Swenson 1-24/+223
2021-05-16fix: Fixes issue #3, search can return objects (#5)Gravatar Jake Swenson 1-4/+4
2021-05-15adding test for is_not_emptyGravatar Jake Swenson 1-0/+14
2021-05-15adding serialize to trueGravatar Jake Swenson 1-1/+38
2021-05-15working database queriesGravatar Jake Swenson 2-5/+48
2021-05-15adding basic property filtersGravatar Jake Swenson 1-0/+58
2021-05-15pagesGravatar Jake Swenson 3-25/+242
2021-05-14pagingGravatar Jake Swenson 2-8/+16
2021-05-14add all propertiesGravatar Jake Swenson 1-0/+83
2021-05-14files documentation issueGravatar Jake Swenson 1-2/+3
2021-05-14split modelsGravatar Jake Swenson 3-1/+163
2021-05-14clean codeGravatar Jake Swenson 1-21/+28
2021-05-14First pass at a working Notion api client from the public betaGravatar Jake Swenson 1-0/+89