AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
feat(notion): ui improvement (#16454)
Talal Jaber286e086cfff8
diff --git a/bun.lock b/bun.lockindex 1a768fc0e50..570c64979c8 100644--- a/bun.lock+++ b/bun.lock@@ -6501,7 +6501,7 @@},"packages/pieces/community/notion": {"name": "@activepieces/piece-notion",- "version": "0.7.5",+ "version": "0.8.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",diff --git a/packages/pieces/community/notion/package.json b/packages/pieces/community/notion/package.jsonindex c3d5c33e9cd..4f72a1cf527 100644--- a/packages/pieces/community/notion/package.json+++ b/packages/pieces/community/notion/package.json@@ -1,6 +1,6 @@{"name": "@activepieces/piece-notion",- "version": "0.7.5",+ "version": "0.8.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","dependencies": {diff --git a/packages/pieces/community/notion/src/i18n/de.json b/packages/pieces/community/notion/src/i18n/de.jsonindex 97cd60e29be..7f5361101e3 100644--- a/packages/pieces/community/notion/src/i18n/de.json+++ b/packages/pieces/community/notion/src/i18n/de.json@@ -218,5 +218,7 @@"Triggers when an item is added to a database.": "Wird ausgelöst, wenn ein Element zur Datenbank hinzugefügt wird.","Triggers when an item is updated in a database.": "Wird ausgelöst, wenn ein Element in einer Datenbank aktualisiert wird.","Triggers when a comment is added to a page.": "Triggers when a comment is added to a page.",- "Triggers when any page shared with the integration is edited.": "Triggers when any page shared with the integration is edited."+ "Triggers when any page shared with the integration is edited.": "Triggers when any page shared with the integration is edited.",+ "Empty fields keep their current value. Checkboxes are always saved as shown.": "Leere Felder behalten ihren aktuellen Wert. Kontrollkästchen werden immer wie angezeigt gespeichert.",+ "Add Notion-Version, e.g. 2022-02-22. Authorization is added for you.": "Fügen Sie Notion-Version hinzu, z. B. 2022-02-22. Die Autorisierung wird automatisch hinzugefügt."}\ No newline at end of filediff --git a/packages/pieces/community/notion/src/i18n/es.json b/packages/pieces/community/notion/src/i18n/es.jsonindex 3593036df41..cd7502eafd3 100644--- a/packages/pieces/community/notion/src/i18n/es.json+++ b/packages/pieces/community/notion/src/i18n/es.json@@ -218,5 +218,7 @@"Triggers when an item is added to a database.": "Dispara cuando un elemento se agrega a una base de datos.","Triggers when an item is updated in a database.": "Dispara cuando un elemento se actualiza en una base de datos.","Triggers when a comment is added to a page.": "Triggers when a comment is added to a page.",- "Triggers when any page shared with the integration is edited.": "Triggers when any page shared with the integration is edited."+ "Triggers when any page shared with the integration is edited.": "Triggers when any page shared with the integration is edited.",+ "Empty fields keep their current value. Checkboxes are always saved as shown.": "Los campos vacíos conservan su valor actual. Las casillas de verificación siempre se guardan tal como se muestran.",+ "Add Notion-Version, e.g. 2022-02-22. Authorization is added for you.": "Añade Notion-Version, p. ej. 2022-02-22. La autorización se añade automáticamente."}\ No newline at end of filediff --git a/packages/pieces/community/notion/src/i18n/fr.json b/packages/pieces/community/notion/src/i18n/fr.jsonindex 1361c4b0a9a..1946c9e7821 100644--- a/packages/pieces/community/notion/src/i18n/fr.json+++ b/packages/pieces/community/notion/src/i18n/fr.json@@ -218,5 +218,7 @@"Triggers when an item is added to a database.": "Déclenche lorsqu'un élément est ajouté à une base de données.","Triggers when an item is updated in a database.": "Déclenche lorsqu'un élément est mis à jour dans une base de données.","Triggers when a comment is added to a page.": "Triggers when a comment is added to a page.",- "Triggers when any page shared with the integration is edited.": "Triggers when any page shared with the integration is edited."+ "Triggers when any page shared with the integration is edited.": "Triggers when any page shared with the integration is edited.",+ "Empty fields keep their current value. Checkboxes are always saved as shown.": "Les champs vides conservent leur valeur actuelle. Les cases à cocher sont toujours enregistrées telles qu'affichées.",+ "Add Notion-Version, e.g. 2022-02-22. Authorization is added for you.": "Ajoutez Notion-Version, par ex. 2022-02-22. L'autorisation est ajoutée automatiquement."}\ No newline at end of filediff --git a/packages/pieces/community/notion/src/i18n/ja.json b/packages/pieces/community/notion/src/i18n/ja.jsonindex d67ffc640d7..e84d5dae23c 100644--- a/packages/pieces/community/notion/src/i18n/ja.json+++ b/packages/pieces/community/notion/src/i18n/ja.json@@ -218,5 +218,7 @@"Triggers when an item is added to a database.": "データベースに項目が追加されたときに、フローを開始します。","Triggers when an item is updated in a database.": "データベースの項目が更新されたときに、フローを開始します。","Triggers when a comment is added to a page.": "Triggers when a comment is added to a page.",- "Triggers when any page shared with the integration is edited.": "Triggers when any page shared with the integration is edited."+ "Triggers when any page shared with the integration is edited.": "Triggers when any page shared with the integration is edited.",+ "Empty fields keep their current value. Checkboxes are always saved as shown.": "空のフィールドは現在の値を保持します。チェックボックスは常に表示どおりに保存されます。",+ "Add Notion-Version, e.g. 2022-02-22. Authorization is added for you.": "Notion-Version を追加してください(例: 2022-02-22)。認証は自動で追加されます。"}\ No newline at end of filediff --git a/packages/pieces/community/notion/src/i18n/nl.json b/packages/pieces/community/notion/src/i18n/nl.jsonindex 794d9f18411..c7f62d1fbb0 100644--- a/packages/pieces/community/notion/src/i18n/nl.json+++ b/packages/pieces/community/notion/src/i18n/nl.json@@ -218,5 +218,7 @@"Triggers when an item is added to a database.": "Triggert wanneer een artikel is toegevoegd aan een database.","Triggers when an item is updated in a database.": "Triggert wanneer een item wordt bijgewerkt in een database.","Triggers when a comment is added to a page.": "Triggers when a comment is added to a page.",- "Triggers when any page shared with the integration is edited.": "Triggers when any page shared with the integration is edited."+ "Triggers when any page shared with the integration is edited.": "Triggers when any page shared with the integration is edited.",+ "Empty fields keep their current value. Checkboxes are always saved as shown.": "Lege velden behouden hun huidige waarde. Selectievakjes worden altijd opgeslagen zoals ze worden weergegeven.",+ "Add Notion-Version, e.g. 2022-02-22. Authorization is added for you.": "Voeg Notion-Version toe, bijv. 2022-02-22. Autorisatie wordt automatisch toegevoegd."}\ No newline at end of filediff --git a/packages/pieces/community/notion/src/i18n/pt.json b/packages/pieces/community/notion/src/i18n/pt.jsonindex 04891fed2cf..b8fb86837f2 100644--- a/packages/pieces/community/notion/src/i18n/pt.json+++ b/packages/pieces/community/notion/src/i18n/pt.json@@ -218,5 +218,7 @@"Triggers when an item is added to a database.": "Dispara quando um item é adicionado a um banco de dados.","Triggers when an item is updated in a database.": "Dispara quando um item é atualizado em um banco de dados.","Triggers when a comment is added to a page.": "Triggers when a comment is added to a page.",- "Triggers when any page shared with the integration is edited.": "Triggers when any page shared with the integration is edited."+ "Triggers when any page shared with the integration is edited.": "Triggers when any page shared with the integration is edited.",+ "Empty fields keep their current value. Checkboxes are always saved as shown.": "Campos vazios mantêm o valor atual. As caixas de seleção são sempre salvas como mostradas.",+ "Add Notion-Version, e.g. 2022-02-22. Authorization is added for you.": "Adicione Notion-Version, por exemplo 2022-02-22. A autorização é adicionada automaticamente."}\ No newline at end of filediff --git a/packages/pieces/community/notion/src/i18n/ru.json b/packages/pieces/community/notion/src/i18n/ru.jsonindex bdf0f8cc162..b1e83cecf34 100644--- a/packages/pieces/community/notion/src/i18n/ru.json+++ b/packages/pieces/community/notion/src/i18n/ru.json@@ -74,5 +74,7 @@"Triggers when an item is added to a database.": "Включает при добавлении элемента в базу данных.","Triggers when an item is updated in a database.": "Включает при обновлении элемента в базу данных.","Triggers whenever someone adds a new comment to a specific Notion page. Perfect for notifications, review workflows, or automated responses to team feedback.": "Триггеры всякий раз, когда кто-то добавляет новый комментарий на конкретную страницу Notion. Идеально подходит для уведомлений, обзоров рабочих процессов или автоматических ответов на командные отзывы.",- "Triggers whenever any page in your Notion workspace is modified or updated. Ideal for syncing content changes, backup processes, or notifying teams about documentation updates.": "Включает всякий раз, когда любая страница в Вашем проекте Notion изменена или обновлена. Идеально подходит для синхронизации изменений, резервных копий или команд об обновлениях документации."+ "Triggers whenever any page in your Notion workspace is modified or updated. Ideal for syncing content changes, backup processes, or notifying teams about documentation updates.": "Включает всякий раз, когда любая страница в Вашем проекте Notion изменена или обновлена. Идеально подходит для синхронизации изменений, резервных копий или команд об обновлениях документации.",+ "Empty fields keep their current value. Checkboxes are always saved as shown.": "Пустые поля сохраняют текущее значение. Флажки всегда сохраняются так, как показаны.",+ "Add Notion-Version, e.g. 2022-02-22. Authorization is added for you.": "Добавьте заголовок Notion-Version, например 2022-02-22. Авторизация добавляется автоматически."}\ No newline at end of filediff --git a/packages/pieces/community/notion/src/i18n/translation.json b/packages/pieces/community/notion/src/i18n/translation.jsonindex a10d21c0c93..1922950f56f 100644--- a/packages/pieces/community/notion/src/i18n/translation.json+++ b/packages/pieces/community/notion/src/i18n/translation.json@@ -121,6 +121,7 @@"Pick a database, then fill one or more of its fields. Items must match every value exactly.": "Pick a database, then fill one or more of its fields. Items must match every value exactly.","How many pages to return, up to 100.": "How many pages to return, up to 100.","Pick a database, then fill any of its fields below to filter. Empty fields are ignored.": "Pick a database, then fill any of its fields below to filter. Empty fields are ignored.",+ "Empty fields keep their current value. Checkboxes are always saved as shown.": "Empty fields keep their current value. Checkboxes are always saved as shown.","The new page is created inside this page.": "The new page is created inside this page.","Plain text body. Markdown is not rendered.": "Plain text body. Markdown is not rendered.","Your 100 most recently edited pages shared with the integration.": "Your 100 most recently edited pages shared with the integration.",@@ -214,5 +215,6 @@"Triggers when an item is added to a database.": "Triggers when an item is added to a database.","Triggers when an item is updated in a database.": "Triggers when an item is updated in a database.","Triggers when a comment is added to a page.": "Triggers when a comment is added to a page.",- "Triggers when any page shared with the integration is edited.": "Triggers when any page shared with the integration is edited."+ "Triggers when any page shared with the integration is edited.": "Triggers when any page shared with the integration is edited.",+ "Add Notion-Version, e.g. 2022-02-22. Authorization is added for you.": "Add Notion-Version, e.g. 2022-02-22. Authorization is added for you."}\ No newline at end of filediff --git a/packages/pieces/community/notion/src/i18n/zh.json b/packages/pieces/community/notion/src/i18n/zh.jsonindex 7be57c2ef24..5d5d434f544 100644--- a/packages/pieces/community/notion/src/i18n/zh.json+++ b/packages/pieces/community/notion/src/i18n/zh.json@@ -218,5 +218,7 @@"Triggers when an item is added to a database.": "Triggers when an item is added to a database.","Triggers when an item is updated in a database.": "Triggers when an item is updated in a database.","Triggers when a comment is added to a page.": "Triggers when a comment is added to a page.",- "Triggers when any page shared with the integration is edited.": "Triggers when any page shared with the integration is edited."+ "Triggers when any page shared with the integration is edited.": "Triggers when any page shared with the integration is edited.",+ "Empty fields keep their current value. Checkboxes are always saved as shown.": "空字段保留其当前值。复选框始终按显示的状态保存。",+ "Add Notion-Version, e.g. 2022-02-22. Authorization is added for you.": "添加 Notion-Version,例如 2022-02-22。授权会自动添加。"}\ No newline at end of filediff --git a/packages/pieces/community/notion/src/index.ts b/packages/pieces/community/notion/src/index.tsindex 3be2593e9f4..82afab75466 100644--- a/packages/pieces/community/notion/src/index.ts+++ b/packages/pieces/community/notion/src/index.ts@@ -2,7 +2,7 @@ import { createCustomApiCallAction } from '@activepieces/pieces-common';import { createPiece } from '@activepieces/pieces-framework';import { PieceCategory } from '@activepieces/pieces-framework';import { notionAuth } from './lib/auth';-import { getNotionToken, NotionAuthValue } from './lib/common';+import { getNotionToken, NotionAuthValue, notionCommon } from './lib/common';import { appendToPage } from './lib/actions/append-to-page';import { createDatabaseItem } from './lib/actions/create-database-item';import { createPage } from './lib/actions/create-page';@@ -107,6 +107,16 @@ export const notion = createPiece({authMapping: async (auth) => ({Authorization: `Bearer ${getNotionToken(auth as NotionAuthValue)}`,}),+ props: {+ url: {+ description: `Full URL, or a path relative to ${notionCommon.baseUrl}`,+ placeholder: '/users/me',+ },+ headers: {+ description:+ 'Add Notion-Version, e.g. 2022-02-22. Authorization is added for you.',+ },+ },}),],triggers: [newDatabaseItem, updatedDatabaseItem, newComment, updatedPage],diff --git a/packages/pieces/community/notion/src/lib/actions/add-comment.ts b/packages/pieces/community/notion/src/lib/actions/add-comment.tsindex 1c91079a166..c0c41a4ad6a 100644--- a/packages/pieces/community/notion/src/lib/actions/add-comment.ts+++ b/packages/pieces/community/notion/src/lib/actions/add-comment.ts@@ -16,6 +16,22 @@ export const addComment = createAction({'Posts a new comment thread on a Notion page. Use when an agent must leave feedback or a note on a page for collaborators; requires the page id and comment text, and the integration must have comment-insert capability. Not idempotent: each call posts a separate comment.',idempotent: false,},+ propertyGroups: [+ {+ key: 'page',+ display: 'section',+ label: 'Page',+ icon: 'file',+ props: ['page_id'],+ },+ {+ key: 'comment',+ display: 'section',+ label: 'Comment',+ icon: 'text',+ props: ['comment_text'],+ },+ ],props: {page_id: notionCommon.page,comment_text: Property.LongText({diff --git a/packages/pieces/community/notion/src/lib/actions/append-to-page.ts b/packages/pieces/community/notion/src/lib/actions/append-to-page.tsindex 801267cbdbc..0f2e79d04f7 100644--- a/packages/pieces/community/notion/src/lib/actions/append-to-page.ts+++ b/packages/pieces/community/notion/src/lib/actions/append-to-page.ts@@ -19,6 +19,22 @@ export const appendToPage = createAction({'Appends new block content (parsed from markdown) to the end of an existing Notion page or block. Use when an agent must add to a page without altering existing content; requires the target page/block id. Not idempotent: each call appends again, duplicating the content on repeat.',idempotent: false,},+ propertyGroups: [+ {+ key: 'page',+ display: 'section',+ label: 'Page',+ icon: 'file',+ props: ['pageId'],+ },+ {+ key: 'content',+ display: 'section',+ label: 'Content',+ icon: 'text',+ props: ['content'],+ },+ ],props: {pageId: notionCommon.page,content: Property.LongText({diff --git a/packages/pieces/community/notion/src/lib/actions/archive-database-item.ts b/packages/pieces/community/notion/src/lib/actions/archive-database-item.tsindex e0ad6f7fe6c..7c00005b2d3 100644--- a/packages/pieces/community/notion/src/lib/actions/archive-database-item.ts+++ b/packages/pieces/community/notion/src/lib/actions/archive-database-item.ts@@ -16,6 +16,15 @@ export const archiveDatabaseItem = createAction({'Soft-deletes a Notion database item by setting its archived flag, keeping it recoverable via Restore. Use when an agent must remove a record from active views without permanent deletion; requires the database_id and item id. Idempotent: archiving an already-archived item leaves it archived.',idempotent: true,},+ propertyGroups: [+ {+ key: 'item',+ display: 'section',+ label: 'Database item',+ icon: 'inbox',+ props: ['database_id', 'database_item_id'],+ },+ ],props: {database_id: notionCommon.database_id,database_item_id: notionCommon.database_item_id,diff --git a/packages/pieces/community/notion/src/lib/actions/create-database-item.ts b/packages/pieces/community/notion/src/lib/actions/create-database-item.tsindex b9128cb680b..6bd85e88d8d 100644--- a/packages/pieces/community/notion/src/lib/actions/create-database-item.ts+++ b/packages/pieces/community/notion/src/lib/actions/create-database-item.ts@@ -21,6 +21,22 @@ export const createDatabaseItem = createAction({'Creates a new row (page) in a specific Notion database, setting its property fields and optionally appending body content. Use when an agent must add a structured record (task, contact, ticket) to a known database; requires the target database_id and field values matching that database schema. Not idempotent: each call creates a separate item, so guard against duplicates.',idempotent: false,},+ propertyGroups: [+ {+ key: 'database',+ display: 'section',+ label: 'Database',+ icon: 'inbox',+ props: ['database_id'],+ },+ {+ key: 'new_item',+ display: 'section',+ label: 'New item',+ icon: 'sliders',+ props: ['databaseFields', 'content'],+ },+ ],props: {database_id: notionCommon.database_id,databaseFields: notionCommon.databaseFields,diff --git a/packages/pieces/community/notion/src/lib/actions/create-page.ts b/packages/pieces/community/notion/src/lib/actions/create-page.tsindex 504b6c480ca..3b13f02a3ef 100644--- a/packages/pieces/community/notion/src/lib/actions/create-page.ts+++ b/packages/pieces/community/notion/src/lib/actions/create-page.ts@@ -18,6 +18,22 @@ export const createPage = createAction({'Creates a new standalone page nested under an existing parent page, with a title and optional body content. Use when an agent must add free-form document pages (notes, docs) rather than database rows; requires the parent page id. Not idempotent: each call creates a new page even with identical title.',idempotent: false,},+ propertyGroups: [+ {+ key: 'parent',+ display: 'section',+ label: 'Parent page',+ icon: 'file',+ props: ['pageId'],+ },+ {+ key: 'new_page',+ display: 'section',+ label: 'New page',+ icon: 'text',+ props: ['title', 'content'],+ },+ ],props: {pageId: {...notionCommon.page,diff --git a/packages/pieces/community/notion/src/lib/actions/find-item.ts b/packages/pieces/community/notion/src/lib/actions/find-item.tsindex c600720e6aa..220df70860b 100644--- a/packages/pieces/community/notion/src/lib/actions/find-item.ts+++ b/packages/pieces/community/notion/src/lib/actions/find-item.ts@@ -20,6 +20,22 @@ export const findDatabaseItem = createAction({'Queries a Notion database for items whose property values match the given filter fields (combined with AND). Use when an agent needs to look up existing records by field value before reading or updating them; requires the database_id and at least one filter field matching the database schema. Idempotent read-only lookup.',idempotent: true,},+ propertyGroups: [+ {+ key: 'database',+ display: 'section',+ label: 'Database',+ icon: 'inbox',+ props: ['database_id'],+ },+ {+ key: 'filters',+ display: 'section',+ label: 'Filters',+ icon: 'filter',+ props: ['filter_hint', 'filterDatabaseFields'],+ },+ ],props: {database_id: notionCommon.database_id,filter_hint: Property.MarkDown({diff --git a/packages/pieces/community/notion/src/lib/actions/find-page.ts b/packages/pieces/community/notion/src/lib/actions/find-page.tsindex 9d225b0ffea..e5cbee01af2 100644--- a/packages/pieces/community/notion/src/lib/actions/find-page.ts+++ b/packages/pieces/community/notion/src/lib/actions/find-page.ts@@ -16,6 +16,22 @@ export const findPage = createAction({'Searches the workspace for pages whose title matches a query, supporting exact or partial matching. Use when an agent needs to locate a page id by name before reading or modifying it; requires a title query and only searches pages shared with the integration. Idempotent read-only search.',idempotent: true,},+ propertyGroups: [+ {+ key: 'search',+ display: 'section',+ label: 'Search',+ icon: 'filter',+ props: ['title', 'exact_match'],+ },+ {+ key: 'results',+ display: 'section',+ label: 'Results',+ icon: 'sliders',+ props: ['limit'],+ },+ ],props: {title: Property.ShortText({displayName: 'Title',diff --git a/packages/pieces/community/notion/src/lib/actions/get-page-or-block-children.ts b/packages/pieces/community/notion/src/lib/actions/get-page-or-block-children.tsindex ba8ed6117a6..a8b3a2fc273 100644--- a/packages/pieces/community/notion/src/lib/actions/get-page-or-block-children.ts+++ b/packages/pieces/community/notion/src/lib/actions/get-page-or-block-children.ts@@ -22,6 +22,22 @@ export const getPageOrBlockChildren = createAction({'Reads the body content of a Notion page or block by recursively listing its child blocks, optionally rendered as markdown. Use when an agent needs to read what is actually written inside a page (text, nested blocks) rather than its metadata; requires the page or parent block id. Idempotent read-only fetch.',idempotent: true,},+ propertyGroups: [+ {+ key: 'source',+ display: 'section',+ label: 'Page or block',+ icon: 'file',+ props: ['parentId'],+ },+ {+ key: 'output',+ display: 'section',+ label: 'Output',+ icon: 'sliders',+ props: ['markdown', 'dynamic'],+ },+ ],props: {parentId: Property.ShortText({displayName: 'Page or Block ID',diff --git a/packages/pieces/community/notion/src/lib/actions/list-database-pages.ts b/packages/pieces/community/notion/src/lib/actions/list-database-pages.tsindex d5abdce5b5c..08d6b3fb1ff 100644--- a/packages/pieces/community/notion/src/lib/actions/list-database-pages.ts+++ b/packages/pieces/community/notion/src/lib/actions/list-database-pages.ts@@ -22,6 +22,29 @@ export const listDatabasePages = createAction({'Queries pages in a specific Notion database, optionally filtering by property values (combined with AND), and returns paginated results. Use when an agent needs to browse or enumerate database records rather than find a single item; requires database_id. Idempotent read-only lookup.',idempotent: true,},+ propertyGroups: [+ {+ key: 'database',+ display: 'section',+ label: 'Database',+ icon: 'inbox',+ props: ['database_id'],+ },+ {+ key: 'filters',+ display: 'section',+ label: 'Filters',+ icon: 'filter',+ props: ['filter_hint', 'filterDatabaseFields'],+ },+ {+ key: 'results',+ display: 'section',+ label: 'Results',+ icon: 'sliders',+ props: ['limit'],+ },+ ],props: {database_id: notionCommon.database_id,limit: Property.Number({diff --git a/packages/pieces/community/notion/src/lib/actions/list-databases.ts b/packages/pieces/community/notion/src/lib/actions/list-databases.tsindex 7a28decaf13..0ec4dea8409 100644--- a/packages/pieces/community/notion/src/lib/actions/list-databases.ts+++ b/packages/pieces/community/notion/src/lib/actions/list-databases.ts@@ -19,6 +19,15 @@ export const listDatabases = createAction({'Lists Notion databases the connected account can access, sorted by last edited time. Use when an agent needs to discover available databases before querying or writing items; supports pagination via cursor. Idempotent read-only lookup.',idempotent: true,},+ propertyGroups: [+ {+ key: 'results',+ display: 'section',+ label: 'Results',+ icon: 'sliders',+ props: ['limit'],+ },+ ],props: {limit: Property.Number({displayName: 'Limit',diff --git a/packages/pieces/community/notion/src/lib/actions/restore-database-item.ts b/packages/pieces/community/notion/src/lib/actions/restore-database-item.tsindex 7b21bcdc154..c25ade00e78 100644--- a/packages/pieces/community/notion/src/lib/actions/restore-database-item.ts+++ b/packages/pieces/community/notion/src/lib/actions/restore-database-item.ts@@ -16,6 +16,15 @@ export const restoreDatabaseItem = createAction({'Un-archives a previously archived Notion database item, returning it to active status. Use when an agent must recover a record that was archived; requires the database_id and the archived item id. Idempotent: restoring an already-active item leaves it active.',idempotent: true,},+ propertyGroups: [+ {+ key: 'item',+ display: 'section',+ label: 'Database item',+ icon: 'inbox',+ props: ['database_id', 'archived_item_id'],+ },+ ],props: {database_id: notionCommon.database_id,archived_item_id: notionCommon.archived_database_item_id,diff --git a/packages/pieces/community/notion/src/lib/actions/update-database-item.ts b/packages/pieces/community/notion/src/lib/actions/update-database-item.tsindex 746f95d76f7..30a327738b6 100644--- a/packages/pieces/community/notion/src/lib/actions/update-database-item.ts+++ b/packages/pieces/community/notion/src/lib/actions/update-database-item.ts@@ -1,6 +1,8 @@import {createAction,DynamicPropsValue,+ MarkdownVariant,+ Property,} from '@activepieces/pieces-framework';import { Client } from '@notionhq/client';import { NotionFieldMapping } from '../common/models';@@ -20,9 +22,30 @@ export const updateDatabaseItem = createAction({'Overwrites property fields on an existing Notion database item identified by its page id. Use when an agent must change values on a known record (status, assignee, dates) rather than create one; requires the database_id and the target item id. Idempotent: re-applying the same field values leaves the item in the same final state.',idempotent: true,},+ propertyGroups: [+ {+ key: 'item',+ display: 'section',+ label: 'Database item',+ icon: 'inbox',+ props: ['database_id', 'database_item_id'],+ },+ {+ key: 'changes',+ display: 'section',+ label: 'Changes',+ icon: 'sliders',+ props: ['changes_info', 'databaseFields'],+ },+ ],props: {database_id: notionCommon.database_id,database_item_id: notionCommon.database_item_id,+ changes_info: Property.MarkDown({+ value:+ 'Empty fields keep their current value. Checkboxes are always saved as shown.',+ variant: MarkdownVariant.INFO,+ }),databaseFields: notionCommon.databaseFields,},outputSchema: updateDatabaseItemActionOutputSchema,