2021-07-20 20:48:35 +02:00
|
|
|
package notion
|
|
|
|
|
|
|
|
type Parent struct {
|
|
|
|
Type ParentType `json:"type,omitempty"`
|
|
|
|
|
2022-08-12 21:03:51 +02:00
|
|
|
BlockID string `json:"block_id,omitempty"`
|
2021-07-20 20:48:35 +02:00
|
|
|
PageID string `json:"page_id,omitempty"`
|
|
|
|
DatabaseID string `json:"database_id,omitempty"`
|
|
|
|
Workspace bool `json:"workspace,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ParentType string
|
|
|
|
|
|
|
|
const (
|
|
|
|
ParentTypeDatabase ParentType = "database_id"
|
|
|
|
ParentTypePage ParentType = "page_id"
|
2022-08-20 15:40:41 +02:00
|
|
|
ParentTypeBlock ParentType = "block_id"
|
2021-07-20 20:48:35 +02:00
|
|
|
ParentTypeWorkspace ParentType = "workspace"
|
|
|
|
)
|