n8n-nodes-couchbase 0.1.1 → 0.1.2
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/dist/credentials/CouchbaseCredentialsApi.credentials.d.ts +2 -3
- package/dist/credentials/CouchbaseCredentialsApi.credentials.js +29 -25
- package/dist/credentials/CouchbaseCredentialsApi.credentials.js.map +1 -1
- package/dist/nodes/{ExampleNode → CouchbaseDB}/CouchbaseNode.node.js +57 -85
- package/dist/nodes/CouchbaseDB/CouchbaseNode.node.js.map +1 -0
- package/dist/nodes/CouchbaseNode/CouchbaseNode.node.js +40 -108
- package/dist/nodes/CouchbaseNode/CouchbaseNode.node.js.map +1 -1
- package/dist/package.json +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/credentials/ExampleCredentialsApi.credentials.d.ts +0 -8
- package/dist/credentials/ExampleCredentialsApi.credentials.js +0 -46
- package/dist/credentials/ExampleCredentialsApi.credentials.js.map +0 -1
- package/dist/credentials/HttpBinApi.credentials.d.ts +0 -9
- package/dist/credentials/HttpBinApi.credentials.js +0 -40
- package/dist/credentials/HttpBinApi.credentials.js.map +0 -1
- package/dist/nodes/CouchbaseDB/CouchbaseDB.node.d.ts +0 -6
- package/dist/nodes/CouchbaseDB/CouchbaseDB.node.js +0 -274
- package/dist/nodes/CouchbaseDB/CouchbaseDB.node.js.map +0 -1
- package/dist/nodes/CouchbaseNode/CouchbaseDb.node.d.ts +0 -6
- package/dist/nodes/CouchbaseNode/CouchbaseDb.node.js +0 -274
- package/dist/nodes/CouchbaseNode/CouchbaseDb.node.js.map +0 -1
- package/dist/nodes/ExampleNode/CBLogomark.svg +0 -350
- package/dist/nodes/ExampleNode/CouchbaseNode.node.js.map +0 -1
- package/dist/nodes/ExampleNode/ExampleNode.node.d.ts +0 -6
- package/dist/nodes/ExampleNode/ExampleNode.node.js +0 -234
- package/dist/nodes/ExampleNode/ExampleNode.node.js.map +0 -1
- /package/dist/nodes/{ExampleNode → CouchbaseDB}/CouchbaseNode.node.d.ts +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
2
|
export declare class CouchbaseCredentialsApi implements ICredentialType {
|
|
3
3
|
name: string;
|
|
4
4
|
displayName: string;
|
|
5
|
+
documentationUrl: string;
|
|
5
6
|
properties: INodeProperties[];
|
|
6
|
-
authenticate: IAuthenticateGeneric;
|
|
7
|
-
test: ICredentialTestRequest;
|
|
8
7
|
}
|
|
@@ -3,43 +3,47 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CouchbaseCredentialsApi = void 0;
|
|
4
4
|
class CouchbaseCredentialsApi {
|
|
5
5
|
constructor() {
|
|
6
|
-
this.name = '
|
|
7
|
-
this.displayName = '
|
|
6
|
+
this.name = 'couchbaseApi';
|
|
7
|
+
this.displayName = 'Couchbase Credentials API';
|
|
8
|
+
this.documentationUrl = 'https://github.com/maruakinu/n8n-nodes-couchbase.git';
|
|
8
9
|
this.properties = [
|
|
9
10
|
{
|
|
10
|
-
displayName: '
|
|
11
|
-
name: '
|
|
11
|
+
displayName: 'Connection String',
|
|
12
|
+
name: 'MyConnection',
|
|
13
|
+
type: 'string',
|
|
14
|
+
default: '',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
displayName: 'Username',
|
|
18
|
+
name: 'MyUsername',
|
|
12
19
|
type: 'string',
|
|
13
20
|
default: '',
|
|
14
21
|
},
|
|
15
22
|
{
|
|
16
23
|
displayName: 'Password',
|
|
17
|
-
name: '
|
|
24
|
+
name: 'MyPassword',
|
|
18
25
|
type: 'string',
|
|
19
|
-
typeOptions: {
|
|
20
|
-
password: true,
|
|
21
|
-
},
|
|
22
26
|
default: '',
|
|
23
27
|
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
username: '={{ $credentials.username }}',
|
|
30
|
-
password: '={{ $credentials.password }}',
|
|
31
|
-
},
|
|
32
|
-
qs: {
|
|
33
|
-
n8n: 'rocks',
|
|
34
|
-
},
|
|
28
|
+
{
|
|
29
|
+
displayName: 'Bucket',
|
|
30
|
+
name: 'MyBucket',
|
|
31
|
+
type: 'string',
|
|
32
|
+
default: '',
|
|
35
33
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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: '',
|
|
41
45
|
},
|
|
42
|
-
|
|
46
|
+
];
|
|
43
47
|
}
|
|
44
48
|
}
|
|
45
49
|
exports.CouchbaseCredentialsApi = CouchbaseCredentialsApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CouchbaseCredentialsApi.credentials.js","sourceRoot":"","sources":["../../credentials/CouchbaseCredentialsApi.credentials.ts"],"names":[],"mappings":";;;
|
|
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"}
|
|
@@ -7,7 +7,7 @@ class CouchbaseNode {
|
|
|
7
7
|
constructor() {
|
|
8
8
|
this.description = {
|
|
9
9
|
displayName: 'Couchbase',
|
|
10
|
-
name: '
|
|
10
|
+
name: 'couchbaseNode',
|
|
11
11
|
icon: 'file:CBLogomark.svg',
|
|
12
12
|
group: ['transform'],
|
|
13
13
|
version: 1,
|
|
@@ -17,6 +17,12 @@ class CouchbaseNode {
|
|
|
17
17
|
},
|
|
18
18
|
inputs: ['main'],
|
|
19
19
|
outputs: ['main'],
|
|
20
|
+
credentials: [
|
|
21
|
+
{
|
|
22
|
+
name: 'couchbaseApi',
|
|
23
|
+
required: false,
|
|
24
|
+
},
|
|
25
|
+
],
|
|
20
26
|
properties: [
|
|
21
27
|
{
|
|
22
28
|
displayName: 'Operation',
|
|
@@ -25,10 +31,16 @@ class CouchbaseNode {
|
|
|
25
31
|
noDataExpression: true,
|
|
26
32
|
options: [
|
|
27
33
|
{
|
|
28
|
-
name: '
|
|
34
|
+
name: 'Create',
|
|
29
35
|
value: 'insert',
|
|
30
|
-
description: '
|
|
31
|
-
action: '
|
|
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',
|
|
32
44
|
},
|
|
33
45
|
{
|
|
34
46
|
name: 'Update',
|
|
@@ -37,86 +49,34 @@ class CouchbaseNode {
|
|
|
37
49
|
action: 'Update document in couchbase',
|
|
38
50
|
},
|
|
39
51
|
{
|
|
40
|
-
name: '
|
|
52
|
+
name: 'Delete',
|
|
41
53
|
value: 'remove',
|
|
42
|
-
description: '
|
|
43
|
-
action: '
|
|
54
|
+
description: 'Delete document in couchbase',
|
|
55
|
+
action: 'Delete document in couchbase',
|
|
44
56
|
},
|
|
45
57
|
],
|
|
46
58
|
default: 'insert',
|
|
47
59
|
},
|
|
48
60
|
{
|
|
49
|
-
displayName: '
|
|
50
|
-
name: '
|
|
51
|
-
type: 'string',
|
|
52
|
-
displayOptions: {
|
|
53
|
-
show: {
|
|
54
|
-
operation: ['insert', 'update', 'remove'],
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
default: '',
|
|
58
|
-
placeholder: 'Enter Your Username',
|
|
59
|
-
description: 'The description text',
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
displayName: 'Password',
|
|
63
|
-
name: 'myPassword',
|
|
64
|
-
type: 'string',
|
|
65
|
-
displayOptions: {
|
|
66
|
-
show: {
|
|
67
|
-
operation: ['insert', 'update', 'remove'],
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
default: '',
|
|
71
|
-
placeholder: 'Enter Your Password',
|
|
72
|
-
description: 'The description text',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
displayName: 'Bucket',
|
|
76
|
-
name: 'myBucket',
|
|
77
|
-
type: 'string',
|
|
78
|
-
displayOptions: {
|
|
79
|
-
show: {
|
|
80
|
-
operation: ['insert', 'update', 'remove'],
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
default: '',
|
|
84
|
-
placeholder: 'Enter Bucket Name',
|
|
85
|
-
description: 'The description text',
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
displayName: 'Scope',
|
|
89
|
-
name: 'myScope',
|
|
90
|
-
type: 'string',
|
|
91
|
-
displayOptions: {
|
|
92
|
-
show: {
|
|
93
|
-
operation: ['insert', 'update', 'remove'],
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
default: '',
|
|
97
|
-
placeholder: 'Enter Scope Name',
|
|
98
|
-
description: 'The description text',
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
displayName: 'Colection',
|
|
102
|
-
name: 'myCollection',
|
|
61
|
+
displayName: 'Value',
|
|
62
|
+
name: 'myDocument',
|
|
103
63
|
type: 'string',
|
|
104
64
|
displayOptions: {
|
|
105
65
|
show: {
|
|
106
|
-
operation: ['insert'
|
|
66
|
+
operation: ['insert'],
|
|
107
67
|
},
|
|
108
68
|
},
|
|
109
69
|
default: '',
|
|
110
|
-
placeholder: '
|
|
70
|
+
placeholder: 'Placeholder value',
|
|
111
71
|
description: 'The description text',
|
|
112
72
|
},
|
|
113
73
|
{
|
|
114
|
-
displayName: '
|
|
74
|
+
displayName: 'Document ID',
|
|
115
75
|
name: 'myDocument',
|
|
116
76
|
type: 'string',
|
|
117
77
|
displayOptions: {
|
|
118
78
|
show: {
|
|
119
|
-
operation: ['
|
|
79
|
+
operation: ['update'],
|
|
120
80
|
},
|
|
121
81
|
},
|
|
122
82
|
default: '',
|
|
@@ -124,8 +84,8 @@ class CouchbaseNode {
|
|
|
124
84
|
description: 'The description text',
|
|
125
85
|
},
|
|
126
86
|
{
|
|
127
|
-
displayName: '
|
|
128
|
-
name: '
|
|
87
|
+
displayName: 'Value',
|
|
88
|
+
name: 'myValue',
|
|
129
89
|
type: 'string',
|
|
130
90
|
displayOptions: {
|
|
131
91
|
show: {
|
|
@@ -137,12 +97,12 @@ class CouchbaseNode {
|
|
|
137
97
|
description: 'The description text',
|
|
138
98
|
},
|
|
139
99
|
{
|
|
140
|
-
displayName: '
|
|
141
|
-
name: '
|
|
100
|
+
displayName: 'Document ID',
|
|
101
|
+
name: 'myDocument',
|
|
142
102
|
type: 'string',
|
|
143
103
|
displayOptions: {
|
|
144
104
|
show: {
|
|
145
|
-
operation: ['
|
|
105
|
+
operation: ['remove'],
|
|
146
106
|
},
|
|
147
107
|
},
|
|
148
108
|
default: '',
|
|
@@ -150,12 +110,12 @@ class CouchbaseNode {
|
|
|
150
110
|
description: 'The description text',
|
|
151
111
|
},
|
|
152
112
|
{
|
|
153
|
-
displayName: 'ID',
|
|
113
|
+
displayName: 'Document ID',
|
|
154
114
|
name: 'myDocument',
|
|
155
115
|
type: 'string',
|
|
156
116
|
displayOptions: {
|
|
157
117
|
show: {
|
|
158
|
-
operation: ['
|
|
118
|
+
operation: ['find'],
|
|
159
119
|
},
|
|
160
120
|
},
|
|
161
121
|
default: '',
|
|
@@ -166,41 +126,42 @@ class CouchbaseNode {
|
|
|
166
126
|
};
|
|
167
127
|
}
|
|
168
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;
|
|
169
136
|
const items = this.getInputData();
|
|
170
137
|
let item;
|
|
171
138
|
let item2;
|
|
139
|
+
let item3;
|
|
140
|
+
let item4;
|
|
172
141
|
let myDocument;
|
|
173
142
|
let myNewValue;
|
|
174
|
-
let
|
|
175
|
-
let myPassword;
|
|
176
|
-
let myBucket;
|
|
177
|
-
let myScope;
|
|
178
|
-
let myCollection;
|
|
143
|
+
let readJson;
|
|
179
144
|
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
|
180
145
|
try {
|
|
181
146
|
myNewValue = this.getNodeParameter('myValue', itemIndex, '');
|
|
182
147
|
myDocument = this.getNodeParameter('myDocument', itemIndex, '');
|
|
183
|
-
|
|
184
|
-
myPassword = this.getNodeParameter('myPassword', itemIndex, '');
|
|
185
|
-
myBucket = this.getNodeParameter('myBucket', itemIndex, '');
|
|
186
|
-
myScope = this.getNodeParameter('myScope', itemIndex, '');
|
|
187
|
-
myCollection = this.getNodeParameter('myCollection', itemIndex, '');
|
|
188
|
-
const clusterConnStr = "couchbase://127.0.0.1/?connectionTimeout=1200";
|
|
148
|
+
const clusterConnStr = myConnection;
|
|
189
149
|
const username = myUsername;
|
|
190
150
|
const password = myPassword;
|
|
191
151
|
const bucketName = myBucket;
|
|
192
152
|
const cluster = await (0, couchbase_1.connect)(clusterConnStr, {
|
|
193
153
|
username: username,
|
|
194
154
|
password: password,
|
|
155
|
+
configProfile: 'wanDevelopment'
|
|
195
156
|
});
|
|
196
157
|
const bucket = cluster.bucket(bucketName);
|
|
197
158
|
const collection = bucket
|
|
198
159
|
.scope(myScope)
|
|
199
160
|
.collection(myCollection);
|
|
200
|
-
item = items[itemIndex];
|
|
201
|
-
item.json['myDocument'] = myDocument;
|
|
202
161
|
const operation = this.getNodeParameter('operation', 0);
|
|
203
162
|
if (operation === 'insert') {
|
|
163
|
+
item = items[itemIndex];
|
|
164
|
+
item.json['myDocument'] = myDocument;
|
|
204
165
|
await collection.insert(myDocument, item.json);
|
|
205
166
|
}
|
|
206
167
|
else if (operation === 'update') {
|
|
@@ -211,6 +172,17 @@ class CouchbaseNode {
|
|
|
211
172
|
else if (operation === 'remove') {
|
|
212
173
|
await collection.remove(myDocument);
|
|
213
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
|
+
}
|
|
214
186
|
}
|
|
215
187
|
catch (error) {
|
|
216
188
|
if (this.continueOnFail()) {
|
|
@@ -0,0 +1 @@
|
|
|
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,IAAI,EAAE,qBAAqB;YAC3B,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,8DAA8D;YAC3E,QAAQ,EAAE;gBACT,IAAI,EAAE,WAAW;aACjB;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,cAAc;oBACpB,QAAQ,EAAE,KAAK;iBACf;aACD;YACD,UAAU,EAAE;gBACX;oBACa,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACL;4BACI,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,QAAQ;4BACf,WAAW,EAAE,8BAA8B;4BAC3C,MAAM,EAAE,8BAA8B;yBACzC;wBAChB;4BACC,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,MAAM;4BACb,WAAW,EAAE,4BAA4B;4BACzC,MAAM,EAAE,4BAA4B;yBACpC;wBACD;4BACC,IAAI,EAAE,QAAQ;4BACd,KAAK,EAAE,QAAQ;4BACf,WAAW,EAAE,8BAA8B;4BAC3C,MAAM,EAAE,8BAA8B;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group: ['transform'],
|
|
13
13
|
version: 1,
|
|
@@ -17,6 +17,12 @@ class CouchbaseNode {
|
|
|
17
17
|
},
|
|
18
18
|
inputs: ['main'],
|
|
19
19
|
outputs: ['main'],
|
|
20
|
+
credentials: [
|
|
21
|
+
{
|
|
22
|
+
name: 'couchbaseApi',
|
|
23
|
+
required: false,
|
|
24
|
+
},
|
|
25
|
+
],
|
|
20
26
|
properties: [
|
|
21
27
|
{
|
|
22
28
|
displayName: 'Operation',
|
|
@@ -25,10 +31,16 @@ class CouchbaseNode {
|
|
|
25
31
|
noDataExpression: true,
|
|
26
32
|
options: [
|
|
27
33
|
{
|
|
28
|
-
name: '
|
|
34
|
+
name: 'Create',
|
|
29
35
|
value: 'insert',
|
|
30
|
-
description: '
|
|
31
|
-
action: '
|
|
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',
|
|
32
44
|
},
|
|
33
45
|
{
|
|
34
46
|
name: 'Update',
|
|
@@ -37,98 +49,14 @@ class CouchbaseNode {
|
|
|
37
49
|
action: 'Update document in couchbase',
|
|
38
50
|
},
|
|
39
51
|
{
|
|
40
|
-
name: '
|
|
52
|
+
name: 'Delete',
|
|
41
53
|
value: 'remove',
|
|
42
|
-
description: '
|
|
43
|
-
action: '
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: 'Find',
|
|
47
|
-
value: 'find',
|
|
48
|
-
description: 'Find document in couchbase',
|
|
49
|
-
action: 'Find document in couchbase',
|
|
54
|
+
description: 'Delete document in couchbase',
|
|
55
|
+
action: 'Delete document in couchbase',
|
|
50
56
|
},
|
|
51
57
|
],
|
|
52
58
|
default: 'insert',
|
|
53
59
|
},
|
|
54
|
-
{
|
|
55
|
-
displayName: 'Connection String',
|
|
56
|
-
name: 'myConnection',
|
|
57
|
-
type: 'string',
|
|
58
|
-
displayOptions: {
|
|
59
|
-
show: {
|
|
60
|
-
operation: ['insert', 'update', 'remove', 'find'],
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
default: '',
|
|
64
|
-
placeholder: 'Enter Connection String',
|
|
65
|
-
description: 'The description text',
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
displayName: 'Username',
|
|
69
|
-
name: 'myUsername',
|
|
70
|
-
type: 'string',
|
|
71
|
-
displayOptions: {
|
|
72
|
-
show: {
|
|
73
|
-
operation: ['insert', 'update', 'remove', 'find'],
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
default: '',
|
|
77
|
-
placeholder: 'Enter Your Username',
|
|
78
|
-
description: 'The description text',
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
displayName: 'Password',
|
|
82
|
-
name: 'myPassword',
|
|
83
|
-
type: 'string',
|
|
84
|
-
displayOptions: {
|
|
85
|
-
show: {
|
|
86
|
-
operation: ['insert', 'update', 'remove', 'find'],
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
default: '',
|
|
90
|
-
placeholder: 'Enter Your Password',
|
|
91
|
-
description: 'The description text',
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
displayName: 'Bucket',
|
|
95
|
-
name: 'myBucket',
|
|
96
|
-
type: 'string',
|
|
97
|
-
displayOptions: {
|
|
98
|
-
show: {
|
|
99
|
-
operation: ['insert', 'update', 'remove', 'find'],
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
default: '',
|
|
103
|
-
placeholder: 'Enter Bucket Name',
|
|
104
|
-
description: 'The description text',
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
displayName: 'Scope',
|
|
108
|
-
name: 'myScope',
|
|
109
|
-
type: 'string',
|
|
110
|
-
displayOptions: {
|
|
111
|
-
show: {
|
|
112
|
-
operation: ['insert', 'update', 'remove', 'find'],
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
default: '',
|
|
116
|
-
placeholder: 'Enter Scope Name',
|
|
117
|
-
description: 'The description text',
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
displayName: 'Colection',
|
|
121
|
-
name: 'myCollection',
|
|
122
|
-
type: 'string',
|
|
123
|
-
displayOptions: {
|
|
124
|
-
show: {
|
|
125
|
-
operation: ['insert', 'update', 'remove', 'find'],
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
default: '',
|
|
129
|
-
placeholder: 'Enter Collection Name',
|
|
130
|
-
description: 'The description text',
|
|
131
|
-
},
|
|
132
60
|
{
|
|
133
61
|
displayName: 'Value',
|
|
134
62
|
name: 'myDocument',
|
|
@@ -143,7 +71,7 @@ class CouchbaseNode {
|
|
|
143
71
|
description: 'The description text',
|
|
144
72
|
},
|
|
145
73
|
{
|
|
146
|
-
displayName: 'ID',
|
|
74
|
+
displayName: 'Document ID',
|
|
147
75
|
name: 'myDocument',
|
|
148
76
|
type: 'string',
|
|
149
77
|
displayOptions: {
|
|
@@ -169,7 +97,7 @@ class CouchbaseNode {
|
|
|
169
97
|
description: 'The description text',
|
|
170
98
|
},
|
|
171
99
|
{
|
|
172
|
-
displayName: 'ID',
|
|
100
|
+
displayName: 'Document ID',
|
|
173
101
|
name: 'myDocument',
|
|
174
102
|
type: 'string',
|
|
175
103
|
displayOptions: {
|
|
@@ -182,7 +110,7 @@ class CouchbaseNode {
|
|
|
182
110
|
description: 'The description text',
|
|
183
111
|
},
|
|
184
112
|
{
|
|
185
|
-
displayName: 'ID',
|
|
113
|
+
displayName: 'Document ID',
|
|
186
114
|
name: 'myDocument',
|
|
187
115
|
type: 'string',
|
|
188
116
|
displayOptions: {
|
|
@@ -198,27 +126,25 @@ class CouchbaseNode {
|
|
|
198
126
|
};
|
|
199
127
|
}
|
|
200
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;
|
|
201
136
|
const items = this.getInputData();
|
|
202
137
|
let item;
|
|
203
138
|
let item2;
|
|
139
|
+
let item3;
|
|
140
|
+
let item4;
|
|
204
141
|
let myDocument;
|
|
205
142
|
let myNewValue;
|
|
206
|
-
let
|
|
207
|
-
let myPassword;
|
|
208
|
-
let myBucket;
|
|
209
|
-
let myScope;
|
|
210
|
-
let myCollection;
|
|
211
|
-
let myConnection;
|
|
143
|
+
let readJson;
|
|
212
144
|
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
|
213
145
|
try {
|
|
214
146
|
myNewValue = this.getNodeParameter('myValue', itemIndex, '');
|
|
215
147
|
myDocument = this.getNodeParameter('myDocument', itemIndex, '');
|
|
216
|
-
myUsername = this.getNodeParameter('myUsername', itemIndex, '');
|
|
217
|
-
myPassword = this.getNodeParameter('myPassword', itemIndex, '');
|
|
218
|
-
myBucket = this.getNodeParameter('myBucket', itemIndex, '');
|
|
219
|
-
myScope = this.getNodeParameter('myScope', itemIndex, '');
|
|
220
|
-
myCollection = this.getNodeParameter('myCollection', itemIndex, '');
|
|
221
|
-
myConnection = this.getNodeParameter('myConnection', itemIndex, '');
|
|
222
148
|
const clusterConnStr = myConnection;
|
|
223
149
|
const username = myUsername;
|
|
224
150
|
const password = myPassword;
|
|
@@ -232,10 +158,10 @@ class CouchbaseNode {
|
|
|
232
158
|
const collection = bucket
|
|
233
159
|
.scope(myScope)
|
|
234
160
|
.collection(myCollection);
|
|
235
|
-
item = items[itemIndex];
|
|
236
|
-
item.json['myDocument'] = myDocument;
|
|
237
161
|
const operation = this.getNodeParameter('operation', 0);
|
|
238
162
|
if (operation === 'insert') {
|
|
163
|
+
item = items[itemIndex];
|
|
164
|
+
item.json['myDocument'] = myDocument;
|
|
239
165
|
await collection.insert(myDocument, item.json);
|
|
240
166
|
}
|
|
241
167
|
else if (operation === 'update') {
|
|
@@ -249,6 +175,12 @@ class CouchbaseNode {
|
|
|
249
175
|
else if (operation === 'find') {
|
|
250
176
|
const getResult = await collection.get(myDocument);
|
|
251
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[' '];
|
|
252
184
|
await collection.get(myDocument);
|
|
253
185
|
}
|
|
254
186
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CouchbaseNode.node.js","sourceRoot":"","sources":["../../../nodes/CouchbaseNode/CouchbaseNode.node.ts"],"names":[],"mappings":";;;AACA,+CAKsB;AAEtB,yCAKoB;AAEpB,MAAa,aAAa;IAA1B;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"CouchbaseNode.node.js","sourceRoot":"","sources":["../../../nodes/CouchbaseNode/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,IAAI,EAAE,qBAAqB;YAC3B,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,8DAA8D;YAC3E,QAAQ,EAAE;gBACT,IAAI,EAAE,WAAW;aACjB;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,cAAc;oBACpB,QAAQ,EAAE,KAAK;iBACf;aACD;YACD,U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AK,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"}
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-couchbase",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "N8N Node to add, get, update and delete data to couchbase",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dist/credentials/CouchbaseCredentialsApi.credentials.js"
|
|
34
34
|
],
|
|
35
35
|
"nodes": [
|
|
36
|
-
"dist/nodes/CouchbaseNode/
|
|
36
|
+
"dist/nodes/CouchbaseNode/CouchbaseNode.node.js"
|
|
37
37
|
]
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|