n8n-nodes-craft-daily-notes 1.0.0
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/LICENSE.md +19 -0
- package/README.md +105 -0
- package/dist/credentials/CraftDailyNotesApi.credentials.d.ts +9 -0
- package/dist/credentials/CraftDailyNotesApi.credentials.js +34 -0
- package/dist/credentials/CraftDailyNotesApi.credentials.js.map +1 -0
- package/dist/icons/craft.dark.svg +19 -0
- package/dist/icons/craft.svg +30 -0
- package/dist/nodes/CraftDailyNotes/CraftDailyNotes.node.d.ts +11 -0
- package/dist/nodes/CraftDailyNotes/CraftDailyNotes.node.js +143 -0
- package/dist/nodes/CraftDailyNotes/CraftDailyNotes.node.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/CraftDailyNotes.node.json +22 -0
- package/dist/nodes/CraftDailyNotes/listSearch/getCollections.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/listSearch/getCollections.js +14 -0
- package/dist/nodes/CraftDailyNotes/listSearch/getCollections.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/block/delete.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/block/delete.js +24 -0
- package/dist/nodes/CraftDailyNotes/resources/block/delete.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/block/get.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/block/get.js +127 -0
- package/dist/nodes/CraftDailyNotes/resources/block/get.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/block/index.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/block/index.js +95 -0
- package/dist/nodes/CraftDailyNotes/resources/block/index.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/block/insert.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/block/insert.js +154 -0
- package/dist/nodes/CraftDailyNotes/resources/block/insert.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/block/move.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/block/move.js +80 -0
- package/dist/nodes/CraftDailyNotes/resources/block/move.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/block/search.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/block/search.js +96 -0
- package/dist/nodes/CraftDailyNotes/resources/block/search.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/block/update.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/block/update.js +82 -0
- package/dist/nodes/CraftDailyNotes/resources/block/update.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/addItems.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/addItems.js +34 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/addItems.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/deleteItems.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/deleteItems.js +36 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/deleteItems.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/getItems.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/getItems.js +37 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/getItems.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/getSchema.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/getSchema.js +45 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/getSchema.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/index.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/index.js +101 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/index.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/list.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/list.js +57 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/list.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/updateItems.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/updateItems.js +34 -0
- package/dist/nodes/CraftDailyNotes/resources/collection/updateItems.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/search/index.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/search/index.js +107 -0
- package/dist/nodes/CraftDailyNotes/resources/search/index.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/task/add.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/task/add.js +85 -0
- package/dist/nodes/CraftDailyNotes/resources/task/add.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/task/delete.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/task/delete.js +24 -0
- package/dist/nodes/CraftDailyNotes/resources/task/delete.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/task/get.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/task/get.js +44 -0
- package/dist/nodes/CraftDailyNotes/resources/task/get.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/task/index.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/task/index.js +73 -0
- package/dist/nodes/CraftDailyNotes/resources/task/index.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/resources/task/update.d.ts +2 -0
- package/dist/nodes/CraftDailyNotes/resources/task/update.js +87 -0
- package/dist/nodes/CraftDailyNotes/resources/task/update.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/shared/blockBuilder.d.ts +13 -0
- package/dist/nodes/CraftDailyNotes/shared/blockBuilder.js +121 -0
- package/dist/nodes/CraftDailyNotes/shared/blockBuilder.js.map +1 -0
- package/dist/nodes/CraftDailyNotes/shared/transport.d.ts +3 -0
- package/dist/nodes/CraftDailyNotes/shared/transport.js +50 -0
- package/dist/nodes/CraftDailyNotes/shared/transport.js.map +1 -0
- package/dist/package.json +64 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +64 -0
|
@@ -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 daily notes. 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 for each item. -1 for all, 0 for item properties only.',
|
|
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/CraftDailyNotes/resources/collection/getItems.ts"],"names":[],"mappings":";;;AAMA,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,4JAA4J;QACzK,cAAc,EAAE,EAAE,IAAI,EAAE,6BAA6B,EAAE;KACvD;IAGD;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,iGAAiG;QAClG,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,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 daily notes. 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: 'schemaFormat',
|
|
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 (use with add/update)',
|
|
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/CraftDailyNotes/resources/collection/getSchema.ts"],"names":[],"mappings":";;;AAMA,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,4JAA4J;QACzK,cAAc,EAAE,EAAE,IAAI,EAAE,8BAA8B,EAAE;KACxD;IAGD;QACC,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,8BAA8B;gBACpC,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EAAE,2EAA2E;aACxF;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,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 daily notes',
|
|
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/CraftDailyNotes/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,6CAA6C;gBAC1D,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,57 @@
|
|
|
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 Date Range',
|
|
8
|
+
name: 'filterByDateRange',
|
|
9
|
+
type: 'boolean',
|
|
10
|
+
default: false,
|
|
11
|
+
displayOptions: { show: showOnlyForCollectionList },
|
|
12
|
+
description: 'Whether to filter collections by daily note date range',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
displayName: 'Start Date',
|
|
16
|
+
name: 'startDate',
|
|
17
|
+
type: 'string',
|
|
18
|
+
default: '',
|
|
19
|
+
placeholder: 'today, yesterday, or YYYY-MM-DD',
|
|
20
|
+
description: 'Only include collections in daily notes on or after this date',
|
|
21
|
+
displayOptions: {
|
|
22
|
+
show: {
|
|
23
|
+
...showOnlyForCollectionList,
|
|
24
|
+
filterByDateRange: [true],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
routing: {
|
|
28
|
+
send: {
|
|
29
|
+
type: 'query',
|
|
30
|
+
property: 'startDate',
|
|
31
|
+
value: '={{ $value || undefined }}',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
displayName: 'End Date',
|
|
37
|
+
name: 'endDate',
|
|
38
|
+
type: 'string',
|
|
39
|
+
default: '',
|
|
40
|
+
placeholder: 'today, tomorrow, or YYYY-MM-DD',
|
|
41
|
+
description: 'Only include collections in daily notes on or before this date',
|
|
42
|
+
displayOptions: {
|
|
43
|
+
show: {
|
|
44
|
+
...showOnlyForCollectionList,
|
|
45
|
+
filterByDateRange: [true],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
routing: {
|
|
49
|
+
send: {
|
|
50
|
+
type: 'query',
|
|
51
|
+
property: 'endDate',
|
|
52
|
+
value: '={{ $value || undefined }}',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
];
|
|
57
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../nodes/CraftDailyNotes/resources/collection/list.ts"],"names":[],"mappings":";;;AAMA,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,sBAAsB;QACnC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,yBAAyB,EAAE;QACnD,WAAW,EAAE,wDAAwD;KACrE;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;QAC9C,WAAW,EAAE,+DAA+D;QAC5E,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,WAAW;gBACrB,KAAK,EAAE,4BAA4B;aACnC;SACD;KACD;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gCAAgC;QAC7C,WAAW,EAAE,gEAAgE;QAC7E,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,SAAS;gBACnB,KAAK,EAAE,4BAA4B;aACnC;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 daily notes. 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 (JSON)',
|
|
20
|
+
name: 'itemsToUpdateJson',
|
|
21
|
+
type: 'json',
|
|
22
|
+
default: '{"itemsToUpdate": [{"id": "item-id", "title": "Updated Title", "properties": {}}]}',
|
|
23
|
+
required: true,
|
|
24
|
+
description: 'Items to update in JSON format. Each item must include an "ID" field. Only provided fields will be updated (partial updates supported).',
|
|
25
|
+
displayOptions: { show: showOnlyForCollectionUpdateItems },
|
|
26
|
+
routing: {
|
|
27
|
+
send: {
|
|
28
|
+
type: 'body',
|
|
29
|
+
value: '={{ JSON.parse($value) }}',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
//# sourceMappingURL=updateItems.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateItems.js","sourceRoot":"","sources":["../../../../../nodes/CraftDailyNotes/resources/collection/updateItems.ts"],"names":[],"mappings":";;;AAMA,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,4JAA4J;QACzK,cAAc,EAAE,EAAE,IAAI,EAAE,gCAAgC,EAAE;KAC1D;IAGD;QACC,WAAW,EAAE,wBAAwB;QACrC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,oFAAoF;QAC7F,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,yIAAyI;QACtJ,cAAc,EAAE,EAAE,IAAI,EAAE,gCAAgC,EAAE;QAC1D,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,2BAA2B;aAClC;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
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 Daily Notes',
|
|
15
|
+
value: 'searchAcrossNotes',
|
|
16
|
+
action: 'Search across multiple daily notes',
|
|
17
|
+
description: 'Search content across multiple daily notes using relevance-based ranking',
|
|
18
|
+
routing: {
|
|
19
|
+
request: {
|
|
20
|
+
method: 'GET',
|
|
21
|
+
url: '/daily-notes/search',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
default: 'searchAcrossNotes',
|
|
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: ['searchAcrossNotes'],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
routing: {
|
|
43
|
+
send: {
|
|
44
|
+
type: 'query',
|
|
45
|
+
property: 'include',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Filter by Date Range',
|
|
51
|
+
name: 'filterByDateRange',
|
|
52
|
+
type: 'boolean',
|
|
53
|
+
default: false,
|
|
54
|
+
displayOptions: {
|
|
55
|
+
show: {
|
|
56
|
+
...showOnlyForSearch,
|
|
57
|
+
operation: ['searchAcrossNotes'],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
description: 'Whether to filter search to a specific date range',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
displayName: 'Start Date',
|
|
64
|
+
name: 'startDate',
|
|
65
|
+
type: 'string',
|
|
66
|
+
default: '',
|
|
67
|
+
placeholder: 'today, yesterday, or YYYY-MM-DD',
|
|
68
|
+
description: 'Only search daily notes on or after this date',
|
|
69
|
+
displayOptions: {
|
|
70
|
+
show: {
|
|
71
|
+
...showOnlyForSearch,
|
|
72
|
+
operation: ['searchAcrossNotes'],
|
|
73
|
+
filterByDateRange: [true],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
routing: {
|
|
77
|
+
send: {
|
|
78
|
+
type: 'query',
|
|
79
|
+
property: 'startDate',
|
|
80
|
+
value: '={{ $value || undefined }}',
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
displayName: 'End Date',
|
|
86
|
+
name: 'endDate',
|
|
87
|
+
type: 'string',
|
|
88
|
+
default: '',
|
|
89
|
+
placeholder: 'today, tomorrow, or YYYY-MM-DD',
|
|
90
|
+
description: 'Only search daily notes on or before this date',
|
|
91
|
+
displayOptions: {
|
|
92
|
+
show: {
|
|
93
|
+
...showOnlyForSearch,
|
|
94
|
+
operation: ['searchAcrossNotes'],
|
|
95
|
+
filterByDateRange: [true],
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
routing: {
|
|
99
|
+
send: {
|
|
100
|
+
type: 'query',
|
|
101
|
+
property: 'endDate',
|
|
102
|
+
value: '={{ $value || undefined }}',
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
];
|
|
107
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/CraftDailyNotes/resources/search/index.ts"],"names":[],"mappings":";;;AAMA,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,2BAA2B;gBACjC,KAAK,EAAE,mBAAmB;gBAC1B,MAAM,EAAE,oCAAoC;gBAC5C,WAAW,EACV,0EAA0E;gBAC3E,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,qBAAqB;qBAC1B;iBACD;aACD;SACD;QACD,OAAO,EAAE,mBAAmB;KAC5B;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,mBAAmB,CAAC;aAChC;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,SAAS;aACnB;SACD;KACD;IAGD;QACC,WAAW,EAAE,sBAAsB;QACnC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,iBAAiB;gBACpB,SAAS,EAAE,CAAC,mBAAmB,CAAC;aAChC;SACD;QACD,WAAW,EAAE,mDAAmD;KAChE;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;QAC9C,WAAW,EAAE,+CAA+C;QAC5D,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,iBAAiB;gBACpB,SAAS,EAAE,CAAC,mBAAmB,CAAC;gBAChC,iBAAiB,EAAE,CAAC,IAAI,CAAC;aACzB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,WAAW;gBACrB,KAAK,EAAE,4BAA4B;aACnC;SACD;KACD;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gCAAgC;QAC7C,WAAW,EAAE,gDAAgD;QAC7D,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,iBAAiB;gBACpB,SAAS,EAAE,CAAC,mBAAmB,CAAC;gBAChC,iBAAiB,EAAE,CAAC,IAAI,CAAC;aACzB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,SAAS;gBACnB,KAAK,EAAE,4BAA4B;aACnC;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskAddDescription = void 0;
|
|
4
|
+
const showOnlyForTaskAdd = { operation: ['add'], resource: ['task'] };
|
|
5
|
+
exports.taskAddDescription = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Tasks to Add',
|
|
8
|
+
name: 'tasksToAdd',
|
|
9
|
+
type: 'fixedCollection',
|
|
10
|
+
typeOptions: {
|
|
11
|
+
multipleValues: true,
|
|
12
|
+
},
|
|
13
|
+
default: {},
|
|
14
|
+
placeholder: 'Add Task',
|
|
15
|
+
displayOptions: { show: showOnlyForTaskAdd },
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
name: 'taskValues',
|
|
19
|
+
displayName: 'Task',
|
|
20
|
+
values: [
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Deadline Date',
|
|
23
|
+
name: 'deadlineDate',
|
|
24
|
+
type: 'string',
|
|
25
|
+
default: '',
|
|
26
|
+
placeholder: 'tomorrow, or YYYY-MM-DD',
|
|
27
|
+
description: 'Task deadline date (optional)',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
displayName: 'Location Date',
|
|
31
|
+
name: 'locationDate',
|
|
32
|
+
type: 'string',
|
|
33
|
+
default: 'today',
|
|
34
|
+
placeholder: 'today, tomorrow, or YYYY-MM-DD',
|
|
35
|
+
description: 'Which daily note to add the task to',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
displayName: 'Location Type',
|
|
39
|
+
name: 'locationType',
|
|
40
|
+
type: 'options',
|
|
41
|
+
options: [
|
|
42
|
+
{
|
|
43
|
+
name: 'Daily Note',
|
|
44
|
+
value: 'dailyNote',
|
|
45
|
+
description: 'Add task to a specific daily note',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'Inbox',
|
|
49
|
+
value: 'inbox',
|
|
50
|
+
description: 'Add task to inbox',
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
default: 'inbox',
|
|
54
|
+
description: 'Where to add the task',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
displayName: 'Schedule Date',
|
|
58
|
+
name: 'scheduleDate',
|
|
59
|
+
type: 'string',
|
|
60
|
+
default: '',
|
|
61
|
+
placeholder: 'today, tomorrow, or YYYY-MM-DD',
|
|
62
|
+
description: 'When the task should be scheduled (optional)',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
displayName: 'Task Content',
|
|
66
|
+
name: 'markdown',
|
|
67
|
+
type: 'string',
|
|
68
|
+
default: '',
|
|
69
|
+
required: true,
|
|
70
|
+
placeholder: 'Buy groceries',
|
|
71
|
+
description: 'The task content in markdown format',
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
routing: {
|
|
77
|
+
send: {
|
|
78
|
+
type: 'body',
|
|
79
|
+
property: 'tasks',
|
|
80
|
+
value: '={{ $value.taskValues ? $value.taskValues.map(t => { const task = { markdown: t.markdown }; if (t.scheduleDate || t.deadlineDate) { task.taskInfo = {}; if (t.scheduleDate) task.taskInfo.scheduleDate = t.scheduleDate; if (t.deadlineDate) task.taskInfo.deadlineDate = t.deadlineDate; } if (t.locationType === "inbox") { task.location = { type: "inbox" }; } else if (t.locationType === "dailyNote") { task.location = { type: "dailyNote", date: t.locationDate || "today" }; } return task; }) : [] }}',
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
];
|
|
85
|
+
//# sourceMappingURL=add.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.js","sourceRoot":"","sources":["../../../../../nodes/CraftDailyNotes/resources/task/add.ts"],"names":[],"mappings":";;;AAMA,MAAM,kBAAkB,GAAG,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;AAEzD,QAAA,kBAAkB,GAAsB;IAEpD;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,YAAY;QAClB,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,kBAAkB,EAAE;QAC5C,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,YAAY;gBAClB,WAAW,EAAE,MAAM;gBACnB,MAAM,EAAE;oBACP;wBACC,WAAW,EAAE,eAAe;wBAC5B,IAAI,EAAE,cAAc;wBACpB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,yBAAyB;wBACtC,WAAW,EAAE,+BAA+B;qBAC5C;oBACD;wBACC,WAAW,EAAE,eAAe;wBAC5B,IAAI,EAAE,cAAc;wBACpB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,OAAO;wBAChB,WAAW,EAAE,gCAAgC;wBAC7C,WAAW,EAAE,qCAAqC;qBAClD;oBACD;wBACC,WAAW,EAAE,eAAe;wBAC5B,IAAI,EAAE,cAAc;wBACpB,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE;4BACR;gCACC,IAAI,EAAE,YAAY;gCAClB,KAAK,EAAE,WAAW;gCAClB,WAAW,EAAE,mCAAmC;6BAChD;4BACD;gCACC,IAAI,EAAE,OAAO;gCACb,KAAK,EAAE,OAAO;gCACd,WAAW,EAAE,mBAAmB;6BAChC;yBACD;wBACD,OAAO,EAAE,OAAO;wBAChB,WAAW,EAAE,uBAAuB;qBACpC;oBACD;wBACC,WAAW,EAAE,eAAe;wBAC5B,IAAI,EAAE,cAAc;wBACpB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,gCAAgC;wBAC7C,WAAW,EAAE,8CAA8C;qBAC3D;oBACD;wBACC,WAAW,EAAE,cAAc;wBAC3B,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,QAAQ,EAAE,IAAI;wBACd,WAAW,EAAE,eAAe;wBAC5B,WAAW,EAAE,qCAAqC;qBAClD;iBACD;aACD;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,OAAO;gBACjB,KAAK,EACJ,ifAAif;aAClf;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskDeleteDescription = void 0;
|
|
4
|
+
const showOnlyForTaskDelete = { operation: ['delete'], resource: ['task'] };
|
|
5
|
+
exports.taskDeleteDescription = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Task IDs',
|
|
8
|
+
name: 'taskIds',
|
|
9
|
+
type: 'string',
|
|
10
|
+
default: '',
|
|
11
|
+
required: true,
|
|
12
|
+
placeholder: 'ID1, ID2, ID3 or ["ID1", "ID2"]',
|
|
13
|
+
description: 'Task IDs to delete. Provide as comma-separated values or JSON array.',
|
|
14
|
+
displayOptions: { show: showOnlyForTaskDelete },
|
|
15
|
+
routing: {
|
|
16
|
+
send: {
|
|
17
|
+
type: 'body',
|
|
18
|
+
property: 'idsToDelete',
|
|
19
|
+
value: '={{ $value.startsWith("[") ? JSON.parse($value) : $value.split(",").map(id => id.trim()) }}',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
];
|
|
24
|
+
//# sourceMappingURL=delete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../nodes/CraftDailyNotes/resources/task/delete.ts"],"names":[],"mappings":";;;AAMA,MAAM,qBAAqB,GAAG,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;AAE/D,QAAA,qBAAqB,GAAsB;IAEvD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,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,qBAAqB,EAAE;QAC/C,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,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.taskGetDescription = void 0;
|
|
4
|
+
const showOnlyForTaskGet = { operation: ['get'], resource: ['task'] };
|
|
5
|
+
exports.taskGetDescription = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Scope',
|
|
8
|
+
name: 'scope',
|
|
9
|
+
type: 'options',
|
|
10
|
+
options: [
|
|
11
|
+
{
|
|
12
|
+
name: 'Active',
|
|
13
|
+
value: 'active',
|
|
14
|
+
description: 'Active tasks from inbox and other documents (tasks due before now that are not completed/cancelled)',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: 'Upcoming',
|
|
18
|
+
value: 'upcoming',
|
|
19
|
+
description: 'Upcoming tasks from inbox and other documents (tasks scheduled after now)',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'Inbox',
|
|
23
|
+
value: 'inbox',
|
|
24
|
+
description: 'Only tasks in the task inbox',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'Logbook',
|
|
28
|
+
value: 'logbook',
|
|
29
|
+
description: 'Only tasks in the task logbook (completed and cancelled tasks)',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
default: 'active',
|
|
33
|
+
required: true,
|
|
34
|
+
description: 'Filter tasks by scope',
|
|
35
|
+
displayOptions: { show: showOnlyForTaskGet },
|
|
36
|
+
routing: {
|
|
37
|
+
send: {
|
|
38
|
+
type: 'query',
|
|
39
|
+
property: 'scope',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/CraftDailyNotes/resources/task/get.ts"],"names":[],"mappings":";;;AAMA,MAAM,kBAAkB,GAAG,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;AAEzD,QAAA,kBAAkB,GAAsB;IAEpD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EACV,qGAAqG;aACtG;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,UAAU;gBACjB,WAAW,EACV,2EAA2E;aAC5E;YACD;gBACC,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,8BAA8B;aAC3C;YACD;gBACC,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,gEAAgE;aAC7E;SACD;QACD,OAAO,EAAE,QAAQ;QACjB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,uBAAuB;QACpC,cAAc,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE;QAC5C,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,OAAO;aACjB;SACD;KACD;CACD,CAAC"}
|