object

package
v0.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockType

type BlockType string
const (
	ParagraphBlockType        BlockType = "paragraph"
	HeadingOneBlockType       BlockType = "heading_1"
	HeadingTwoBlockType       BlockType = "heading_2"
	HeadingThreeBlockType     BlockType = "heading_3"
	BulletedListItemBlockType BlockType = "bulleted_list_item"
	NumberListItemBlockType   BlockType = "numbered_list_item"
	ToggleBlockType           BlockType = "toggle"
	ToDoBlockType             BlockType = "to_do"
	ChildPageBlockType        BlockType = "child_page"
	UnsupportedBlockType      BlockType = "unsupported"
)

type ErrorCode added in v0.0.5

type ErrorCode string

ErrorCode represents the Notion API errors. See details: https://developers.notion.com/reference/errors

const (
	ErrInvalidJson        ErrorCode = "invalid_json"
	ErrInvalidRequestURL  ErrorCode = "invalid_request_url"
	ErrInvalidRequest     ErrorCode = "Invalid_request"
	ErrValidationErrore   ErrorCode = "validation_error"
	ErrUnautho            ErrorCode = "invalid_json"
	ErrRestrictedResource ErrorCode = "restricted_resource"
	ErrObjectNotFound     ErrorCode = "object_not_found"
	ErrConflictError      ErrorCode = "invalid_json"
	ErrRateLimited        ErrorCode = "conflict_error"
	ErrInternalServer     ErrorCode = "rate_limited"
	ErrServiceUnavailable ErrorCode = "internal_server_error"
)

type Object added in v0.0.8

type Object interface {
	GetObject() Type
}

type ParentType added in v0.0.5

type ParentType string

ParentType is a type for Parents.

const (
	DatabaseParentType  ParentType = "database_id"
	PageParentType      ParentType = "page_id"
	WorkspaceParentType ParentType = "workspace"
)

type PropertyType added in v0.0.5

type PropertyType string

PropertyType is type for specifying the property type.

const (
	TextPropertyType           PropertyType = "text"
	TitlePropertyType          PropertyType = "title"
	NumberPropertyType         PropertyType = "number"
	SelectPropertyType         PropertyType = "select"
	MultiSelectPropertyType    PropertyType = "multi_select"
	DatePropertyType           PropertyType = "date"
	PeoplePropertyType         PropertyType = "people"
	FilesPropertyType          PropertyType = "files"
	CheckboxPropertyType       PropertyType = "checkbox"
	URLPropertyType            PropertyType = "url"
	EmailPropertyType          PropertyType = "email"
	PhoneNumberPropertyType    PropertyType = "phone_number"
	FormulaPropertyType        PropertyType = "formula"
	RelationPropertyType       PropertyType = "relation"
	RollupPropertyType         PropertyType = "rollup"
	CreatedTimePropertyType    PropertyType = "created_time"
	CreatedByPropertyType      PropertyType = "created_by"
	LastEditedTimePropertyType PropertyType = "last_edited_time"
	LastEditedByPropertyType   PropertyType = "last_edited_by"
)

type Type

type Type string

Type is the object type.

const (
	Bot      Type = "bot"
	Database Type = "database"
	Error    Type = "error"
	Page     Type = "page"
	Person   Type = "person"
	User     Type = "user"
	List     Type = "list"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL