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
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.blockUpdateDescription = void 0;
4
+ const showOnlyForBlockUpdate = { operation: ['update'], resource: ['block'] };
5
+ exports.blockUpdateDescription = [
6
+ {
7
+ displayName: 'Blocks to Update',
8
+ name: 'blocksToUpdate',
9
+ type: 'fixedCollection',
10
+ typeOptions: {
11
+ multipleValues: true,
12
+ },
13
+ default: {},
14
+ placeholder: 'Add Block',
15
+ displayOptions: { show: showOnlyForBlockUpdate },
16
+ options: [
17
+ {
18
+ name: 'blockValues',
19
+ displayName: 'Block',
20
+ values: [
21
+ {
22
+ displayName: 'Block ID',
23
+ name: 'id',
24
+ type: 'string',
25
+ default: '',
26
+ required: true,
27
+ placeholder: 'E21E3640-FBD2-4887-BD1B-B1FFE1781168',
28
+ description: 'The UUID of the block to update',
29
+ },
30
+ {
31
+ displayName: 'New Markdown',
32
+ name: 'markdown',
33
+ type: 'string',
34
+ typeOptions: {
35
+ rows: 4,
36
+ },
37
+ default: '',
38
+ description: 'The new markdown content for the block',
39
+ },
40
+ {
41
+ displayName: 'Text Style',
42
+ name: 'textStyle',
43
+ type: 'options',
44
+ options: [
45
+ { name: 'Body', value: 'body' },
46
+ { name: 'Caption', value: 'caption' },
47
+ { name: 'Card', value: 'card' },
48
+ { name: "Don't Change", value: '', description: 'Keep current text style' },
49
+ { name: 'Heading 1', value: 'h1' },
50
+ { name: 'Heading 2', value: 'h2' },
51
+ { name: 'Heading 3', value: 'h3' },
52
+ { name: 'Heading 4', value: 'h4' },
53
+ { name: 'Page', value: 'page' },
54
+ ],
55
+ default: '',
56
+ description: 'The text style for the block. Code blocks are auto-detected from ``` markdown syntax.',
57
+ },
58
+ {
59
+ displayName: 'List Style',
60
+ name: 'listStyle',
61
+ type: 'options',
62
+ options: [
63
+ { name: 'Bullet', value: 'bullet' },
64
+ { name: "Don't Change", value: '', description: 'Keep current list style' },
65
+ { name: 'None', value: 'none' },
66
+ { name: 'Numbered', value: 'numbered' },
67
+ { name: 'Todo', value: 'todo' },
68
+ { name: 'Toggle', value: 'toggle' },
69
+ ],
70
+ default: '',
71
+ description: 'The list style for the block',
72
+ },
73
+ ],
74
+ },
75
+ ],
76
+ routing: {
77
+ send: {
78
+ type: 'body',
79
+ property: 'blocks',
80
+ value: '={{ $value.blockValues ? $value.blockValues.map(b => { const block = { id: b.id }; if (b.markdown) block.markdown = b.markdown; if (b.textStyle && b.textStyle !== "") block.textStyle = b.textStyle; if (b.listStyle && b.listStyle !== "") block.listStyle = b.listStyle; return block; }) : [] }}',
81
+ },
82
+ },
83
+ },
84
+ ];
85
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../nodes/CraftDocuments/resources/block/update.ts"],"names":[],"mappings":";;;AAQA,MAAM,sBAAsB,GAAG,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;AAEjE,QAAA,sBAAsB,GAAsB;IAExD;QACC,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE;YACZ,cAAc,EAAE,IAAI;SACpB;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,WAAW;QACxB,cAAc,EAAE,EAAE,IAAI,EAAE,sBAAsB,EAAE;QAChD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,aAAa;gBACnB,WAAW,EAAE,OAAO;gBACpB,MAAM,EAAE;oBACP;wBACC,WAAW,EAAE,UAAU;wBACvB,IAAI,EAAE,IAAI;wBACV,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,QAAQ,EAAE,IAAI;wBACd,WAAW,EAAE,sCAAsC;wBACnD,WAAW,EAAE,iCAAiC;qBAC9C;oBACD;wBACC,WAAW,EAAE,cAAc;wBAC3B,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE;4BACZ,IAAI,EAAE,CAAC;yBACP;wBACD,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,wCAAwC;qBACrD;oBACD;wBACC,WAAW,EAAE,YAAY;wBACzB,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,SAAS;wBAGf,OAAO,EAAE;4BACR,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;4BAC/B,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;4BACrC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;4BAC/B,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE,yBAAyB,EAAE;4BAC3E,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE;4BAClC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE;4BAClC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE;4BAClC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE;4BAClC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;yBAC/B;wBACD,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,uFAAuF;qBACpG;oBACD;wBACC,WAAW,EAAE,YAAY;wBACzB,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACR,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;4BACnC,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE,yBAAyB,EAAE;4BAC3E,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;4BAC/B,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;4BACvC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;4BAC/B,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;yBACnC;wBACD,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,8BAA8B;qBAC3C;iBACD;aACD;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,QAAQ;gBAElB,KAAK,EACJ,sSAAsS;aACvS;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const collectionAddItemsDescription: INodeProperties[];
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.collectionAddItemsDescription = void 0;
4
+ const showOnlyForCollectionAddItems = { operation: ['addItems'], resource: ['collection'] };
5
+ exports.collectionAddItemsDescription = [
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: showOnlyForCollectionAddItems },
17
+ },
18
+ {
19
+ displayName: 'Items',
20
+ name: 'items',
21
+ type: 'fixedCollection',
22
+ typeOptions: {
23
+ multipleValues: true,
24
+ },
25
+ default: {},
26
+ placeholder: 'Add Item',
27
+ displayOptions: { show: showOnlyForCollectionAddItems },
28
+ options: [
29
+ {
30
+ name: 'itemValues',
31
+ displayName: 'Item',
32
+ values: [
33
+ {
34
+ displayName: 'Title',
35
+ name: 'title',
36
+ type: 'string',
37
+ default: '',
38
+ required: true,
39
+ description: 'The title for the new item',
40
+ },
41
+ {
42
+ displayName: 'Properties (JSON)',
43
+ name: 'properties',
44
+ type: 'json',
45
+ default: '{}',
46
+ description: 'Additional properties for the item as JSON object. Schema depends on collection.',
47
+ },
48
+ ],
49
+ },
50
+ ],
51
+ routing: {
52
+ send: {
53
+ type: 'body',
54
+ property: 'items',
55
+ value: '={{ $value.itemValues ? $value.itemValues.map(item => ({ title: item.title, properties: typeof item.properties === "string" ? JSON.parse(item.properties || "{}") : (item.properties || {}) })) : [] }}',
56
+ },
57
+ },
58
+ },
59
+ ];
60
+ //# sourceMappingURL=addItems.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addItems.js","sourceRoot":"","sources":["../../../../../nodes/CraftDocuments/resources/collection/addItems.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,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,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,6BAA6B,EAAE;QACvD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,YAAY;gBAClB,WAAW,EAAE,MAAM;gBACnB,MAAM,EAAE;oBACP;wBACC,WAAW,EAAE,OAAO;wBACpB,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,QAAQ,EAAE,IAAI;wBACd,WAAW,EAAE,4BAA4B;qBACzC;oBACD;wBACC,WAAW,EAAE,mBAAmB;wBAChC,IAAI,EAAE,YAAY;wBAClB,IAAI,EAAE,MAAM;wBACZ,OAAO,EAAE,IAAI;wBACb,WAAW,EAAE,kFAAkF;qBAC/F;iBACD;aACD;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,OAAO;gBACjB,KAAK,EACJ,yMAAyM;aAC1M;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const collectionDeleteItemsDescription: INodeProperties[];
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.collectionDeleteItemsDescription = void 0;
4
+ const showOnlyForCollectionDeleteItems = { operation: ['deleteItems'], resource: ['collection'] };
5
+ exports.collectionDeleteItemsDescription = [
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: showOnlyForCollectionDeleteItems },
17
+ },
18
+ {
19
+ displayName: 'Item IDs',
20
+ name: 'idsToDelete',
21
+ type: 'string',
22
+ default: '',
23
+ required: true,
24
+ placeholder: 'ID1, ID2, ID3 or ["ID1", "ID2"]',
25
+ description: 'Item IDs to delete. Provide as comma-separated values or JSON array.',
26
+ displayOptions: { show: showOnlyForCollectionDeleteItems },
27
+ routing: {
28
+ send: {
29
+ type: 'body',
30
+ property: 'idsToDelete',
31
+ value: '={{ $value.startsWith("[") ? JSON.parse($value) : $value.split(",").map(id => id.trim()) }}',
32
+ },
33
+ },
34
+ },
35
+ ];
36
+ //# sourceMappingURL=deleteItems.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteItems.js","sourceRoot":"","sources":["../../../../../nodes/CraftDocuments/resources/collection/deleteItems.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,UAAU;QACvB,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,iCAAiC;QAC9C,WAAW,EAAE,sEAAsE;QACnF,cAAc,EAAE,EAAE,IAAI,EAAE,gCAAgC,EAAE;QAC1D,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,aAAa;gBACvB,KAAK,EACJ,6FAA6F;aAC9F;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const collectionGetItemsDescription: INodeProperties[];
@@ -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[];