mirror of
https://github.com/dstotijn/go-notion.git
synced 2025-06-08 23:46:12 +02:00
Fix missing database page properties, use PageParent type
This commit is contained in:
parent
c16fdfbc88
commit
ce7d6da4c6
4
page.go
4
page.go
@ -23,7 +23,7 @@ type Page struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type PageParent struct {
|
type PageParent struct {
|
||||||
Type string `json:"type"`
|
Type ParentType `json:"type"`
|
||||||
|
|
||||||
PageID *string `json:"page_id,omitempty"`
|
PageID *string `json:"page_id,omitempty"`
|
||||||
DatabaseID *string `json:"database_id,omitempty"`
|
DatabaseID *string `json:"database_id,omitempty"`
|
||||||
@ -45,10 +45,12 @@ type DatabasePageProperty struct {
|
|||||||
ID string `json:"id,omitempty"`
|
ID string `json:"id,omitempty"`
|
||||||
Type DatabasePropertyType `json:"type"`
|
Type DatabasePropertyType `json:"type"`
|
||||||
|
|
||||||
|
Title []RichText `json:"title,omitempty"`
|
||||||
RichText []RichText `json:"rich_text,omitempty"`
|
RichText []RichText `json:"rich_text,omitempty"`
|
||||||
Number *NumberMetadata `json:"number,omitempty"`
|
Number *NumberMetadata `json:"number,omitempty"`
|
||||||
Select *SelectOptions `json:"select,omitempty"`
|
Select *SelectOptions `json:"select,omitempty"`
|
||||||
MultiSelect []SelectOptions `json:"multi_select,omitempty"`
|
MultiSelect []SelectOptions `json:"multi_select,omitempty"`
|
||||||
|
Date *Date `json:"date,omitempty"`
|
||||||
Formula *FormulaMetadata `json:"formula,omitempty"`
|
Formula *FormulaMetadata `json:"formula,omitempty"`
|
||||||
Relation *RelationMetadata `json:"relation,omitempty"`
|
Relation *RelationMetadata `json:"relation,omitempty"`
|
||||||
Rollup *RollupMetadata `json:"rollup,omitempty"`
|
Rollup *RollupMetadata `json:"rollup,omitempty"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user