1
0
mirror of https://github.com/dstotijn/go-notion.git synced 2025-06-15 00:05:04 +02:00

31 Commits

Author SHA1 Message Date
c6f2e5b343 Don't panic when unmarshaling blocks (#50)
* don't panic

* Block() returns err

* Rework unknown block type logic, add tests

---------

Co-authored-by: David Stotijn <dstotijn@gmail.com>
2023-02-21 20:28:33 +01:00
87a7d4c3cd Add support for audio block type (#48)
Closes #47
2022-11-18 19:55:59 +01:00
1b585c661f Add is_toggleable behavior to heading_{1,2,3} block types (#41) 2022-09-03 21:57:36 +02:00
5545ade9a7 Fix type of column_list.children (#38) 2022-09-03 20:53:05 +02:00
51efbea8fd Add support for block colors (#31)
Ref: https://developers.notion.com/changelog/block-colors-are-now-supported-in-the-api
2022-08-13 21:34:29 +02:00
1320ab0ee0 Add created_by and last_edited_by support, add archived for DB (#30) 2022-08-13 19:46:00 +02:00
264ec2c28f Handle changes introduced in version 2022-02-22 (#29)
Ref: https://developers.notion.com/changelog/releasing-notion-version-2022-02-22
2022-08-13 12:28:49 +02:00
a7179ae969 Add parent property to blocks (#28) 2022-08-12 21:03:51 +02:00
8c9f519e73 Convert Block from a struct to an interface (#27) 2022-08-12 19:49:36 +02:00
5af1e9a5a0 Add caption property to code block type
Ref: https://developers.notion.com/changelog/caption-property-is-now-supported-in-code-block-type
2022-01-31 18:01:24 +01:00
63149ba664 feat: add table block support (#24) 2022-01-31 17:55:58 +01:00
50cebe29de Add file metadata to file DB page prop 2021-12-20 20:12:44 +01:00
2ebac2e1b2 Add "Update block" endpoint 2021-12-18 14:19:51 +01:00
9fc88f927b Add template block type 2021-12-17 17:45:21 +01:00
c4783f697b Add synced_block block type 2021-12-17 16:21:59 +01:00
6b75ac5688 Add link_to_page block type 2021-12-17 13:21:51 +01:00
8e676e0df8 Add support for link_preview block type and rich text mentions 2021-12-17 13:14:55 +01:00
1ee9d231ed Add table_of_contents, breadcrumb and column (list) block types 2021-12-17 13:05:55 +01:00
876532e02f Add divider block type 2021-12-17 12:37:28 +01:00
0300613dd4 Add equation block type 2021-12-17 12:31:39 +01:00
d2a9540ff4 Add misc media and bookmark block types 2021-12-17 12:28:32 +01:00
9051d940b1 Add embed block type 2021-12-17 11:18:13 +01:00
557c032883 Add child_database block type 2021-12-16 13:14:23 +01:00
e9dfe659c0 Add code block type 2021-12-16 12:57:03 +01:00
0060b295c2 Add quote block type, simplify callout block type 2021-12-16 11:54:23 +01:00
a45f658ecc Add callout block type 2021-12-13 11:42:03 +01:00
00a77fe3a4 Add tests for "append block children" endpoint 2021-05-22 23:37:52 +02:00
874858ea2a Add "list users" endpoint support 2021-05-15 20:50:47 +02:00
205f94cc89 Add "append block children" endpoint support 2021-05-15 20:16:26 +02:00
cd696c1624 Add "retrieve block children" endpoint support 2021-05-15 19:04:57 +02:00
b2af8b7d0b Add "create a page" endpoint 2021-05-15 13:42:01 +02:00