Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/notion/actions/append-block/append-block.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "notion-append-block",
name: "Append Block to Parent",
description: "Creates and appends blocks to the specified parent. [See the documentation](https://developers.notion.com/reference/patch-block-children)",
version: "0.2.15",
version: "0.2.16",
type: "action",
props: {
notion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
key: "notion-create-page-from-database",
name: "Create Page from Database",
description: "Creates a page from a database. [See the docs](https://developers.notion.com/reference/post-page)",
version: "0.1.13",
version: "0.1.14",
type: "action",
props: {
notion,
Expand Down
2 changes: 1 addition & 1 deletion components/notion/actions/create-page/create-page.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
key: "notion-create-page",
name: "Create Page",
description: "Creates a page from a parent page. The only valid property is *title*. [See the documentation](https://developers.notion.com/reference/post-page)",
version: "0.2.11",
version: "0.2.12",
type: "action",
props: {
notion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
key: "notion-duplicate-page",
name: "Duplicate Page",
description: "Creates a new page copied from an existing page block. [See the docs](https://developers.notion.com/reference/post-page)",
version: "0.0.7",
version: "0.0.8",
type: "action",
props: {
notion,
Expand Down
2 changes: 1 addition & 1 deletion components/notion/actions/update-page/update-page.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
key: "notion-update-page",
name: "Update Page",
description: "Updates page property values for the specified page. Properties that are not set will remain unchanged. To append page content, use the *append block* action. [See the docs](https://developers.notion.com/reference/patch-page)",
version: "1.1.1",
version: "1.1.2",
type: "action",
props: {
notion,
Expand Down
12 changes: 8 additions & 4 deletions components/notion/common/notion-page-properties.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,16 @@ const NOTION_PAGE_PROPERTIES = {
},
date: {
type: "string",
example: "2022-05-15T18:47:00.000Z",
example: "2022-05-15T18:47:00.000Z or { \"start\": \"2022-05-15T18:47:00.000Z\", \"end\": \"2022-06-15T18:47:00.000Z\" }",
options: () => undefined,
convertToNotion: (property) => ({
date: {
start: property.value,
},
date: !(typeof (property.value) === "string")
? property.value
: property.value.includes("start")
? JSON.parse(property.value)
: {
start: property.value,
},
}),
},
people: {
Expand Down
2 changes: 1 addition & 1 deletion components/notion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/notion",
"version": "0.2.4",
"version": "0.2.5",
"description": "Pipedream Notion Components",
"main": "notion.app.mjs",
"keywords": [
Expand Down
Loading