n8n-nodes-notion-advanced 1.1.19-beta → 1.1.20-beta

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.
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.533 2.221c-.466.047-.56.28-.374.466l1.3.979zM5.206 6.678v14.018c0 .746.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.305c0-.607-.28-.887-.747-.84l-15.177.887c-.56.047-.748.327-.748.746v-.42zm14.337.793c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 18s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933l3.176-.233z" fill="currentColor"/>
3
+ </svg>
@@ -16,8 +16,8 @@ class NotionAITool {
16
16
  defaults: {
17
17
  name: 'Notion AI Tool',
18
18
  },
19
- inputs: ["main" /* NodeConnectionType.Main */],
20
- outputs: ["main" /* NodeConnectionType.Main */],
19
+ inputs: ['main'],
20
+ outputs: ['main'],
21
21
  codex: {
22
22
  categories: ['Productivity', 'AI', 'Documentation'],
23
23
  subcategories: {
@@ -34,8 +34,8 @@ class NotionAdvanced {
34
34
  defaults: {
35
35
  name: 'Notion Advanced',
36
36
  },
37
- inputs: ["main" /* NodeConnectionType.Main */],
38
- outputs: ["main" /* NodeConnectionType.Main */],
37
+ inputs: ['main'],
38
+ outputs: ['main'],
39
39
  credentials: [
40
40
  {
41
41
  name: 'notionApi',
@@ -549,17 +549,18 @@ class NotionAdvanced {
549
549
  const resource = this.getNodeParameter('resource', i);
550
550
  const operation = this.getNodeParameter('operation', i);
551
551
  let item;
552
+ const nodeInstance = this.constructor.prototype;
552
553
  if (resource === 'page') {
553
- item = await this.executePage(this, operation, i);
554
+ item = await nodeInstance.executePage.call(nodeInstance, this, operation, i);
554
555
  }
555
556
  else if (resource === 'block') {
556
- item = await this.executeBlock(this, operation, i);
557
+ item = await nodeInstance.executeBlock.call(nodeInstance, this, operation, i);
557
558
  }
558
559
  else if (resource === 'database') {
559
- item = await this.executeDatabase(this, operation, i);
560
+ item = await nodeInstance.executeDatabase.call(nodeInstance, this, operation, i);
560
561
  }
561
562
  else if (resource === 'user') {
562
- item = await this.executeUser(this, operation, i);
563
+ item = await nodeInstance.executeUser.call(nodeInstance, this, operation, i);
563
564
  }
564
565
  else {
565
566
  throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown resource: ${resource}`);
@@ -46,7 +46,11 @@ async function notionApiRequest(method, endpoint, body = {}, qs = {}) {
46
46
  return await this.helpers.httpRequest(options);
47
47
  }
48
48
  catch (error) {
49
- throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
49
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), {
50
+ message: error.message,
51
+ description: 'Failed to make Notion API request',
52
+ httpCode: error.status || error.statusCode || 500,
53
+ });
50
54
  }
51
55
  }
52
56
  /**
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-notion-advanced",
3
- "version": "1.1.19-beta",
3
+ "version": "1.1.20-beta",
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
  "scripts": {
6
6
  "build": "node dev-notes/build-for-install.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-notion-advanced",
3
- "version": "1.1.19-beta",
3
+ "version": "1.1.20-beta",
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
  "scripts": {
6
6
  "build": "node dev-notes/build-for-install.js",