@frogbotai/piece-notion 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +58 -0
- package/dist/index.js.map +1 -0
- package/package.json +44 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 FrogBot
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type PieceFactoryConfig } from "frogbot/pieces";
|
|
2
|
+
export declare const notionActions: readonly ["list_databases", "create_database_item", "update_database_item", "notion-find-database-item", "list_database_pages", "createPage", "append_to_page", "getPageOrBlockChildren", "add_comment", "find_page"];
|
|
3
|
+
export declare const notionScopes: readonly [];
|
|
4
|
+
export declare function createNotion(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
|
|
5
|
+
/** List Databases: Lists Notion databases accessible by the connected account with pagination support. */
|
|
6
|
+
listDatabases: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
7
|
+
/** Create Database Item: Add a new item to a Notion database with custom field values and optional content. Ideal for creating tasks, records, or entries in structured databases. */
|
|
8
|
+
createDatabaseItem: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
9
|
+
/** Update Database Item: Update specific fields in a Notion database item. Perfect for maintaining data, tracking changes, or syncing information across systems. */
|
|
10
|
+
updateDatabaseItem: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
11
|
+
/** Find Database Item: Searches for an item in database by field. */
|
|
12
|
+
notionFindDatabaseItem: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
13
|
+
/** List Pages: Lists pages in a Notion database with optional field filters and pagination. */
|
|
14
|
+
listDatabasePages: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
15
|
+
/** Create Page: Create a new Notion page as a sub-page with custom title and content. Perfect for organizing documentation, notes, or creating structured page hierarchies. */
|
|
16
|
+
createPage: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
17
|
+
/** Append to Page: Appends content to the end of a page. */
|
|
18
|
+
appendToPage: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
19
|
+
/** Get block content: Retrieve the actual content of a page (represented by blocks). */
|
|
20
|
+
getPageOrBlockChildren: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
21
|
+
/** Archive Database Item: Archive (soft-delete) a database item without permanently removing it. Archived items can be restored later if needed. */
|
|
22
|
+
archiveDatabaseItem: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
23
|
+
/** Restore Database Item: Restore an archived database item back to active status. Perfect for recovering accidentally archived tasks, projects, or records. */
|
|
24
|
+
restoreDatabaseItem: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
25
|
+
/** Add Comment: Add a comment to any Notion page to start discussions, provide feedback, or leave notes for team collaboration. */
|
|
26
|
+
addComment: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
27
|
+
/** Retrieve Database Structure: Get detailed information about a Notion database including all its properties, field types, and configuration. Perfect for building dynamic forms, validation rules, or understanding database schemas. */
|
|
28
|
+
retrieveDatabase: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
29
|
+
/** Get Page Comments: Retrieve all comments from a Notion page, organized by discussion threads. Perfect for tracking feedback, managing reviews, or monitoring page discussions. */
|
|
30
|
+
getPageComments: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
31
|
+
/** Find Page: Search for Notion pages by title with flexible matching options. Perfect for finding specific pages, building page references, or creating automated workflows based on page discovery. */
|
|
32
|
+
findPage: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
33
|
+
/** Custom API Call: Make a custom API call to a specific endpoint */
|
|
34
|
+
customApiCall: import("node_modules/frogbot/dist/types/tool").AnyTool;
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElF,eAAO,MAAM,aAAa,uNAWhB,CAAC;AACX,eAAO,MAAM,YAAY,aAAc,CAAC;AAExC,wBAAgB,YAAY,CAAC,MAAM,CAAC,EAAE,kBAAkB;IAUpD,0GAA0G;;IAE1G,sLAAsL;;IAEtL,qKAAqK;;IAErK,qEAAqE;;IAErE,+FAA+F;;IAE/F,+KAA+K;;IAE/K,4DAA4D;;IAE5D,wFAAwF;;IAExF,oJAAoJ;;IAEpJ,gKAAgK;;IAEhK,mIAAmI;;IAEnI,2OAA2O;;IAE3O,qLAAqL;;IAErL,yMAAyM;;IAEzM,qEAAqE;;EAGxE"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as module from "@activepieces/piece-notion";
|
|
2
|
+
import { createActivepiecesPiece } from "frogbot/pieces";
|
|
3
|
+
export const notionActions = [
|
|
4
|
+
"list_databases",
|
|
5
|
+
"create_database_item",
|
|
6
|
+
"update_database_item",
|
|
7
|
+
"notion-find-database-item",
|
|
8
|
+
"list_database_pages",
|
|
9
|
+
"createPage",
|
|
10
|
+
"append_to_page",
|
|
11
|
+
"getPageOrBlockChildren",
|
|
12
|
+
"add_comment",
|
|
13
|
+
"find_page",
|
|
14
|
+
];
|
|
15
|
+
export const notionScopes = [];
|
|
16
|
+
export function createNotion(config) {
|
|
17
|
+
const piece = createActivepiecesPiece({
|
|
18
|
+
module: module,
|
|
19
|
+
service: "notion",
|
|
20
|
+
credentialType: "oauth2",
|
|
21
|
+
defaultActions: notionActions,
|
|
22
|
+
scopes: notionScopes,
|
|
23
|
+
config,
|
|
24
|
+
});
|
|
25
|
+
return Object.assign(piece, {
|
|
26
|
+
/** List Databases: Lists Notion databases accessible by the connected account with pagination support. */
|
|
27
|
+
listDatabases: piece.tool("list_databases"),
|
|
28
|
+
/** Create Database Item: Add a new item to a Notion database with custom field values and optional content. Ideal for creating tasks, records, or entries in structured databases. */
|
|
29
|
+
createDatabaseItem: piece.tool("create_database_item"),
|
|
30
|
+
/** Update Database Item: Update specific fields in a Notion database item. Perfect for maintaining data, tracking changes, or syncing information across systems. */
|
|
31
|
+
updateDatabaseItem: piece.tool("update_database_item"),
|
|
32
|
+
/** Find Database Item: Searches for an item in database by field. */
|
|
33
|
+
notionFindDatabaseItem: piece.tool("notion-find-database-item"),
|
|
34
|
+
/** List Pages: Lists pages in a Notion database with optional field filters and pagination. */
|
|
35
|
+
listDatabasePages: piece.tool("list_database_pages"),
|
|
36
|
+
/** Create Page: Create a new Notion page as a sub-page with custom title and content. Perfect for organizing documentation, notes, or creating structured page hierarchies. */
|
|
37
|
+
createPage: piece.tool("createPage"),
|
|
38
|
+
/** Append to Page: Appends content to the end of a page. */
|
|
39
|
+
appendToPage: piece.tool("append_to_page"),
|
|
40
|
+
/** Get block content: Retrieve the actual content of a page (represented by blocks). */
|
|
41
|
+
getPageOrBlockChildren: piece.tool("getPageOrBlockChildren"),
|
|
42
|
+
/** Archive Database Item: Archive (soft-delete) a database item without permanently removing it. Archived items can be restored later if needed. */
|
|
43
|
+
archiveDatabaseItem: piece.tool("archive_database_item"),
|
|
44
|
+
/** Restore Database Item: Restore an archived database item back to active status. Perfect for recovering accidentally archived tasks, projects, or records. */
|
|
45
|
+
restoreDatabaseItem: piece.tool("restore_database_item"),
|
|
46
|
+
/** Add Comment: Add a comment to any Notion page to start discussions, provide feedback, or leave notes for team collaboration. */
|
|
47
|
+
addComment: piece.tool("add_comment"),
|
|
48
|
+
/** Retrieve Database Structure: Get detailed information about a Notion database including all its properties, field types, and configuration. Perfect for building dynamic forms, validation rules, or understanding database schemas. */
|
|
49
|
+
retrieveDatabase: piece.tool("retrieve_database"),
|
|
50
|
+
/** Get Page Comments: Retrieve all comments from a Notion page, organized by discussion threads. Perfect for tracking feedback, managing reviews, or monitoring page discussions. */
|
|
51
|
+
getPageComments: piece.tool("get_page_comments"),
|
|
52
|
+
/** Find Page: Search for Notion pages by title with flexible matching options. Perfect for finding specific pages, building page references, or creating automated workflows based on page discovery. */
|
|
53
|
+
findPage: piece.tool("find_page"),
|
|
54
|
+
/** Custom API Call: Make a custom API call to a specific endpoint */
|
|
55
|
+
customApiCall: piece.tool("custom_api_call"),
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,4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CAAC;QACxD,gKAAgK;QAChK,mBAAmB,EAAE,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC;QACxD,mIAAmI;QACnI,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC;QACrC,2OAA2O;QAC3O,gBAAgB,EAAE,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC;QACjD,qLAAqL;QACrL,eAAe,EAAE,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC;QAChD,yMAAyM;QACzM,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC;QACjC,qEAAqE;QACrE,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC;KAC7C,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@frogbotai/piece-notion",
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "Notion tools for FrogBot.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Colby Gilbert",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/frogbotai/frogbot.git",
|
|
10
|
+
"directory": "packages/pieces/piece-notion"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"default": "./dist/index.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"sideEffects": false,
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@activepieces/piece-notion": "0.6.6"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"frogbot": "0.5.0"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"typescript": "5.6.2",
|
|
34
|
+
"frogbot": "0.5.0"
|
|
35
|
+
},
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsc -p tsconfig.json",
|
|
41
|
+
"clean": "rm -rf dist",
|
|
42
|
+
"typecheck": "tsc --noEmit"
|
|
43
|
+
}
|
|
44
|
+
}
|