From 4270373b80a97335fa5aa811508b17cc79d7065d Mon Sep 17 00:00:00 2001 From: Luan Cazarine Date: Tue, 28 Oct 2025 17:05:00 -0300 Subject: [PATCH 1/4] Enhance Notion component with template support and version updates - Added `listTemplates` method to the Notion client for retrieving available templates. - Updated `create-page-from-database` action to support template selection, including new properties for template type and ID. - Bumped version to 2.0.0 for the `create-page-from-database` action and updated package version to 1.0.6. - Upgraded `@notionhq/client` dependency to version 5.3.0. --- .../create-page-from-database.mjs | 145 +++++++++++++----- components/notion/notion.app.mjs | 3 + components/notion/package.json | 4 +- 3 files changed, 113 insertions(+), 39 deletions(-) diff --git a/components/notion/actions/create-page-from-database/create-page-from-database.mjs b/components/notion/actions/create-page-from-database/create-page-from-database.mjs index 2e461a0c46c45..440938e9b3a29 100644 --- a/components/notion/actions/create-page-from-database/create-page-from-database.mjs +++ b/components/notion/actions/create-page-from-database/create-page-from-database.mjs @@ -1,15 +1,16 @@ +/* eslint-disable no-case-declarations */ +import pick from "lodash-es/pick.js"; import NOTION_ICONS from "../../common/notion-icons.mjs"; import utils from "../../common/utils.mjs"; import notion from "../../notion.app.mjs"; import base from "../common/base-page-builder.mjs"; -import pick from "lodash-es/pick.js"; export default { ...base, key: "notion-create-page-from-database", name: "Create Page from Data Source", description: "Create a page from a data source. [See the documentation](https://developers.notion.com/reference/post-page)", - version: "1.1.0", + version: "2.0.0", annotations: { destructiveHint: false, openWorldHint: true, @@ -25,13 +26,26 @@ export default { ], label: "Parent Data Source ID", description: "Select a parent data source or provide a data source ID", - reloadProps: true, }, - Name: { + templateType: { type: "string", - label: "Name", - 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.", - optional: true, + label: "Template Type", + description: "The type of template to use for the page. [See the documentation](https://developers.notion.com/docs/creating-pages-from-templates) for more information.", + options: [ + { + label: "No template. Provided children and properties are immediately applied.", + value: "none", + }, + { + label: "Applies the data source's default template to the newly created page. `children` cannot be specified in the create page request.", + value: "default", + }, + { + label: "Indicates which exact template to apply to the newly created page. children cannot be specified in the create page request.", + value: "template_id", + }, + ], + reloadProps: true, }, propertyTypes: { propDefinition: [ @@ -64,11 +78,6 @@ export default { description: "Cover [External URL](https://developers.notion.com/reference/file-object#external-file-objects)", optional: true, }, - alert: { - type: "alert", - alertType: "info", - content: "This action will create an empty page by default. To add content, use the `Page Content` prop below.", - }, pageContent: { propDefinition: [ notion, @@ -77,11 +86,61 @@ export default { }, }, async additionalProps() { - const { properties } = await this.notion.retrieveDataSource(this.parentDataSource); - const selectedProperties = pick(properties, this.propertyTypes); - return this.buildAdditionalProps({ - properties: selectedProperties, - }); + switch (this.templateType) { + case "none": + const { properties } = await this.notion.retrieveDataSource(this.parentDataSource); + const selectedProperties = pick(properties, this.propertyTypes); + return { + alert: { + type: "alert", + alertType: "info", + content: "This action will create an empty page by default. To add content, use the `Page Content` prop below.", + }, + ...this.buildAdditionalProps({ + properties: selectedProperties, + }), + }; + case "default": + return { + alert: { + type: "alert", + alertType: "info", + content: "This action will create a page using the data source's default template. Using the `Page Content` prop below will `not` apply to the page.", + }, + }; + case "template_id": + return { + templateId: { + type: "string", + label: "Template ID", + description: "The ID of the template to use for the page. [See the documentation](https://developers.notion.com/docs/creating-pages-from-templates) for more information.", + options: async({ prevContext }) => { + const { + templates, next_cursor: nCursor, + } = await this.notion.listTemplates({ + data_source_id: this.parentDataSource, + start_cursor: prevContext?.nCursor, + }); + return { + options: templates.map(({ + name: label, id: value, + }) => ({ + label, + value, + })), + context: { + nCursor, + }, + }; + }, + }, + alert: { + type: "alert", + alertType: "info", + content: "This action will create a page using the selected template. Using the `Page Content` prop below will `not` apply to the page.", + }, + }; + } }, methods: { ...base.methods, @@ -91,33 +150,45 @@ export default { * @returns the constructed page in Notion format */ buildPage(parentDataSource) { + const meta = this.buildDataSourceMeta(parentDataSource); this.properties = utils.parseObject(this.properties); const properties = this.buildPageProperties(parentDataSource.properties); - - const propertiesArray = []; - for (const property of Object.values(parentDataSource.properties)) { - if (properties[property.id]) { - propertiesArray.push({ - label: property.name, - type: property.type, - value: this[property.name] || this.properties[property.name], - }); - } - } - - return propertiesArray; + const children = this.createBlocks(this.pageContent); + return { + ...meta, + properties, + children, + }; }, }, async run({ $ }) { + const MAX_BLOCKS = 100; const parentPage = await this.notion.retrieveDataSource(this.parentDataSource); - const properties = await this.buildPage(parentPage); - const response = await this.buildPageFromDataSource({ - pageContent: this.pageContent, - parentDataSourceId: this.parentDataSource, - properties, - icon: this.icon, - cover: this.cover, + const { + children, ...page + } = this.buildPage(parentPage); + const data = this.templateId + ? { + template: { + type: this.templateType, + template_id: this.templateId, + }, + } + : { + children: children.slice(0, MAX_BLOCKS), + }; + const response = await this.notion.createPage({ + ...data, + ...page, + parent: { + data_source_id: this.parentDataSource, + }, }); + let remainingBlocks = children.slice(MAX_BLOCKS); + while (remainingBlocks.length > 0) { + await this.notion.appendBlock(response.id, remainingBlocks.slice(0, MAX_BLOCKS)); + remainingBlocks = remainingBlocks.slice(MAX_BLOCKS); + } $.export("$summary", "Created page successfully"); return response; }, diff --git a/components/notion/notion.app.mjs b/components/notion/notion.app.mjs index f95dc708c9b98..61d04dd6cc6c2 100644 --- a/components/notion/notion.app.mjs +++ b/components/notion/notion.app.mjs @@ -275,6 +275,9 @@ export default { ...params, }); }, + async listTemplates(params = {}) { + return this._getNotionClient().dataSources.listTemplates(params); + }, async retrieveDataSource(dataSourceId) { return this._getNotionClient().dataSources.retrieve({ data_source_id: dataSourceId, diff --git a/components/notion/package.json b/components/notion/package.json index cd903158abb79..3e53d1caa0728 100644 --- a/components/notion/package.json +++ b/components/notion/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/notion", - "version": "1.0.5", + "version": "1.0.6", "description": "Pipedream Notion Components", "main": "notion.app.mjs", "keywords": [ @@ -10,7 +10,7 @@ "homepage": "https://pipedream.com/apps/notion", "author": "Pipedream (https://pipedream.com/)", "dependencies": { - "@notionhq/client": "^5.0.0", + "@notionhq/client": "^5.3.0", "@pipedream/platform": "^3.1.0", "@tryfabric/martian": "^1.2.4", "lodash-es": "^4.17.21", From 2a1e9ec901e25b73a9f376a73608d94d4b3b0d51 Mon Sep 17 00:00:00 2001 From: Luan Cazarine Date: Tue, 28 Oct 2025 17:09:36 -0300 Subject: [PATCH 2/4] pnpm update --- pnpm-lock.yaml | 184 +++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 157 insertions(+), 27 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 04a9087a55f05..f2f5416354985 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -104,7 +104,7 @@ importers: version: 4.0.0 ts-jest: specifier: ^29.1.1 - version: 29.2.5(@babel/core@7.26.0)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(jest@29.7.0(@types/node@20.17.6)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.17.6)(typescript@5.6.3)))(typescript@5.6.3) + version: 29.2.5(@babel/core@8.0.0-alpha.13)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@8.0.0-alpha.13))(jest@29.7.0(@types/node@20.17.6)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.17.6)(typescript@5.6.3)))(typescript@5.6.3) tsc-esm-fix: specifier: ^2.18.0 version: 2.20.27 @@ -2270,8 +2270,7 @@ importers: specifier: ^3.0.3 version: 3.0.3 - components/callhippo: - specifiers: {} + components/callhippo: {} components/callhub: dependencies: @@ -5194,8 +5193,7 @@ importers: components/florm: {} - components/flotiq: - specifiers: {} + components/flotiq: {} components/flowiseai: dependencies: @@ -9723,8 +9721,8 @@ importers: components/notion: dependencies: '@notionhq/client': - specifier: ^5.0.0 - version: 5.0.0 + specifier: ^5.3.0 + version: 5.3.0 '@pipedream/platform': specifier: ^3.1.0 version: 3.1.0 @@ -17045,7 +17043,7 @@ importers: version: 3.1.7 ts-jest: specifier: ^29.2.5 - version: 29.2.5(@babel/core@7.26.0)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(esbuild@0.24.2)(jest@29.7.0(@types/node@20.17.30)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.17.30)(typescript@5.7.2)))(typescript@5.7.2) + version: 29.2.5(@babel/core@7.26.0)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(jest@29.7.0(@types/node@20.17.30)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.17.30)(typescript@5.7.2)))(typescript@5.7.2) tsup: specifier: ^8.3.6 version: 8.3.6(@microsoft/api-extractor@7.47.12(@types/node@20.17.30))(jiti@2.4.2)(postcss@8.5.6)(tsx@4.19.4)(typescript@5.7.2)(yaml@2.8.0) @@ -20212,8 +20210,8 @@ packages: resolution: {integrity: sha512-4pk3dm4umhjsRI0umCnJ8lCZh0TMiaMdkY0rz6FV4OqVuTsmYFV3pk+YTR5S8792ZY2Rm4lJHlLj05HQVKDuIg==} engines: {node: '>=18'} - '@notionhq/client@5.0.0': - resolution: {integrity: sha512-eXq0bZTXN8+xwT6e3qlrH9QCUn8mQLJ9UkNgKSew2NKNV/hyKb2wmIzQAuass8a2Q6F1aMjMPi+EGLQwgbVlOA==} + '@notionhq/client@5.3.0': + resolution: {integrity: sha512-pISuJLrP6XwxnmMZ79jT2XkMHFtbQvslfs6Rqdd29ge0KAmJOuhtWZxE1WXO7h03cj/gVAL2PiAjpFuIWrWJ3w==} engines: {node: '>=18'} '@octokit/auth-token@2.5.0': @@ -35892,7 +35890,7 @@ snapshots: '@babel/traverse': 7.25.9 '@babel/types': 7.26.0 convert-source-map: 2.0.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.4.0) gensync: 1.0.0-beta.2 json5: 2.2.3 semver: 6.3.1 @@ -36163,21 +36161,45 @@ snapshots: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-async-generators@7.8.4(@babel/core@8.0.0-alpha.13)': + dependencies: + '@babel/core': 8.0.0-alpha.13 + '@babel/helper-plugin-utils': 7.25.9 + optional: true + '@babel/plugin-syntax-bigint@7.8.3(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-bigint@7.8.3(@babel/core@8.0.0-alpha.13)': + dependencies: + '@babel/core': 8.0.0-alpha.13 + '@babel/helper-plugin-utils': 7.25.9 + optional: true + '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-class-properties@7.12.13(@babel/core@8.0.0-alpha.13)': + dependencies: + '@babel/core': 8.0.0-alpha.13 + '@babel/helper-plugin-utils': 7.25.9 + optional: true + '@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-class-static-block@7.14.5(@babel/core@8.0.0-alpha.13)': + dependencies: + '@babel/core': 8.0.0-alpha.13 + '@babel/helper-plugin-utils': 7.25.9 + optional: true + '@babel/plugin-syntax-import-assertions@7.26.0(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 @@ -36188,16 +36210,34 @@ snapshots: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-import-attributes@7.26.0(@babel/core@8.0.0-alpha.13)': + dependencies: + '@babel/core': 8.0.0-alpha.13 + '@babel/helper-plugin-utils': 7.25.9 + optional: true + '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-import-meta@7.10.4(@babel/core@8.0.0-alpha.13)': + dependencies: + '@babel/core': 8.0.0-alpha.13 + '@babel/helper-plugin-utils': 7.25.9 + optional: true + '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-json-strings@7.8.3(@babel/core@8.0.0-alpha.13)': + dependencies: + '@babel/core': 8.0.0-alpha.13 + '@babel/helper-plugin-utils': 7.25.9 + optional: true + '@babel/plugin-syntax-jsx@7.25.9(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 @@ -36208,41 +36248,89 @@ snapshots: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-logical-assignment-operators@7.10.4(@babel/core@8.0.0-alpha.13)': + dependencies: + '@babel/core': 8.0.0-alpha.13 + '@babel/helper-plugin-utils': 7.25.9 + optional: true + '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-nullish-coalescing-operator@7.8.3(@babel/core@8.0.0-alpha.13)': + dependencies: + '@babel/core': 8.0.0-alpha.13 + '@babel/helper-plugin-utils': 7.25.9 + optional: true + '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-numeric-separator@7.10.4(@babel/core@8.0.0-alpha.13)': + dependencies: + '@babel/core': 8.0.0-alpha.13 + '@babel/helper-plugin-utils': 7.25.9 + optional: true + '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-object-rest-spread@7.8.3(@babel/core@8.0.0-alpha.13)': + dependencies: + '@babel/core': 8.0.0-alpha.13 + '@babel/helper-plugin-utils': 7.25.9 + optional: true + '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-optional-catch-binding@7.8.3(@babel/core@8.0.0-alpha.13)': + dependencies: + '@babel/core': 8.0.0-alpha.13 + '@babel/helper-plugin-utils': 7.25.9 + optional: true + '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-optional-chaining@7.8.3(@babel/core@8.0.0-alpha.13)': + dependencies: + '@babel/core': 8.0.0-alpha.13 + '@babel/helper-plugin-utils': 7.25.9 + optional: true + '@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-private-property-in-object@7.14.5(@babel/core@8.0.0-alpha.13)': + dependencies: + '@babel/core': 8.0.0-alpha.13 + '@babel/helper-plugin-utils': 7.25.9 + optional: true + '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 '@babel/helper-plugin-utils': 7.25.9 + '@babel/plugin-syntax-top-level-await@7.14.5(@babel/core@8.0.0-alpha.13)': + dependencies: + '@babel/core': 8.0.0-alpha.13 + '@babel/helper-plugin-utils': 7.25.9 + optional: true + '@babel/plugin-syntax-typescript@7.25.9(@babel/core@7.26.0)': dependencies: '@babel/core': 7.26.0 @@ -37305,7 +37393,7 @@ snapshots: '@eslint/eslintrc@3.2.0': dependencies: ajv: 6.12.6 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.4.0) espree: 10.3.0 globals: 14.0.0 ignore: 5.3.2 @@ -38747,7 +38835,7 @@ snapshots: '@notionhq/client@4.0.2': {} - '@notionhq/client@5.0.0': {} + '@notionhq/client@5.3.0': {} '@octokit/auth-token@2.5.0': dependencies: @@ -39226,7 +39314,7 @@ snapshots: '@pipedream/notion@1.0.2': dependencies: - '@notionhq/client': 5.0.0 + '@notionhq/client': 5.3.0 '@pipedream/platform': 3.1.0 '@tryfabric/martian': 1.2.4 lodash-es: 4.17.21 @@ -39828,6 +39916,8 @@ snapshots: '@putout/operator-filesystem': 5.0.0(putout@36.13.1(eslint@8.57.1)(typescript@5.6.3)) '@putout/operator-json': 2.2.0 putout: 36.13.1(eslint@8.57.1)(typescript@5.6.3) + transitivePeerDependencies: + - supports-color '@putout/operator-regexp@1.0.0(putout@36.13.1(eslint@8.57.1)(typescript@5.6.3))': dependencies: @@ -42388,7 +42478,7 @@ snapshots: '@typescript-eslint/types': 8.15.0 '@typescript-eslint/typescript-estree': 8.15.0(typescript@5.6.3) '@typescript-eslint/visitor-keys': 8.15.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.4.0) eslint: 8.57.1 optionalDependencies: typescript: 5.6.3 @@ -43282,6 +43372,20 @@ snapshots: transitivePeerDependencies: - supports-color + babel-jest@29.7.0(@babel/core@8.0.0-alpha.13): + dependencies: + '@babel/core': 8.0.0-alpha.13 + '@jest/transform': 29.7.0 + '@types/babel__core': 7.20.5 + babel-plugin-istanbul: 6.1.1 + babel-preset-jest: 29.6.3(@babel/core@8.0.0-alpha.13) + chalk: 4.1.2 + graceful-fs: 4.2.11 + slash: 3.0.0 + transitivePeerDependencies: + - supports-color + optional: true + babel-plugin-istanbul@6.1.1: dependencies: '@babel/helper-plugin-utils': 7.25.9 @@ -43348,12 +43452,39 @@ snapshots: '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@7.26.0) '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@7.26.0) + babel-preset-current-node-syntax@1.1.0(@babel/core@8.0.0-alpha.13): + dependencies: + '@babel/core': 8.0.0-alpha.13 + '@babel/plugin-syntax-async-generators': 7.8.4(@babel/core@8.0.0-alpha.13) + '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@8.0.0-alpha.13) + '@babel/plugin-syntax-class-properties': 7.12.13(@babel/core@8.0.0-alpha.13) + '@babel/plugin-syntax-class-static-block': 7.14.5(@babel/core@8.0.0-alpha.13) + '@babel/plugin-syntax-import-attributes': 7.26.0(@babel/core@8.0.0-alpha.13) + '@babel/plugin-syntax-import-meta': 7.10.4(@babel/core@8.0.0-alpha.13) + '@babel/plugin-syntax-json-strings': 7.8.3(@babel/core@8.0.0-alpha.13) + '@babel/plugin-syntax-logical-assignment-operators': 7.10.4(@babel/core@8.0.0-alpha.13) + '@babel/plugin-syntax-nullish-coalescing-operator': 7.8.3(@babel/core@8.0.0-alpha.13) + '@babel/plugin-syntax-numeric-separator': 7.10.4(@babel/core@8.0.0-alpha.13) + '@babel/plugin-syntax-object-rest-spread': 7.8.3(@babel/core@8.0.0-alpha.13) + '@babel/plugin-syntax-optional-catch-binding': 7.8.3(@babel/core@8.0.0-alpha.13) + '@babel/plugin-syntax-optional-chaining': 7.8.3(@babel/core@8.0.0-alpha.13) + '@babel/plugin-syntax-private-property-in-object': 7.14.5(@babel/core@8.0.0-alpha.13) + '@babel/plugin-syntax-top-level-await': 7.14.5(@babel/core@8.0.0-alpha.13) + optional: true + babel-preset-jest@29.6.3(@babel/core@7.26.0): dependencies: '@babel/core': 7.26.0 babel-plugin-jest-hoist: 29.6.3 babel-preset-current-node-syntax: 1.1.0(@babel/core@7.26.0) + babel-preset-jest@29.6.3(@babel/core@8.0.0-alpha.13): + dependencies: + '@babel/core': 8.0.0-alpha.13 + babel-plugin-jest-hoist: 29.6.3 + babel-preset-current-node-syntax: 1.1.0(@babel/core@8.0.0-alpha.13) + optional: true + backoff@2.5.0: dependencies: precond: 0.2.3 @@ -45562,7 +45693,7 @@ snapshots: ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.6 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.4.0) doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 @@ -47423,7 +47554,7 @@ snapshots: https-proxy-agent@5.0.1: dependencies: agent-base: 6.0.2 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.4.0) transitivePeerDependencies: - supports-color @@ -50004,7 +50135,7 @@ snapshots: dependencies: '@tediousjs/connection-string': 0.5.0 commander: 11.1.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.4.0) rfdc: 1.4.1 tarn: 3.0.2 tedious: 16.7.1 @@ -51755,7 +51886,7 @@ snapshots: ajv: 8.17.1 chalk: 5.3.0 ci-info: 4.1.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.4.0) deepmerge: 4.3.1 escalade: 3.2.0 fast-glob: 3.3.2 @@ -53891,7 +54022,7 @@ snapshots: ts-interface-checker@0.1.13: {} - ts-jest@29.2.5(@babel/core@7.26.0)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(esbuild@0.24.2)(jest@29.7.0(@types/node@20.17.30)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.17.30)(typescript@5.7.2)))(typescript@5.7.2): + ts-jest@29.2.5(@babel/core@7.26.0)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(jest@29.7.0(@types/node@20.17.30)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.17.30)(typescript@5.7.2)))(typescript@5.7.2): dependencies: bs-logger: 0.2.6 ejs: 3.1.10 @@ -53909,9 +54040,8 @@ snapshots: '@jest/transform': 29.7.0 '@jest/types': 29.6.3 babel-jest: 29.7.0(@babel/core@7.26.0) - esbuild: 0.24.2 - ts-jest@29.2.5(@babel/core@7.26.0)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.26.0))(jest@29.7.0(@types/node@20.17.6)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.17.6)(typescript@5.6.3)))(typescript@5.6.3): + ts-jest@29.2.5(@babel/core@8.0.0-alpha.13)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@8.0.0-alpha.13))(jest@29.7.0(@types/node@20.17.6)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@types/node@20.17.6)(typescript@5.6.3)))(typescript@5.6.3): dependencies: bs-logger: 0.2.6 ejs: 3.1.10 @@ -53925,10 +54055,10 @@ snapshots: typescript: 5.6.3 yargs-parser: 21.1.1 optionalDependencies: - '@babel/core': 7.26.0 + '@babel/core': 8.0.0-alpha.13 '@jest/transform': 29.7.0 '@jest/types': 29.6.3 - babel-jest: 29.7.0(@babel/core@7.26.0) + babel-jest: 29.7.0(@babel/core@8.0.0-alpha.13) ts-node@10.9.2(@types/node@20.17.30)(typescript@5.7.2): dependencies: @@ -54100,7 +54230,7 @@ snapshots: cac: 6.7.14 chokidar: 4.0.3 consola: 3.4.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.4.0) esbuild: 0.24.2 joycon: 3.1.1 picocolors: 1.1.1 @@ -54128,7 +54258,7 @@ snapshots: cac: 6.7.14 chokidar: 4.0.3 consola: 3.4.0 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.4.0) esbuild: 0.24.2 joycon: 3.1.1 picocolors: 1.1.1 @@ -54752,7 +54882,7 @@ snapshots: '@volar/typescript': 2.4.10 '@vue/language-core': 2.1.6(typescript@5.9.2) compare-versions: 6.1.1 - debug: 4.3.7(supports-color@5.5.0) + debug: 4.3.7(supports-color@9.4.0) kolorist: 1.8.0 local-pkg: 0.5.1 magic-string: 0.30.13 From a09a4f0c2d245c116c95c1fc18a4307fb1762540 Mon Sep 17 00:00:00 2001 From: Luan Cazarine Date: Tue, 28 Oct 2025 17:22:20 -0300 Subject: [PATCH 3/4] Update Notion component versions to latest releases - Bumped versions for multiple actions and sources, including `append-block`, `complete-file-upload`, `create-comment`, `create-database`, `create-file-upload`, `create-page`, `delete-block`, `duplicate-page`, `get-current-user`, `list-all-users`, `list-file-uploads`, `query-database`, `retrieve-block`, `retrieve-database-content`, `retrieve-database-schema`, `retrieve-file-upload`, `retrieve-page`, `retrieve-page-property-item`, `retrieve-user`, `search`, `send-file-upload`, `update-block`, `update-database`, `update-page`, and various sources. - Ensured all components are aligned with the latest API specifications. --- components/notion/actions/append-block/append-block.mjs | 2 +- .../actions/complete-file-upload/complete-file-upload.mjs | 2 +- components/notion/actions/create-comment/create-comment.mjs | 2 +- components/notion/actions/create-database/create-database.mjs | 2 +- .../notion/actions/create-file-upload/create-file-upload.mjs | 2 +- components/notion/actions/create-page/create-page.mjs | 2 +- components/notion/actions/delete-block/delete-block.mjs | 2 +- components/notion/actions/duplicate-page/duplicate-page.mjs | 2 +- components/notion/actions/get-current-user/get-current-user.mjs | 2 +- components/notion/actions/list-all-users/list-all-users.mjs | 2 +- .../notion/actions/list-file-uploads/list-file-uploads.mjs | 2 +- components/notion/actions/query-database/query-database.mjs | 2 +- components/notion/actions/retrieve-block/retrieve-block.mjs | 2 +- .../retrieve-database-content/retrieve-database-content.mjs | 2 +- .../retrieve-database-schema/retrieve-database-schema.mjs | 2 +- .../actions/retrieve-file-upload/retrieve-file-upload.mjs | 2 +- .../retrieve-page-property-item/retrieve-page-property-item.mjs | 2 +- components/notion/actions/retrieve-page/retrieve-page.mjs | 2 +- components/notion/actions/retrieve-user/retrieve-user.mjs | 2 +- components/notion/actions/search/search.mjs | 2 +- components/notion/actions/send-file-upload/send-file-upload.mjs | 2 +- components/notion/actions/update-block/update-block.mjs | 2 +- components/notion/actions/update-database/update-database.mjs | 2 +- components/notion/actions/update-page/update-page.mjs | 2 +- .../notion/sources/new-comment-created/new-comment-created.mjs | 2 +- components/notion/sources/new-database/new-database.mjs | 2 +- components/notion/sources/new-page/new-page.mjs | 2 +- .../new-webhook-event-instant/new-webhook-event-instant.mjs | 2 +- .../sources/page-or-subpage-updated/page-or-subpage-updated.mjs | 2 +- .../page-properties-updated-instant.mjs | 2 +- .../updated-page-by-timestamp/updated-page-by-timestamp.mjs | 2 +- components/notion/sources/updated-page-id/updated-page-id.mjs | 2 +- components/notion/sources/updated-page/updated-page.mjs | 2 +- 33 files changed, 33 insertions(+), 33 deletions(-) diff --git a/components/notion/actions/append-block/append-block.mjs b/components/notion/actions/append-block/append-block.mjs index 9882fc372fa0e..30414cc0ff335 100644 --- a/components/notion/actions/append-block/append-block.mjs +++ b/components/notion/actions/append-block/append-block.mjs @@ -7,7 +7,7 @@ export default { key: "notion-append-block", name: "Append Block to Parent", description: "Append new and/or existing blocks to the specified parent. [See the documentation](https://developers.notion.com/reference/patch-block-children)", - version: "0.4.0", + version: "0.4.1", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/complete-file-upload/complete-file-upload.mjs b/components/notion/actions/complete-file-upload/complete-file-upload.mjs index 6f92291d3a250..c86996aafd849 100644 --- a/components/notion/actions/complete-file-upload/complete-file-upload.mjs +++ b/components/notion/actions/complete-file-upload/complete-file-upload.mjs @@ -6,7 +6,7 @@ export default { key: "notion-complete-file-upload", name: "Complete File Upload", 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)", - version: "0.0.7", + version: "0.0.8", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/create-comment/create-comment.mjs b/components/notion/actions/create-comment/create-comment.mjs index c9265c839d33e..72f8e4c71e0f0 100644 --- a/components/notion/actions/create-comment/create-comment.mjs +++ b/components/notion/actions/create-comment/create-comment.mjs @@ -5,7 +5,7 @@ export default { key: "notion-create-comment", name: "Create Comment", description: "Create a comment in a page or existing discussion thread. [See the documentation](https://developers.notion.com/reference/create-a-comment)", - version: "0.0.9", + version: "0.0.10", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/create-database/create-database.mjs b/components/notion/actions/create-database/create-database.mjs index efbd5abb35949..7b20522fe9395 100644 --- a/components/notion/actions/create-database/create-database.mjs +++ b/components/notion/actions/create-database/create-database.mjs @@ -7,7 +7,7 @@ export default { key: "notion-create-database", name: "Create Database", description: "Create a database and its initial data source. [See the documentation](https://developers.notion.com/reference/database-create)", - version: "0.1.4", + version: "0.1.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/create-file-upload/create-file-upload.mjs b/components/notion/actions/create-file-upload/create-file-upload.mjs index 0d10489b4469c..215612fa28c97 100644 --- a/components/notion/actions/create-file-upload/create-file-upload.mjs +++ b/components/notion/actions/create-file-upload/create-file-upload.mjs @@ -6,7 +6,7 @@ export default { key: "notion-create-file-upload", name: "Create File Upload", description: "Create a file upload. [See the documentation](https://developers.notion.com/reference/create-a-file-upload)", - version: "0.0.7", + version: "0.0.8", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/create-page/create-page.mjs b/components/notion/actions/create-page/create-page.mjs index 3c4643084f358..db5798e683f7a 100644 --- a/components/notion/actions/create-page/create-page.mjs +++ b/components/notion/actions/create-page/create-page.mjs @@ -6,7 +6,7 @@ export default { key: "notion-create-page", name: "Create Page", description: "Create a page from a parent page. [See the documentation](https://developers.notion.com/reference/post-page)", - version: "0.3.0", + version: "0.3.1", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/delete-block/delete-block.mjs b/components/notion/actions/delete-block/delete-block.mjs index c6f85f92881ee..cee685db05869 100644 --- a/components/notion/actions/delete-block/delete-block.mjs +++ b/components/notion/actions/delete-block/delete-block.mjs @@ -6,7 +6,7 @@ export default { key: "notion-delete-block", name: "Delete Block", 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)", - version: "0.0.7", + version: "0.0.8", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/notion/actions/duplicate-page/duplicate-page.mjs b/components/notion/actions/duplicate-page/duplicate-page.mjs index d426033615e5e..d9aa1ac5532b6 100644 --- a/components/notion/actions/duplicate-page/duplicate-page.mjs +++ b/components/notion/actions/duplicate-page/duplicate-page.mjs @@ -7,7 +7,7 @@ export default { key: "notion-duplicate-page", name: "Duplicate Page", description: "Create a new page copied from an existing page block. [See the documentation](https://developers.notion.com/reference/post-page)", - version: "0.0.22", + version: "0.0.23", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/get-current-user/get-current-user.mjs b/components/notion/actions/get-current-user/get-current-user.mjs index f0d13ca6259b8..da96e7c811de6 100644 --- a/components/notion/actions/get-current-user/get-current-user.mjs +++ b/components/notion/actions/get-current-user/get-current-user.mjs @@ -4,7 +4,7 @@ export default { key: "notion-get-current-user", name: "Get Current User", description: "Retrieve the Notion identity tied to the current OAuth token, returning the full `users.retrieve` payload for `me` (person or bot). Includes the user ID, name, avatar URL, type (`person` vs `bot`), and workspace ownership metadata—useful for confirming which workspace is connected, adapting downstream queries, or giving an LLM the context it needs about who is operating inside Notion. [See the documentation](https://developers.notion.com/reference/get-user).", - version: "0.0.1", + version: "0.0.2", type: "action", annotations: { destructiveHint: false, diff --git a/components/notion/actions/list-all-users/list-all-users.mjs b/components/notion/actions/list-all-users/list-all-users.mjs index d8de347918eab..3e7c684336238 100644 --- a/components/notion/actions/list-all-users/list-all-users.mjs +++ b/components/notion/actions/list-all-users/list-all-users.mjs @@ -4,7 +4,7 @@ export default { key: "notion-list-all-users", name: "List All Users", description: "Returns all users in the workspace. [See the documentation](https://developers.notion.com/reference/get-users)", - version: "0.0.4", + version: "0.0.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/list-file-uploads/list-file-uploads.mjs b/components/notion/actions/list-file-uploads/list-file-uploads.mjs index 92170e17b84f8..752dddd0d0f50 100644 --- a/components/notion/actions/list-file-uploads/list-file-uploads.mjs +++ b/components/notion/actions/list-file-uploads/list-file-uploads.mjs @@ -6,7 +6,7 @@ export default { key: "notion-list-file-uploads", name: "List File Uploads", description: "Use this action to list file uploads. [See the documentation](https://developers.notion.com/reference/list-file-uploads)", - version: "0.0.7", + version: "0.0.8", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/query-database/query-database.mjs b/components/notion/actions/query-database/query-database.mjs index 82968f4d9b76a..d688e5cf8d6cf 100644 --- a/components/notion/actions/query-database/query-database.mjs +++ b/components/notion/actions/query-database/query-database.mjs @@ -5,7 +5,7 @@ export default { key: "notion-query-database", name: "Query Data Source", description: "Query a data source with a specified filter. [See the documentation](https://developers.notion.com/reference/query-a-data-source)", - version: "1.0.1", + version: "1.0.2", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/retrieve-block/retrieve-block.mjs b/components/notion/actions/retrieve-block/retrieve-block.mjs index aea59d0beb927..b21397aff8b13 100644 --- a/components/notion/actions/retrieve-block/retrieve-block.mjs +++ b/components/notion/actions/retrieve-block/retrieve-block.mjs @@ -4,7 +4,7 @@ export default { key: "notion-retrieve-block", name: "Retrieve Page Content", 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)", - version: "0.2.7", + version: "0.2.8", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/retrieve-database-content/retrieve-database-content.mjs b/components/notion/actions/retrieve-database-content/retrieve-database-content.mjs index 858fa59db7776..08101a47c5f61 100644 --- a/components/notion/actions/retrieve-database-content/retrieve-database-content.mjs +++ b/components/notion/actions/retrieve-database-content/retrieve-database-content.mjs @@ -4,7 +4,7 @@ export default { key: "notion-retrieve-database-content", name: "Retrieve Data Source Content", description: "Get all content of a data source. [See the documentation](https://developers.notion.com/reference/query-a-data-source)", - version: "1.0.1", + version: "1.0.2", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/retrieve-database-schema/retrieve-database-schema.mjs b/components/notion/actions/retrieve-database-schema/retrieve-database-schema.mjs index 17c7a4c1135bb..f75e59b730f75 100644 --- a/components/notion/actions/retrieve-database-schema/retrieve-database-schema.mjs +++ b/components/notion/actions/retrieve-database-schema/retrieve-database-schema.mjs @@ -4,7 +4,7 @@ export default { key: "notion-retrieve-database-schema", name: "Retrieve Data Source Schema", description: "Get the property schema of a data source in Notion. [See the documentation](https://developers.notion.com/reference/retrieve-a-data-source)", - version: "1.0.1", + version: "1.0.2", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/retrieve-file-upload/retrieve-file-upload.mjs b/components/notion/actions/retrieve-file-upload/retrieve-file-upload.mjs index 2369f366f6be8..2c4358bd42106 100644 --- a/components/notion/actions/retrieve-file-upload/retrieve-file-upload.mjs +++ b/components/notion/actions/retrieve-file-upload/retrieve-file-upload.mjs @@ -6,7 +6,7 @@ export default { key: "notion-retrieve-file-upload", name: "Retrieve File Upload", description: "Use this action to retrieve a file upload. [See the documentation](https://developers.notion.com/reference/retrieve-a-file-upload)", - version: "0.0.7", + version: "0.0.8", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/retrieve-page-property-item/retrieve-page-property-item.mjs b/components/notion/actions/retrieve-page-property-item/retrieve-page-property-item.mjs index d9340e6e9db42..374e6c1508d49 100644 --- a/components/notion/actions/retrieve-page-property-item/retrieve-page-property-item.mjs +++ b/components/notion/actions/retrieve-page-property-item/retrieve-page-property-item.mjs @@ -4,7 +4,7 @@ export default { key: "notion-retrieve-page-property-item", name: "Retrieve Page Property Item", description: "Get a Property Item object for a selected page and property. [See the documentation](https://developers.notion.com/reference/retrieve-a-page-property)", - version: "0.0.12", + version: "0.0.13", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/retrieve-page/retrieve-page.mjs b/components/notion/actions/retrieve-page/retrieve-page.mjs index 5961c47dcd7f0..08c99985e207a 100644 --- a/components/notion/actions/retrieve-page/retrieve-page.mjs +++ b/components/notion/actions/retrieve-page/retrieve-page.mjs @@ -4,7 +4,7 @@ export default { key: "notion-retrieve-page", name: "Retrieve Page Metadata", description: "Get details of a page. [See the documentation](https://developers.notion.com/reference/retrieve-a-page)", - version: "0.0.13", + version: "0.0.14", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/retrieve-user/retrieve-user.mjs b/components/notion/actions/retrieve-user/retrieve-user.mjs index c1af2bc5fd7ce..9ae5e709c20d1 100644 --- a/components/notion/actions/retrieve-user/retrieve-user.mjs +++ b/components/notion/actions/retrieve-user/retrieve-user.mjs @@ -4,7 +4,7 @@ export default { key: "notion-retrieve-user", name: "Retrieve User", description: "Returns a user using the ID specified. [See the documentation](https://developers.notion.com/reference/get-user)", - version: "0.0.4", + version: "0.0.5", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/search/search.mjs b/components/notion/actions/search/search.mjs index 40ad2b86057ff..b10fcb84e8770 100644 --- a/components/notion/actions/search/search.mjs +++ b/components/notion/actions/search/search.mjs @@ -5,7 +5,7 @@ export default { key: "notion-search", name: "Find Pages or Data Sources", description: "Searches for a page or data source. [See the documentation](https://developers.notion.com/reference/post-search)", - version: "0.1.1", + version: "0.1.2", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/send-file-upload/send-file-upload.mjs b/components/notion/actions/send-file-upload/send-file-upload.mjs index 19f1e85c97697..652b60a7becf7 100644 --- a/components/notion/actions/send-file-upload/send-file-upload.mjs +++ b/components/notion/actions/send-file-upload/send-file-upload.mjs @@ -8,7 +8,7 @@ export default { key: "notion-send-file-upload", name: "Send File Upload", description: "Send a file upload. [See the documentation](https://developers.notion.com/reference/send-a-file-upload)", - version: "0.0.7", + version: "0.0.8", annotations: { destructiveHint: false, openWorldHint: true, diff --git a/components/notion/actions/update-block/update-block.mjs b/components/notion/actions/update-block/update-block.mjs index f98173ca0ffab..5e24f4a219423 100644 --- a/components/notion/actions/update-block/update-block.mjs +++ b/components/notion/actions/update-block/update-block.mjs @@ -7,7 +7,7 @@ export default { key: "notion-update-block", name: "Update Child Block", description: "Updates a child block object. [See the documentation](https://developers.notion.com/reference/update-a-block)", - version: "0.0.7", + version: "0.0.8", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/notion/actions/update-database/update-database.mjs b/components/notion/actions/update-database/update-database.mjs index 9c1137fa3e76d..9fbf3af6b9da5 100644 --- a/components/notion/actions/update-database/update-database.mjs +++ b/components/notion/actions/update-database/update-database.mjs @@ -7,7 +7,7 @@ export default { key: "notion-update-database", name: "Update Data Source", description: "Update a data source. [See the documentation](https://developers.notion.com/reference/update-a-data-source)", - version: "1.0.4", + version: "1.0.5", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/notion/actions/update-page/update-page.mjs b/components/notion/actions/update-page/update-page.mjs index 0c00a60fb543d..5ed65ddf5f91e 100644 --- a/components/notion/actions/update-page/update-page.mjs +++ b/components/notion/actions/update-page/update-page.mjs @@ -7,7 +7,7 @@ export default { key: "notion-update-page", name: "Update Page", 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)", - version: "2.0.4", + version: "2.0.5", annotations: { destructiveHint: true, openWorldHint: true, diff --git a/components/notion/sources/new-comment-created/new-comment-created.mjs b/components/notion/sources/new-comment-created/new-comment-created.mjs index ee509db1f9754..6a2a1cda6eeae 100644 --- a/components/notion/sources/new-comment-created/new-comment-created.mjs +++ b/components/notion/sources/new-comment-created/new-comment-created.mjs @@ -5,7 +5,7 @@ export default { key: "notion-new-comment-created", name: "New Comment Created", description: "Emit new event when a new comment is created in a page or block. [See the documentation](https://developers.notion.com/reference/retrieve-a-comment)", - version: "0.0.8", + version: "0.0.9", type: "source", dedupe: "unique", props: { diff --git a/components/notion/sources/new-database/new-database.mjs b/components/notion/sources/new-database/new-database.mjs index fbe83f13bce6e..746365a624446 100644 --- a/components/notion/sources/new-database/new-database.mjs +++ b/components/notion/sources/new-database/new-database.mjs @@ -7,7 +7,7 @@ export default { key: "notion-new-database", name: "New Data Source Created", description: "Emit new event when a data source is created. [See the documentation](https://developers.notion.com/reference/data-source)", - version: "0.1.0", + version: "0.1.1", type: "source", props: { ...base.props, diff --git a/components/notion/sources/new-page/new-page.mjs b/components/notion/sources/new-page/new-page.mjs index e2cd78e5dbe01..64573b39be471 100644 --- a/components/notion/sources/new-page/new-page.mjs +++ b/components/notion/sources/new-page/new-page.mjs @@ -8,7 +8,7 @@ export default { key: "notion-new-page", name: "New Page in Data Source", description: "Emit new event when a page is created in the selected data source. [See the documentation](https://developers.notion.com/reference/page)", - version: "1.0.0", + version: "1.0.1", type: "source", props: { ...base.props, diff --git a/components/notion/sources/new-webhook-event-instant/new-webhook-event-instant.mjs b/components/notion/sources/new-webhook-event-instant/new-webhook-event-instant.mjs index 4992fe61a1d8e..c817752864724 100644 --- a/components/notion/sources/new-webhook-event-instant/new-webhook-event-instant.mjs +++ b/components/notion/sources/new-webhook-event-instant/new-webhook-event-instant.mjs @@ -6,7 +6,7 @@ export default { key: "notion-new-webhook-event-instant", name: "New Webhook Event (Instant)", description: "Emit new event each time a webhook event is received. Webhook must be setup in Notion. [See the documentation](https://developers.notion.com/reference/webhooks#step-1-creating-a-webhook-subscription)", - version: "0.0.3", + version: "0.0.4", type: "source", dedupe: "unique", methods: { diff --git a/components/notion/sources/page-or-subpage-updated/page-or-subpage-updated.mjs b/components/notion/sources/page-or-subpage-updated/page-or-subpage-updated.mjs index ea79655e767c2..539f0d311de1d 100644 --- a/components/notion/sources/page-or-subpage-updated/page-or-subpage-updated.mjs +++ b/components/notion/sources/page-or-subpage-updated/page-or-subpage-updated.mjs @@ -7,7 +7,7 @@ export default { key: "notion-page-or-subpage-updated", name: "Page or Subpage Updated", /* eslint-disable-line pipedream/source-name */ description: "Emit new event when the selected page or one of its sub-pages is updated. [See the documentation](https://developers.notion.com/reference/page)", - version: "0.0.13", + version: "0.0.14", type: "source", dedupe: "unique", props: { diff --git a/components/notion/sources/page-properties-updated-instant/page-properties-updated-instant.mjs b/components/notion/sources/page-properties-updated-instant/page-properties-updated-instant.mjs index 0e45844c78189..ff8a6c8ca5d2f 100644 --- a/components/notion/sources/page-properties-updated-instant/page-properties-updated-instant.mjs +++ b/components/notion/sources/page-properties-updated-instant/page-properties-updated-instant.mjs @@ -6,7 +6,7 @@ export default { key: "notion-page-properties-updated-instant", name: "Page Properties Updated (Instant)", 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)", - version: "1.0.0", + version: "1.0.1", type: "source", dedupe: "unique", props: { diff --git a/components/notion/sources/updated-page-by-timestamp/updated-page-by-timestamp.mjs b/components/notion/sources/updated-page-by-timestamp/updated-page-by-timestamp.mjs index 78f76b8a4c251..33b58c60408aa 100644 --- a/components/notion/sources/updated-page-by-timestamp/updated-page-by-timestamp.mjs +++ b/components/notion/sources/updated-page-by-timestamp/updated-page-by-timestamp.mjs @@ -8,7 +8,7 @@ export default { key: "notion-updated-page-by-timestamp", name: "New or Updated Page in Data Source (By Timestamp)", description: "Emit new event when a page is created or updated in the selected data source. [See the documentation](https://developers.notion.com/reference/page)", - version: "1.0.0", + version: "1.0.1", type: "source", dedupe: "unique", props: { diff --git a/components/notion/sources/updated-page-id/updated-page-id.mjs b/components/notion/sources/updated-page-id/updated-page-id.mjs index 467acb47351d1..8982ac5028312 100644 --- a/components/notion/sources/updated-page-id/updated-page-id.mjs +++ b/components/notion/sources/updated-page-id/updated-page-id.mjs @@ -7,7 +7,7 @@ export default { key: "notion-updated-page-id", name: "Page Updated", /* eslint-disable-line pipedream/source-name */ description: "Emit new event when a selected page is updated. [See the documentation](https://developers.notion.com/reference/page)", - version: "0.0.12", + version: "0.0.13", type: "source", dedupe: "unique", props: { diff --git a/components/notion/sources/updated-page/updated-page.mjs b/components/notion/sources/updated-page/updated-page.mjs index 2f8dbf408ceb5..505b887be8b4c 100644 --- a/components/notion/sources/updated-page/updated-page.mjs +++ b/components/notion/sources/updated-page/updated-page.mjs @@ -9,7 +9,7 @@ export default { key: "notion-updated-page", name: "New or Updated Page in Data Source (By Property)", description: "Emit new event when a page is created or updated in the selected data source. [See the documentation](https://developers.notion.com/reference/page)", - version: "1.0.0", + version: "1.0.1", type: "source", dedupe: "unique", props: { From 1c54013c93f81b8c0aaa6f03d17b0a7fb260bd55 Mon Sep 17 00:00:00 2001 From: Luan Cazarine Date: Wed, 29 Oct 2025 12:21:21 -0300 Subject: [PATCH 4/4] Refactor template retrieval in create-page-from-database action - Updated the `listTemplates` method call to use a parameters object for improved readability and maintainability. - Added support for optional `start_cursor` parameter to handle pagination when retrieving templates. --- .../create-page-from-database.mjs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/components/notion/actions/create-page-from-database/create-page-from-database.mjs b/components/notion/actions/create-page-from-database/create-page-from-database.mjs index 440938e9b3a29..945dbc5e9e51f 100644 --- a/components/notion/actions/create-page-from-database/create-page-from-database.mjs +++ b/components/notion/actions/create-page-from-database/create-page-from-database.mjs @@ -115,12 +115,15 @@ export default { label: "Template ID", description: "The ID of the template to use for the page. [See the documentation](https://developers.notion.com/docs/creating-pages-from-templates) for more information.", options: async({ prevContext }) => { + const params = { + data_source_id: this.parentDataSource, + }; + if (prevContext?.nCursor) { + params.start_cursor = prevContext.nCursor; + } const { templates, next_cursor: nCursor, - } = await this.notion.listTemplates({ - data_source_id: this.parentDataSource, - start_cursor: prevContext?.nCursor, - }); + } = await this.notion.listTemplates(params); return { options: templates.map(({ name: label, id: value,