Skip to content

Commit 4ea8c2e

Browse files
Merging pull request PipedreamHQ#18368
* updates * remove console.log * versions
1 parent cdbc17b commit 4ea8c2e

File tree

16 files changed

+24
-16
lines changed

16 files changed

+24
-16
lines changed

components/notion/actions/append-block/append-block.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
name: "Append Block to Parent",
88
description:
99
"Append new and/or existing blocks to the specified parent. [See the documentation](https://developers.notion.com/reference/patch-block-children)",
10-
version: "0.3.8",
10+
version: "0.3.9",
1111
type: "action",
1212
props: {
1313
notion,

components/notion/actions/common/base-page-builder.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
} from "../../common/notion-meta-properties.mjs";
66
import NOTION_META from "../../common/notion-meta-selection.mjs";
77
import NOTION_PAGE_PROPERTIES from "../../common/notion-page-properties.mjs";
8+
import { ConfigurationError } from "@pipedream/platform";
89

910
export default {
1011
methods: {
@@ -103,7 +104,11 @@ export default {
103104
} else {
104105
// Otherwise, convert using the appropriate converter
105106
const notionProperty = NOTION_CONVERTER[property.type];
106-
notionProperties[property.label] = notionProperty?.convertToNotion(property);
107+
try {
108+
notionProperties[property.label] = notionProperty?.convertToNotion(property);
109+
} catch {
110+
throw new ConfigurationError(`Error converting property with label \`${property.label}\` to Notion format. Must be of type \`${NOTION_CONVERTER[property.type]?.type}\`.`);
111+
}
107112
}
108113
}
109114
return notionProperties;

components/notion/actions/complete-file-upload/complete-file-upload.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "notion-complete-file-upload",
77
name: "Complete File Upload",
88
description: "Use this action to finalize a `mode=multi_part` file upload after all of the parts have been sent successfully. [See the documentation](https://developers.notion.com/reference/complete-a-file-upload)",
9-
version: "0.0.3",
9+
version: "0.0.4",
1010
type: "action",
1111
props: {
1212
notion,

components/notion/actions/create-database/create-database.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "notion-create-database",
88
name: "Create Database",
99
description: "Create a database and its initial data source. [See the documentation](https://developers.notion.com/reference/database-create)",
10-
version: "0.1.0",
10+
version: "0.1.1",
1111
type: "action",
1212
props: {
1313
notion,

components/notion/actions/create-file-upload/create-file-upload.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "notion-create-file-upload",
77
name: "Create File Upload",
88
description: "Create a file upload. [See the documentation](https://developers.notion.com/reference/create-a-file-upload)",
9-
version: "0.0.3",
9+
version: "0.0.4",
1010
type: "action",
1111
props: {
1212
notion,

components/notion/actions/create-page-from-database/create-page-from-database.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
key: "notion-create-page-from-database",
99
name: "Create Page from Data Source",
1010
description: "Create a page from a data source. [See the documentation](https://developers.notion.com/reference/post-page)",
11-
version: "1.0.0",
11+
version: "1.0.1",
1212
type: "action",
1313
props: {
1414
notion,
@@ -85,6 +85,9 @@ export default {
8585
const response = await this.notion.createPage({
8686
...page,
8787
children: children.slice(0, MAX_BLOCKS),
88+
parent: {
89+
data_source_id: this.parentDataSource,
90+
},
8891
});
8992
let remainingBlocks = children.slice(MAX_BLOCKS);
9093
while (remainingBlocks.length > 0) {

components/notion/actions/create-page/create-page.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "notion-create-page",
88
name: "Create Page",
99
description: "Create a page from a parent page. [See the documentation](https://developers.notion.com/reference/post-page)",
10-
version: "0.2.21",
10+
version: "0.2.22",
1111
type: "action",
1212
props: {
1313
notion,

components/notion/actions/delete-block/delete-block.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "notion-delete-block",
77
name: "Delete Block",
88
description: "Sets a Block object, including page blocks, to archived: true using the ID specified. [See the documentation](https://developers.notion.com/reference/delete-a-block)",
9-
version: "0.0.3",
9+
version: "0.0.4",
1010
type: "action",
1111
props: {
1212
notion,

components/notion/actions/duplicate-page/duplicate-page.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "notion-duplicate-page",
88
name: "Duplicate Page",
99
description: "Create a new page copied from an existing page block. [See the documentation](https://developers.notion.com/reference/post-page)",
10-
version: "0.0.18",
10+
version: "0.0.19",
1111
type: "action",
1212
props: {
1313
notion,

components/notion/actions/list-file-uploads/list-file-uploads.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "notion-list-file-uploads",
77
name: "List File Uploads",
88
description: "Use this action to list file uploads. [See the documentation](https://developers.notion.com/reference/list-file-uploads)",
9-
version: "0.0.3",
9+
version: "0.0.4",
1010
type: "action",
1111
props: {
1212
notion,

0 commit comments

Comments
 (0)