@frogbotai/piece-notion 0.14.0 → 0.16.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/dist/index.d.ts +1 -1
- package/dist/index.js +29 -29
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PieceFactoryConfig } from
|
|
1
|
+
import { type PieceFactoryConfig } from 'frogbot/pieces';
|
|
2
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
3
|
export declare const notionScopes: readonly [];
|
|
4
4
|
export declare function createNotion(config?: PieceFactoryConfig): import("frogbot/pieces").Piece & {
|
package/dist/index.js
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import * as module from
|
|
2
|
-
import { createActivepiecesPiece } from
|
|
1
|
+
import * as module from '@activepieces/piece-notion';
|
|
2
|
+
import { createActivepiecesPiece } from 'frogbot/pieces';
|
|
3
3
|
export const notionActions = [
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
14
|
];
|
|
15
15
|
export const notionScopes = [];
|
|
16
16
|
export function createNotion(config) {
|
|
17
17
|
const piece = createActivepiecesPiece({
|
|
18
18
|
module: module,
|
|
19
|
-
service:
|
|
20
|
-
credentialType:
|
|
19
|
+
service: 'notion',
|
|
20
|
+
credentialType: 'oauth2',
|
|
21
21
|
defaultActions: notionActions,
|
|
22
22
|
scopes: notionScopes,
|
|
23
23
|
config,
|
|
24
24
|
});
|
|
25
25
|
return Object.assign(piece, {
|
|
26
26
|
/** List Databases: Lists Notion databases accessible by the connected account with pagination support. */
|
|
27
|
-
listDatabases: piece.tool(
|
|
27
|
+
listDatabases: piece.tool('list_databases'),
|
|
28
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(
|
|
29
|
+
createDatabaseItem: piece.tool('create_database_item'),
|
|
30
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(
|
|
31
|
+
updateDatabaseItem: piece.tool('update_database_item'),
|
|
32
32
|
/** Find Database Item: Searches for an item in database by field. */
|
|
33
|
-
notionFindDatabaseItem: piece.tool(
|
|
33
|
+
notionFindDatabaseItem: piece.tool('notion-find-database-item'),
|
|
34
34
|
/** List Pages: Lists pages in a Notion database with optional field filters and pagination. */
|
|
35
|
-
listDatabasePages: piece.tool(
|
|
35
|
+
listDatabasePages: piece.tool('list_database_pages'),
|
|
36
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(
|
|
37
|
+
createPage: piece.tool('createPage'),
|
|
38
38
|
/** Append to Page: Appends content to the end of a page. */
|
|
39
|
-
appendToPage: piece.tool(
|
|
39
|
+
appendToPage: piece.tool('append_to_page'),
|
|
40
40
|
/** Get block content: Retrieve the actual content of a page (represented by blocks). */
|
|
41
|
-
getPageOrBlockChildren: piece.tool(
|
|
41
|
+
getPageOrBlockChildren: piece.tool('getPageOrBlockChildren'),
|
|
42
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(
|
|
43
|
+
archiveDatabaseItem: piece.tool('archive_database_item'),
|
|
44
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(
|
|
45
|
+
restoreDatabaseItem: piece.tool('restore_database_item'),
|
|
46
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(
|
|
47
|
+
addComment: piece.tool('add_comment'),
|
|
48
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(
|
|
49
|
+
retrieveDatabase: piece.tool('retrieve_database'),
|
|
50
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(
|
|
51
|
+
getPageComments: piece.tool('get_page_comments'),
|
|
52
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(
|
|
53
|
+
findPage: piece.tool('find_page'),
|
|
54
54
|
/** Custom API Call: Make a custom API call to a specific endpoint */
|
|
55
|
-
customApiCall: piece.tool(
|
|
55
|
+
customApiCall: piece.tool('custom_api_call'),
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frogbotai/piece-notion",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Notion tools for FrogBot.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Colby Gilbert",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"@activepieces/piece-notion": "0.6.6"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"frogbot": "0.
|
|
30
|
+
"frogbot": "0.16.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"typescript": "5.6.2",
|
|
34
|
-
"frogbot": "0.
|
|
34
|
+
"frogbot": "0.16.0"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|