Skip to content

Support Reading Status Property Configs From Databases #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions property_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,16 @@ func (p LastEditedByPropertyConfig) GetType() PropertyConfigType {
return p.Type
}

//TODO: Status database properties cannot currently be configured via the API and so have no additional configuration within the status property.
type StatusPropertyConfig struct{}
// StatusPropertyConfig can only be used to GET property configs from Notion databases.
// The api currently does not support creating or updating status properties.
type StatusPropertyConfig struct{
ID ObjectID `json:"id"`
Type PropertyConfigType `json:"type"`
Status Select `json:"status"`
}

func (p StatusPropertyConfig) GetType() PropertyConfigType {
return ""
return p.Type
}

type PropertyConfigs map[string]PropertyConfig
Expand Down