Documentation
¶
Index ¶
- func ExactMonthDateBiasNextYear(s rules.Strategy) rules.Rule
- func ParseCheckbox(candidate string) (*notionapi.CheckboxProperty, error)
- func ParseEmail(candidate string) (*notionapi.EmailProperty, error)
- func ParseMultiSelect(candidate string, options []notionapi.Option) (*notionapi.MultiSelectProperty, error)
- func ParseNumber(candidate string) (*notionapi.NumberProperty, error)
- func ParsePhoneNumber(candidate string) (*notionapi.PhoneNumberProperty, error)
- func ParseRichText(candidate string) (*notionapi.RichTextProperty, error)
- func ParseSelect(candidate string, options []notionapi.Option) (*notionapi.SelectProperty, error)
- func ParseTitle(candidate string) (*notionapi.TitleProperty, error)
- func ParseURL(candidate string) (*notionapi.URLProperty, error)
- func Property(propName string, propConfig notionapi.PropertyConfig, propValue string) (notionapi.Property, error)
- type DateObject
- type DateProperty
- type TimelessDate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCheckbox ¶
func ParseCheckbox(candidate string) (*notionapi.CheckboxProperty, error)
func ParseEmail ¶
func ParseEmail(candidate string) (*notionapi.EmailProperty, error)
func ParseMultiSelect ¶
func ParseNumber ¶
func ParseNumber(candidate string) (*notionapi.NumberProperty, error)
func ParsePhoneNumber ¶
func ParsePhoneNumber(candidate string) (*notionapi.PhoneNumberProperty, error)
func ParseRichText ¶
func ParseRichText(candidate string) (*notionapi.RichTextProperty, error)
func ParseSelect ¶
func ParseTitle ¶
func ParseTitle(candidate string) (*notionapi.TitleProperty, error)
Types ¶
type DateObject ¶
type DateObject struct { Start *TimelessDate `json:"start"` End *TimelessDate `json:"end"` }
type DateProperty ¶
type DateProperty struct { ID notionapi.ObjectID `json:"id,omitempty"` Type notionapi.PropertyType `json:"type,omitempty"` Date DateObject `json:"date"` }
this cursed block here replicates the API of notion while allowing us to serialize datetimes without the time part so that we can schedule tasks without assigning times of days
func (*DateProperty) GetType ¶
func (dp *DateProperty) GetType() notionapi.PropertyType
type TimelessDate ¶
func (*TimelessDate) MarshalJSON ¶
func (td *TimelessDate) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.