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

20 Commits

Author SHA1 Message Date
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 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
bba60aaa7f Add tests for "search" endpoint 2021-05-27 20:50:34 +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>
2021-05-25 18:24:52 +02:00
David Stotijn
c675641a4c Fix database page property types
Fixes #12
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
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 2021-05-23 14:02:17 +02:00
David Stotijn
00a77fe3a4 Add tests for "append block children" endpoint 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 2021-05-22 18:45:33 +02: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 2021-05-18 21:19:03 +02:00
David Stotijn
0e0f6c77aa Add tests for NewClient and Client.FindDatabaseByID 2021-05-17 21:08:13 +02:00