n8n-nodes-craft-daily-notes 1.0.23 → 1.0.26

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 (81) hide show
  1. package/dist/credentials/CraftDocumentsApi.credentials.d.ts +9 -0
  2. package/dist/credentials/CraftDocumentsApi.credentials.js +31 -0
  3. package/dist/credentials/CraftDocumentsApi.credentials.js.map +1 -0
  4. package/dist/nodes/CraftDailyNotes/resources/block/insert.js +7 -43
  5. package/dist/nodes/CraftDailyNotes/resources/block/insert.js.map +1 -1
  6. package/dist/nodes/CraftDailyNotes/resources/collection/addItems.js +33 -7
  7. package/dist/nodes/CraftDailyNotes/resources/collection/addItems.js.map +1 -1
  8. package/dist/nodes/CraftDailyNotes/resources/collection/deleteItems.js +1 -1
  9. package/dist/nodes/CraftDailyNotes/resources/collection/deleteItems.js.map +1 -1
  10. package/dist/nodes/CraftDailyNotes/resources/collection/updateItems.js +40 -7
  11. package/dist/nodes/CraftDailyNotes/resources/collection/updateItems.js.map +1 -1
  12. package/dist/nodes/CraftDocuments/CraftDocuments.node.d.ts +12 -0
  13. package/dist/nodes/CraftDocuments/CraftDocuments.node.js +83 -0
  14. package/dist/nodes/CraftDocuments/CraftDocuments.node.js.map +1 -0
  15. package/dist/nodes/CraftDocuments/CraftDocuments.node.json +22 -0
  16. package/dist/nodes/CraftDocuments/loadOptions/getCollections.d.ts +2 -0
  17. package/dist/nodes/CraftDocuments/loadOptions/getCollections.js +18 -0
  18. package/dist/nodes/CraftDocuments/loadOptions/getCollections.js.map +1 -0
  19. package/dist/nodes/CraftDocuments/loadOptions/getDocuments.d.ts +2 -0
  20. package/dist/nodes/CraftDocuments/loadOptions/getDocuments.js +18 -0
  21. package/dist/nodes/CraftDocuments/loadOptions/getDocuments.js.map +1 -0
  22. package/dist/nodes/CraftDocuments/resources/block/delete.d.ts +2 -0
  23. package/dist/nodes/CraftDocuments/resources/block/delete.js +24 -0
  24. package/dist/nodes/CraftDocuments/resources/block/delete.js.map +1 -0
  25. package/dist/nodes/CraftDocuments/resources/block/get.d.ts +2 -0
  26. package/dist/nodes/CraftDocuments/resources/block/get.js +91 -0
  27. package/dist/nodes/CraftDocuments/resources/block/get.js.map +1 -0
  28. package/dist/nodes/CraftDocuments/resources/block/index.d.ts +2 -0
  29. package/dist/nodes/CraftDocuments/resources/block/index.js +104 -0
  30. package/dist/nodes/CraftDocuments/resources/block/index.js.map +1 -0
  31. package/dist/nodes/CraftDocuments/resources/block/insert.d.ts +3 -0
  32. package/dist/nodes/CraftDocuments/resources/block/insert.js +117 -0
  33. package/dist/nodes/CraftDocuments/resources/block/insert.js.map +1 -0
  34. package/dist/nodes/CraftDocuments/resources/block/move.d.ts +2 -0
  35. package/dist/nodes/CraftDocuments/resources/block/move.js +81 -0
  36. package/dist/nodes/CraftDocuments/resources/block/move.js.map +1 -0
  37. package/dist/nodes/CraftDocuments/resources/block/search.d.ts +2 -0
  38. package/dist/nodes/CraftDocuments/resources/block/search.js +96 -0
  39. package/dist/nodes/CraftDocuments/resources/block/search.js.map +1 -0
  40. package/dist/nodes/CraftDocuments/resources/block/update.d.ts +2 -0
  41. package/dist/nodes/CraftDocuments/resources/block/update.js +85 -0
  42. package/dist/nodes/CraftDocuments/resources/block/update.js.map +1 -0
  43. package/dist/nodes/CraftDocuments/resources/collection/addItems.d.ts +2 -0
  44. package/dist/nodes/CraftDocuments/resources/collection/addItems.js +60 -0
  45. package/dist/nodes/CraftDocuments/resources/collection/addItems.js.map +1 -0
  46. package/dist/nodes/CraftDocuments/resources/collection/deleteItems.d.ts +2 -0
  47. package/dist/nodes/CraftDocuments/resources/collection/deleteItems.js +36 -0
  48. package/dist/nodes/CraftDocuments/resources/collection/deleteItems.js.map +1 -0
  49. package/dist/nodes/CraftDocuments/resources/collection/getItems.d.ts +2 -0
  50. package/dist/nodes/CraftDocuments/resources/collection/getItems.js +37 -0
  51. package/dist/nodes/CraftDocuments/resources/collection/getItems.js.map +1 -0
  52. package/dist/nodes/CraftDocuments/resources/collection/getSchema.d.ts +2 -0
  53. package/dist/nodes/CraftDocuments/resources/collection/getSchema.js +45 -0
  54. package/dist/nodes/CraftDocuments/resources/collection/getSchema.js.map +1 -0
  55. package/dist/nodes/CraftDocuments/resources/collection/index.d.ts +2 -0
  56. package/dist/nodes/CraftDocuments/resources/collection/index.js +101 -0
  57. package/dist/nodes/CraftDocuments/resources/collection/index.js.map +1 -0
  58. package/dist/nodes/CraftDocuments/resources/collection/list.d.ts +2 -0
  59. package/dist/nodes/CraftDocuments/resources/collection/list.js +60 -0
  60. package/dist/nodes/CraftDocuments/resources/collection/list.js.map +1 -0
  61. package/dist/nodes/CraftDocuments/resources/collection/updateItems.d.ts +2 -0
  62. package/dist/nodes/CraftDocuments/resources/collection/updateItems.js +67 -0
  63. package/dist/nodes/CraftDocuments/resources/collection/updateItems.js.map +1 -0
  64. package/dist/nodes/CraftDocuments/resources/document/index.d.ts +2 -0
  65. package/dist/nodes/CraftDocuments/resources/document/index.js +31 -0
  66. package/dist/nodes/CraftDocuments/resources/document/index.js.map +1 -0
  67. package/dist/nodes/CraftDocuments/resources/document/list.d.ts +2 -0
  68. package/dist/nodes/CraftDocuments/resources/document/list.js +15 -0
  69. package/dist/nodes/CraftDocuments/resources/document/list.js.map +1 -0
  70. package/dist/nodes/CraftDocuments/resources/search/index.d.ts +2 -0
  71. package/dist/nodes/CraftDocuments/resources/search/index.js +110 -0
  72. package/dist/nodes/CraftDocuments/resources/search/index.js.map +1 -0
  73. package/dist/nodes/CraftDocuments/shared/transport.d.ts +2 -0
  74. package/dist/nodes/CraftDocuments/shared/transport.js +20 -0
  75. package/dist/nodes/CraftDocuments/shared/transport.js.map +1 -0
  76. package/dist/package.json +11 -6
  77. package/dist/tsconfig.tsbuildinfo +1 -1
  78. package/package.json +11 -6
  79. package/dist/nodes/CraftDailyNotes/shared/blockBuilder.d.ts +0 -18
  80. package/dist/nodes/CraftDailyNotes/shared/blockBuilder.js +0 -191
  81. package/dist/nodes/CraftDailyNotes/shared/blockBuilder.js.map +0 -1
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.collectionGetItemsDescription = void 0;
4
+ const showOnlyForCollectionGetItems = { operation: ['getItems'], resource: ['collection'] };
5
+ exports.collectionGetItemsDescription = [
6
+ {
7
+ displayName: 'Collection Name or ID',
8
+ name: 'collectionId',
9
+ type: 'options',
10
+ typeOptions: {
11
+ loadOptionsMethod: 'getCollections',
12
+ },
13
+ default: '',
14
+ required: true,
15
+ description: 'Select a collection from your documents. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
16
+ displayOptions: { show: showOnlyForCollectionGetItems },
17
+ },
18
+ {
19
+ displayName: 'Max Depth',
20
+ name: 'maxDepth',
21
+ type: 'number',
22
+ typeOptions: {
23
+ minValue: -1,
24
+ maxValue: 10,
25
+ },
26
+ default: -1,
27
+ description: 'Maximum depth of nested content to fetch. -1 for all descendants, 0 for only item properties.',
28
+ displayOptions: { show: showOnlyForCollectionGetItems },
29
+ routing: {
30
+ send: {
31
+ type: 'query',
32
+ property: 'maxDepth',
33
+ },
34
+ },
35
+ },
36
+ ];
37
+ //# sourceMappingURL=getItems.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getItems.js","sourceRoot":"","sources":["../../../../../nodes/CraftDocuments/resources/collection/getItems.ts"],"names":[],"mappings":";;;AAQA,MAAM,6BAA6B,GAAG,EAAE,SAAS,EAAE,CAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;AAE/E,QAAA,6BAA6B,GAAsB;IAE/D;QACC,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACZ,iBAAiB,EAAE,gBAAgB;SACnC;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,0JAA0J;QACvK,cAAc,EAAE,EAAE,IAAI,EAAE,6BAA6B,EAAE;KACvD;IAED;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC,CAAC;YACZ,QAAQ,EAAE,EAAE;SACZ;QACD,OAAO,EAAE,CAAC,CAAC;QACX,WAAW,EACV,+FAA+F;QAChG,cAAc,EAAE,EAAE,IAAI,EAAE,6BAA6B,EAAE;QACvD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,UAAU;aACpB;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const collectionGetSchemaDescription: INodeProperties[];
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.collectionGetSchemaDescription = void 0;
4
+ const showOnlyForCollectionGetSchema = { operation: ['getSchema'], resource: ['collection'] };
5
+ exports.collectionGetSchemaDescription = [
6
+ {
7
+ displayName: 'Collection Name or ID',
8
+ name: 'collectionId',
9
+ type: 'options',
10
+ typeOptions: {
11
+ loadOptionsMethod: 'getCollections',
12
+ },
13
+ default: '',
14
+ required: true,
15
+ description: 'Select a collection from your documents. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
16
+ displayOptions: { show: showOnlyForCollectionGetSchema },
17
+ },
18
+ {
19
+ displayName: 'Schema Format',
20
+ name: 'format',
21
+ type: 'options',
22
+ options: [
23
+ {
24
+ name: 'JSON Schema (for Validation)',
25
+ value: 'json-schema-items',
26
+ description: 'Returns JSON Schema for validating collection items',
27
+ },
28
+ {
29
+ name: 'Schema Structure',
30
+ value: 'schema',
31
+ description: 'Returns the collection schema structure (name, properties, types)',
32
+ },
33
+ ],
34
+ default: 'json-schema-items',
35
+ description: 'Format of the schema response',
36
+ displayOptions: { show: showOnlyForCollectionGetSchema },
37
+ routing: {
38
+ send: {
39
+ type: 'query',
40
+ property: 'format',
41
+ },
42
+ },
43
+ },
44
+ ];
45
+ //# sourceMappingURL=getSchema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSchema.js","sourceRoot":"","sources":["../../../../../nodes/CraftDocuments/resources/collection/getSchema.ts"],"names":[],"mappings":";;;AAQA,MAAM,8BAA8B,GAAG,EAAE,SAAS,EAAE,CAAC,WAAW,CAAC,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;AAEjF,QAAA,8BAA8B,GAAsB;IAEhE;QACC,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACZ,iBAAiB,EAAE,gBAAgB;SACnC;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,0JAA0J;QACvK,cAAc,EAAE,EAAE,IAAI,EAAE,8BAA8B,EAAE;KACxD;IAED;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,8BAA8B;gBACpC,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EAAE,qDAAqD;aAClE;YACD;gBACC,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,mEAAmE;aAChF;SACD;QACD,OAAO,EAAE,mBAAmB;QAC5B,WAAW,EAAE,+BAA+B;QAC5C,cAAc,EAAE,EAAE,IAAI,EAAE,8BAA8B,EAAE;QACxD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,QAAQ;aAClB;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const collectionDescription: INodeProperties[];
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.collectionDescription = void 0;
4
+ const list_1 = require("./list");
5
+ const getSchema_1 = require("./getSchema");
6
+ const getItems_1 = require("./getItems");
7
+ const addItems_1 = require("./addItems");
8
+ const updateItems_1 = require("./updateItems");
9
+ const deleteItems_1 = require("./deleteItems");
10
+ const showOnlyForCollections = { resource: ['collection'] };
11
+ exports.collectionDescription = [
12
+ {
13
+ displayName: 'Operation',
14
+ name: 'operation',
15
+ type: 'options',
16
+ noDataExpression: true,
17
+ displayOptions: { show: showOnlyForCollections },
18
+ options: [
19
+ {
20
+ name: 'Add Items',
21
+ value: 'addItems',
22
+ action: 'Add items to collection',
23
+ description: 'Add new items to a specific collection',
24
+ routing: {
25
+ request: {
26
+ method: 'POST',
27
+ url: '=/collections/{{$parameter.collectionId}}/items',
28
+ },
29
+ },
30
+ },
31
+ {
32
+ name: 'Delete Items',
33
+ value: 'deleteItems',
34
+ action: 'Delete collection items',
35
+ description: 'Delete items from a collection by their IDs',
36
+ routing: {
37
+ request: {
38
+ method: 'DELETE',
39
+ url: '=/collections/{{$parameter.collectionId}}/items',
40
+ },
41
+ },
42
+ },
43
+ {
44
+ name: 'Get Items',
45
+ value: 'getItems',
46
+ action: 'Get collection items',
47
+ description: 'Retrieve all items from a specific collection',
48
+ routing: {
49
+ request: {
50
+ method: 'GET',
51
+ url: '=/collections/{{$parameter.collectionId}}/items',
52
+ },
53
+ },
54
+ },
55
+ {
56
+ name: 'Get Schema',
57
+ value: 'getSchema',
58
+ action: 'Get collection schema',
59
+ description: 'Get the schema for a collection by its ID',
60
+ routing: {
61
+ request: {
62
+ method: 'GET',
63
+ url: '=/collections/{{$parameter.collectionId}}/schema',
64
+ },
65
+ },
66
+ },
67
+ {
68
+ name: 'List',
69
+ value: 'list',
70
+ action: 'List all collections',
71
+ description: 'Retrieve all collections across documents',
72
+ routing: {
73
+ request: {
74
+ method: 'GET',
75
+ url: '/collections',
76
+ },
77
+ },
78
+ },
79
+ {
80
+ name: 'Update Items',
81
+ value: 'updateItems',
82
+ action: 'Update collection items',
83
+ description: 'Update existing items in a collection',
84
+ routing: {
85
+ request: {
86
+ method: 'PUT',
87
+ url: '=/collections/{{$parameter.collectionId}}/items',
88
+ },
89
+ },
90
+ },
91
+ ],
92
+ default: 'list',
93
+ },
94
+ ...list_1.collectionListDescription,
95
+ ...getSchema_1.collectionGetSchemaDescription,
96
+ ...getItems_1.collectionGetItemsDescription,
97
+ ...addItems_1.collectionAddItemsDescription,
98
+ ...updateItems_1.collectionUpdateItemsDescription,
99
+ ...deleteItems_1.collectionDeleteItemsDescription,
100
+ ];
101
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/CraftDocuments/resources/collection/index.ts"],"names":[],"mappings":";;;AAMA,iCAAmD;AACnD,2CAA6D;AAC7D,yCAA2D;AAC3D,yCAA2D;AAC3D,+CAAiE;AACjE,+CAAiE;AAEjE,MAAM,sBAAsB,GAAG,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;AAE/C,QAAA,qBAAqB,GAAsB;IAEvD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE;QAChD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,UAAU;gBACjB,MAAM,EAAE,yBAAyB;gBACjC,WAAW,EAAE,wCAAwC;gBACrD,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,iDAAiD;qBACtD;iBACD;aACD;YACD;gBACC,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,aAAa;gBACpB,MAAM,EAAE,yBAAyB;gBACjC,WAAW,EAAE,6CAA6C;gBAC1D,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,QAAQ;wBAChB,GAAG,EAAE,iDAAiD;qBACtD;iBACD;aACD;YACD;gBACC,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,UAAU;gBACjB,MAAM,EAAE,sBAAsB;gBAC9B,WAAW,EAAE,+CAA+C;gBAC5D,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,iDAAiD;qBACtD;iBACD;aACD;YACD;gBACC,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,WAAW;gBAClB,MAAM,EAAE,uBAAuB;gBAC/B,WAAW,EAAE,2CAA2C;gBACxD,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,kDAAkD;qBACvD;iBACD;aACD;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,sBAAsB;gBAC9B,WAAW,EAAE,2CAA2C;gBACxD,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,cAAc;qBACnB;iBACD;aACD;YACD;gBACC,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,aAAa;gBACpB,MAAM,EAAE,yBAAyB;gBACjC,WAAW,EAAE,uCAAuC;gBACpD,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,iDAAiD;qBACtD;iBACD;aACD;SACD;QACD,OAAO,EAAE,MAAM;KACf;IAGD,GAAG,gCAAyB;IAC5B,GAAG,0CAA8B;IACjC,GAAG,wCAA6B;IAChC,GAAG,wCAA6B;IAChC,GAAG,8CAAgC;IACnC,GAAG,8CAAgC;CACnC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const collectionListDescription: INodeProperties[];
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.collectionListDescription = void 0;
4
+ const showOnlyForCollectionList = { operation: ['list'], resource: ['collection'] };
5
+ exports.collectionListDescription = [
6
+ {
7
+ displayName: 'Filter by Documents',
8
+ name: 'filterByDocuments',
9
+ type: 'boolean',
10
+ default: false,
11
+ displayOptions: { show: showOnlyForCollectionList },
12
+ description: 'Whether to filter collections by specific documents',
13
+ },
14
+ {
15
+ displayName: 'Document IDs',
16
+ name: 'documentIds',
17
+ type: 'string',
18
+ default: '',
19
+ placeholder: 'doc-123, doc-456 or ["doc-123", "doc-456"]',
20
+ description: 'Document IDs to filter collections. Provide as comma-separated values or JSON array.',
21
+ displayOptions: {
22
+ show: {
23
+ ...showOnlyForCollectionList,
24
+ filterByDocuments: [true],
25
+ },
26
+ },
27
+ routing: {
28
+ send: {
29
+ type: 'query',
30
+ property: 'documentIds',
31
+ value: '={{ $value ? ($value.startsWith("[") ? JSON.parse($value) : $value.split(",").map(id => id.trim())) : undefined }}',
32
+ },
33
+ },
34
+ },
35
+ {
36
+ displayName: 'Filter Mode',
37
+ name: 'documentFilterMode',
38
+ type: 'options',
39
+ options: [
40
+ { name: 'Include', value: 'include', description: 'Only include collections from specified documents' },
41
+ { name: 'Exclude', value: 'exclude', description: 'Exclude collections from specified documents' },
42
+ ],
43
+ default: 'include',
44
+ description: 'Whether to include or exclude the specified documents',
45
+ displayOptions: {
46
+ show: {
47
+ ...showOnlyForCollectionList,
48
+ filterByDocuments: [true],
49
+ },
50
+ },
51
+ routing: {
52
+ send: {
53
+ type: 'query',
54
+ property: 'documentFilterMode',
55
+ value: '={{ $value || undefined }}',
56
+ },
57
+ },
58
+ },
59
+ ];
60
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../nodes/CraftDocuments/resources/collection/list.ts"],"names":[],"mappings":";;;AAQA,MAAM,yBAAyB,GAAG,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;AAEvE,QAAA,yBAAyB,GAAsB;IAE3D;QACC,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,yBAAyB,EAAE;QACnD,WAAW,EAAE,qDAAqD;KAClE;IACD;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4CAA4C;QACzD,WAAW,EAAE,sFAAsF;QACnG,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,yBAAyB;gBAC5B,iBAAiB,EAAE,CAAC,IAAI,CAAC;aACzB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,aAAa;gBACvB,KAAK,EAAE,oHAAoH;aAC3H;SACD;KACD;IACD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,mDAAmD,EAAE;YACvG,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,8CAA8C,EAAE;SAClG;QACD,OAAO,EAAE,SAAS;QAClB,WAAW,EAAE,uDAAuD;QACpE,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,yBAAyB;gBAC5B,iBAAiB,EAAE,CAAC,IAAI,CAAC;aACzB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,oBAAoB;gBAC9B,KAAK,EAAE,4BAA4B;aACnC;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const collectionUpdateItemsDescription: INodeProperties[];
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.collectionUpdateItemsDescription = void 0;
4
+ const showOnlyForCollectionUpdateItems = { operation: ['updateItems'], resource: ['collection'] };
5
+ exports.collectionUpdateItemsDescription = [
6
+ {
7
+ displayName: 'Collection Name or ID',
8
+ name: 'collectionId',
9
+ type: 'options',
10
+ typeOptions: {
11
+ loadOptionsMethod: 'getCollections',
12
+ },
13
+ default: '',
14
+ required: true,
15
+ description: 'Select a collection from your documents. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
16
+ displayOptions: { show: showOnlyForCollectionUpdateItems },
17
+ },
18
+ {
19
+ displayName: 'Items to Update',
20
+ name: 'itemsToUpdate',
21
+ type: 'fixedCollection',
22
+ typeOptions: {
23
+ multipleValues: true,
24
+ },
25
+ default: {},
26
+ placeholder: 'Add Item',
27
+ displayOptions: { show: showOnlyForCollectionUpdateItems },
28
+ options: [
29
+ {
30
+ name: 'itemValues',
31
+ displayName: 'Item',
32
+ values: [
33
+ {
34
+ displayName: 'Item ID',
35
+ name: 'id',
36
+ type: 'string',
37
+ default: '',
38
+ required: true,
39
+ description: 'The ID of the item to update',
40
+ },
41
+ {
42
+ displayName: 'Title',
43
+ name: 'title',
44
+ type: 'string',
45
+ default: '',
46
+ description: 'New title for the item (leave empty to keep current)',
47
+ },
48
+ {
49
+ displayName: 'Properties (JSON)',
50
+ name: 'properties',
51
+ type: 'json',
52
+ default: '{}',
53
+ description: 'Updated properties for the item as JSON object',
54
+ },
55
+ ],
56
+ },
57
+ ],
58
+ routing: {
59
+ send: {
60
+ type: 'body',
61
+ property: 'itemsToUpdate',
62
+ value: '={{ $value.itemValues ? $value.itemValues.map(item => { const obj = { id: item.id }; if (item.title) obj.title = item.title; obj.properties = typeof item.properties === "string" ? JSON.parse(item.properties || "{}") : (item.properties || {}); return obj; }) : [] }}',
63
+ },
64
+ },
65
+ },
66
+ ];
67
+ //# sourceMappingURL=updateItems.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateItems.js","sourceRoot":"","sources":["../../../../../nodes/CraftDocuments/resources/collection/updateItems.ts"],"names":[],"mappings":";;;AAQA,MAAM,gCAAgC,GAAG,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,QAAQ,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;AAErF,QAAA,gCAAgC,GAAsB;IAElE;QACC,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACZ,iBAAiB,EAAE,gBAAgB;SACnC;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,0JAA0J;QACvK,cAAc,EAAE,EAAE,IAAI,EAAE,gCAAgC,EAAE;KAC1D;IAED;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE;YACZ,cAAc,EAAE,IAAI;SACpB;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,UAAU;QACvB,cAAc,EAAE,EAAE,IAAI,EAAE,gCAAgC,EAAE;QAC1D,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,YAAY;gBAClB,WAAW,EAAE,MAAM;gBACnB,MAAM,EAAE;oBACP;wBACC,WAAW,EAAE,SAAS;wBACtB,IAAI,EAAE,IAAI;wBACV,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,QAAQ,EAAE,IAAI;wBACd,WAAW,EAAE,8BAA8B;qBAC3C;oBACD;wBACC,WAAW,EAAE,OAAO;wBACpB,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,sDAAsD;qBACnE;oBACD;wBACC,WAAW,EAAE,mBAAmB;wBAChC,IAAI,EAAE,YAAY;wBAClB,IAAI,EAAE,MAAM;wBACZ,OAAO,EAAE,IAAI;wBACb,WAAW,EAAE,gDAAgD;qBAC7D;iBACD;aACD;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,eAAe;gBACzB,KAAK,EACJ,2QAA2Q;aAC5Q;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const documentDescription: INodeProperties[];
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.documentDescription = void 0;
4
+ const list_1 = require("./list");
5
+ const showOnlyForDocument = { resource: ['document'] };
6
+ exports.documentDescription = [
7
+ {
8
+ displayName: 'Operation',
9
+ name: 'operation',
10
+ type: 'options',
11
+ noDataExpression: true,
12
+ displayOptions: { show: showOnlyForDocument },
13
+ options: [
14
+ {
15
+ name: 'List',
16
+ value: 'list',
17
+ action: 'List all documents',
18
+ description: 'Retrieve all documents accessible through this connection',
19
+ routing: {
20
+ request: {
21
+ method: 'GET',
22
+ url: '/documents',
23
+ },
24
+ },
25
+ },
26
+ ],
27
+ default: 'list',
28
+ },
29
+ ...list_1.documentListDescription,
30
+ ];
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/CraftDocuments/resources/document/index.ts"],"names":[],"mappings":";;;AAMA,iCAAiD;AAEjD,MAAM,mBAAmB,GAAG,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;AAE1C,QAAA,mBAAmB,GAAsB;IAErD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;QAC7C,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;gBACb,MAAM,EAAE,oBAAoB;gBAC5B,WAAW,EAAE,2DAA2D;gBACxE,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,YAAY;qBACjB;iBACD;aACD;SACD;QACD,OAAO,EAAE,MAAM;KACf;IAGD,GAAG,8BAAuB;CAC1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const documentListDescription: INodeProperties[];
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.documentListDescription = void 0;
4
+ const showOnlyForDocumentList = { operation: ['list'], resource: ['document'] };
5
+ exports.documentListDescription = [
6
+ {
7
+ displayName: 'Info',
8
+ name: 'listInfo',
9
+ type: 'notice',
10
+ default: '',
11
+ displayOptions: { show: showOnlyForDocumentList },
12
+ description: 'Returns all documents accessible through this connection with their IDs, titles, and deletion status',
13
+ },
14
+ ];
15
+ //# sourceMappingURL=list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../nodes/CraftDocuments/resources/document/list.ts"],"names":[],"mappings":";;;AAMA,MAAM,uBAAuB,GAAG,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;AAEnE,QAAA,uBAAuB,GAAsB;IAGzD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,uBAAuB,EAAE;QACjD,WAAW,EACV,sGAAsG;KACvG;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const searchDescription: INodeProperties[];
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.searchDescription = void 0;
4
+ const showOnlyForSearch = { resource: ['search'] };
5
+ exports.searchDescription = [
6
+ {
7
+ displayName: 'Operation',
8
+ name: 'operation',
9
+ type: 'options',
10
+ noDataExpression: true,
11
+ displayOptions: { show: showOnlyForSearch },
12
+ options: [
13
+ {
14
+ name: 'Search Across Documents',
15
+ value: 'searchAcrossDocuments',
16
+ action: 'Search across multiple documents',
17
+ description: 'Search content across multiple documents using relevance-based ranking',
18
+ routing: {
19
+ request: {
20
+ method: 'GET',
21
+ url: '/documents/search',
22
+ },
23
+ },
24
+ },
25
+ ],
26
+ default: 'searchAcrossDocuments',
27
+ },
28
+ {
29
+ displayName: 'Search Terms',
30
+ name: 'include',
31
+ type: 'string',
32
+ default: '',
33
+ required: true,
34
+ placeholder: 'project alpha',
35
+ description: 'Search terms to include. Results are ranked by relevance (top 20).',
36
+ displayOptions: {
37
+ show: {
38
+ ...showOnlyForSearch,
39
+ operation: ['searchAcrossDocuments'],
40
+ },
41
+ },
42
+ routing: {
43
+ send: {
44
+ type: 'query',
45
+ property: 'include',
46
+ },
47
+ },
48
+ },
49
+ {
50
+ displayName: 'Filter by Documents',
51
+ name: 'filterByDocuments',
52
+ type: 'boolean',
53
+ default: false,
54
+ displayOptions: {
55
+ show: {
56
+ ...showOnlyForSearch,
57
+ operation: ['searchAcrossDocuments'],
58
+ },
59
+ },
60
+ description: 'Whether to filter search to specific documents',
61
+ },
62
+ {
63
+ displayName: 'Document IDs',
64
+ name: 'documentIds',
65
+ type: 'string',
66
+ default: '',
67
+ placeholder: 'doc-123, doc-456 or ["doc-123", "doc-456"]',
68
+ description: 'Document IDs to filter. Provide as comma-separated values or JSON array.',
69
+ displayOptions: {
70
+ show: {
71
+ ...showOnlyForSearch,
72
+ operation: ['searchAcrossDocuments'],
73
+ filterByDocuments: [true],
74
+ },
75
+ },
76
+ routing: {
77
+ send: {
78
+ type: 'query',
79
+ property: 'documentIds',
80
+ value: '={{ $value ? ($value.startsWith("[") ? JSON.parse($value) : $value.split(",").map(id => id.trim())) : undefined }}',
81
+ },
82
+ },
83
+ },
84
+ {
85
+ displayName: 'Filter Mode',
86
+ name: 'documentFilterMode',
87
+ type: 'options',
88
+ options: [
89
+ { name: 'Include', value: 'include', description: 'Only search in specified documents' },
90
+ { name: 'Exclude', value: 'exclude', description: 'Exclude specified documents from search' },
91
+ ],
92
+ default: 'include',
93
+ description: 'Whether to include or exclude the specified documents',
94
+ displayOptions: {
95
+ show: {
96
+ ...showOnlyForSearch,
97
+ operation: ['searchAcrossDocuments'],
98
+ filterByDocuments: [true],
99
+ },
100
+ },
101
+ routing: {
102
+ send: {
103
+ type: 'query',
104
+ property: 'documentFilterMode',
105
+ value: '={{ $value || undefined }}',
106
+ },
107
+ },
108
+ },
109
+ ];
110
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/CraftDocuments/resources/search/index.ts"],"names":[],"mappings":";;;AASA,MAAM,iBAAiB,GAAG,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;AAEtC,QAAA,iBAAiB,GAAsB;IAEnD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE;QAC3C,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,yBAAyB;gBAC/B,KAAK,EAAE,uBAAuB;gBAC9B,MAAM,EAAE,kCAAkC;gBAC1C,WAAW,EACV,wEAAwE;gBACzE,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,mBAAmB;qBACxB;iBACD;aACD;SACD;QACD,OAAO,EAAE,uBAAuB;KAChC;IAGD;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,eAAe;QAC5B,WAAW,EAAE,oEAAoE;QACjF,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,iBAAiB;gBACpB,SAAS,EAAE,CAAC,uBAAuB,CAAC;aACpC;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,SAAS;aACnB;SACD;KACD;IAGD;QACC,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,iBAAiB;gBACpB,SAAS,EAAE,CAAC,uBAAuB,CAAC;aACpC;SACD;QACD,WAAW,EAAE,gDAAgD;KAC7D;IACD;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4CAA4C;QACzD,WAAW,EAAE,0EAA0E;QACvF,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,iBAAiB;gBACpB,SAAS,EAAE,CAAC,uBAAuB,CAAC;gBACpC,iBAAiB,EAAE,CAAC,IAAI,CAAC;aACzB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,aAAa;gBACvB,KAAK,EAAE,oHAAoH;aAC3H;SACD;KACD;IACD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,oCAAoC,EAAE;YACxF,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,yCAAyC,EAAE;SAC7F;QACD,OAAO,EAAE,SAAS;QAClB,WAAW,EAAE,uDAAuD;QACpE,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,iBAAiB;gBACpB,SAAS,EAAE,CAAC,uBAAuB,CAAC;gBACpC,iBAAiB,EAAE,CAAC,IAAI,CAAC;aACzB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,oBAAoB;gBAC9B,KAAK,EAAE,4BAA4B;aACnC;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { ILoadOptionsFunctions, IHttpRequestMethods, IDataObject } from 'n8n-workflow';
2
+ export declare function craftApiRequest(this: ILoadOptionsFunctions, method: IHttpRequestMethods, endpoint: string, qs?: IDataObject): Promise<IDataObject | IDataObject[]>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.craftApiRequest = craftApiRequest;
4
+ async function craftApiRequest(method, endpoint, qs = {}) {
5
+ const credentials = await this.getCredentials('craftDocumentsApi');
6
+ const apiUrl = credentials.apiUrl;
7
+ const baseUrl = apiUrl.endsWith('/') ? apiUrl.slice(0, -1) : apiUrl;
8
+ const options = {
9
+ method,
10
+ url: `${baseUrl}${endpoint}`,
11
+ qs,
12
+ json: true,
13
+ headers: {
14
+ Accept: 'application/json',
15
+ 'Content-Type': 'application/json',
16
+ },
17
+ };
18
+ return this.helpers.httpRequest(options);
19
+ }
20
+ //# sourceMappingURL=transport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transport.js","sourceRoot":"","sources":["../../../../nodes/CraftDocuments/shared/transport.ts"],"names":[],"mappings":";;AAcA,0CAsBC;AAtBM,KAAK,UAAU,eAAe,CAEpC,MAA2B,EAC3B,QAAgB,EAChB,KAAkB,EAAE;IAEpB,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;IACnE,MAAM,MAAM,GAAG,WAAW,CAAC,MAAgB,CAAC;IAC5C,MAAM,OAAO,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAEpE,MAAM,OAAO,GAAwB;QACpC,MAAM;QACN,GAAG,EAAE,GAAG,OAAO,GAAG,QAAQ,EAAE;QAC5B,EAAE;QACF,IAAI,EAAE,IAAI;QACV,OAAO,EAAE;YACR,MAAM,EAAE,kBAAkB;YAC1B,cAAc,EAAE,kBAAkB;SAClC;KACD,CAAC;IAEF,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AAC1C,CAAC"}
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "n8n-nodes-craft-daily-notes",
3
- "version": "1.0.22",
4
- "description": "n8n community node for Craft Daily Notes API - manage blocks, tasks, collections and search",
3
+ "version": "1.0.25",
4
+ "description": "n8n community nodes for Craft APIs - Daily Notes (blocks, tasks, collections, search) and Documents (multi-document management)",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/yigitkonur/n8n-nodes-craft-daily-notes",
7
7
  "keywords": [
@@ -11,9 +11,12 @@
11
11
  "automation",
12
12
  "craft",
13
13
  "daily-notes",
14
+ "documents",
15
+ "collections",
14
16
  "tasks",
15
17
  "productivity",
16
- "notion"
18
+ "notion",
19
+ "knowledge-base"
17
20
  ],
18
21
  "author": {
19
22
  "name": "Yigit Konur",
@@ -27,7 +30,7 @@
27
30
  "url": "https://github.com/yigitkonur/n8n-nodes-craft-daily-notes/issues"
28
31
  },
29
32
  "engines": {
30
- "node": ">=18.0.0"
33
+ "node": ">=20.15.0"
31
34
  },
32
35
  "scripts": {
33
36
  "build": "n8n-node build",
@@ -45,10 +48,12 @@
45
48
  "n8nNodesApiVersion": 1,
46
49
  "strict": true,
47
50
  "credentials": [
48
- "dist/credentials/CraftDailyNotesApi.credentials.js"
51
+ "dist/credentials/CraftDailyNotesApi.credentials.js",
52
+ "dist/credentials/CraftDocumentsApi.credentials.js"
49
53
  ],
50
54
  "nodes": [
51
- "dist/nodes/CraftDailyNotes/CraftDailyNotes.node.js"
55
+ "dist/nodes/CraftDailyNotes/CraftDailyNotes.node.js",
56
+ "dist/nodes/CraftDocuments/CraftDocuments.node.js"
52
57
  ]
53
58
  },
54
59
  "devDependencies": {