From ce7d6da4c678d14dfa1fd8c2a013a389ecbd23ff Mon Sep 17 00:00:00 2001 From: David Stotijn Date: Tue, 18 May 2021 21:18:30 +0200 Subject: [PATCH] Fix missing database page properties, use PageParent type --- page.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/page.go b/page.go index 7468857..0f389cf 100644 --- a/page.go +++ b/page.go @@ -23,7 +23,7 @@ type Page struct { } type PageParent struct { - Type string `json:"type"` + Type ParentType `json:"type"` PageID *string `json:"page_id,omitempty"` DatabaseID *string `json:"database_id,omitempty"` @@ -45,10 +45,12 @@ type DatabasePageProperty struct { ID string `json:"id,omitempty"` Type DatabasePropertyType `json:"type"` + Title []RichText `json:"title,omitempty"` RichText []RichText `json:"rich_text,omitempty"` Number *NumberMetadata `json:"number,omitempty"` Select *SelectOptions `json:"select,omitempty"` MultiSelect []SelectOptions `json:"multi_select,omitempty"` + Date *Date `json:"date,omitempty"` Formula *FormulaMetadata `json:"formula,omitempty"` Relation *RelationMetadata `json:"relation,omitempty"` Rollup *RollupMetadata `json:"rollup,omitempty"`