1
0
mirror of https://github.com/dstotijn/go-notion.git synced 2025-06-08 23:46:12 +02:00

66 Commits

Author SHA1 Message Date
David Stotijn
00679f7e8f Fix casing of NumberFormatYuan const 2021-12-17 18:14:31 +01:00
David Stotijn
74663ed1b6 Enumerate rollup function values 2021-12-17 18:12:14 +01:00
David Stotijn
52e133b4e8 Add name field to DB (page) props 2021-12-17 18:03:53 +01:00
David Stotijn
9fc88f927b Add template block type 2021-12-17 17:45:21 +01:00
David Stotijn
c4783f697b Add synced_block block type 2021-12-17 16:21:59 +01:00
David Stotijn
6b75ac5688 Add link_to_page block type 2021-12-17 13:21:51 +01:00
David Stotijn
8e676e0df8 Add support for link_preview block type and rich text mentions 2021-12-17 13:14:55 +01:00
David Stotijn
1ee9d231ed Add table_of_contents, breadcrumb and column (list) block types 2021-12-17 13:05:55 +01:00
David Stotijn
876532e02f Add divider block type 2021-12-17 12:37:28 +01:00
David Stotijn
0300613dd4 Add equation block type 2021-12-17 12:31:39 +01:00
David Stotijn
d2a9540ff4 Add misc media and bookmark block types 2021-12-17 12:28:32 +01:00
David Stotijn
9051d940b1 Add embed block type 2021-12-17 11:18:13 +01:00
David Stotijn
557c032883 Add child_database block type 2021-12-16 13:14:23 +01:00
David Stotijn
e9dfe659c0 Add code block type 2021-12-16 12:57:03 +01:00
David Stotijn
0060b295c2 Add quote block type, simplify callout block type 2021-12-16 11:54:23 +01:00
David Stotijn
a45f658ecc Add callout block type 2021-12-13 11:42:03 +01:00
Lucas
a0926892c2
Add support for Page's Icon retrieval and updates (#21)
* Add support for Page's Icon retrieval and updates

* Add support for creating a page with an icon

* Fix tests, add icon validation

* Remove unknown icon type `file`

* Add icon support for "create database" endpoint

Co-authored-by: David Stotijn <dstotijn@gmail.com>
2021-12-09 17:57:08 +01:00
Nozomi Morimoto
135ef8c421
Support retrieve a block (#19)
* support retrieve block by id

* Update client.go

Co-authored-by: David Stotijn <dstotijn@gmail.com>

* Update client_test.go

Co-authored-by: David Stotijn <dstotijn@gmail.com>

* Update client.go

Co-authored-by: David Stotijn <dstotijn@gmail.com>

* fix find block's client test

Co-authored-by: David Stotijn <dstotijn@gmail.com>
2021-12-09 16:44:31 +01:00
David Stotijn
5e7e8ed54c Add "create database" endpoint v0.4.0 2021-07-20 22:50:53 +02:00
David Stotijn
ccd1bed559 Add URL field to Page type
Ref: https://developers.notion.com/changelog/page-objects-now-return-url
2021-07-20 20:57:27 +02:00
David Stotijn
597978fa0d Add Parent field to Database type
Ref: https://developers.notion.com/changelog/database-objects-now-return-parent
2021-07-20 20:48:35 +02:00
David Stotijn
7f6480a766 Update README, complete "Write tests" task 2021-05-27 20:54:00 +02:00
David Stotijn
bba60aaa7f Add tests for "search" endpoint v0.3.3 2021-05-27 20:50:34 +02:00
David Stotijn
5197b070b9 Fix faulty search sort type, add consts for sort props 2021-05-27 20:50:04 +02:00
David Stotijn
132dd31efd Add tests for "list users" endpoint 2021-05-25 21:16:56 +02:00
David Stotijn
13330d6b29 Add tests for "retrieve a user" endpoint 2021-05-25 21:01:32 +02:00
Alexandre Falardeau
969ba033ff
Enable empty DatabaseQueryFilter (#15)
* Add test for "DatabaseQuery"

* Fix DatabaseQuery Filter field type

* Assert database query JSON omit logic in `Client` tests

Co-authored-by: Alexandre Falardeau <asfal@AsFal-Laptop.local>
Co-authored-by: David Stotijn <dstotijn@gmail.com>
v0.3.2
2021-05-25 18:24:52 +02:00
David Stotijn
c675641a4c Fix database page property types
Fixes #12
v0.3.1
2021-05-24 18:00:20 +02:00
sivchari
14d2e8c377
Add test case for creating page with database parent (#10)
* fix-json-tag

* fix test case name

* fix to use database_id

* fix client test

* fix typo

* remove .idea and fix test name

Co-authored-by: rita <kajirita2002@gmail.com>
2021-05-24 17:07:57 +02:00
David Stotijn
1d8c71b79b Add missing database property types v0.3.0 2021-05-24 16:57:28 +02:00
David Stotijn
e5130d1fde Fix incorrect types for Formula, Relation and Rollup page props
Fixes #11
2021-05-24 16:33:03 +02:00
David Stotijn
7e83ec7aec Add custom type for Notion date properties with optional time v0.2.0 2021-05-23 14:02:17 +02:00
David Stotijn
00a77fe3a4 Add tests for "append block children" endpoint v0.1.5 2021-05-22 23:37:52 +02:00
David Stotijn
ebabf2cf70 Add tests for "retrieve block children" endpoint 2021-05-22 20:38:44 +02:00
David Stotijn
ee6b002819 Add tests for "update page properties" endpoint v0.1.4 2021-05-22 18:45:33 +02:00
David Stotijn
9ed2a6f1c1
Merge pull request #6 from mmmommm/fix-typo
Fix typo in comment
v0.1.3
2021-05-22 14:18:08 +02:00
mmmommm
d78e9e3f8e fix typo 2021-05-22 20:57:19 +09:00
David Stotijn
55aa9db5c7 Add tests for "create page" endpoint 2021-05-19 22:21:53 +02:00
David Stotijn
063bb045e4 Add tests for "find page by ID" endpoint 2021-05-19 20:46:50 +02:00
David Stotijn
d087d4b000 Add tests for "query database" endpoint v0.1.2 2021-05-18 21:19:03 +02:00
David Stotijn
ce7d6da4c6 Fix missing database page properties, use PageParent type 2021-05-18 21:18:30 +02:00
David Stotijn
c16fdfbc88 Use struct pointers for various DatabaseQueryFilter fields
Fixes: #2
v0.1.1
2021-05-17 22:00:05 +02:00
David Stotijn
0e0f6c77aa Add tests for NewClient and Client.FindDatabaseByID 2021-05-17 21:08:13 +02:00
David Stotijn
d419979b00 Fix typo in README 2021-05-17 21:07:39 +02:00
David Stotijn
a9f18d3209 Update README 2021-05-16 00:13:01 +02:00
David Stotijn
843e655c11 Add search endpoint support v0.1.0 2021-05-15 23:06:37 +02:00
David Stotijn
874858ea2a Add "list users" endpoint support 2021-05-15 20:50:47 +02:00
David Stotijn
9b807dd473 Add "retrieve a user" endpoint support 2021-05-15 20:30:07 +02:00
David Stotijn
019301c714 Remove stray code 2021-05-15 20:17:21 +02:00
David Stotijn
205f94cc89 Add "append block children" endpoint support 2021-05-15 20:16:26 +02:00