@qontext/n8n-nodes-qontext 0.1.5 → 1.0.1
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/README.md +269 -67
- package/dist/credentials/QontextApi.credentials.js +6 -3
- package/dist/credentials/QontextApi.credentials.js.map +1 -1
- package/dist/nodes/Qontext/Qontext.node.d.ts +8 -0
- package/dist/nodes/Qontext/Qontext.node.js +31 -9
- package/dist/nodes/Qontext/Qontext.node.js.map +1 -1
- package/dist/nodes/Qontext/Qontext.node.json +3 -3
- package/dist/nodes/Qontext/actions/common/api.d.ts +3 -0
- package/dist/nodes/Qontext/actions/common/api.js +7 -0
- package/dist/nodes/Qontext/actions/common/api.js.map +1 -0
- package/dist/nodes/Qontext/actions/common/legacy.d.ts +2 -0
- package/dist/nodes/Qontext/actions/common/legacy.js +34 -0
- package/dist/nodes/Qontext/actions/common/legacy.js.map +1 -0
- package/dist/nodes/Qontext/actions/common/locator.d.ts +14 -0
- package/dist/nodes/Qontext/actions/common/locator.js +90 -0
- package/dist/nodes/Qontext/actions/common/locator.js.map +1 -0
- package/dist/nodes/Qontext/actions/common/pagination.d.ts +3 -0
- package/dist/nodes/Qontext/actions/common/pagination.js +104 -0
- package/dist/nodes/Qontext/actions/common/pagination.js.map +1 -0
- package/dist/nodes/Qontext/actions/common/resolvePath.d.ts +3 -0
- package/dist/nodes/Qontext/actions/common/resolvePath.js +37 -0
- package/dist/nodes/Qontext/actions/common/resolvePath.js.map +1 -0
- package/dist/nodes/Qontext/actions/file/createFile.operation.d.ts +2 -0
- package/dist/nodes/Qontext/actions/file/createFile.operation.js +118 -0
- package/dist/nodes/Qontext/actions/file/createFile.operation.js.map +1 -0
- package/dist/nodes/Qontext/actions/file/deleteFile.operation.d.ts +2 -0
- package/dist/nodes/Qontext/actions/file/deleteFile.operation.js +13 -0
- package/dist/nodes/Qontext/actions/file/deleteFile.operation.js.map +1 -0
- package/dist/nodes/Qontext/actions/file/file.resource.d.ts +2 -0
- package/dist/nodes/Qontext/actions/file/file.resource.js +117 -0
- package/dist/nodes/Qontext/actions/file/file.resource.js.map +1 -0
- package/dist/nodes/Qontext/actions/file/getFile.operation.d.ts +2 -0
- package/dist/nodes/Qontext/actions/file/getFile.operation.js +13 -0
- package/dist/nodes/Qontext/actions/file/getFile.operation.js.map +1 -0
- package/dist/nodes/Qontext/actions/file/getManyFiles.operation.d.ts +2 -0
- package/dist/nodes/Qontext/actions/file/getManyFiles.operation.js +105 -0
- package/dist/nodes/Qontext/actions/file/getManyFiles.operation.js.map +1 -0
- package/dist/nodes/Qontext/actions/file/updateFile.operation.d.ts +2 -0
- package/dist/nodes/Qontext/actions/file/updateFile.operation.js +97 -0
- package/dist/nodes/Qontext/actions/file/updateFile.operation.js.map +1 -0
- package/dist/nodes/Qontext/actions/file/updateFileContent.operation.d.ts +2 -0
- package/dist/nodes/Qontext/actions/file/updateFileContent.operation.js +72 -0
- package/dist/nodes/Qontext/actions/file/updateFileContent.operation.js.map +1 -0
- package/dist/nodes/Qontext/actions/folder/createFolder.operation.d.ts +2 -0
- package/dist/nodes/Qontext/actions/folder/createFolder.operation.js +88 -0
- package/dist/nodes/Qontext/actions/folder/createFolder.operation.js.map +1 -0
- package/dist/nodes/Qontext/actions/folder/deleteFolder.operation.d.ts +2 -0
- package/dist/nodes/Qontext/actions/folder/deleteFolder.operation.js +33 -0
- package/dist/nodes/Qontext/actions/folder/deleteFolder.operation.js.map +1 -0
- package/dist/nodes/Qontext/actions/folder/folder.resource.d.ts +2 -0
- package/dist/nodes/Qontext/actions/folder/folder.resource.js +103 -0
- package/dist/nodes/Qontext/actions/folder/folder.resource.js.map +1 -0
- package/dist/nodes/Qontext/actions/folder/getFolder.operation.d.ts +2 -0
- package/dist/nodes/Qontext/actions/folder/getFolder.operation.js +13 -0
- package/dist/nodes/Qontext/actions/folder/getFolder.operation.js.map +1 -0
- package/dist/nodes/Qontext/actions/folder/getManyFolders.operation.d.ts +2 -0
- package/dist/nodes/Qontext/actions/folder/getManyFolders.operation.js +105 -0
- package/dist/nodes/Qontext/actions/folder/getManyFolders.operation.js.map +1 -0
- package/dist/nodes/Qontext/actions/folder/updateFolder.operation.d.ts +2 -0
- package/dist/nodes/Qontext/actions/folder/updateFolder.operation.js +71 -0
- package/dist/nodes/Qontext/actions/folder/updateFolder.operation.js.map +1 -0
- package/dist/nodes/Qontext/actions/search/search.resource.d.ts +2 -0
- package/dist/nodes/Qontext/actions/search/search.resource.js +63 -0
- package/dist/nodes/Qontext/actions/search/search.resource.js.map +1 -0
- package/dist/nodes/Qontext/actions/search/searchHybrid.operation.d.ts +2 -0
- package/dist/nodes/Qontext/actions/search/searchHybrid.operation.js +75 -0
- package/dist/nodes/Qontext/actions/search/searchHybrid.operation.js.map +1 -0
- package/dist/nodes/Qontext/actions/search/searchRegex.operation.d.ts +2 -0
- package/dist/nodes/Qontext/actions/search/searchRegex.operation.js +75 -0
- package/dist/nodes/Qontext/actions/search/searchRegex.operation.js.map +1 -0
- package/dist/nodes/Qontext/methods/listSearch.d.ts +4 -0
- package/dist/nodes/Qontext/methods/listSearch.js +48 -0
- package/dist/nodes/Qontext/methods/listSearch.js.map +1 -0
- package/dist/package.json +16 -7
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +16 -7
- package/dist/node_modules/@n8n/node-cli/dist/template/templates/declarative/custom/template/nodes/Example/example.dark.svg +0 -13
- package/dist/node_modules/@n8n/node-cli/dist/template/templates/declarative/custom/template/nodes/Example/example.svg +0 -13
- package/dist/node_modules/@n8n/node-cli/dist/template/templates/declarative/github-issues/template/icons/github.dark.svg +0 -3
- package/dist/node_modules/@n8n/node-cli/dist/template/templates/declarative/github-issues/template/icons/github.svg +0 -3
- package/dist/node_modules/@n8n/node-cli/dist/template/templates/programmatic/example/template/nodes/Example/example.dark.svg +0 -13
- package/dist/node_modules/@n8n/node-cli/dist/template/templates/programmatic/example/template/nodes/Example/example.svg +0 -13
- package/dist/nodes/Qontext/actions/ingestion/ingestDataWithMetadata.operation.d.ts +0 -2
- package/dist/nodes/Qontext/actions/ingestion/ingestDataWithMetadata.operation.js +0 -217
- package/dist/nodes/Qontext/actions/ingestion/ingestDataWithMetadata.operation.js.map +0 -1
- package/dist/nodes/Qontext/actions/ingestion/ingestUnstructuredText.operation.d.ts +0 -2
- package/dist/nodes/Qontext/actions/ingestion/ingestUnstructuredText.operation.js +0 -37
- package/dist/nodes/Qontext/actions/ingestion/ingestUnstructuredText.operation.js.map +0 -1
- package/dist/nodes/Qontext/actions/ingestion/ingestWebsite.operation.d.ts +0 -2
- package/dist/nodes/Qontext/actions/ingestion/ingestWebsite.operation.js +0 -61
- package/dist/nodes/Qontext/actions/ingestion/ingestWebsite.operation.js.map +0 -1
- package/dist/nodes/Qontext/actions/ingestion/ingestion.resource.d.ts +0 -2
- package/dist/nodes/Qontext/actions/ingestion/ingestion.resource.js +0 -80
- package/dist/nodes/Qontext/actions/ingestion/ingestion.resource.js.map +0 -1
- package/dist/nodes/Qontext/actions/retrieval/retrieval.resource.d.ts +0 -2
- package/dist/nodes/Qontext/actions/retrieval/retrieval.resource.js +0 -41
- package/dist/nodes/Qontext/actions/retrieval/retrieval.resource.js.map +0 -1
- package/dist/nodes/Qontext/actions/retrieval/retrieveContext.operation.d.ts +0 -2
- package/dist/nodes/Qontext/actions/retrieval/retrieveContext.operation.js +0 -83
- package/dist/nodes/Qontext/actions/retrieval/retrieveContext.operation.js.map +0 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getManyFoldersOperation = void 0;
|
|
4
|
+
const locator_1 = require("../common/locator");
|
|
5
|
+
const pagination_1 = require("../common/pagination");
|
|
6
|
+
exports.getManyFoldersOperation = [
|
|
7
|
+
...(0, pagination_1.listProperties)('folder', 'getAll', ['none', 'pathPrefix', 'parentId']),
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Filter By',
|
|
10
|
+
name: 'filterBy',
|
|
11
|
+
type: 'options',
|
|
12
|
+
noDataExpression: true,
|
|
13
|
+
default: 'none',
|
|
14
|
+
description: 'Which single filter to narrow the list with. The API accepts only one, and rejects a request carrying two.',
|
|
15
|
+
displayOptions: {
|
|
16
|
+
show: {
|
|
17
|
+
resource: ['folder'],
|
|
18
|
+
operation: ['getAll'],
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
options: [
|
|
22
|
+
{
|
|
23
|
+
name: 'Parent Folder ID',
|
|
24
|
+
value: 'parentId',
|
|
25
|
+
description: 'Folders directly inside this parent, one level only. Use Path Prefix for a whole subtree, or the None filter to list the root.',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'None',
|
|
29
|
+
value: 'none',
|
|
30
|
+
description: 'List the folders at the root',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'Path',
|
|
34
|
+
value: 'path',
|
|
35
|
+
description: 'Exact path to a folder. A path naming nothing is an empty collection. The root itself is not addressable here.',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'Path Prefix',
|
|
39
|
+
value: 'pathPrefix',
|
|
40
|
+
description: 'Every folder below this folder, recursively. A prefix naming nothing is an empty collection.',
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
displayName: 'Path',
|
|
46
|
+
name: 'path',
|
|
47
|
+
type: 'string',
|
|
48
|
+
default: '',
|
|
49
|
+
placeholder: 'e.g. /support/policies',
|
|
50
|
+
description: 'Exact path to a folder. A path naming nothing is an empty collection. The root itself is not addressable here.',
|
|
51
|
+
required: true,
|
|
52
|
+
displayOptions: {
|
|
53
|
+
show: {
|
|
54
|
+
resource: ['folder'],
|
|
55
|
+
operation: ['getAll'],
|
|
56
|
+
filterBy: ['path'],
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
routing: {
|
|
60
|
+
send: {
|
|
61
|
+
type: 'query',
|
|
62
|
+
property: 'path',
|
|
63
|
+
value: '={{$value}}',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
displayName: 'Path Prefix',
|
|
69
|
+
name: 'pathPrefix',
|
|
70
|
+
type: 'string',
|
|
71
|
+
default: '',
|
|
72
|
+
placeholder: 'e.g. /support',
|
|
73
|
+
description: 'Every folder below this folder, recursively. A prefix naming nothing is an empty collection.',
|
|
74
|
+
required: true,
|
|
75
|
+
displayOptions: {
|
|
76
|
+
show: {
|
|
77
|
+
resource: ['folder'],
|
|
78
|
+
operation: ['getAll'],
|
|
79
|
+
filterBy: ['pathPrefix'],
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
routing: {
|
|
83
|
+
send: {
|
|
84
|
+
type: 'query',
|
|
85
|
+
property: 'path_prefix',
|
|
86
|
+
value: '={{$value}}',
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
(0, locator_1.folderLocator)('parentId', 'Parent Folder ID', {
|
|
91
|
+
description: 'Folders directly inside this parent, one level only. Use Path Prefix for a whole subtree, or the None filter to list the root.',
|
|
92
|
+
required: true,
|
|
93
|
+
displayOptions: {
|
|
94
|
+
show: { resource: ['folder'], operation: ['getAll'], filterBy: ['parentId'] },
|
|
95
|
+
},
|
|
96
|
+
routing: {
|
|
97
|
+
send: {
|
|
98
|
+
type: 'query',
|
|
99
|
+
property: 'parent_id',
|
|
100
|
+
value: '={{$value}}',
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
}),
|
|
104
|
+
];
|
|
105
|
+
//# sourceMappingURL=getManyFolders.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getManyFolders.operation.js","sourceRoot":"","sources":["../../../../../nodes/Qontext/actions/folder/getManyFolders.operation.ts"],"names":[],"mappings":";;;AAIA,+CAAkD;AAClD,qDAAsD;AAEzC,QAAA,uBAAuB,GAAsB;IACzD,GAAG,IAAA,2BAAc,EAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,UAAU,CAAC,CAAC;IACzE;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE,MAAM;QACf,WAAW,EAAE,4GAA4G;QACzH,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,gIAAgI;aAC7I;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,8BAA8B;aAC3C;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,gHAAgH;aAC7H;YACD;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,8FAA8F;aAC3G;SACD;KACD;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,wBAAwB;QACrC,WAAW,EAAE,gHAAgH;QAC7H,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,QAAQ,EAAE,CAAC,MAAM,CAAC;aAClB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,MAAM;gBAChB,KAAK,EAAE,aAAa;aACpB;SACD;KACD;IACD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,eAAe;QAC5B,WAAW,EAAE,8FAA8F;QAC3G,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,QAAQ,EAAE,CAAC,YAAY,CAAC;aACxB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,aAAa;gBACvB,KAAK,EAAE,aAAa;aACpB;SACD;KACD;IACD,IAAA,uBAAa,EAAC,UAAU,EAAE,kBAAkB,EAAE;QAC7C,WAAW,EAAE,gIAAgI;QAC7I,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,UAAU,CAAC,EAAE;SAC7E;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,WAAW;gBACrB,KAAK,EAAE,aAAa;aACpB;SACD;KACD,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateFolderOperation = void 0;
|
|
4
|
+
const locator_1 = require("../common/locator");
|
|
5
|
+
exports.updateFolderOperation = [
|
|
6
|
+
(0, locator_1.folderLocator)('folderId', 'Folder ID', {
|
|
7
|
+
description: 'The folder to change. A move takes the whole subtree with it and every ID in it survives.',
|
|
8
|
+
required: true,
|
|
9
|
+
byPath: true,
|
|
10
|
+
displayOptions: { show: { resource: ['folder'], operation: ['update'] } },
|
|
11
|
+
}),
|
|
12
|
+
{
|
|
13
|
+
displayName: 'Action',
|
|
14
|
+
name: 'updateBy',
|
|
15
|
+
type: 'options',
|
|
16
|
+
noDataExpression: true,
|
|
17
|
+
default: 'rename',
|
|
18
|
+
description: 'Whether to rename the folder in place or move it somewhere else',
|
|
19
|
+
displayOptions: {
|
|
20
|
+
show: {
|
|
21
|
+
resource: ['folder'],
|
|
22
|
+
operation: ['update'],
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
options: [
|
|
26
|
+
{
|
|
27
|
+
name: 'Move',
|
|
28
|
+
value: 'move',
|
|
29
|
+
description: 'Move the folder into another folder, taking its whole subtree and keeping every ID',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'Rename',
|
|
33
|
+
value: 'rename',
|
|
34
|
+
description: 'Change the leaf name, leaving the folder where it is',
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
displayName: 'Name',
|
|
40
|
+
name: 'name',
|
|
41
|
+
type: 'string',
|
|
42
|
+
default: '',
|
|
43
|
+
placeholder: 'e.g. initiatives',
|
|
44
|
+
description: 'New leaf name, which renames the folder in place',
|
|
45
|
+
required: true,
|
|
46
|
+
displayOptions: {
|
|
47
|
+
show: {
|
|
48
|
+
resource: ['folder'],
|
|
49
|
+
operation: ['update'],
|
|
50
|
+
updateBy: ['rename'],
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
routing: {
|
|
54
|
+
send: {
|
|
55
|
+
type: 'body',
|
|
56
|
+
property: 'name',
|
|
57
|
+
value: '={{$value}}',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
(0, locator_1.folderLocator)('parentId', 'New Parent Folder ID', {
|
|
62
|
+
description: 'Folder to move this folder into, with everything below it. Pick "/ (Root)" to move it to the root.',
|
|
63
|
+
required: true,
|
|
64
|
+
includeRoot: true,
|
|
65
|
+
displayOptions: {
|
|
66
|
+
show: { resource: ['folder'], operation: ['update'], updateBy: ['move'] },
|
|
67
|
+
},
|
|
68
|
+
routing: (0, locator_1.rootAware)('parentId'),
|
|
69
|
+
}),
|
|
70
|
+
];
|
|
71
|
+
//# sourceMappingURL=updateFolder.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateFolder.operation.js","sourceRoot":"","sources":["../../../../../nodes/Qontext/actions/folder/updateFolder.operation.ts"],"names":[],"mappings":";;;AAIA,+CAA6D;AAKhD,QAAA,qBAAqB,GAAsB;IACvD,IAAA,uBAAa,EAAC,UAAU,EAAE,WAAW,EAAE;QACtC,WAAW,EAAE,2FAA2F;QACxG,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,IAAI;QACZ,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;KACzE,CAAC;IACF;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE,QAAQ;QACjB,WAAW,EAAE,iEAAiE;QAC9E,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,oFAAoF;aACjG;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,sDAAsD;aACnE;SACD;KACD;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kBAAkB;QAC/B,WAAW,EAAE,kDAAkD;QAC/D,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,MAAM;gBAChB,KAAK,EAAE,aAAa;aACpB;SACD;KACD;IACD,IAAA,uBAAa,EAAC,UAAU,EAAE,sBAAsB,EAAE;QACjD,WAAW,EACV,oGAAoG;QACrG,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,IAAI;QACjB,cAAc,EAAE;YACf,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE;SACzE;QACD,OAAO,EAAE,IAAA,mBAAS,EAAC,UAAU,CAAC;KAC9B,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.searchOperations = void 0;
|
|
4
|
+
const api_1 = require("../common/api");
|
|
5
|
+
const searchHybrid_operation_1 = require("./searchHybrid.operation");
|
|
6
|
+
const searchRegex_operation_1 = require("./searchRegex.operation");
|
|
7
|
+
const splitResults = {
|
|
8
|
+
output: {
|
|
9
|
+
postReceive: [
|
|
10
|
+
{
|
|
11
|
+
type: 'rootProperty',
|
|
12
|
+
properties: {
|
|
13
|
+
property: 'data',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
exports.searchOperations = [
|
|
20
|
+
{
|
|
21
|
+
displayName: 'Operation',
|
|
22
|
+
name: 'operation',
|
|
23
|
+
type: 'options',
|
|
24
|
+
noDataExpression: true,
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['search'],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
options: [
|
|
31
|
+
{
|
|
32
|
+
name: 'By Meaning',
|
|
33
|
+
value: 'hybrid',
|
|
34
|
+
action: 'Search files by meaning',
|
|
35
|
+
description: 'Find the files that match your query and return their content, best match first. Also matches on meaning, so it finds files that answer the query without using the same words.',
|
|
36
|
+
routing: {
|
|
37
|
+
request: {
|
|
38
|
+
method: 'POST',
|
|
39
|
+
url: `${api_1.SEARCH_URL}/hybrid`,
|
|
40
|
+
},
|
|
41
|
+
...splitResults,
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'By Regex',
|
|
46
|
+
value: 'regex',
|
|
47
|
+
action: 'Search file lines with a regular expression',
|
|
48
|
+
description: 'Find lines that match an RE2 regular expression, citing the file each came from. Results are not relevance-ranked.',
|
|
49
|
+
routing: {
|
|
50
|
+
request: {
|
|
51
|
+
method: 'POST',
|
|
52
|
+
url: `${api_1.SEARCH_URL}/regex`,
|
|
53
|
+
},
|
|
54
|
+
...splitResults,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
default: 'hybrid',
|
|
59
|
+
},
|
|
60
|
+
...searchHybrid_operation_1.searchHybridOperation,
|
|
61
|
+
...searchRegex_operation_1.searchRegexOperation,
|
|
62
|
+
];
|
|
63
|
+
//# sourceMappingURL=search.resource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.resource.js","sourceRoot":"","sources":["../../../../../nodes/Qontext/actions/search/search.resource.ts"],"names":[],"mappings":";;;AACA,uCAA2C;AAC3C,qEAAiE;AACjE,mEAA+D;AAI/D,MAAM,YAAY,GAA+B;IAChD,MAAM,EAAE;QACP,WAAW,EAAE;YACZ;gBACC,IAAI,EAAE,cAAc;gBACpB,UAAU,EAAE;oBACX,QAAQ,EAAE,MAAM;iBAChB;aACD;SACD;KACD;CACD,CAAC;AAEW,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,YAAY;gBAClB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,yBAAyB;gBACjC,WAAW,EACV,iLAAiL;gBAClL,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,GAAG,gBAAU,SAAS;qBAC3B;oBACD,GAAG,YAAY;iBACf;aACD;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,OAAO;gBACd,MAAM,EAAE,6CAA6C;gBACrD,WAAW,EACV,oHAAoH;gBACrH,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,GAAG,gBAAU,QAAQ;qBAC1B;oBACD,GAAG,YAAY;iBACf;aACD;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,8CAAqB;IACxB,GAAG,4CAAoB;CACvB,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.searchHybridOperation = void 0;
|
|
4
|
+
exports.searchHybridOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Query',
|
|
7
|
+
name: 'query',
|
|
8
|
+
type: 'string',
|
|
9
|
+
default: '',
|
|
10
|
+
placeholder: 'e.g. What is the refund policy?',
|
|
11
|
+
description: 'What you are looking for. A few words or a whole question both work.',
|
|
12
|
+
required: true,
|
|
13
|
+
typeOptions: {
|
|
14
|
+
rows: 3,
|
|
15
|
+
},
|
|
16
|
+
displayOptions: {
|
|
17
|
+
show: {
|
|
18
|
+
resource: ['search'],
|
|
19
|
+
operation: ['hybrid'],
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
routing: {
|
|
23
|
+
send: {
|
|
24
|
+
type: 'body',
|
|
25
|
+
property: 'query',
|
|
26
|
+
value: '={{$value}}',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Limit',
|
|
32
|
+
name: 'limit',
|
|
33
|
+
type: 'number',
|
|
34
|
+
default: 50,
|
|
35
|
+
description: 'Max number of results to return',
|
|
36
|
+
typeOptions: {
|
|
37
|
+
minValue: 1,
|
|
38
|
+
maxValue: 500,
|
|
39
|
+
},
|
|
40
|
+
displayOptions: {
|
|
41
|
+
show: {
|
|
42
|
+
resource: ['search'],
|
|
43
|
+
operation: ['hybrid'],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
routing: {
|
|
47
|
+
send: {
|
|
48
|
+
type: 'body',
|
|
49
|
+
property: 'limit',
|
|
50
|
+
value: '={{$value}}',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
displayName: 'Include Sources',
|
|
56
|
+
name: 'includeSources',
|
|
57
|
+
type: 'boolean',
|
|
58
|
+
default: true,
|
|
59
|
+
description: 'Whether to cite the file each result came from',
|
|
60
|
+
displayOptions: {
|
|
61
|
+
show: {
|
|
62
|
+
resource: ['search'],
|
|
63
|
+
operation: ['hybrid'],
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
routing: {
|
|
67
|
+
send: {
|
|
68
|
+
type: 'body',
|
|
69
|
+
property: 'includeSources',
|
|
70
|
+
value: '={{$value}}',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
];
|
|
75
|
+
//# sourceMappingURL=searchHybrid.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchHybrid.operation.js","sourceRoot":"","sources":["../../../../../nodes/Qontext/actions/search/searchHybrid.operation.ts"],"names":[],"mappings":";;;AAKa,QAAA,qBAAqB,GAAsB;IACvD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;QAC9C,WAAW,EAAE,sEAAsE;QACnF,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE;YACZ,IAAI,EAAE,CAAC;SACP;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,OAAO;gBACjB,KAAK,EAAE,aAAa;aACpB;SACD;KACD;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QAGd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;QAC9C,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,GAAG;SACb;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,OAAO;gBACjB,KAAK,EAAE,aAAa;aACpB;SACD;KACD;IACD;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,gDAAgD;QAC7D,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,gBAAgB;gBAC1B,KAAK,EAAE,aAAa;aACpB;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.searchRegexOperation = void 0;
|
|
4
|
+
exports.searchRegexOperation = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Query',
|
|
7
|
+
name: 'query',
|
|
8
|
+
type: 'string',
|
|
9
|
+
default: '',
|
|
10
|
+
placeholder: 'e.g. refund(s|ed)?\\s+within',
|
|
11
|
+
description: 'An RE2 regular expression matched against each line. Results are not relevance-ranked.',
|
|
12
|
+
required: true,
|
|
13
|
+
typeOptions: {
|
|
14
|
+
rows: 3,
|
|
15
|
+
},
|
|
16
|
+
displayOptions: {
|
|
17
|
+
show: {
|
|
18
|
+
resource: ['search'],
|
|
19
|
+
operation: ['regex'],
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
routing: {
|
|
23
|
+
send: {
|
|
24
|
+
type: 'body',
|
|
25
|
+
property: 'query',
|
|
26
|
+
value: '={{$value}}',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Limit',
|
|
32
|
+
name: 'limit',
|
|
33
|
+
type: 'number',
|
|
34
|
+
default: 50,
|
|
35
|
+
description: 'Max number of results to return',
|
|
36
|
+
typeOptions: {
|
|
37
|
+
minValue: 1,
|
|
38
|
+
maxValue: 500,
|
|
39
|
+
},
|
|
40
|
+
displayOptions: {
|
|
41
|
+
show: {
|
|
42
|
+
resource: ['search'],
|
|
43
|
+
operation: ['regex'],
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
routing: {
|
|
47
|
+
send: {
|
|
48
|
+
type: 'body',
|
|
49
|
+
property: 'limit',
|
|
50
|
+
value: '={{$value}}',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
displayName: 'Include Sources',
|
|
56
|
+
name: 'includeSources',
|
|
57
|
+
type: 'boolean',
|
|
58
|
+
default: true,
|
|
59
|
+
description: 'Whether to cite the file each result came from',
|
|
60
|
+
displayOptions: {
|
|
61
|
+
show: {
|
|
62
|
+
resource: ['search'],
|
|
63
|
+
operation: ['regex'],
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
routing: {
|
|
67
|
+
send: {
|
|
68
|
+
type: 'body',
|
|
69
|
+
property: 'includeSources',
|
|
70
|
+
value: '={{$value}}',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
];
|
|
75
|
+
//# sourceMappingURL=searchRegex.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchRegex.operation.js","sourceRoot":"","sources":["../../../../../nodes/Qontext/actions/search/searchRegex.operation.ts"],"names":[],"mappings":";;;AAKa,QAAA,oBAAoB,GAAsB;IACtD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8BAA8B;QAC3C,WAAW,EAAE,wFAAwF;QACrG,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE;YACZ,IAAI,EAAE,CAAC;SACP;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,OAAO,CAAC;aACpB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,OAAO;gBACjB,KAAK,EAAE,aAAa;aACpB;SACD;KACD;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QAGd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;QAC9C,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,GAAG;SACb;QACD,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,OAAO,CAAC;aACpB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,OAAO;gBACjB,KAAK,EAAE,aAAa;aACpB;SACD;KACD;IACD;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,gDAAgD;QAC7D,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,OAAO,CAAC;aACpB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,gBAAgB;gBAC1B,KAAK,EAAE,aAAa;aACpB;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ILoadOptionsFunctions, INodeListSearchResult } from 'n8n-workflow';
|
|
2
|
+
export declare function searchFiles(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
|
|
3
|
+
export declare function searchFolders(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
|
|
4
|
+
export declare function searchFoldersWithRoot(this: ILoadOptionsFunctions, filter?: string, paginationToken?: string): Promise<INodeListSearchResult>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.searchFiles = searchFiles;
|
|
4
|
+
exports.searchFolders = searchFolders;
|
|
5
|
+
exports.searchFoldersWithRoot = searchFoldersWithRoot;
|
|
6
|
+
const api_1 = require("../actions/common/api");
|
|
7
|
+
const locator_1 = require("../actions/common/locator");
|
|
8
|
+
const matches = (name, filter) => name.toLowerCase().includes(filter.toLowerCase());
|
|
9
|
+
async function search(context, url, filter, paginationToken) {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
const body = (await context.helpers.httpRequestWithAuthentication.call(context, 'qontextApi', {
|
|
12
|
+
method: 'GET',
|
|
13
|
+
baseURL: (await context.getCredentials('qontextApi')).baseUrl,
|
|
14
|
+
url,
|
|
15
|
+
qs: {
|
|
16
|
+
path_prefix: '/',
|
|
17
|
+
limit: 100,
|
|
18
|
+
cursor: paginationToken || undefined,
|
|
19
|
+
},
|
|
20
|
+
}));
|
|
21
|
+
let results = ((_a = body.data) !== null && _a !== void 0 ? _a : []).map((item) => ({
|
|
22
|
+
name: item.path,
|
|
23
|
+
value: item.id,
|
|
24
|
+
}));
|
|
25
|
+
if (filter) {
|
|
26
|
+
results = results.filter((item) => matches(item.name, filter));
|
|
27
|
+
}
|
|
28
|
+
return { results, paginationToken: (_b = body.nextCursor) !== null && _b !== void 0 ? _b : undefined };
|
|
29
|
+
}
|
|
30
|
+
async function searchFiles(filter, paginationToken) {
|
|
31
|
+
return await search(this, api_1.FILES_URL, filter, paginationToken);
|
|
32
|
+
}
|
|
33
|
+
async function searchFolders(filter, paginationToken) {
|
|
34
|
+
return await search(this, api_1.FOLDERS_URL, filter, paginationToken);
|
|
35
|
+
}
|
|
36
|
+
const ROOT_ITEM = { name: '/ (Root)', value: locator_1.ROOT_VALUE };
|
|
37
|
+
async function searchFoldersWithRoot(filter, paginationToken) {
|
|
38
|
+
const page = await search(this, api_1.FOLDERS_URL, filter, paginationToken);
|
|
39
|
+
if (paginationToken)
|
|
40
|
+
return page;
|
|
41
|
+
if (filter && !matches(ROOT_ITEM.name, filter))
|
|
42
|
+
return page;
|
|
43
|
+
return {
|
|
44
|
+
...page,
|
|
45
|
+
results: [ROOT_ITEM, ...page.results],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=listSearch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listSearch.js","sourceRoot":"","sources":["../../../../nodes/Qontext/methods/listSearch.ts"],"names":[],"mappings":";;AAwDA,kCAMC;AAED,sCAMC;AAUD,sDAcC;AAzFD,+CAA+D;AAC/D,uDAAuD;AAUvD,MAAM,OAAO,GAAG,CAAC,IAAY,EAAE,MAAc,EAAE,EAAE,CAChD,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC;AAMnD,KAAK,UAAU,MAAM,CACpB,OAA8B,EAC9B,GAAW,EACX,MAAe,EACf,eAAwB;;IAExB,MAAM,IAAI,GAAG,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,EAAE;QAC7F,MAAM,EAAE,KAAK;QACb,OAAO,EAAE,CAAC,MAAM,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC,OAAiB;QACvE,GAAG;QACH,EAAE,EAAE;YACH,WAAW,EAAE,GAAG;YAChB,KAAK,EAAE,GAAG;YACV,MAAM,EAAE,eAAe,IAAI,SAAS;SACpC;KACD,CAAC,CAAiB,CAAC;IAIpB,IAAI,OAAO,GAA2B,CAAC,MAAA,IAAI,CAAC,IAAI,mCAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACtE,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,KAAK,EAAE,IAAI,CAAC,EAAE;KACd,CAAC,CAAC,CAAC;IAIJ,IAAI,MAAM,EAAE,CAAC;QACZ,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IAChE,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAA,IAAI,CAAC,UAAU,mCAAI,SAAS,EAAE,CAAC;AACnE,CAAC;AAEM,KAAK,UAAU,WAAW,CAEhC,MAAe,EACf,eAAwB;IAExB,OAAO,MAAM,MAAM,CAAC,IAAI,EAAE,eAAS,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;AAC/D,CAAC;AAEM,KAAK,UAAU,aAAa,CAElC,MAAe,EACf,eAAwB;IAExB,OAAO,MAAM,MAAM,CAAC,IAAI,EAAE,iBAAW,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;AACjE,CAAC;AAQD,MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,oBAAU,EAAE,CAAC;AAEnD,KAAK,UAAU,qBAAqB,CAE1C,MAAe,EACf,eAAwB;IAExB,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,iBAAW,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;IAEtE,IAAI,eAAe;QAAE,OAAO,IAAI,CAAC;IACjC,IAAI,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC;QAAE,OAAO,IAAI,CAAC;IAE5D,OAAO;QACN,GAAG,IAAI;QACP,OAAO,EAAE,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC;KACrC,CAAC;AACH,CAAC"}
|
package/dist/package.json
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qontext/n8n-nodes-qontext",
|
|
3
|
-
"version": "0.1
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Read, write and search your Qontext context repository",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/qontext-ai/n8n-nodes-qontext",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"n8n-community-node-package"
|
|
9
9
|
],
|
|
10
|
-
"author":
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "Valeska Pachelbel",
|
|
12
|
+
"email": "valeska@qontext.ai",
|
|
13
|
+
"url": "https://github.com/valeskaaa"
|
|
14
|
+
},
|
|
11
15
|
"repository": {
|
|
12
16
|
"type": "git",
|
|
13
17
|
"url": "https://github.com/qontext-ai/n8n-nodes-qontext.git"
|
|
@@ -16,14 +20,18 @@
|
|
|
16
20
|
"build": "n8n-node build",
|
|
17
21
|
"build:watch": "tsc --watch",
|
|
18
22
|
"dev": "n8n-node dev",
|
|
19
|
-
"lint": "eslint credentials nodes",
|
|
20
|
-
"lint:fix": "eslint credentials nodes --fix",
|
|
23
|
+
"lint": "eslint credentials nodes package.json",
|
|
24
|
+
"lint:fix": "eslint credentials nodes package.json --fix",
|
|
21
25
|
"release": "n8n-node release",
|
|
22
26
|
"prepublishOnly": "npm run build && npm run lint"
|
|
23
27
|
},
|
|
24
28
|
"files": [
|
|
25
29
|
"dist"
|
|
26
30
|
],
|
|
31
|
+
"auto-changelog": {
|
|
32
|
+
"//": "The release hook runs `auto-changelog -p`, which overwrites its output file. CHANGELOG.md is written by hand, so the generated copy is sent to an ignored file instead.",
|
|
33
|
+
"output": "CHANGELOG.generated.md"
|
|
34
|
+
},
|
|
27
35
|
"n8n": {
|
|
28
36
|
"n8nNodesApiVersion": 1,
|
|
29
37
|
"strict": true,
|
|
@@ -36,8 +44,9 @@
|
|
|
36
44
|
},
|
|
37
45
|
"main": "index.js",
|
|
38
46
|
"devDependencies": {
|
|
39
|
-
"@n8n/
|
|
40
|
-
"
|
|
47
|
+
"@n8n/eslint-plugin-community-nodes": "^0.32.0",
|
|
48
|
+
"@n8n/node-cli": "^0.47.0",
|
|
49
|
+
"eslint": "^9.29.0",
|
|
41
50
|
"eslint-import-resolver-typescript": "^4.4.3",
|
|
42
51
|
"eslint-plugin-import-x": "^4.15.2",
|
|
43
52
|
"eslint-plugin-n8n-nodes-base": "^1.16.6",
|