n8n-nodes-craft-daily-notes 1.0.24 → 1.0.27

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.
Files changed (80) hide show
  1. package/README.md +223 -64
  2. package/dist/credentials/CraftDocumentsApi.credentials.d.ts +9 -0
  3. package/dist/credentials/CraftDocumentsApi.credentials.js +31 -0
  4. package/dist/credentials/CraftDocumentsApi.credentials.js.map +1 -0
  5. package/dist/nodes/CraftDailyNotes/resources/collection/addItems.js +33 -7
  6. package/dist/nodes/CraftDailyNotes/resources/collection/addItems.js.map +1 -1
  7. package/dist/nodes/CraftDailyNotes/resources/collection/deleteItems.js +1 -1
  8. package/dist/nodes/CraftDailyNotes/resources/collection/deleteItems.js.map +1 -1
  9. package/dist/nodes/CraftDailyNotes/resources/collection/updateItems.js +40 -7
  10. package/dist/nodes/CraftDailyNotes/resources/collection/updateItems.js.map +1 -1
  11. package/dist/nodes/CraftDocuments/CraftDocuments.node.d.ts +12 -0
  12. package/dist/nodes/CraftDocuments/CraftDocuments.node.js +83 -0
  13. package/dist/nodes/CraftDocuments/CraftDocuments.node.js.map +1 -0
  14. package/dist/nodes/CraftDocuments/CraftDocuments.node.json +22 -0
  15. package/dist/nodes/CraftDocuments/loadOptions/getCollections.d.ts +2 -0
  16. package/dist/nodes/CraftDocuments/loadOptions/getCollections.js +18 -0
  17. package/dist/nodes/CraftDocuments/loadOptions/getCollections.js.map +1 -0
  18. package/dist/nodes/CraftDocuments/loadOptions/getDocuments.d.ts +2 -0
  19. package/dist/nodes/CraftDocuments/loadOptions/getDocuments.js +18 -0
  20. package/dist/nodes/CraftDocuments/loadOptions/getDocuments.js.map +1 -0
  21. package/dist/nodes/CraftDocuments/resources/block/delete.d.ts +2 -0
  22. package/dist/nodes/CraftDocuments/resources/block/delete.js +24 -0
  23. package/dist/nodes/CraftDocuments/resources/block/delete.js.map +1 -0
  24. package/dist/nodes/CraftDocuments/resources/block/get.d.ts +2 -0
  25. package/dist/nodes/CraftDocuments/resources/block/get.js +91 -0
  26. package/dist/nodes/CraftDocuments/resources/block/get.js.map +1 -0
  27. package/dist/nodes/CraftDocuments/resources/block/index.d.ts +2 -0
  28. package/dist/nodes/CraftDocuments/resources/block/index.js +104 -0
  29. package/dist/nodes/CraftDocuments/resources/block/index.js.map +1 -0
  30. package/dist/nodes/CraftDocuments/resources/block/insert.d.ts +3 -0
  31. package/dist/nodes/CraftDocuments/resources/block/insert.js +117 -0
  32. package/dist/nodes/CraftDocuments/resources/block/insert.js.map +1 -0
  33. package/dist/nodes/CraftDocuments/resources/block/move.d.ts +2 -0
  34. package/dist/nodes/CraftDocuments/resources/block/move.js +81 -0
  35. package/dist/nodes/CraftDocuments/resources/block/move.js.map +1 -0
  36. package/dist/nodes/CraftDocuments/resources/block/search.d.ts +2 -0
  37. package/dist/nodes/CraftDocuments/resources/block/search.js +96 -0
  38. package/dist/nodes/CraftDocuments/resources/block/search.js.map +1 -0
  39. package/dist/nodes/CraftDocuments/resources/block/update.d.ts +2 -0
  40. package/dist/nodes/CraftDocuments/resources/block/update.js +85 -0
  41. package/dist/nodes/CraftDocuments/resources/block/update.js.map +1 -0
  42. package/dist/nodes/CraftDocuments/resources/collection/addItems.d.ts +2 -0
  43. package/dist/nodes/CraftDocuments/resources/collection/addItems.js +60 -0
  44. package/dist/nodes/CraftDocuments/resources/collection/addItems.js.map +1 -0
  45. package/dist/nodes/CraftDocuments/resources/collection/deleteItems.d.ts +2 -0
  46. package/dist/nodes/CraftDocuments/resources/collection/deleteItems.js +36 -0
  47. package/dist/nodes/CraftDocuments/resources/collection/deleteItems.js.map +1 -0
  48. package/dist/nodes/CraftDocuments/resources/collection/getItems.d.ts +2 -0
  49. package/dist/nodes/CraftDocuments/resources/collection/getItems.js +37 -0
  50. package/dist/nodes/CraftDocuments/resources/collection/getItems.js.map +1 -0
  51. package/dist/nodes/CraftDocuments/resources/collection/getSchema.d.ts +2 -0
  52. package/dist/nodes/CraftDocuments/resources/collection/getSchema.js +45 -0
  53. package/dist/nodes/CraftDocuments/resources/collection/getSchema.js.map +1 -0
  54. package/dist/nodes/CraftDocuments/resources/collection/index.d.ts +2 -0
  55. package/dist/nodes/CraftDocuments/resources/collection/index.js +101 -0
  56. package/dist/nodes/CraftDocuments/resources/collection/index.js.map +1 -0
  57. package/dist/nodes/CraftDocuments/resources/collection/list.d.ts +2 -0
  58. package/dist/nodes/CraftDocuments/resources/collection/list.js +60 -0
  59. package/dist/nodes/CraftDocuments/resources/collection/list.js.map +1 -0
  60. package/dist/nodes/CraftDocuments/resources/collection/updateItems.d.ts +2 -0
  61. package/dist/nodes/CraftDocuments/resources/collection/updateItems.js +67 -0
  62. package/dist/nodes/CraftDocuments/resources/collection/updateItems.js.map +1 -0
  63. package/dist/nodes/CraftDocuments/resources/document/index.d.ts +2 -0
  64. package/dist/nodes/CraftDocuments/resources/document/index.js +31 -0
  65. package/dist/nodes/CraftDocuments/resources/document/index.js.map +1 -0
  66. package/dist/nodes/CraftDocuments/resources/document/list.d.ts +2 -0
  67. package/dist/nodes/CraftDocuments/resources/document/list.js +15 -0
  68. package/dist/nodes/CraftDocuments/resources/document/list.js.map +1 -0
  69. package/dist/nodes/CraftDocuments/resources/search/index.d.ts +2 -0
  70. package/dist/nodes/CraftDocuments/resources/search/index.js +110 -0
  71. package/dist/nodes/CraftDocuments/resources/search/index.js.map +1 -0
  72. package/dist/nodes/CraftDocuments/shared/transport.d.ts +2 -0
  73. package/dist/nodes/CraftDocuments/shared/transport.js +20 -0
  74. package/dist/nodes/CraftDocuments/shared/transport.js.map +1 -0
  75. package/dist/package.json +11 -6
  76. package/dist/tsconfig.tsbuildinfo +1 -1
  77. package/package.json +11 -6
  78. package/dist/nodes/CraftDailyNotes/shared/blockBuilder.d.ts +0 -18
  79. package/dist/nodes/CraftDailyNotes/shared/blockBuilder.js +0 -191
  80. package/dist/nodes/CraftDailyNotes/shared/blockBuilder.js.map +0 -1
@@ -1,191 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buildBlocksFromMarkdown = buildBlocksFromMarkdown;
4
- exports.parseBlockArray = parseBlockArray;
5
- const DEFAULT_OPTIONS = {
6
- preserveHeaders: true,
7
- splitOnParagraphs: true,
8
- };
9
- function createBodyTextBlock(markdown) {
10
- return { type: 'text', markdown: markdown.trim(), textStyle: 'body' };
11
- }
12
- function createCodeBlock(codeContent) {
13
- const normalized = (codeContent || '').replace(/\r\n/g, '\n').replace(/\r/g, '\n').trim();
14
- if (!normalized || normalized === '``````' || normalized === '```\n```') {
15
- return { type: 'code', rawCode: '' };
16
- }
17
- const match = normalized.match(/^```(\w*)\n?([\s\S]*?)\n?```$/);
18
- if (match && match[2] !== undefined) {
19
- const rawCode = match[2].trim();
20
- const language = match[1] || undefined;
21
- return {
22
- type: 'code',
23
- rawCode: rawCode,
24
- ...(language ? { language } : {}),
25
- };
26
- }
27
- let cleaned = normalized;
28
- cleaned = cleaned.replace(/^```\w*[\r\n]*/, '');
29
- cleaned = cleaned.replace(/[\r\n]*```$/, '');
30
- cleaned = cleaned.replace(/^`+/, '').replace(/`+$/, '');
31
- const rawCode = cleaned.trim() || '';
32
- return { type: 'code', rawCode };
33
- }
34
- function detectTextStyle(line) {
35
- if (line.startsWith('# '))
36
- return 'h1';
37
- if (line.startsWith('## '))
38
- return 'h2';
39
- if (line.startsWith('### '))
40
- return 'h3';
41
- if (line.startsWith('#### ') || line.startsWith('##### ') || line.startsWith('###### '))
42
- return 'h4';
43
- return undefined;
44
- }
45
- function isHeader(line) {
46
- return /^#{1,6}\s+/.test(line);
47
- }
48
- function extractCodeBlocks(markdown) {
49
- try {
50
- const result = [];
51
- const codeBlockRegex = /```[\s\S]*?```/g;
52
- let lastIndex = 0;
53
- let match;
54
- while ((match = codeBlockRegex.exec(markdown)) !== null) {
55
- if (match.index > lastIndex) {
56
- const textBefore = markdown.slice(lastIndex, match.index);
57
- if (textBefore.trim()) {
58
- result.push({ type: 'text', content: textBefore });
59
- }
60
- }
61
- result.push({ type: 'code', content: match[0] });
62
- lastIndex = match.index + match[0].length;
63
- }
64
- if (lastIndex < markdown.length) {
65
- const remaining = markdown.slice(lastIndex);
66
- if (remaining.trim()) {
67
- result.push({ type: 'text', content: remaining });
68
- }
69
- }
70
- if (result.length === 0) {
71
- return [{ type: 'text', content: markdown }];
72
- }
73
- return result;
74
- }
75
- catch {
76
- return [{ type: 'text', content: markdown }];
77
- }
78
- }
79
- function splitByParagraphs(text) {
80
- try {
81
- const parts = text.split(/\n\n+/).filter((p) => p.trim());
82
- return parts.length > 0 ? parts : [text];
83
- }
84
- catch {
85
- return [text];
86
- }
87
- }
88
- function buildBlocksFromMarkdown(markdown, options = {}) {
89
- if (!markdown || !markdown.trim()) {
90
- return [];
91
- }
92
- try {
93
- const opts = { ...DEFAULT_OPTIONS, ...options };
94
- const blocks = [];
95
- const segments = extractCodeBlocks(markdown);
96
- for (const segment of segments) {
97
- try {
98
- if (segment.type === 'code') {
99
- blocks.push(createCodeBlock(segment.content));
100
- continue;
101
- }
102
- const paragraphs = opts.splitOnParagraphs
103
- ? splitByParagraphs(segment.content)
104
- : [segment.content];
105
- for (const paragraph of paragraphs) {
106
- const trimmed = paragraph.trim();
107
- if (!trimmed)
108
- continue;
109
- if (opts.preserveHeaders && isHeader(trimmed)) {
110
- const lines = trimmed.split('\n');
111
- for (const line of lines) {
112
- const lineTrimmed = line.trim();
113
- if (!lineTrimmed)
114
- continue;
115
- const style = detectTextStyle(lineTrimmed);
116
- if (style) {
117
- blocks.push({ type: 'text', markdown: lineTrimmed, textStyle: style });
118
- }
119
- else {
120
- blocks.push(createBodyTextBlock(lineTrimmed));
121
- }
122
- }
123
- }
124
- else {
125
- blocks.push(createBodyTextBlock(trimmed));
126
- }
127
- }
128
- }
129
- catch {
130
- blocks.push(createBodyTextBlock(segment.content));
131
- }
132
- }
133
- const validBlocks = blocks
134
- .map((block) => sanitizeBlock(block))
135
- .filter((block) => block !== null);
136
- if (validBlocks.length > 0) {
137
- return validBlocks;
138
- }
139
- return [createBodyTextBlock(markdown)];
140
- }
141
- catch {
142
- return [createBodyTextBlock(markdown)];
143
- }
144
- }
145
- function sanitizeBlock(block) {
146
- if (!block || typeof block !== 'object') {
147
- return null;
148
- }
149
- if (block.type === 'code') {
150
- if (typeof block.rawCode !== 'string') {
151
- return null;
152
- }
153
- return {
154
- type: 'code',
155
- rawCode: block.rawCode,
156
- ...(block.language ? { language: block.language } : {}),
157
- };
158
- }
159
- if (block.type === 'text') {
160
- if (typeof block.markdown !== 'string') {
161
- return null;
162
- }
163
- const validStyles = ['body', 'card', 'page', 'h1', 'h2', 'h3', 'h4', 'caption'];
164
- const textStyle = validStyles.includes(block.textStyle) ? block.textStyle : 'body';
165
- return {
166
- type: 'text',
167
- markdown: block.markdown,
168
- textStyle,
169
- };
170
- }
171
- return null;
172
- }
173
- function parseBlockArray(jsonString) {
174
- try {
175
- const parsed = JSON.parse(jsonString);
176
- const blocks = Array.isArray(parsed) ? parsed : [parsed];
177
- return blocks.map((block) => {
178
- if (!block.type) {
179
- block.type = 'text';
180
- }
181
- if (!block.markdown && block.content) {
182
- block.markdown = block.content;
183
- }
184
- return block;
185
- });
186
- }
187
- catch {
188
- throw new Error('Invalid JSON block array. Expected format: [{"type":"text","markdown":"Content"}]');
189
- }
190
- }
191
- //# sourceMappingURL=blockBuilder.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blockBuilder.js","sourceRoot":"","sources":["../../../../nodes/CraftDailyNotes/shared/blockBuilder.ts"],"names":[],"mappings":";;AAmKA,0DA2EC;AAgDD,0CAoBC;AAvRD,MAAM,eAAe,GAAwB;IAC5C,eAAe,EAAE,IAAI;IACrB,iBAAiB,EAAE,IAAI;CACvB,CAAC;AAMF,SAAS,mBAAmB,CAAC,QAAgB;IAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;A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