aboutsummaryrefslogtreecommitdiff
path: root/internal/integration/notion/wrapper.go
blob: d37633c02f8ae70579ac2ec7cc88835918abdaea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

package notion

type Data struct {
	Children []Block `json:"children"`
}

type Block struct {
	Object   string   `json:"object"`
	Type     string   `json:"type"`
	Bookmark Bookmark `json:"bookmark"`
}

type Bookmark struct {
	Caption []interface{} `json:"caption"` // Assuming the "caption" field can have different types
	URL     string        `json:"url"`
}