Skip to content

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

fix(notion): resolve lint errors (#15880)

Kishan Parmar6b007e4f765b
diff --git a/packages/pieces/community/notion/package.json b/packages/pieces/community/notion/package.json
index 73f1f1425e8..8b540f455c4 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.2",
+ "version": "0.7.3",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"dependencies": {
diff --git a/packages/pieces/community/notion/src/lib/actions/add-comment.ts b/packages/pieces/community/notion/src/lib/actions/add-comment.ts
index b05a75c4d5c..1c91079a166 100644
--- a/packages/pieces/community/notion/src/lib/actions/add-comment.ts
+++ b/packages/pieces/community/notion/src/lib/actions/add-comment.ts
@@ -9,8 +9,7 @@ export const addComment = createAction({
name: 'add_comment',
classification: 'WRITE',
displayName: 'Add Comment',
- description:
- 'Add a comment to a page.',
+ description: 'Add a comment to a page.',
audience: 'human',
aiMetadata: {
description:
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.ts
index edb2df2b0e3..e0ad6f7fe6c 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
@@ -9,8 +9,7 @@ export const archiveDatabaseItem = createAction({
name: 'archive_database_item',
classification: 'DESTRUCTIVE',
displayName: 'Archive Database Item',
- description:
- 'Archive a database item. It can be restored later.',
+ description: 'Archive a database item. It can be restored later.',
audience: 'human',
aiMetadata: {
description:
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.ts
index 8324e833ed4..b9128cb680b 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
@@ -14,8 +14,7 @@ export const createDatabaseItem = createAction({
name: 'create_database_item',
classification: 'WRITE',
displayName: 'Create Database Item',
- description:
- 'Add an item to a database and set its fields.',
+ description: 'Add an item to a database and set its fields.',
audience: 'human',
aiMetadata: {
description:
diff --git a/packages/pieces/community/notion/src/lib/actions/find-page.ts b/packages/pieces/community/notion/src/lib/actions/find-page.ts
index 1a170a51de1..9d225b0ffea 100644
--- a/packages/pieces/community/notion/src/lib/actions/find-page.ts
+++ b/packages/pieces/community/notion/src/lib/actions/find-page.ts
@@ -9,8 +9,7 @@ export const findPage = createAction({
name: 'find_page',
classification: 'SEARCH',
displayName: 'Find Page',
- description:
- 'Find pages by title, with exact or partial matching.',
+ description: 'Find pages by title, with exact or partial matching.',
audience: 'human',
aiMetadata: {
description:
@@ -26,8 +25,7 @@ export const findPage = createAction({
}),
exact_match: Property.Checkbox({
displayName: 'Exact Match',
- description:
- 'Only return pages whose title equals the search exactly.',
+ description: 'Only return pages whose title equals the search exactly.',
required: false,
defaultValue: false,
}),
diff --git a/packages/pieces/community/notion/src/lib/actions/get-page-comments.ts b/packages/pieces/community/notion/src/lib/actions/get-page-comments.ts
index 6e7471d7ff1..253de79d1dd 100644
--- a/packages/pieces/community/notion/src/lib/actions/get-page-comments.ts
+++ b/packages/pieces/community/notion/src/lib/actions/get-page-comments.ts
@@ -9,8 +9,7 @@ export const getPageComments = createAction({
name: 'get_page_comments',
classification: 'READ',
displayName: 'Get Page Comments',
- description:
- 'Get all comments on a page, grouped by thread.',
+ description: 'Get all comments on a page, grouped by thread.',
audience: 'human',
aiMetadata: {
description:
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.ts
index ea1e963e9ca..d5abdce5b5c 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
@@ -15,8 +15,7 @@ export const listDatabasePages = createAction({
name: 'list_database_pages',
classification: 'SEARCH',
displayName: 'List Pages',
- description:
- 'List pages in a database, optionally filtered by field values.',
+ description: 'List pages in a database, optionally filtered by field values.',
audience: 'human',
aiMetadata: {
description:
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.ts
index beb47986caa..7b21bcdc154 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
@@ -9,8 +9,7 @@ export const restoreDatabaseItem = createAction({
name: 'restore_database_item',
classification: 'WRITE',
displayName: 'Restore Database Item',
- description:
- 'Restore an archived database item.',
+ description: 'Restore an archived database item.',
audience: 'human',
aiMetadata: {
description:
diff --git a/packages/pieces/community/notion/src/lib/actions/retrieve-database.ts b/packages/pieces/community/notion/src/lib/actions/retrieve-database.ts
index bce34e65a37..28375be895b 100644
--- a/packages/pieces/community/notion/src/lib/actions/retrieve-database.ts
+++ b/packages/pieces/community/notion/src/lib/actions/retrieve-database.ts
@@ -14,8 +14,7 @@ export const retrieveDatabase = createAction({
name: 'retrieve_database',
classification: 'READ',
displayName: 'Retrieve Database Structure',
- description:
- "Get a database's properties, field types and options.",
+ description: "Get a database's properties, field types and options.",
audience: 'human',
aiMetadata: {
description:
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.ts
index 9a8602dc9aa..746f95d76f7 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
@@ -13,8 +13,7 @@ export const updateDatabaseItem = createAction({
name: 'update_database_item',
classification: 'WRITE',
displayName: 'Update Database Item',
- description:
- 'Change field values on an existing database item.',
+ description: 'Change field values on an existing database item.',
audience: 'human',
aiMetadata: {
description:
diff --git a/packages/pieces/community/notion/src/lib/common/index.ts b/packages/pieces/community/notion/src/lib/common/index.ts
index bc65e36f22a..db0fdad6d6f 100644
--- a/packages/pieces/community/notion/src/lib/common/index.ts
+++ b/packages/pieces/community/notion/src/lib/common/index.ts
@@ -155,7 +155,8 @@ export const notionCommon = {
} catch (error: any) {
return {
disabled: true,
- placeholder: 'Could not load items. Check the integration has access.',
+ placeholder:
+ 'Could not load items. Check the integration has access.',
options: [],
};
}
diff --git a/packages/pieces/community/notion/src/lib/triggers/new-comment.ts b/packages/pieces/community/notion/src/lib/triggers/new-comment.ts
index 14dc6f10411..f6f62df216e 100644
--- a/packages/pieces/community/notion/src/lib/triggers/new-comment.ts
+++ b/packages/pieces/community/notion/src/lib/triggers/new-comment.ts
@@ -19,8 +19,7 @@ export const newComment = createTrigger({
name: 'new_comment',
classification: 'READ',
displayName: 'New Comment',
- description:
- 'Triggers when a comment is added to a page.',
+ description: 'Triggers when a comment is added to a page.',
aiMetadata: {
description:
'Fires when a new comment is posted on the selected Notion page, emitting the comment. Use to react to feedback or discussion activity on a specific page; requires read-comments capability on the integration.',
diff --git a/packages/pieces/community/notion/src/lib/triggers/updated-page.ts b/packages/pieces/community/notion/src/lib/triggers/updated-page.ts
index b84c9f6c981..0503fdf8ea7 100644
--- a/packages/pieces/community/notion/src/lib/triggers/updated-page.ts
+++ b/packages/pieces/community/notion/src/lib/triggers/updated-page.ts
@@ -19,8 +19,7 @@ export const updatedPage = createTrigger({
name: 'updated_page',
classification: 'READ',
displayName: 'Updated Page',
- description:
- 'Triggers when any page shared with the integration is edited.',
+ description: 'Triggers when any page shared with the integration is edited.',
aiMetadata: {
description:
'Fires whenever any page shared with the integration in the Notion workspace is modified, emitting the updated page. Use to track content changes workspace-wide rather than within a single database or page.',