n8n-nodes-notion-advanced 1.2.8-beta → 1.2.9-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.
- package/dist/nodes/NotionAdvanced/NotionAITool.node.d.ts +40 -1
- package/dist/nodes/NotionAdvanced/NotionAITool.node.js +480 -120
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/dist/nodes/NotionAdvanced/NotionAITool.node.ts +0 -611
- package/dist/nodes/NotionAdvanced/NotionAdvanced.node.ts +0 -1022
- package/dist/nodes/NotionAdvanced/NotionUtils.ts +0 -588
- package/dist/nodes/NotionAdvanced/notion.svg +0 -3
- package/dist/types/NotionTypes.ts +0 -411
@@ -1,4 +1,27 @@
|
|
1
1
|
import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription, IDataObject } from 'n8n-workflow';
|
2
|
+
interface TagMatch {
|
3
|
+
start: number;
|
4
|
+
end: number;
|
5
|
+
match: string;
|
6
|
+
processor: (match: string, group1?: string, group2?: string, group3?: string) => string;
|
7
|
+
groups: string[];
|
8
|
+
replacement?: string;
|
9
|
+
}
|
10
|
+
interface XMLNode {
|
11
|
+
id: string;
|
12
|
+
tagName: string;
|
13
|
+
start: number;
|
14
|
+
end: number;
|
15
|
+
match: string;
|
16
|
+
processor: (...args: string[]) => IDataObject | null;
|
17
|
+
groups: string[];
|
18
|
+
children: XMLNode[];
|
19
|
+
parent?: XMLNode;
|
20
|
+
depth: number;
|
21
|
+
innerContent: string;
|
22
|
+
replacement?: string;
|
23
|
+
listProcessor?: (content: string, blocks: IDataObject[]) => void;
|
24
|
+
}
|
2
25
|
export declare class NotionAITool implements INodeType {
|
3
26
|
description: INodeTypeDescription;
|
4
27
|
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
@@ -9,10 +32,26 @@ export declare class NotionAITool implements INodeType {
|
|
9
32
|
static createDatabaseEntry(executeFunctions: IExecuteFunctions, itemIndex: number): Promise<IDataObject>;
|
10
33
|
static queryDatabase(executeFunctions: IExecuteFunctions, itemIndex: number): Promise<IDataObject>;
|
11
34
|
static parseContentToBlocks(content: string): IDataObject[];
|
35
|
+
static resolveOverlaps(matches: TagMatch[]): TagMatch[];
|
36
|
+
static validateXmlTag(match: string, tagName: string): boolean;
|
37
|
+
static optimizedReplace(content: string, matches: {
|
38
|
+
start: number;
|
39
|
+
end: number;
|
40
|
+
replacement: string;
|
41
|
+
match: string;
|
42
|
+
}[]): string;
|
43
|
+
static getUtf8BytePosition(str: string, charIndex: number): number;
|
44
|
+
static buildXMLTree(content: string, tagProcessors: any[]): XMLNode[];
|
45
|
+
static processXMLTreeDepthFirst(nodes: XMLNode[], blocks: IDataObject[], placeholderPrefix: string): Map<string, string>;
|
46
|
+
static applyHierarchicalReplacements(content: string, nodes: XMLNode[], replacements: Map<string, string>): string;
|
47
|
+
static getAllNodesFromTree(nodes: XMLNode[]): XMLNode[];
|
12
48
|
static processXmlTags(content: string, blocks: IDataObject[]): string;
|
13
|
-
static cleanupRemainingHtml(content: string): string;
|
49
|
+
static cleanupRemainingHtml(content: string, placeholderPrefix?: string): string;
|
50
|
+
static processNestedHtmlInListItem(content: string): string;
|
51
|
+
static processNestedList(listContent: string, listType: 'bulleted_list_item' | 'numbered_list_item', blocks: IDataObject[]): void;
|
14
52
|
static getCalloutEmoji(type: string): string;
|
15
53
|
static getCalloutColor(type: string): string;
|
16
54
|
static parseBasicMarkdown(text: string): IDataObject[];
|
17
55
|
static parsePropertiesToUpdate(propertiesString: string): IDataObject;
|
18
56
|
}
|
57
|
+
export {};
|