Skip to content

Commit 4e0aa1d

Browse files
Notion property building improvements (PipedreamHQ#18381)
* validate property types * versions
1 parent 1884cf0 commit 4e0aa1d

File tree

17 files changed

+85
-44
lines changed

17 files changed

+85
-44
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.9",
10+
version: "0.3.10",
1111
type: "action",
1212
props: {
1313
notion,

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export default {
8787
type: properties[property]?.type ?? property,
8888
label: properties[property]?.id || property,
8989
value: this[property] || this.properties?.[property],
90+
name: properties[property]?.name || property,
9091
}));
9192
},
9293
/**
@@ -107,7 +108,7 @@ export default {
107108
try {
108109
notionProperties[property.label] = notionProperty?.convertToNotion(property);
109110
} 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+
throw new ConfigurationError(`Error converting property \`${property.name}\` to Notion format. Must be of type \`${NOTION_CONVERTER[property.type]?.type}\`.`);
111112
}
112113
}
113114
}

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.4",
9+
version: "0.0.5",
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.1",
10+
version: "0.1.2",
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.4",
9+
version: "0.0.5",
1010
type: "action",
1111
props: {
1212
notion,

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

Lines changed: 1 addition & 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.1",
11+
version: "1.0.2",
1212
type: "action",
1313
props: {
1414
notion,

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.22",
10+
version: "0.2.23",
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.4",
9+
version: "0.0.5",
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.19",
10+
version: "0.0.20",
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.4",
9+
version: "0.0.5",
1010
type: "action",
1111
props: {
1212
notion,

0 commit comments

Comments
 (0)