n8n-nodes-notion-advanced 1.1.0-beta.5 → 1.1.0-beta.7
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.
@@ -23,10 +23,23 @@ export class NotionAITool implements INodeType {
|
|
23
23
|
group: ['ai'],
|
24
24
|
version: 1,
|
25
25
|
subtitle: '={{$parameter["operation"]}}',
|
26
|
-
description: 'AI-powered tool for creating and managing Notion content
|
26
|
+
description: 'AI-powered tool for creating and managing Notion content with natural language',
|
27
27
|
defaults: {
|
28
28
|
name: 'Notion AI Tool',
|
29
29
|
},
|
30
|
+
codex: {
|
31
|
+
categories: ['AI'],
|
32
|
+
subcategories: {
|
33
|
+
AI: ['Tools'],
|
34
|
+
},
|
35
|
+
resources: {
|
36
|
+
primaryDocumentation: [
|
37
|
+
{
|
38
|
+
url: 'https://developers.notion.com/',
|
39
|
+
},
|
40
|
+
],
|
41
|
+
},
|
42
|
+
},
|
30
43
|
inputs: [NodeConnectionType.Main],
|
31
44
|
outputs: [NodeConnectionType.Main],
|
32
45
|
credentials: [
|
@@ -154,34 +167,6 @@ export class NotionAITool implements INodeType {
|
|
154
167
|
default: '',
|
155
168
|
description: 'Search terms to find pages. Leave empty to get all pages.',
|
156
169
|
},
|
157
|
-
{
|
158
|
-
displayName: 'Search Type',
|
159
|
-
name: 'searchType',
|
160
|
-
type: 'options',
|
161
|
-
displayOptions: {
|
162
|
-
show: {
|
163
|
-
operation: ['searchPages'],
|
164
|
-
},
|
165
|
-
},
|
166
|
-
options: [
|
167
|
-
{
|
168
|
-
name: 'All Content',
|
169
|
-
value: 'all',
|
170
|
-
description: 'Search in page titles and content',
|
171
|
-
},
|
172
|
-
{
|
173
|
-
name: 'Titles Only',
|
174
|
-
value: 'title',
|
175
|
-
description: 'Search only in page titles',
|
176
|
-
},
|
177
|
-
{
|
178
|
-
name: 'Recent Pages',
|
179
|
-
value: 'recent',
|
180
|
-
description: 'Get recently modified pages',
|
181
|
-
},
|
182
|
-
],
|
183
|
-
default: 'all',
|
184
|
-
},
|
185
170
|
|
186
171
|
// UPDATE PAGE PROPERTIES
|
187
172
|
{
|
@@ -264,13 +249,6 @@ export class NotionAITool implements INodeType {
|
|
264
249
|
default: '',
|
265
250
|
description: 'URL of cover image for the page',
|
266
251
|
},
|
267
|
-
{
|
268
|
-
displayName: 'Return Full Content',
|
269
|
-
name: 'returnFullContent',
|
270
|
-
type: 'boolean',
|
271
|
-
default: false,
|
272
|
-
description: 'Whether to return full page content or just metadata',
|
273
|
-
},
|
274
252
|
{
|
275
253
|
displayName: 'Max Results',
|
276
254
|
name: 'maxResults',
|
@@ -297,8 +275,6 @@ export class NotionAITool implements INodeType {
|
|
297
275
|
try {
|
298
276
|
const operation = this.getNodeParameter('operation', i) as string;
|
299
277
|
let result: IDataObject;
|
300
|
-
|
301
|
-
const nodeInstance = this.getNode() as any;
|
302
278
|
|
303
279
|
switch (operation) {
|
304
280
|
case 'createPageWithContent':
|
@@ -414,7 +390,6 @@ export class NotionAITool implements INodeType {
|
|
414
390
|
|
415
391
|
private async searchPages(this: IExecuteFunctions, itemIndex: number): Promise<IDataObject> {
|
416
392
|
const searchQuery = this.getNodeParameter('searchQuery', itemIndex, '') as string;
|
417
|
-
const searchType = this.getNodeParameter('searchType', itemIndex, 'all') as string;
|
418
393
|
const additionalOptions = this.getNodeParameter('additionalOptions', itemIndex, {}) as IDataObject;
|
419
394
|
const maxResults = (additionalOptions.maxResults as number) || 20;
|
420
395
|
|
@@ -426,18 +401,10 @@ export class NotionAITool implements INodeType {
|
|
426
401
|
body.query = searchQuery;
|
427
402
|
}
|
428
403
|
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
value: 'page',
|
434
|
-
};
|
435
|
-
} else {
|
436
|
-
body.filter = {
|
437
|
-
property: 'object',
|
438
|
-
value: 'page',
|
439
|
-
};
|
440
|
-
}
|
404
|
+
body.filter = {
|
405
|
+
property: 'object',
|
406
|
+
value: 'page',
|
407
|
+
};
|
441
408
|
|
442
409
|
const response = await notionApiRequest.call(this, 'POST', '/search', body);
|
443
410
|
|
package/dist/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "n8n-nodes-notion-advanced",
|
3
|
-
"version": "1.1.0-beta.
|
3
|
+
"version": "1.1.0-beta.7",
|
4
4
|
"description": "Advanced n8n Notion nodes: Full-featured workflow node + AI Agent Tool for intelligent Notion automation with 25+ block types (BETA)",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"scripts": {
|
@@ -20,7 +20,8 @@
|
|
20
20
|
"n8n": {
|
21
21
|
"n8nNodesApiVersion": 1,
|
22
22
|
"nodes": [
|
23
|
-
"dist/nodes/NotionAdvanced/NotionAdvanced.node.js"
|
23
|
+
"dist/nodes/NotionAdvanced/NotionAdvanced.node.js",
|
24
|
+
"dist/nodes/NotionAdvanced/NotionAITool.node.js"
|
24
25
|
]
|
25
26
|
},
|
26
27
|
"keywords": [
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "n8n-nodes-notion-advanced",
|
3
|
-
"version": "1.1.0-beta.
|
3
|
+
"version": "1.1.0-beta.7",
|
4
4
|
"description": "Advanced n8n Notion nodes: Full-featured workflow node + AI Agent Tool for intelligent Notion automation with 25+ block types (BETA)",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"scripts": {
|
@@ -20,7 +20,8 @@
|
|
20
20
|
"n8n": {
|
21
21
|
"n8nNodesApiVersion": 1,
|
22
22
|
"nodes": [
|
23
|
-
"dist/nodes/NotionAdvanced/NotionAdvanced.node.js"
|
23
|
+
"dist/nodes/NotionAdvanced/NotionAdvanced.node.js",
|
24
|
+
"dist/nodes/NotionAdvanced/NotionAITool.node.js"
|
24
25
|
]
|
25
26
|
},
|
26
27
|
"keywords": [
|