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/create-page-from-database/create-page-from-database.mjs
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -17,28 +17,28 @@ export default {
17
17
notion,
18
18
"databaseId",
19
19
],
20
-
label: "Parent Database ID",
21
-
description: "Select a parent database or provide a database ID",
22
20
},
23
-
dataSource: {
21
+
parentDataSource: {
24
22
propDefinition: [
25
23
notion,
26
24
"dataSourceId",
27
25
({ parent })=>({
28
26
databaseId: parent,
29
27
}),
30
28
],
29
+
label: "Parent Data Source ID",
30
+
description: "Select a parent data source or provide a data source ID",
31
31
},
32
32
Name: {
33
33
type: "string",
34
34
label: "Name",
35
-
description: "The name of the page. Use this only if the database has a `title` property named `Name`. Otherwise, use the `Properties` prop below to set the title property.",
35
+
description: "The name of the page. Use this only if the data source has a `title` property named `Name`. Otherwise, use the `Properties` prop below to set the title property.",
36
36
optional: true,
37
37
},
38
38
properties: {
39
39
type: "object",
40
40
label: "Properties",
41
-
description: "The values of the page's properties. The schema must match the parent database's properties. [See the documentation](https://developers.notion.com/reference/property-object) for information on various property types. Example: `{ \"Tags\": [ \"tag1\" ], \"Link\": \"https://pipedream.com\" }`",
41
+
description: "The values of the page's properties. The schema must match the parent data source's properties. [See the documentation](https://developers.notion.com/reference/property-object) for information on various property types. Example: `{ \"Tags\": [ \"tag1\" ], \"Link\": \"https://pipedream.com\" }`",
Copy file name to clipboardExpand all lines: components/notion/actions/retrieve-database-schema/retrieve-database-schema.mjs
+14-5Lines changed: 14 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@ import notion from "../../notion.app.mjs";
2
2
3
3
exportdefault{
4
4
key: "notion-retrieve-database-schema",
5
-
name: "Retrieve Database Schema",
6
-
description: "Get the property schema of a database in Notion. [See the documentation](https://developers.notion.com/reference/retrieve-a-database)",
7
-
version: "0.0.11",
5
+
name: "Retrieve Data Source Schema",
6
+
description: "Get the property schema of a data source in Notion. [See the documentation](https://developers.notion.com/reference/retrieve-a-data-source)",
Copy file name to clipboardExpand all lines: components/notion/actions/update-database/update-database.mjs
+23-14Lines changed: 23 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,9 @@ import base from "../common/base-page-builder.mjs";
5
5
exportdefault{
6
6
...base,
7
7
key: "notion-update-database",
8
-
name: "Update Database",
9
-
description: "Update a database. [See the documentation](https://developers.notion.com/reference/update-a-database)",
10
-
version: "0.0.2",
8
+
name: "Update Data Source",
9
+
description: "Update a data source. [See the documentation](https://developers.notion.com/reference/update-a-data-source)",
10
+
version: "1.0.0",
11
11
type: "action",
12
12
props: {
13
13
notion,
@@ -16,34 +16,43 @@ export default {
16
16
notion,
17
17
"databaseId",
18
18
],
19
+
},
20
+
dataSourceId: {
21
+
propDefinition: [
22
+
notion,
23
+
"dataSourceId",
24
+
({ databaseId })=>({
25
+
databaseId,
26
+
}),
27
+
],
19
28
reloadProps: true,
20
29
},
21
30
title: {
22
31
type: "string",
23
32
label: "Title",
24
-
description: "Title of database as it appears in Notion. An array of [rich text objects](https://developers.notion.com/reference/rich-text).",
33
+
description: "Title of the data source as it appears in Notion. An array of [rich text objects](https://developers.notion.com/reference/rich-text).",
25
34
optional: true,
26
35
},
27
36
description: {
28
37
type: "string",
29
38
label: "Description",
30
-
description: "An array of [rich text objects](https://developers.notion.com/reference/rich-text) that represents the description of the database that is displayed in the Notion UI. If omitted, then the database description remains unchanged.",
39
+
description: "An array of [rich text objects](https://developers.notion.com/reference/rich-text) that represents the description of the data source that is displayed in the Notion UI. If omitted, then the data source description remains unchanged.",
31
40
optional: true,
32
41
},
33
42
properties: {
34
43
type: "object",
35
44
label: "Properties",
36
-
description: "The properties of a database to be changed in the request, in the form of a JSON object. If updating an existing property, then the keys are the names or IDs of the properties as they appear in Notion, and the values are [property schema objects](https://developers.notion.com/reference/rich-text). If adding a new property, then the key is the name of the new database property and the value is a [property schema object](https://developers.notion.com/reference/property-schema-object).",
45
+
description: "The properties of a data source to be changed in the request, in the form of a JSON object. If updating an existing property, then the keys are the names or IDs of the properties as they appear in Notion, and the values are [property schema objects](https://developers.notion.com/reference/rich-text). If adding a new property, then the key is the name of the new data source property and the value is a [property schema object](https://developers.notion.com/reference/property-schema-object).",
Copy file name to clipboardExpand all lines: components/notion/actions/update-page/update-page.mjs
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ export default {
7
7
key: "notion-update-page",
8
8
name: "Update Page",
9
9
description: "Update a page's property values. To append page content, use the *Append Block* action instead. [See the documentation](https://developers.notion.com/reference/patch-page)",
10
-
version: "1.1.10",
10
+
version: "2.0.0",
11
11
type: "action",
12
12
props: {
13
13
notion,
@@ -16,18 +16,18 @@ export default {
16
16
alertType: "info",
17
17
content: "Properties that are not set will remain unchanged.",
Copy file name to clipboardExpand all lines: components/notion/sources/new-page/new-page.mjs
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@ import sampleEmit from "./test-event.mjs";
6
6
exportdefault{
7
7
...base,
8
8
key: "notion-new-page",
9
-
name: "New Page in Database",
10
-
description: "Emit new event when a page is created in the selected database. [See the documentation](https://developers.notion.com/reference/page)",
9
+
name: "New Page in Data Source",
10
+
description: "Emit new event when a page is created in the selected data source. [See the documentation](https://developers.notion.com/reference/page)",
11
11
version: "0.0.16",
12
12
type: "source",
13
13
props: {
@@ -18,6 +18,15 @@ export default {
18
18
"databaseId",
19
19
],
20
20
},
21
+
dataSourceId: {
22
+
propDefinition: [
23
+
notion,
24
+
"dataSourceId",
25
+
({ databaseId })=>({
26
+
databaseId,
27
+
}),
28
+
],
29
+
},
21
30
},
22
31
hooks: {
23
32
...base.hooks,
@@ -46,7 +55,7 @@ export default {
46
55
47
56
// Get pages in created order descending until the first page edited after
48
57
// lastCreatedTimestamp, then reverse list of pages and emit
Copy file name to clipboardExpand all lines: components/notion/sources/page-properties-updated-instant/page-properties-updated-instant.mjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ export default {
6
6
key: "notion-page-properties-updated-instant",
7
7
name: "Page Properties Updated (Instant)",
8
8
description: "Emit new event each time a page property is updated in a data source. For use with Page Properties Updated event type. Webhook must be set up in Notion. [See the documentation](https://developers.notion.com/reference/webhooks#step-1-creating-a-webhook-subscription)",
0 commit comments