You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/notion/actions/retrieve-block/retrieve-block.mjs
+31-14Lines changed: 31 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ export default {
4
4
key: "notion-retrieve-block",
5
5
name: "Retrieve Page Content",
6
6
description: "Get page content as block objects or markdown. Blocks can be text, lists, media, a page, among others. [See the documentation](https://developers.notion.com/reference/retrieve-a-block)",
7
-
version: "0.1.0",
7
+
version: "0.2.0",
8
8
type: "action",
9
9
props: {
10
10
notion,
@@ -15,33 +15,50 @@ export default {
15
15
],
16
16
},
17
17
retrieveChildren: {
18
-
type: "boolean",
19
-
label: "Retrieve Content (Child Blocks)",
20
-
description: "Retrieve all the children (recursively) for the specified page. [See the documentation](https://developers.notion.com/reference/get-block-children) for more information",
18
+
type: "string",
19
+
label: "Retrieve Children",
20
+
description: "Retrieve all the children (recursively) for the specified page, or optionally filter to include only sub-pages in the result. [See the documentation](https://developers.notion.com/reference/get-block-children) for more information",
21
21
optional: true,
22
-
default: false,
22
+
options: [
23
+
"All Children",
24
+
"Sub-Pages Only",
25
+
"None",
26
+
],
23
27
},
24
28
retrieveMarkdown: {
25
29
type: "boolean",
26
30
label: "Retrieve as Markdown",
27
-
description: "Return the page content as markdown instead of block objects.",
31
+
description: "Additionally return the page content as markdown",
0 commit comments