1
0
mirror of https://github.com/dstotijn/go-notion.git synced 2025-06-08 23:46:12 +02:00

Add template block type

This commit is contained in:
David Stotijn 2021-12-17 17:45:21 +01:00
parent c4783f697b
commit 9fc88f927b

View File

@ -43,6 +43,7 @@ type Block struct {
LinkPreview *LinkPreview `json:"link_preview,omitempty"` LinkPreview *LinkPreview `json:"link_preview,omitempty"`
LinkToPage *LinkToPage `json:"link_to_page,omitempty"` LinkToPage *LinkToPage `json:"link_to_page,omitempty"`
SyncedBlock *SyncedBlock `json:"synced_block,omitempty"` SyncedBlock *SyncedBlock `json:"synced_block,omitempty"`
Template *RichTextBlock `json:"template,omitempty"`
} }
type RichTextBlock struct { type RichTextBlock struct {
@ -183,6 +184,7 @@ const (
BlockTypeLinkPreview BlockType = "link_preview" BlockTypeLinkPreview BlockType = "link_preview"
BlockTypeLinkToPage BlockType = "link_to_page" BlockTypeLinkToPage BlockType = "link_to_page"
BlockTypeSyncedBlock BlockType = "synced_block" BlockTypeSyncedBlock BlockType = "synced_block"
BlockTypeTemplate BlockType = "template"
BlockTypeUnsupported BlockType = "unsupported" BlockTypeUnsupported BlockType = "unsupported"
) )