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.
Files changed (126) hide show
  1. package/README.md +133 -65
  2. package/dist/credentials/CouchbaseApi.credentials.d.ts +8 -0
  3. package/dist/credentials/CouchbaseApi.credentials.js +39 -0
  4. package/dist/credentials/CouchbaseApi.credentials.js.map +1 -0
  5. package/dist/credentials/ExampleCredentialsApi.credentials.d.ts +8 -0
  6. package/dist/credentials/ExampleCredentialsApi.credentials.js +46 -0
  7. package/dist/credentials/ExampleCredentialsApi.credentials.js.map +1 -0
  8. package/dist/credentials/HttpBinApi.credentials.d.ts +9 -0
  9. package/dist/credentials/HttpBinApi.credentials.js +43 -0
  10. package/dist/credentials/HttpBinApi.credentials.js.map +1 -0
  11. package/dist/nodes/Couchbase/Couchbase.node.d.ts +35 -0
  12. package/dist/nodes/Couchbase/Couchbase.node.js +303 -0
  13. package/dist/nodes/Couchbase/Couchbase.node.js.map +1 -0
  14. package/dist/nodes/Couchbase/Couchbase.node.json +18 -0
  15. package/dist/nodes/Couchbase/CouchbaseProperties.d.ts +16 -0
  16. package/dist/nodes/Couchbase/CouchbaseProperties.js +478 -0
  17. package/dist/nodes/Couchbase/CouchbaseProperties.js.map +1 -0
  18. package/dist/nodes/Couchbase/couchbase.dark.svg +14 -0
  19. package/dist/nodes/Couchbase/couchbase.svg +14 -0
  20. package/dist/nodes/ExampleNode/ExampleNode.node.d.ts +5 -0
  21. package/dist/nodes/ExampleNode/ExampleNode.node.js +59 -0
  22. package/dist/nodes/ExampleNode/ExampleNode.node.js.map +1 -0
  23. package/dist/nodes/HttpBin/HttpBin.node.d.ts +4 -0
  24. package/dist/nodes/HttpBin/HttpBin.node.js +55 -0
  25. package/dist/nodes/HttpBin/HttpBin.node.js.map +1 -0
  26. package/dist/nodes/HttpBin/HttpBin.node.json +18 -0
  27. package/dist/nodes/HttpBin/HttpVerbDescription.d.ts +3 -0
  28. package/dist/nodes/HttpBin/HttpVerbDescription.js +236 -0
  29. package/dist/nodes/HttpBin/HttpVerbDescription.js.map +1 -0
  30. package/dist/nodes/vector_store/VectorStoreCouchbase/VectorStoreCouchbase.node.d.ts +16 -0
  31. package/dist/nodes/vector_store/VectorStoreCouchbase/VectorStoreCouchbase.node.js +407 -0
  32. package/dist/nodes/vector_store/VectorStoreCouchbase/VectorStoreCouchbase.node.js.map +1 -0
  33. package/dist/nodes/vector_store/VectorStoreCouchbase/mongodb.dark.svg +3 -0
  34. package/dist/nodes/vector_store/VectorStoreCouchbase/mongodb.svg +3 -0
  35. package/dist/nodes/vector_store/shared/createVectorStoreNode/__tests__/utils.test.d.ts +0 -0
  36. package/dist/nodes/vector_store/shared/createVectorStoreNode/__tests__/utils.test.js +2 -0
  37. package/dist/nodes/vector_store/shared/createVectorStoreNode/__tests__/utils.test.js.map +1 -0
  38. package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.d.ts +4 -0
  39. package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.js +45 -0
  40. package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.js.map +1 -0
  41. package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.d.ts +15 -0
  42. package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.js +227 -0
  43. package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.js.map +1 -0
  44. package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.test.d.ts +0 -0
  45. package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.test.js +2 -0
  46. package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.test.js.map +1 -0
  47. package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.d.ts +0 -0
  48. package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.js +2 -0
  49. package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.js.map +1 -0
  50. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/insertOperation.test.d.ts +0 -0
  51. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/insertOperation.test.js +2 -0
  52. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/insertOperation.test.js.map +1 -0
  53. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/loadOperation.test.d.ts +0 -0
  54. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/loadOperation.test.js +2 -0
  55. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/loadOperation.test.js.map +1 -0
  56. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/operationHandlers.test.d.ts +0 -0
  57. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/operationHandlers.test.js +2 -0
  58. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/operationHandlers.test.js.map +1 -0
  59. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/retrieveAsToolOperation.test.d.ts +0 -0
  60. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/retrieveAsToolOperation.test.js +2 -0
  61. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/retrieveAsToolOperation.test.js.map +1 -0
  62. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/retrieveOperation.test.d.ts +0 -0
  63. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/retrieveOperation.test.js +2 -0
  64. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/retrieveOperation.test.js.map +1 -0
  65. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/updateOperation.test.d.ts +0 -0
  66. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/updateOperation.test.js +2 -0
  67. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/__tests__/updateOperation.test.js.map +1 -0
  68. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.d.ts +5 -0
  69. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.js +22 -0
  70. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.js.map +1 -0
  71. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.d.ts +5 -0
  72. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.js +36 -0
  73. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.js.map +1 -0
  74. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.d.ts +5 -0
  75. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.js +34 -0
  76. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.js.map +1 -0
  77. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.d.ts +5 -0
  78. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.js +43 -0
  79. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.js.map +1 -0
  80. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.d.ts +5 -0
  81. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.js +17 -0
  82. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.js.map +1 -0
  83. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.d.ts +5 -0
  84. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.js +40 -0
  85. package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.js.map +1 -0
  86. package/dist/nodes/vector_store/shared/createVectorStoreNode/types.d.ts +31 -0
  87. package/dist/nodes/vector_store/shared/createVectorStoreNode/types.js +3 -0
  88. package/dist/nodes/vector_store/shared/createVectorStoreNode/types.js.map +1 -0
  89. package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.d.ts +6 -0
  90. package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.js +22 -0
  91. package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.js.map +1 -0
  92. package/dist/nodes/vector_store/shared/processDocuments.d.ts +25 -0
  93. package/dist/nodes/vector_store/shared/processDocuments.js +46 -0
  94. package/dist/nodes/vector_store/shared/processDocuments.js.map +1 -0
  95. package/dist/package.json +29 -19
  96. package/dist/tsconfig.tsbuildinfo +1 -1
  97. package/dist/utils/N8nBinaryLoader.d.ts +18 -0
  98. package/dist/utils/N8nBinaryLoader.js +159 -0
  99. package/dist/utils/N8nBinaryLoader.js.map +1 -0
  100. package/dist/utils/N8nJsonLoader.d.ts +11 -0
  101. package/dist/utils/N8nJsonLoader.js +67 -0
  102. package/dist/utils/N8nJsonLoader.js.map +1 -0
  103. package/dist/utils/N8nTool.d.ts +10 -0
  104. package/dist/utils/N8nTool.js +86 -0
  105. package/dist/utils/N8nTool.js.map +1 -0
  106. package/dist/utils/helpers.d.ts +23 -0
  107. package/dist/utils/helpers.js +172 -0
  108. package/dist/utils/helpers.js.map +1 -0
  109. package/dist/utils/logWrapper.d.ts +27 -0
  110. package/dist/utils/logWrapper.js +297 -0
  111. package/dist/utils/logWrapper.js.map +1 -0
  112. package/dist/utils/sharedFields.d.ts +6 -0
  113. package/dist/utils/sharedFields.js +122 -0
  114. package/dist/utils/sharedFields.js.map +1 -0
  115. package/package.json +35 -27
  116. package/dist/credentials/CouchbaseCredentialsApi.credentials.d.ts +0 -7
  117. package/dist/credentials/CouchbaseCredentialsApi.credentials.js +0 -50
  118. package/dist/credentials/CouchbaseCredentialsApi.credentials.js.map +0 -1
  119. package/dist/nodes/CouchbaseDB/CouchbaseNode.node.d.ts +0 -6
  120. package/dist/nodes/CouchbaseDB/CouchbaseNode.node.js +0 -206
  121. package/dist/nodes/CouchbaseDB/CouchbaseNode.node.js.map +0 -1
  122. package/dist/nodes/CouchbaseNode/CouchbaseNode.node.d.ts +0 -6
  123. package/dist/nodes/CouchbaseNode/CouchbaseNode.node.js +0 -293
  124. package/dist/nodes/CouchbaseNode/CouchbaseNode.node.js.map +0 -1
  125. /package/dist/nodes/{CouchbaseDB → Couchbase}/CBLogomark.svg +0 -0
  126. /package/dist/nodes/{CouchbaseNode/CBLogomark.svg → vector_store/VectorStoreCouchbase/couchbase.svg} +0 -0
@@ -0,0 +1,478 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.nodeProperties = exports.SEARCH_TYPES = exports.SEARCH_OPS = exports.DOCUMENT_OPS = void 0;
4
+ const RESOURCE = {
5
+ DOCUMENT: 'document',
6
+ SEARCH: 'search',
7
+ };
8
+ const showFor = (conditions) => {
9
+ const show = {};
10
+ Object.entries(conditions).forEach(([param, values]) => {
11
+ if (typeof values === 'boolean') {
12
+ show[param] = [values];
13
+ }
14
+ else {
15
+ const valueArray = Array.isArray(values) ? values : [values];
16
+ show[param] = valueArray;
17
+ }
18
+ });
19
+ return { show };
20
+ };
21
+ const createFieldWithVaryingRequirements = (displayName, name, type, groups) => {
22
+ return groups.map((group) => {
23
+ var _a, _b, _c, _d;
24
+ const baseField = {
25
+ displayName,
26
+ name,
27
+ type,
28
+ required: group.required,
29
+ displayOptions: showFor(group.conditions),
30
+ description: ((_a = group.options) === null || _a === void 0 ? void 0 : _a.description) || '',
31
+ placeholder: ((_b = group.options) === null || _b === void 0 ? void 0 : _b.placeholder) || '',
32
+ default: ((_c = group.options) === null || _c === void 0 ? void 0 : _c.default) !== undefined ? group.options.default : '',
33
+ };
34
+ if (type === 'resourceLocator') {
35
+ return {
36
+ ...baseField,
37
+ default: ((_d = group.options) === null || _d === void 0 ? void 0 : _d.default) || { mode: 'list', value: '' },
38
+ modes: group.modes,
39
+ ...(group.options || {}),
40
+ };
41
+ }
42
+ return {
43
+ ...baseField,
44
+ ...(group.options || {}),
45
+ };
46
+ });
47
+ };
48
+ exports.DOCUMENT_OPS = {
49
+ CREATE: 'create',
50
+ QUERY: 'query',
51
+ READ: 'read',
52
+ UPSERT: 'upsert',
53
+ DELETE: 'delete',
54
+ };
55
+ exports.SEARCH_OPS = {
56
+ CREATE_INDEX: 'createIndex',
57
+ RETRIEVE: 'retrieve',
58
+ };
59
+ exports.SEARCH_TYPES = {
60
+ SEARCH_FULL_TEXT: 'searchFullText',
61
+ };
62
+ const documentOperations = [
63
+ {
64
+ name: 'Create',
65
+ value: exports.DOCUMENT_OPS.CREATE,
66
+ description: 'Insert a single document with a specified or auto-generated ID',
67
+ action: 'Create a document',
68
+ },
69
+ {
70
+ name: 'Query',
71
+ value: exports.DOCUMENT_OPS.QUERY,
72
+ description: 'Execute SQL++ queries to retrieve or manipulate documents',
73
+ action: 'Query documents',
74
+ },
75
+ {
76
+ name: 'Read',
77
+ value: exports.DOCUMENT_OPS.READ,
78
+ description: 'Retrieve a document by its ID',
79
+ action: 'Read a document',
80
+ },
81
+ {
82
+ name: 'Upsert',
83
+ value: exports.DOCUMENT_OPS.UPSERT,
84
+ description: 'Modify an existing document identified by its ID, or create a new one if it does not exist',
85
+ action: 'Upsert a document',
86
+ },
87
+ {
88
+ name: 'Delete',
89
+ value: exports.DOCUMENT_OPS.DELETE,
90
+ description: 'Remove a document by its ID',
91
+ action: 'Delete a document',
92
+ },
93
+ ];
94
+ const searchOperations = [
95
+ {
96
+ name: 'Create Index',
97
+ value: exports.SEARCH_OPS.CREATE_INDEX,
98
+ description: 'Create a new search index',
99
+ action: 'Create a search index',
100
+ },
101
+ {
102
+ name: 'Search & Retrieve',
103
+ value: exports.SEARCH_OPS.RETRIEVE,
104
+ description: 'Perform full-text search',
105
+ action: 'Search and retrieve documents',
106
+ },
107
+ ];
108
+ const searchTypeOptions = [
109
+ {
110
+ name: 'Couchbase Search Full Text',
111
+ value: exports.SEARCH_TYPES.SEARCH_FULL_TEXT,
112
+ description: 'Perform a Couchbase full-text search',
113
+ },
114
+ ];
115
+ const DOCUMENT_RESOURCE_VALUE = RESOURCE.DOCUMENT;
116
+ const DOCUMENT_OPS_QUERY_VALUE = exports.DOCUMENT_OPS.QUERY;
117
+ const SEARCH_OPS_SEARCH_VALUE = exports.SEARCH_OPS.RETRIEVE;
118
+ const SEARCH_TYPE_FULL_TEXT_VALUE = exports.SEARCH_TYPES.SEARCH_FULL_TEXT;
119
+ exports.nodeProperties = [
120
+ {
121
+ displayName: 'Resource',
122
+ name: 'resource',
123
+ type: 'options',
124
+ noDataExpression: true,
125
+ options: [
126
+ {
127
+ name: 'Document & Key-Value',
128
+ value: RESOURCE.DOCUMENT,
129
+ description: 'Create, read, upsert, and delete documents using direct key-value operations and execute SQL++ queries',
130
+ },
131
+ {
132
+ name: 'Search',
133
+ value: RESOURCE.SEARCH,
134
+ description: 'Create and manage indexes, perform full-text searches',
135
+ },
136
+ ],
137
+ default: DOCUMENT_RESOURCE_VALUE,
138
+ },
139
+ {
140
+ displayName: 'Operation',
141
+ name: 'operation',
142
+ type: 'options',
143
+ noDataExpression: true,
144
+ displayOptions: showFor({ resource: RESOURCE.DOCUMENT }),
145
+ options: documentOperations,
146
+ default: DOCUMENT_OPS_QUERY_VALUE,
147
+ },
148
+ {
149
+ displayName: 'Operation',
150
+ name: 'operation',
151
+ type: 'options',
152
+ noDataExpression: true,
153
+ displayOptions: showFor({ resource: RESOURCE.SEARCH }),
154
+ options: searchOperations,
155
+ default: SEARCH_OPS_SEARCH_VALUE,
156
+ },
157
+ {
158
+ displayName: 'Search Type',
159
+ name: 'searchType',
160
+ type: 'options',
161
+ displayOptions: showFor({
162
+ resource: RESOURCE.SEARCH,
163
+ operation: [exports.SEARCH_OPS.RETRIEVE],
164
+ }),
165
+ options: searchTypeOptions,
166
+ default: SEARCH_TYPE_FULL_TEXT_VALUE,
167
+ description: 'Type of search to perform',
168
+ },
169
+ {
170
+ displayName: 'Advanced Mode',
171
+ name: 'advancedMode',
172
+ type: 'boolean',
173
+ displayOptions: showFor({
174
+ resource: RESOURCE.SEARCH,
175
+ operation: [exports.SEARCH_OPS.RETRIEVE],
176
+ }),
177
+ default: false,
178
+ description: 'Whether to use advanced mode to provide a raw JSON query',
179
+ },
180
+ ...createFieldWithVaryingRequirements('Couchbase Bucket', 'couchbaseBucket', 'resourceLocator', [
181
+ {
182
+ conditions: {
183
+ resource: RESOURCE.DOCUMENT,
184
+ operation: [
185
+ exports.DOCUMENT_OPS.CREATE,
186
+ exports.DOCUMENT_OPS.READ,
187
+ exports.DOCUMENT_OPS.UPSERT,
188
+ exports.DOCUMENT_OPS.DELETE,
189
+ ],
190
+ },
191
+ required: true,
192
+ options: {
193
+ description: 'Couchbase bucket',
194
+ },
195
+ modes: [
196
+ {
197
+ displayName: 'From List',
198
+ name: 'list',
199
+ type: 'list',
200
+ typeOptions: {
201
+ searchListMethod: 'couchbaseBucketSearch',
202
+ },
203
+ },
204
+ {
205
+ displayName: 'Name',
206
+ name: 'name',
207
+ type: 'string',
208
+ placeholder: 'e.g. my_bucket',
209
+ },
210
+ ],
211
+ },
212
+ {
213
+ conditions: {
214
+ resource: RESOURCE.DOCUMENT,
215
+ operation: [exports.DOCUMENT_OPS.QUERY],
216
+ },
217
+ required: false,
218
+ options: {
219
+ description: 'Couchbase bucket (optional for this operation)',
220
+ },
221
+ modes: [
222
+ {
223
+ displayName: 'From List',
224
+ name: 'list',
225
+ type: 'list',
226
+ typeOptions: {
227
+ searchListMethod: 'couchbaseBucketSearch',
228
+ },
229
+ },
230
+ {
231
+ displayName: 'Name',
232
+ name: 'name',
233
+ type: 'string',
234
+ placeholder: 'e.g. my_bucket',
235
+ },
236
+ ],
237
+ },
238
+ ]),
239
+ ...createFieldWithVaryingRequirements('Couchbase Scope', 'couchbaseScope', 'resourceLocator', [
240
+ {
241
+ conditions: {
242
+ resource: RESOURCE.DOCUMENT,
243
+ operation: [
244
+ exports.DOCUMENT_OPS.CREATE,
245
+ exports.DOCUMENT_OPS.READ,
246
+ exports.DOCUMENT_OPS.UPSERT,
247
+ exports.DOCUMENT_OPS.DELETE,
248
+ ],
249
+ },
250
+ required: true,
251
+ options: {
252
+ description: 'The Couchbase scope to use',
253
+ },
254
+ modes: [
255
+ {
256
+ displayName: 'From List',
257
+ name: 'list',
258
+ type: 'list',
259
+ typeOptions: {
260
+ searchListMethod: 'couchbaseScopeSearch',
261
+ },
262
+ },
263
+ {
264
+ displayName: 'Name',
265
+ name: 'name',
266
+ type: 'string',
267
+ placeholder: 'e.g. my_scope',
268
+ },
269
+ ],
270
+ },
271
+ {
272
+ conditions: {
273
+ resource: RESOURCE.DOCUMENT,
274
+ operation: [exports.DOCUMENT_OPS.QUERY],
275
+ },
276
+ required: false,
277
+ options: {
278
+ description: 'The Couchbase scope to use (optional for this operation)',
279
+ },
280
+ modes: [
281
+ {
282
+ displayName: 'From List',
283
+ name: 'list',
284
+ type: 'list',
285
+ typeOptions: {
286
+ searchListMethod: 'couchbaseScopeSearch',
287
+ },
288
+ },
289
+ {
290
+ displayName: 'Name',
291
+ name: 'name',
292
+ type: 'string',
293
+ placeholder: 'e.g. my_scope',
294
+ },
295
+ ],
296
+ },
297
+ ]),
298
+ {
299
+ displayName: 'Couchbase Collection',
300
+ name: 'couchbaseCollection',
301
+ type: 'resourceLocator',
302
+ default: { mode: 'list', value: '' },
303
+ required: true,
304
+ displayOptions: showFor({
305
+ resource: RESOURCE.DOCUMENT,
306
+ operation: [exports.DOCUMENT_OPS.CREATE, exports.DOCUMENT_OPS.READ, exports.DOCUMENT_OPS.UPSERT, exports.DOCUMENT_OPS.DELETE],
307
+ }),
308
+ modes: [
309
+ {
310
+ displayName: 'From List',
311
+ name: 'list',
312
+ type: 'list',
313
+ typeOptions: {
314
+ searchListMethod: 'couchbaseCollectionSearch',
315
+ },
316
+ },
317
+ {
318
+ displayName: 'Name',
319
+ name: 'name',
320
+ type: 'string',
321
+ placeholder: 'e.g. my_collection',
322
+ },
323
+ ],
324
+ },
325
+ {
326
+ displayName: 'Specify Document ID',
327
+ name: 'isSpecifyDocumentId',
328
+ type: 'boolean',
329
+ displayOptions: showFor({ resource: RESOURCE.DOCUMENT, operation: [exports.DOCUMENT_OPS.CREATE] }),
330
+ default: false,
331
+ description: 'Whether to use a user specified document ID. If false, a new ID will be generated.',
332
+ },
333
+ ...createFieldWithVaryingRequirements('Document ID', 'documentId', 'string', [
334
+ {
335
+ conditions: {
336
+ resource: RESOURCE.DOCUMENT,
337
+ operation: [exports.DOCUMENT_OPS.UPSERT, exports.DOCUMENT_OPS.DELETE, exports.DOCUMENT_OPS.READ],
338
+ },
339
+ required: true,
340
+ options: {
341
+ default: '',
342
+ description: 'ID of the document to create',
343
+ placeholder: 'my-document-ID',
344
+ },
345
+ },
346
+ {
347
+ conditions: {
348
+ resource: RESOURCE.DOCUMENT,
349
+ operation: [exports.DOCUMENT_OPS.CREATE],
350
+ isSpecifyDocumentId: true,
351
+ },
352
+ required: true,
353
+ options: {
354
+ default: '',
355
+ description: 'ID of the document to create',
356
+ placeholder: 'my-document-ID',
357
+ },
358
+ },
359
+ ]),
360
+ {
361
+ displayName: 'Document Value',
362
+ name: 'documentValue',
363
+ type: 'json',
364
+ displayOptions: showFor({
365
+ resource: RESOURCE.DOCUMENT,
366
+ operation: [exports.DOCUMENT_OPS.CREATE, exports.DOCUMENT_OPS.UPSERT],
367
+ }),
368
+ default: '',
369
+ description: 'Document content in JSON format',
370
+ },
371
+ {
372
+ displayName: 'Run Query',
373
+ name: 'query',
374
+ type: 'string',
375
+ displayOptions: showFor({ resource: RESOURCE.DOCUMENT, operation: [exports.DOCUMENT_OPS.QUERY] }),
376
+ typeOptions: {
377
+ rows: 5,
378
+ },
379
+ default: '',
380
+ placeholder: 'e.g. SELECT * FROM users WHERE name="Michael"',
381
+ description: 'The SQL++ query to execute',
382
+ },
383
+ {
384
+ displayName: 'Index Definition',
385
+ name: 'indexDefinition',
386
+ type: 'json',
387
+ typeOptions: {
388
+ rows: 20,
389
+ },
390
+ required: true,
391
+ displayOptions: showFor({ resource: RESOURCE.SEARCH, operation: [exports.SEARCH_OPS.CREATE_INDEX] }),
392
+ description: 'The JSON object defining the index. See the Couchbase Search documentation for details.',
393
+ default: '',
394
+ validateType: 'object',
395
+ },
396
+ {
397
+ displayName: 'Index Name',
398
+ name: 'indexName',
399
+ type: 'string',
400
+ required: true,
401
+ displayOptions: showFor({
402
+ resource: RESOURCE.SEARCH,
403
+ operation: [exports.SEARCH_OPS.RETRIEVE],
404
+ }),
405
+ default: 'travel-sample.inventory.test-ts-fts',
406
+ placeholder: 'bucket.scope.indexName',
407
+ description: 'Name of the search index to query',
408
+ },
409
+ {
410
+ displayName: 'Search Query',
411
+ name: 'searchQuery',
412
+ type: 'string',
413
+ required: true,
414
+ displayOptions: showFor({
415
+ resource: RESOURCE.SEARCH,
416
+ operation: [exports.SEARCH_OPS.RETRIEVE],
417
+ advancedMode: false,
418
+ }),
419
+ default: '',
420
+ description: 'The full-text search query to execute',
421
+ },
422
+ {
423
+ displayName: 'Fields to Return',
424
+ name: 'fieldsToReturn',
425
+ type: 'string',
426
+ displayOptions: showFor({
427
+ resource: RESOURCE.SEARCH,
428
+ operation: [exports.SEARCH_OPS.RETRIEVE],
429
+ advancedMode: false,
430
+ }),
431
+ default: '*',
432
+ description: 'Comma-separated list of fields to return in the search results, * for all fields, or empty for no fields',
433
+ },
434
+ {
435
+ displayName: 'Limit',
436
+ name: 'resultsLimit',
437
+ type: 'number',
438
+ typeOptions: {
439
+ minValue: 1,
440
+ },
441
+ displayOptions: showFor({
442
+ resource: RESOURCE.SEARCH,
443
+ operation: [exports.SEARCH_OPS.RETRIEVE],
444
+ advancedMode: false,
445
+ }),
446
+ default: 5,
447
+ description: 'Max number of results to return',
448
+ },
449
+ {
450
+ displayName: 'Include Locations',
451
+ name: 'includeLocations',
452
+ type: 'boolean',
453
+ displayOptions: showFor({
454
+ resource: RESOURCE.SEARCH,
455
+ operation: [exports.SEARCH_OPS.RETRIEVE],
456
+ advancedMode: false,
457
+ }),
458
+ default: false,
459
+ description: 'Whether to include term locations in the search results',
460
+ },
461
+ {
462
+ displayName: 'Raw Search Query',
463
+ name: 'rawQuery',
464
+ type: 'json',
465
+ typeOptions: {
466
+ rows: 20,
467
+ },
468
+ displayOptions: showFor({
469
+ resource: RESOURCE.SEARCH,
470
+ operation: [exports.SEARCH_OPS.RETRIEVE],
471
+ advancedMode: true,
472
+ }),
473
+ default: '',
474
+ description: 'A raw search query in JSON format',
475
+ validateType: 'object',
476
+ },
477
+ ];
478
+ //# sourceMappingURL=CouchbaseProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CouchbaseProperties.js","sourceRoot":"","sources":["../../../nodes/Couchbase/CouchbaseProperties.ts"],"names":[],"mappings":";;;AAQA,MAAM,QAAQ,GAAG;IAChB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;CACP,CAAC;AAiBX,MAAM,OAAO,GAAG,CAAC,UAA4B,EAAmB,EAAE;IAEjE,MAAM,IAAI,GAA4C,EAAE,CAAC;IAEzD,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,EAAE,EAAE;QACtD,IAAI,OAAO,MAAM,KAAK,SAAS,EAAE,CAAC;YACjC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACxB,CAAC;aAAM,CAAC;YAEP,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;YAC7D,IAAI,CAAC,KAAK,CAAC,GAAG,UAAU,CAAC;QAC1B,CAAC;IACF,CAAC,CAAC,CAAC;IAEH,OAAO,EAAE,IAAI,EAAE,CAAC;AACjB,CAAC,CAAC;AA0BF,MAAM,kCAAkC,GAAG,CAC1C,WAAmB,EACnB,IAAY,EACZ,IAAuB,EACvB,MAKG,EACiB,EAAE;IACtB,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;;QAE3B,MAAM,SAAS,GAAG;YAC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CAAC,MAAM;YACzB,SAAS,EAAE,CAAC,kBAAU,CAAC,QAAQ,CAAC;YAChC,YAAY,EAAE,KAAK;SACnB,CAAC;QACF,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,iCAAiC;KAC9C;IAED;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE,OAAO,CAAC;YACvB,QAAQ,EAAE,QAAQ,CAAC,MAAM;YACzB,SAAS,EAAE,CAAC,kBAAU,CAAC,QAAQ,CAAC;YAChC,YAAY,EAAE,KAAK;SACnB,CAAC;QACF,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,yDAAyD;KACtE;IAED;QACC,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE;YACZ,IAAI,EAAE,EAAE;SACR;QACD,cAAc,EAAE,OAAO,CAAC;YACvB,QAAQ,EAAE,QAAQ,CAAC,MAAM;YACzB,SAAS,EAAE,CAAC,kBAAU,CAAC,QAAQ,CAAC;YAChC,YAAY,EAAE,IAAI;SAClB,CAAC;QACF,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,mCAAmC;QAChD,YAAY,EAAE,QAAQ;KACtB;CACD,CAAC"}
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 27.9.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 250 250" style="enable-background:new 0 0 250 250;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#FFFFFF;}
7
+ </style>
8
+ <g>
9
+ <path id="Logo-Icon_00000058558043654136794640000002980853754803412653_" class="st0" d="M209.6,146.8c0,7.4-4.4,14.1-12.9,15.6
10
+ c-14.7,2.6-45.6,4-71.7,4s-57-1.8-71.7-4c-8.4-1.5-12.9-8.1-12.9-15.6V98c0-7.4,5.9-14.5,12.9-15.6c4.4-0.7,14.4-1.5,22.4-1.5
11
+ c2.9,0,5.5,2.2,5.5,5.9v34.1c15.1,0,28.3-0.7,43.7-0.7s28.6,0.7,43.7,0.7v-34c0-3.7,2.6-5.9,5.5-5.9c8.1,0,18,0.7,22.4,1.5
12
+ c7,1.1,12.9,8.1,12.9,15.6L209.6,146.8z M125,0C55.9,0,0,55.9,0,125s55.9,125,125,125s125-55.9,125-125S194.1,0,125,0L125,0z"/>
13
+ </g>
14
+ </svg>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 27.9.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 250 250" style="enable-background:new 0 0 250 250;" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#EC1218;}
7
+ </style>
8
+ <g>
9
+ <path id="Logo-Icon_00000058558043654136794640000002980853754803412653_" class="st0" d="M209.6,146.8c0,7.4-4.4,14.1-12.9,15.6
10
+ c-14.7,2.6-45.6,4-71.7,4s-57-1.8-71.7-4c-8.4-1.5-12.9-8.1-12.9-15.6V98c0-7.4,5.9-14.5,12.9-15.6c4.4-0.7,14.4-1.5,22.4-1.5
11
+ c2.9,0,5.5,2.2,5.5,5.9v34.1c15.1,0,28.3-0.7,43.7-0.7s28.6,0.7,43.7,0.7v-34c0-3.7,2.6-5.9,5.5-5.9c8.1,0,18,0.7,22.4,1.5
12
+ c7,1.1,12.9,8.1,12.9,15.6L209.6,146.8z M125,0C55.9,0,0,55.9,0,125s55.9,125,125,125s125-55.9,125-125S194.1,0,125,0L125,0z"/>
13
+ </g>
14
+ </svg>
@@ -0,0 +1,5 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class ExampleNode implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExampleNode = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ class ExampleNode {
6
+ constructor() {
7
+ this.description = {
8
+ displayName: 'Example Node',
9
+ name: 'exampleNode',
10
+ group: ['transform'],
11
+ version: 1,
12
+ description: 'Basic Example Node',
13
+ defaults: {
14
+ name: 'Example Node',
15
+ },
16
+ inputs: ['main'],
17
+ outputs: ['main'],
18
+ properties: [
19
+ {
20
+ displayName: 'My String',
21
+ name: 'myString',
22
+ type: 'string',
23
+ default: '',
24
+ placeholder: 'Placeholder value',
25
+ description: 'The description text',
26
+ },
27
+ ],
28
+ };
29
+ }
30
+ async execute() {
31
+ const items = this.getInputData();
32
+ let item;
33
+ let myString;
34
+ for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
35
+ try {
36
+ myString = this.getNodeParameter('myString', itemIndex, '');
37
+ item = items[itemIndex];
38
+ item.json.myString = myString;
39
+ }
40
+ catch (error) {
41
+ if (this.continueOnFail()) {
42
+ items.push({ json: this.getInputData(itemIndex)[0].json, error, pairedItem: itemIndex });
43
+ }
44
+ else {
45
+ if (error.context) {
46
+ error.context.itemIndex = itemIndex;
47
+ throw error;
48
+ }
49
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, {
50
+ itemIndex,
51
+ });
52
+ }
53
+ }
54
+ }
55
+ return [items];
56
+ }
57
+ }
58
+ exports.ExampleNode = ExampleNode;
59
+ //# sourceMappingURL=ExampleNode.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleNode.node.js","sourceRoot":"","sources":["../../../nodes/ExampleNode/ExampleNode.node.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EAAE,SAAS,EAAE,CAAC,CAAC;gBAC1F,CAAC;qBAAM,CAAC;oBAEP,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;wBAGnB,KAAK,CAAC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;wBACpC,MAAM,KAAK,CAAC;oBACb,CAAC;oBACD,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE;wBACnD,SAAS;qBACT,CAAC,CAAC;gBACJ,CAAC;YACF,CAAC;QACF,CAAC;QAED,OAAO,CAAC,KAAK,CAAC,CAAC;IAChB,CAAC;CACD;AAnED,kCAmEC"}
@@ -0,0 +1,4 @@
1
+ import { INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class HttpBin implements INodeType {
3
+ description: INodeTypeDescription;
4
+ }
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HttpBin = void 0;
4
+ const HttpVerbDescription_1 = require("./HttpVerbDescription");
5
+ class HttpBin {
6
+ constructor() {
7
+ this.description = {
8
+ displayName: 'HttpBin',
9
+ name: 'httpBin',
10
+ icon: 'file:httpbin.svg',
11
+ group: ['transform'],
12
+ version: 1,
13
+ subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
14
+ description: 'Interact with HttpBin API',
15
+ defaults: {
16
+ name: 'HttpBin',
17
+ },
18
+ inputs: ['main'],
19
+ outputs: ['main'],
20
+ credentials: [
21
+ {
22
+ name: 'httpbinApi',
23
+ required: false,
24
+ },
25
+ ],
26
+ requestDefaults: {
27
+ baseURL: 'https://httpbin.org',
28
+ url: '',
29
+ headers: {
30
+ Accept: 'application/json',
31
+ 'Content-Type': 'application/json',
32
+ },
33
+ },
34
+ properties: [
35
+ {
36
+ displayName: 'Resource',
37
+ name: 'resource',
38
+ type: 'options',
39
+ noDataExpression: true,
40
+ options: [
41
+ {
42
+ name: 'HTTP Verb',
43
+ value: 'httpVerb',
44
+ },
45
+ ],
46
+ default: 'httpVerb',
47
+ },
48
+ ...HttpVerbDescription_1.httpVerbOperations,
49
+ ...HttpVerbDescription_1.httpVerbFields,
50
+ ],
51
+ };
52
+ }
53
+ }
54
+ exports.HttpBin = HttpBin;
55
+ //# sourceMappingURL=HttpBin.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HttpBin.node.js","sourceRoot":"","sources":["../../../nodes/HttpBin/HttpBin.node.ts"],"names":[],"mappings":";;;AACA,+DAA2E;AAE3E,MAAa,OAAO;IAApB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE;gBACT,IAAI,EAAE,SAAS;aACf;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,YAAY;oBAClB,QAAQ,EAAE,KAAK;iBACf;aACD;YACD,eAAe,EAAE;gBAChB,OAAO,EAAE,qBAAqB;gBAC9B,GAAG,EAAE,EAAE;gBACP,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBAClC;aACD;YAYD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,WAAW;4BACjB,KAAK,EAAE,UAAU;yBACjB;qBACD;oBACD,OAAO,EAAE,UAAU;iBACnB;gBAED,GAAG,wCAAkB;gBACrB,GAAG,oCAAc;aACjB;SACD,CAAC;IACH,CAAC;CAAA;AA1DD,0BA0DC"}