n8n-nodes-couchbase 0.1.5 → 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/README.md +133 -65
- package/dist/credentials/CouchbaseApi.credentials.d.ts +8 -0
- package/dist/credentials/CouchbaseApi.credentials.js +39 -0
- package/dist/credentials/CouchbaseApi.credentials.js.map +1 -0
- package/dist/credentials/ExampleCredentialsApi.credentials.d.ts +8 -0
- package/dist/credentials/ExampleCredentialsApi.credentials.js +46 -0
- package/dist/credentials/ExampleCredentialsApi.credentials.js.map +1 -0
- package/dist/credentials/HttpBinApi.credentials.d.ts +9 -0
- package/dist/credentials/HttpBinApi.credentials.js +43 -0
- package/dist/credentials/HttpBinApi.credentials.js.map +1 -0
- package/dist/nodes/Couchbase/Couchbase.node.d.ts +35 -0
- package/dist/nodes/Couchbase/Couchbase.node.js +303 -0
- package/dist/nodes/Couchbase/Couchbase.node.js.map +1 -0
- package/dist/nodes/Couchbase/Couchbase.node.json +18 -0
- package/dist/nodes/Couchbase/CouchbaseProperties.d.ts +16 -0
- package/dist/nodes/Couchbase/CouchbaseProperties.js +478 -0
- package/dist/nodes/Couchbase/CouchbaseProperties.js.map +1 -0
- package/dist/nodes/Couchbase/couchbase.dark.svg +14 -0
- package/dist/nodes/Couchbase/couchbase.svg +14 -0
- package/dist/nodes/ExampleNode/ExampleNode.node.d.ts +5 -0
- package/dist/nodes/ExampleNode/ExampleNode.node.js +59 -0
- package/dist/nodes/ExampleNode/ExampleNode.node.js.map +1 -0
- package/dist/nodes/HttpBin/HttpBin.node.d.ts +4 -0
- package/dist/nodes/HttpBin/HttpBin.node.js +55 -0
- package/dist/nodes/HttpBin/HttpBin.node.js.map +1 -0
- package/dist/nodes/HttpBin/HttpBin.node.json +18 -0
- package/dist/nodes/HttpBin/HttpVerbDescription.d.ts +3 -0
- package/dist/nodes/HttpBin/HttpVerbDescription.js +236 -0
- package/dist/nodes/HttpBin/HttpVerbDescription.js.map +1 -0
- package/dist/nodes/vector_store/VectorStoreCouchbase/VectorStoreCouchbase.node.d.ts +16 -0
- package/dist/nodes/vector_store/VectorStoreCouchbase/VectorStoreCouchbase.node.js +407 -0
- package/dist/nodes/vector_store/VectorStoreCouchbase/VectorStoreCouchbase.node.js.map +1 -0
- package/dist/nodes/vector_store/VectorStoreCouchbase/mongodb.dark.svg +3 -0
- package/dist/nodes/vector_store/VectorStoreCouchbase/mongodb.svg +3 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/__tests__/utils.test.d.ts +0 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/__tests__/utils.test.js +2 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/__tests__/utils.test.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.d.ts +4 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.js +45 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.d.ts +15 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.js +227 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.test.d.ts +0 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.test.js +2 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.test.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.d.ts +0 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.js +2 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/insertOperation.test.d.ts +0 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/insertOperation.test.js +2 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/insertOperation.test.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/loadOperation.test.d.ts +0 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/loadOperation.test.js +2 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/loadOperation.test.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/operationHandlers.test.d.ts +0 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/operationHandlers.test.js +2 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/operationHandlers.test.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/retrieveAsToolOperation.test.d.ts +0 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/retrieveAsToolOperation.test.js +2 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/retrieveAsToolOperation.test.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/retrieveOperation.test.d.ts +0 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/retrieveOperation.test.js +2 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/retrieveOperation.test.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/updateOperation.test.d.ts +0 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/updateOperation.test.js +2 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/updateOperation.test.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.js +22 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.js +36 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.js +34 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.js +43 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.js +17 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.js +40 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/types.d.ts +31 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/types.js +3 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/types.js.map +1 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.d.ts +6 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.js +22 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.js.map +1 -0
- package/dist/nodes/vector_store/shared/processDocuments.d.ts +25 -0
- package/dist/nodes/vector_store/shared/processDocuments.js +46 -0
- package/dist/nodes/vector_store/shared/processDocuments.js.map +1 -0
- package/dist/package.json +29 -19
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/N8nBinaryLoader.d.ts +18 -0
- package/dist/utils/N8nBinaryLoader.js +159 -0
- package/dist/utils/N8nBinaryLoader.js.map +1 -0
- package/dist/utils/N8nJsonLoader.d.ts +11 -0
- package/dist/utils/N8nJsonLoader.js +67 -0
- package/dist/utils/N8nJsonLoader.js.map +1 -0
- package/dist/utils/N8nTool.d.ts +10 -0
- package/dist/utils/N8nTool.js +86 -0
- package/dist/utils/N8nTool.js.map +1 -0
- package/dist/utils/helpers.d.ts +23 -0
- package/dist/utils/helpers.js +172 -0
- package/dist/utils/helpers.js.map +1 -0
- package/dist/utils/logWrapper.d.ts +27 -0
- package/dist/utils/logWrapper.js +297 -0
- package/dist/utils/logWrapper.js.map +1 -0
- package/dist/utils/sharedFields.d.ts +6 -0
- package/dist/utils/sharedFields.js +122 -0
- package/dist/utils/sharedFields.js.map +1 -0
- package/package.json +35 -27
- package/dist/credentials/CouchbaseCredentialsApi.credentials.d.ts +0 -7
- package/dist/credentials/CouchbaseCredentialsApi.credentials.js +0 -50
- package/dist/credentials/CouchbaseCredentialsApi.credentials.js.map +0 -1
- package/dist/nodes/CouchbaseDB/CouchbaseNode.node.d.ts +0 -6
- package/dist/nodes/CouchbaseDB/CouchbaseNode.node.js +0 -206
- package/dist/nodes/CouchbaseDB/CouchbaseNode.node.js.map +0 -1
- package/dist/nodes/CouchbaseNode/CouchbaseNode.node.d.ts +0 -6
- package/dist/nodes/CouchbaseNode/CouchbaseNode.node.js +0 -293
- package/dist/nodes/CouchbaseNode/CouchbaseNode.node.js.map +0 -1
- /package/dist/nodes/{CouchbaseDB → Couchbase}/CBLogomark.svg +0 -0
- /package/dist/nodes/{CouchbaseNode/CBLogomark.svg → vector_store/VectorStoreCouchbase/couchbase.svg} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logWrapper.js","sourceRoot":"","sources":["../../utils/logWrapper.ts"],"names":[],"mappings":";;AAyB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C/D,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;yBAChC,CAAC,CAAC;wBAEH,MAAM,QAAQ,GAAG,CAAC,MAAM,eAAe,CAAC,IAAI,CAAC,MAAM,EAAE;4BACpD,gBAAgB;4BAChB,cAAc;4BACd,mBAAmB,EAAE,KAAK;4BAC1B,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC;4BACpB,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC;yBACzC,CAAC,CAAyC,CAAC;wBAE5C,IAAA,oBAAU,EAAC,gBAAgB,EAAE,0BAA0B,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;wBACpE,gBAAgB,CAAC,aAAa,CAAC,cAAc,EAAE,KAAK,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;wBAElF,OAAO,QAAQ,CAAC;oBACjB,CAAC,CAAC;gBACH,CAAC;YACF,CAAC;YAGD,OAAQ,MAAc,CAAC,IAAI,CAAC,CAAC;QAC9B,CAAC;KACD,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NodeConnectionTypes, type INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const metadataFilterField: INodeProperties;
|
|
3
|
+
export declare function getTemplateNoticeField(templateId: number): INodeProperties;
|
|
4
|
+
type AllowedConnectionTypes = typeof NodeConnectionTypes.AiAgent | typeof NodeConnectionTypes.AiChain | typeof NodeConnectionTypes.AiDocument | typeof NodeConnectionTypes.AiVectorStore | typeof NodeConnectionTypes.AiRetriever;
|
|
5
|
+
export declare function getConnectionHintNoticeField(connectionTypes: AllowedConnectionTypes[]): INodeProperties;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.metadataFilterField = void 0;
|
|
4
|
+
exports.getTemplateNoticeField = getTemplateNoticeField;
|
|
5
|
+
exports.getConnectionHintNoticeField = getConnectionHintNoticeField;
|
|
6
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
7
|
+
exports.metadataFilterField = {
|
|
8
|
+
displayName: 'Metadata Filter',
|
|
9
|
+
name: 'metadata',
|
|
10
|
+
type: 'fixedCollection',
|
|
11
|
+
description: 'Metadata to filter the document by',
|
|
12
|
+
typeOptions: {
|
|
13
|
+
multipleValues: true,
|
|
14
|
+
},
|
|
15
|
+
default: {},
|
|
16
|
+
placeholder: 'Add filter field',
|
|
17
|
+
options: [
|
|
18
|
+
{
|
|
19
|
+
name: 'metadataValues',
|
|
20
|
+
displayName: 'Fields to Set',
|
|
21
|
+
values: [
|
|
22
|
+
{
|
|
23
|
+
displayName: 'Name',
|
|
24
|
+
name: 'name',
|
|
25
|
+
type: 'string',
|
|
26
|
+
default: '',
|
|
27
|
+
required: true,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
displayName: 'Value',
|
|
31
|
+
name: 'value',
|
|
32
|
+
type: 'string',
|
|
33
|
+
default: '',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
};
|
|
39
|
+
function getTemplateNoticeField(templateId) {
|
|
40
|
+
return {
|
|
41
|
+
displayName: `Save time with an <a href="/templates/${templateId}" target="_blank">example</a> of how this node works`,
|
|
42
|
+
name: 'notice',
|
|
43
|
+
type: 'notice',
|
|
44
|
+
default: '',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
const connectionsString = {
|
|
48
|
+
[n8n_workflow_1.NodeConnectionTypes.AiAgent]: {
|
|
49
|
+
connection: '',
|
|
50
|
+
locale: 'AI Agent',
|
|
51
|
+
},
|
|
52
|
+
[n8n_workflow_1.NodeConnectionTypes.AiChain]: {
|
|
53
|
+
connection: '',
|
|
54
|
+
locale: 'AI Chain',
|
|
55
|
+
},
|
|
56
|
+
[n8n_workflow_1.NodeConnectionTypes.AiDocument]: {
|
|
57
|
+
connection: n8n_workflow_1.NodeConnectionTypes.AiDocument,
|
|
58
|
+
locale: 'Document Loader',
|
|
59
|
+
},
|
|
60
|
+
[n8n_workflow_1.NodeConnectionTypes.AiVectorStore]: {
|
|
61
|
+
connection: n8n_workflow_1.NodeConnectionTypes.AiVectorStore,
|
|
62
|
+
locale: 'Vector Store',
|
|
63
|
+
},
|
|
64
|
+
[n8n_workflow_1.NodeConnectionTypes.AiRetriever]: {
|
|
65
|
+
connection: n8n_workflow_1.NodeConnectionTypes.AiRetriever,
|
|
66
|
+
locale: 'Vector Store Retriever',
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
function determineArticle(nextWord) {
|
|
70
|
+
const vowels = /^[aeiouAEIOU]/;
|
|
71
|
+
return vowels.test(nextWord) ? 'an' : 'a';
|
|
72
|
+
}
|
|
73
|
+
const getConnectionParameterString = (connectionType) => {
|
|
74
|
+
if (connectionType === '')
|
|
75
|
+
return "data-action-parameter-creatorview='AI'";
|
|
76
|
+
return `data-action-parameter-connectiontype='${connectionType}'`;
|
|
77
|
+
};
|
|
78
|
+
const getAhref = (connectionType) => `<a class="test" data-action='openSelectiveNodeCreator'${getConnectionParameterString(connectionType.connection)}'>${connectionType.locale}</a>`;
|
|
79
|
+
function getConnectionHintNoticeField(connectionTypes) {
|
|
80
|
+
const groupedConnections = new Map();
|
|
81
|
+
connectionTypes.forEach((connectionType) => {
|
|
82
|
+
var _a;
|
|
83
|
+
const connectionString = connectionsString[connectionType].connection;
|
|
84
|
+
const localeString = connectionsString[connectionType].locale;
|
|
85
|
+
if (!groupedConnections.has(connectionString)) {
|
|
86
|
+
groupedConnections.set(connectionString, [localeString]);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
(_a = groupedConnections.get(connectionString)) === null || _a === void 0 ? void 0 : _a.push(localeString);
|
|
90
|
+
});
|
|
91
|
+
let displayName;
|
|
92
|
+
if (groupedConnections.size === 1) {
|
|
93
|
+
const [[connection, locales]] = Array.from(groupedConnections);
|
|
94
|
+
displayName = `This node must be connected to ${determineArticle(locales[0])} ${locales[0]
|
|
95
|
+
.toLowerCase()
|
|
96
|
+
.replace(/^ai /, 'AI ')}. <a data-action='openSelectiveNodeCreator' ${getConnectionParameterString(connection)}>Insert one</a>`;
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
const ahrefs = Array.from(groupedConnections, ([connection, locales]) => {
|
|
100
|
+
const locale = locales.length > 1
|
|
101
|
+
? locales
|
|
102
|
+
.map((localeString, index, { length }) => {
|
|
103
|
+
return ((index === 0 ? `${determineArticle(localeString)} ` : '') +
|
|
104
|
+
(index < length - 1 ? `${localeString} or ` : localeString));
|
|
105
|
+
})
|
|
106
|
+
.join('')
|
|
107
|
+
: `${determineArticle(locales[0])} ${locales[0]}`;
|
|
108
|
+
return getAhref({ connection, locale });
|
|
109
|
+
});
|
|
110
|
+
displayName = `This node needs to be connected to ${ahrefs.join(' or ')}.`;
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
displayName,
|
|
114
|
+
name: 'notice',
|
|
115
|
+
type: 'notice',
|
|
116
|
+
default: '',
|
|
117
|
+
typeOptions: {
|
|
118
|
+
containerClass: 'ndv-connection-hint-notice',
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=sharedFields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sharedFields.js","sourceRoot":"","sources":["../../utils/sharedFields.ts"],"names":[],"mappings":";;;AAmCA,wDAOC;AAkDD,oEA8DC;AA1JD,+CAAyE;AAE5D,QAAA,mBAAmB,GAAoB;IACnD,WAAW,EAAE,iBAAiB;IAC9B,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,oCAAoC;IACjD,WAAW,EAAE;QACZ,cAAc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C"}
|
package/package.json
CHANGED
|
@@ -1,54 +1,62 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-couchbase",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Community node for using Couchbase Key-Value, Query, and Full-Text Search with n8n.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package"
|
|
7
7
|
],
|
|
8
8
|
"license": "MIT",
|
|
9
|
-
"homepage": "",
|
|
9
|
+
"homepage": "https://github.com/Couchbase-Ecosystem/n8n-nodes-couchbase#readme",
|
|
10
10
|
"author": {
|
|
11
|
-
"name": "
|
|
12
|
-
"email": "
|
|
11
|
+
"name": "Elliot Scribner",
|
|
12
|
+
"email": "elliot.scribner@couchbase.com"
|
|
13
13
|
},
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "https://github.com/
|
|
16
|
+
"url": "https://github.com/Couchbase-Ecosystem/n8n-nodes-couchbase.git"
|
|
17
17
|
},
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"dev": "tsc --watch",
|
|
22
|
-
"format": "prettier nodes credentials --write",
|
|
23
|
-
"lint": "eslint nodes credentials package.json",
|
|
24
|
-
"lintfix": "eslint nodes credentials package.json --fix",
|
|
25
|
-
"prepublishOnly": "npm run build && npm run lint -c .eslintrc.prepublish.js nodes credentials package.json"
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=18.10",
|
|
20
|
+
"pnpm": ">=9.1"
|
|
26
21
|
},
|
|
22
|
+
"main": "index.js",
|
|
27
23
|
"files": [
|
|
28
24
|
"dist"
|
|
29
25
|
],
|
|
30
26
|
"n8n": {
|
|
31
27
|
"n8nNodesApiVersion": 1,
|
|
32
28
|
"credentials": [
|
|
33
|
-
"dist/credentials/
|
|
29
|
+
"dist/credentials/CouchbaseApi.credentials.js"
|
|
34
30
|
],
|
|
35
31
|
"nodes": [
|
|
36
|
-
"dist/nodes/
|
|
32
|
+
"dist/nodes/Couchbase/Couchbase.node.js"
|
|
37
33
|
]
|
|
38
34
|
},
|
|
39
35
|
"devDependencies": {
|
|
40
|
-
"@types/
|
|
41
|
-
"@
|
|
42
|
-
"
|
|
43
|
-
"eslint-plugin-n8n-nodes-base": "^1.
|
|
36
|
+
"@types/node": "^22.13.5",
|
|
37
|
+
"@typescript-eslint/parser": "^7.15.0",
|
|
38
|
+
"eslint": "^8.56.0",
|
|
39
|
+
"eslint-plugin-n8n-nodes-base": "^1.16.1",
|
|
44
40
|
"gulp": "^4.0.2",
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
41
|
+
"nodemon": "^3.1.9",
|
|
42
|
+
"prettier": "^3.3.2",
|
|
43
|
+
"typescript": "^5.5.3",
|
|
44
|
+
"sqlite3": "^5.1.7"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"n8n-workflow": "*"
|
|
49
48
|
},
|
|
50
49
|
"dependencies": {
|
|
51
|
-
"couchbase": "^4.
|
|
52
|
-
"
|
|
50
|
+
"couchbase": "^4.4.5",
|
|
51
|
+
"uuid": "^11.1.0"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"preinstall": "npx only-allow pnpm",
|
|
55
|
+
"build": "tsc && gulp build:icons",
|
|
56
|
+
"dev": "tsc --watch",
|
|
57
|
+
"dev:ui": "nodemon -w nodes -w credentials --ext ts --exec 'tsc && cd $HOME/.n8n/custom && COREPACK_ENABLE_STRICT=0 pnpm install && cd - && n8n'",
|
|
58
|
+
"format": "prettier nodes credentials --write",
|
|
59
|
+
"lint": "eslint nodes credentials package.json",
|
|
60
|
+
"lintfix": "eslint nodes credentials package.json --fix"
|
|
53
61
|
}
|
|
54
|
-
}
|
|
62
|
+
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CouchbaseCredentialsApi = void 0;
|
|
4
|
-
class CouchbaseCredentialsApi {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.name = 'couchbaseApi';
|
|
7
|
-
this.displayName = 'Couchbase Credentials API';
|
|
8
|
-
this.documentationUrl = 'https://github.com/maruakinu/n8n-nodes-couchbase.git';
|
|
9
|
-
this.properties = [
|
|
10
|
-
{
|
|
11
|
-
displayName: 'Connection String',
|
|
12
|
-
name: 'MyConnection',
|
|
13
|
-
type: 'string',
|
|
14
|
-
default: '',
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
displayName: 'Username',
|
|
18
|
-
name: 'MyUsername',
|
|
19
|
-
type: 'string',
|
|
20
|
-
default: '',
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
displayName: 'Password',
|
|
24
|
-
name: 'MyPassword',
|
|
25
|
-
type: 'string',
|
|
26
|
-
default: '',
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
displayName: 'Bucket',
|
|
30
|
-
name: 'MyBucket',
|
|
31
|
-
type: 'string',
|
|
32
|
-
default: '',
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
displayName: 'Scope',
|
|
36
|
-
name: 'MyScope',
|
|
37
|
-
type: 'string',
|
|
38
|
-
default: '',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
displayName: 'Collection',
|
|
42
|
-
name: 'MyCollection',
|
|
43
|
-
type: 'string',
|
|
44
|
-
default: '',
|
|
45
|
-
},
|
|
46
|
-
];
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
exports.CouchbaseCredentialsApi = CouchbaseCredentialsApi;
|
|
50
|
-
//# sourceMappingURL=CouchbaseCredentialsApi.credentials.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CouchbaseCredentialsApi.credentials.js","sourceRoot":"","sources":["../../credentials/CouchbaseCredentialsApi.credentials.ts"],"names":[],"mappings":";;;AAKA,MAAa,uBAAuB;IAApC;QACC,SAAI,GAAG,cAAc,CAAC;QACtB,gBAAW,GAAG,2BAA2B,CAAC;QAC1C,qBAAgB,GAAG,sDAAsD,CAAC;QAC1E,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBAId,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;SACD,CAAC;IAQH,CAAC;CAAA;AApDD,0DAoDC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IExecuteFunctions } from 'n8n-core';
|
|
2
|
-
import { INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
3
|
-
export declare class CouchbaseNode implements INodeType {
|
|
4
|
-
description: INodeTypeDescription;
|
|
5
|
-
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
6
|
-
}
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CouchbaseNode = void 0;
|
|
4
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
-
const couchbase_1 = require("couchbase");
|
|
6
|
-
class CouchbaseNode {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.description = {
|
|
9
|
-
displayName: 'Couchbase',
|
|
10
|
-
name: 'couchbaseNode',
|
|
11
|
-
icon: 'file:CBLogomark.svg',
|
|
12
|
-
group: ['transform'],
|
|
13
|
-
version: 1,
|
|
14
|
-
description: 'Couchbase Node to add, update and delete data from couchbase',
|
|
15
|
-
defaults: {
|
|
16
|
-
name: 'Couchbase',
|
|
17
|
-
},
|
|
18
|
-
inputs: ['main'],
|
|
19
|
-
outputs: ['main'],
|
|
20
|
-
credentials: [
|
|
21
|
-
{
|
|
22
|
-
name: 'couchbaseApi',
|
|
23
|
-
required: false,
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
properties: [
|
|
27
|
-
{
|
|
28
|
-
displayName: 'Operation',
|
|
29
|
-
name: 'operation',
|
|
30
|
-
type: 'options',
|
|
31
|
-
noDataExpression: true,
|
|
32
|
-
options: [
|
|
33
|
-
{
|
|
34
|
-
name: 'Create',
|
|
35
|
-
value: 'insert',
|
|
36
|
-
description: 'Create document in couchbase',
|
|
37
|
-
action: 'Create document in couchbase',
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: 'Read',
|
|
41
|
-
value: 'find',
|
|
42
|
-
description: 'Read document in couchbase',
|
|
43
|
-
action: 'Read document in couchbase',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: 'Update',
|
|
47
|
-
value: 'update',
|
|
48
|
-
description: 'Update document in couchbase',
|
|
49
|
-
action: 'Update document in couchbase',
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
name: 'Delete',
|
|
53
|
-
value: 'remove',
|
|
54
|
-
description: 'Delete document in couchbase',
|
|
55
|
-
action: 'Delete document in couchbase',
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
default: 'insert',
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
displayName: 'Value',
|
|
62
|
-
name: 'myDocument',
|
|
63
|
-
type: 'string',
|
|
64
|
-
displayOptions: {
|
|
65
|
-
show: {
|
|
66
|
-
operation: ['insert'],
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
default: '',
|
|
70
|
-
placeholder: 'Placeholder value',
|
|
71
|
-
description: 'The description text',
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
displayName: 'Document ID',
|
|
75
|
-
name: 'myDocument',
|
|
76
|
-
type: 'string',
|
|
77
|
-
displayOptions: {
|
|
78
|
-
show: {
|
|
79
|
-
operation: ['update'],
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
default: '',
|
|
83
|
-
placeholder: 'Placeholder value',
|
|
84
|
-
description: 'The description text',
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
displayName: 'Value',
|
|
88
|
-
name: 'myValue',
|
|
89
|
-
type: 'string',
|
|
90
|
-
displayOptions: {
|
|
91
|
-
show: {
|
|
92
|
-
operation: ['update'],
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
default: '',
|
|
96
|
-
placeholder: 'Placeholder value',
|
|
97
|
-
description: 'The description text',
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
displayName: 'Document ID',
|
|
101
|
-
name: 'myDocument',
|
|
102
|
-
type: 'string',
|
|
103
|
-
displayOptions: {
|
|
104
|
-
show: {
|
|
105
|
-
operation: ['remove'],
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
default: '',
|
|
109
|
-
placeholder: 'Placeholder value',
|
|
110
|
-
description: 'The description text',
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
displayName: 'Document ID',
|
|
114
|
-
name: 'myDocument',
|
|
115
|
-
type: 'string',
|
|
116
|
-
displayOptions: {
|
|
117
|
-
show: {
|
|
118
|
-
operation: ['find'],
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
default: '',
|
|
122
|
-
placeholder: 'Placeholder value',
|
|
123
|
-
description: 'The description text',
|
|
124
|
-
},
|
|
125
|
-
],
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
async execute() {
|
|
129
|
-
const credentials = await this.getCredentials('couchbaseApi');
|
|
130
|
-
const myConnection = credentials.MyConnection;
|
|
131
|
-
const myUsername = credentials.MyUsername;
|
|
132
|
-
const myPassword = credentials.MyPassword;
|
|
133
|
-
const myBucket = credentials.MyBucket;
|
|
134
|
-
const myScope = credentials.MyScope;
|
|
135
|
-
const myCollection = credentials.MyCollection;
|
|
136
|
-
const items = this.getInputData();
|
|
137
|
-
let item;
|
|
138
|
-
let item2;
|
|
139
|
-
let item3;
|
|
140
|
-
let item4;
|
|
141
|
-
let myDocument;
|
|
142
|
-
let myNewValue;
|
|
143
|
-
let readJson;
|
|
144
|
-
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
|
145
|
-
try {
|
|
146
|
-
myNewValue = this.getNodeParameter('myValue', itemIndex, '');
|
|
147
|
-
myDocument = this.getNodeParameter('myDocument', itemIndex, '');
|
|
148
|
-
const clusterConnStr = myConnection;
|
|
149
|
-
const username = myUsername;
|
|
150
|
-
const password = myPassword;
|
|
151
|
-
const bucketName = myBucket;
|
|
152
|
-
const cluster = await (0, couchbase_1.connect)(clusterConnStr, {
|
|
153
|
-
username: username,
|
|
154
|
-
password: password,
|
|
155
|
-
configProfile: 'wanDevelopment'
|
|
156
|
-
});
|
|
157
|
-
const bucket = cluster.bucket(bucketName);
|
|
158
|
-
const collection = bucket
|
|
159
|
-
.scope(myScope)
|
|
160
|
-
.collection(myCollection);
|
|
161
|
-
const operation = this.getNodeParameter('operation', 0);
|
|
162
|
-
if (operation === 'insert') {
|
|
163
|
-
item = items[itemIndex];
|
|
164
|
-
item.json['myDocument'] = myDocument;
|
|
165
|
-
await collection.insert(myDocument, item.json);
|
|
166
|
-
}
|
|
167
|
-
else if (operation === 'update') {
|
|
168
|
-
item2 = items[itemIndex];
|
|
169
|
-
item2.json['myDocument'] = myNewValue;
|
|
170
|
-
await collection.upsert(myDocument, item2.json);
|
|
171
|
-
}
|
|
172
|
-
else if (operation === 'remove') {
|
|
173
|
-
await collection.remove(myDocument);
|
|
174
|
-
}
|
|
175
|
-
else if (operation === 'find') {
|
|
176
|
-
const getResult = await collection.get(myDocument);
|
|
177
|
-
console.log('Get Result:', getResult);
|
|
178
|
-
readJson = JSON.stringify(getResult.content);
|
|
179
|
-
console.log('Get Result in String:', readJson);
|
|
180
|
-
item3 = items[itemIndex];
|
|
181
|
-
item3.json[''] = readJson;
|
|
182
|
-
item4 = items[itemIndex];
|
|
183
|
-
item4.json[' '];
|
|
184
|
-
await collection.get(myDocument);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
catch (error) {
|
|
188
|
-
if (this.continueOnFail()) {
|
|
189
|
-
items.push({ json: this.getInputData(itemIndex)[0].json, error, pairedItem: itemIndex });
|
|
190
|
-
}
|
|
191
|
-
else {
|
|
192
|
-
if (error.context) {
|
|
193
|
-
error.context.itemIndex = itemIndex;
|
|
194
|
-
throw error;
|
|
195
|
-
}
|
|
196
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, {
|
|
197
|
-
itemIndex,
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
return this.prepareOutputData(items);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
exports.CouchbaseNode = CouchbaseNode;
|
|
206
|
-
//# sourceMappingURL=CouchbaseNode.node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CouchbaseNode.node.js","sourceRoot":"","sources":["../../../nodes/CouchbaseDB/CouchbaseNode.node.ts"],"names":[],"mappings":";;;AACA,+CAKsB;AAEtB,yCAKoB;AAEpB,MAAa,aAAa;IAA1B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,eAAe;YACrB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,CAAA;iBAEhC;aAGD;YAAC,OAAO,KAAK,EAAE;gBAGf,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE;oBAC1B,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,CAAC;iBACzF;qBAAM;oBAEN,IAAI,KAAK,CAAC,OAAO,EAAE;wBAGlB,KAAK,CAAC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;wBACpC,MAAM,KAAK,CAAC;qBACZ;oBACD,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE;wBACnD,SAAS;qBACT,CAAC,CAAC;iBACH;aACD;SACD;QAED,OAAO,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACtC,CAAC;CACD;AAzPD,sCAyPC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IExecuteFunctions } from 'n8n-core';
|
|
2
|
-
import { INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
|
3
|
-
export declare class CouchbaseNode implements INodeType {
|
|
4
|
-
description: INodeTypeDescription;
|
|
5
|
-
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
6
|
-
}
|