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
package/README.md CHANGED
@@ -1,66 +1,134 @@
1
- N8N Nodes Couchbase
1
+ # n8n-nodes-couchbase
2
2
 
3
- The Couchbase node allows you to automate documents in Couchbase. n8n has built-in support for a wide range of Couchbase features, including executing, inserting, updating, removing, importing, querying and finding documents. n8n is a free and source-available workflow automation platform.
4
-
5
- Use this connector
6
-
7
- To install a community node in your n8n instance :
8
-
9
- • Go to Settings > Community Nodes :
10
- • Select 'Install a community node'
11
- • Type in "n8n-nodes-couchbase" and hit Install
12
-
13
- For more information on installing community nodes, visit the Community nodes docs page.
14
-
15
- Features
16
-
17
- • Create documents
18
- • Read documents
19
- • Update documents
20
- • Delete documents
21
- • Import documents
22
- • Query documents
23
-
24
-
25
- Couchbase Credentials
26
-
27
- Create a Couchbase account and you will need to input the following:
28
-
29
- • Connection String
30
-
31
- 1. Couchbase Server, you can use this connection string couchbase://127.0.0.1/?connectionTimeout=1200
32
-
33
- 2. Couchbase Capella, you can navigate to the tab named Connect and copy the connection string.
34
-
35
- Username
36
- • Password
37
- • Bucket
38
- • Scope
39
- • Collection
40
-
41
- Those credentials are needed in order for you to connect to Couchbase.
42
-
43
- Example Usage
44
-
45
- This workflow allows you to insert a document into a Couchbase. This example usage workflow would use the following three nodes. - Start - Set - Couchbase
46
-
47
- The final workflow should look like the following image.
48
-
49
- <img width="468" alt="image" src="https://github.com/maruakinu/n8n-nodes-couchbase/assets/100325935/b7947dde-af19-4b40-9c85-b1c5716fa332">
50
-
51
- 1. Start node
52
- The start node exists by default when you create a new workflow.
53
-
54
- 2. Set node
55
-
56
- 1. Click on the Add Value button and select 'String' from the dropdown list.
57
- 2. Enter the Property Name of the Value in the Name field.
58
- 3. Enter the value for the name in the Value field.
59
- 4. Click on Execute Node to run the node.
60
-
61
- 3. Couchbase node (Inserting Data)
62
-
63
- 1. Select 'Insert' from the Operation dropdown list.
64
- 2. You will have to enter credentials for the Couchbase. Click the Couchbase Node and enter your credentials.
65
- 3. At the bottom, enter the value that you want to insert in Couchbase.
66
- 4. Click on Execute Node to run the node.
3
+ This is an n8n community node. It lets you use Couchbase in your n8n workflows.
4
+
5
+ Couchbase is a distributed NoSQL cloud database that offers the robustness of a relational database with the flexibility of a JSON document database, featuring key-value operations, SQL++ querying, and powerful search capabilities.
6
+
7
+ [n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
8
+
9
+ [Installation](#installation)
10
+ [Operations](#operations)
11
+ [Credentials](#credentials)
12
+ [Compatibility](#compatibility)
13
+ [Usage](#usage)
14
+ [Resources](#resources)
15
+
16
+ ## Installation
17
+
18
+ Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.
19
+
20
+ ## Operations
21
+
22
+ The Couchbase node supports operations across two main resources:
23
+
24
+ ### Document & Key-Value Operations
25
+ - **Create**: Insert a document with a specified or auto-generated ID
26
+ - **Query**: Execute SQL++ queries to retrieve or manipulate documents
27
+ - **Read**: Retrieve a document by its ID
28
+ - **Upsert**: Modify an existing document identified by its ID, or create a new one if it does not exist
29
+ - **Delete**: Remove a document by its ID
30
+
31
+ ### Search Operations
32
+ - **Create Index**: Create a new search index
33
+ - **Search & Retrieve**: Perform full-text search with multiple options:
34
+ - Basic search with query, fields, and limit
35
+ - Advanced mode with raw JSON query capabilities
36
+
37
+ ## Credentials
38
+
39
+ To use the Couchbase node, you'll need to set up Couchbase credentials in n8n:
40
+
41
+ 1. **Prerequisites**:
42
+ - A running Couchbase cluster (using [Couchbase Capella](https://cloud.couchbase.com/) in the cloud, or Couchbase Server)
43
+ - [Database credentials](https://docs.couchbase.com/cloud/clusters/manage-database-users.html#create-database-credentials) with appropriate permissions for the operations you want to perform
44
+ - [Allow IP address](https://docs.couchbase.com/cloud/clusters/allow-ip-address.html) for your n8n instance
45
+
46
+ 2. **Credential Parameters**:
47
+ - **Connection String**: The connection string to your Couchbase server (e.g., `couchbase://localhost`)
48
+ - **Username**: Database access username
49
+ - **Password**: Database access password
50
+
51
+ ## Compatibility
52
+
53
+ This node has been tested with n8n version 1.86.0.
54
+
55
+ ## Usage
56
+
57
+ ### Document Operations
58
+
59
+ #### Creating Documents
60
+ 1. Select the **Document & Key-Value** resource
61
+ 2. Choose the **Create** operation
62
+ 3. Select your target bucket, scope, and collection
63
+ 4. You can either:
64
+ - Use a generated UUID for your document
65
+ - Specify your own document ID
66
+ 5. Enter your document content in JSON format
67
+
68
+ #### Reading Documents
69
+ 1. Select the **Document & Key-Value** resource
70
+ 2. Choose the **Read** operation
71
+ 3. Select your target bucket, scope, and collection
72
+ 4. Enter the document ID to retrieve
73
+ 5. The node will return the document content if found
74
+
75
+ #### Upserting Documents
76
+ 1. Select the **Document & Key-Value** resource
77
+ 2. Choose the **Upsert** operation
78
+ 3. Select your target bucket, scope, and collection
79
+ 4. Enter the document ID
80
+ 5. Provide the new JSON document content
81
+ 6. The document will be created if it doesn't exist, or updated if it does
82
+
83
+ #### Deleting Documents
84
+ 1. Select the **Document & Key-Value** resource
85
+ 2. Choose the **Delete** operation
86
+ 3. Select your target bucket, scope, and collection
87
+ 4. Enter the document ID to delete
88
+ 5. The node will remove the document from the collection
89
+
90
+ #### Querying Documents with SQL++
91
+ 1. Select the **Document & Key-Value** resource
92
+ 2. Choose the **Query** operation
93
+ 3. Optionally select a bucket and scope context
94
+ 4. Enter your SQL++ query
95
+ ```sql
96
+ SELECT * FROM `travel-sample`.inventory.hotel WHERE country = "United States"
97
+ ```
98
+
99
+ ### Search Operations
100
+
101
+ #### Full-Text Search
102
+ 1. Select the **Search** resource
103
+ 2. Choose the **Search & Retrieve** operation
104
+ 3. Enter the index name (format: `bucket.scope.index-name`)
105
+ 4. Enter your search query
106
+ 5. Configure optional parameters:
107
+ - Fields to return (comma-separated)
108
+ - Results limit
109
+ - Include term locations option
110
+
111
+ #### Advanced Search
112
+ 1. Enable **Advanced Mode**
113
+ 2. Enter a raw JSON query for more complex search requirements:
114
+ ```json
115
+ {
116
+ "query": {
117
+ "match": "California"
118
+ },
119
+ "size": 5,
120
+ "from": 0
121
+ }
122
+ ```
123
+
124
+ #### Creating Search Indexes
125
+ 1. Select the **Search** resource
126
+ 2. Choose the **Create Index** operation
127
+ 3. Enter the index definition as a JSON object
128
+
129
+ ## Resources
130
+
131
+ * [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
132
+ * [Couchbase Documentation](https://docs.couchbase.com/)
133
+ * [Couchbase Node.js SDK](https://docs.couchbase.com/nodejs-sdk/current/hello-world/start-using-sdk.html)
134
+ * [Couchbase Search Service](https://docs.couchbase.com/server/current/search/search-intro.html)
@@ -0,0 +1,8 @@
1
+ import { Icon, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class CouchbaseApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ icon: Icon;
7
+ properties: INodeProperties[];
8
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CouchbaseApi = void 0;
4
+ class CouchbaseApi {
5
+ constructor() {
6
+ this.name = 'couchbaseApi';
7
+ this.displayName = 'Couchbase Credentials API';
8
+ this.documentationUrl = 'https://github.com/Couchbase-Ecosystem/n8n-nodes-couchbase?tab=readme-ov-file#credentials';
9
+ this.icon = {
10
+ light: 'file:../nodes/Couchbase/couchbase.svg',
11
+ dark: 'file:../nodes/Couchbase/couchbase.dark.svg',
12
+ };
13
+ this.properties = [
14
+ {
15
+ displayName: 'Connection String',
16
+ name: 'couchbaseConnectionString',
17
+ type: 'string',
18
+ default: '',
19
+ },
20
+ {
21
+ displayName: 'Username',
22
+ name: 'couchbaseUsername',
23
+ type: 'string',
24
+ default: '',
25
+ },
26
+ {
27
+ displayName: 'Password',
28
+ name: 'couchbasePassword',
29
+ type: 'string',
30
+ typeOptions: {
31
+ password: true,
32
+ },
33
+ default: '',
34
+ },
35
+ ];
36
+ }
37
+ }
38
+ exports.CouchbaseApi = CouchbaseApi;
39
+ //# sourceMappingURL=CouchbaseApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CouchbaseApi.credentials.js","sourceRoot":"","sources":["../../credentials/CouchbaseApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,YAAY;IAAzB;QACC,SAAI,GAAG,cAAc,CAAC;QACtB,gBAAW,GAAG,2BAA2B,CAAC;QAC1C,qBAAgB,GACf,2FAA2F,CAAC;QAC7F,SAAI,GAAS;YACZ,KAAK,EAAE,uCAAuC;YAC9C,IAAI,EAAE,4CAA4C;SAClD,CAAC;QACF,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,2BAA2B;gBACjC,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;aACX;SACD,CAAC;IACH,CAAC;CAAA;AAhCD,oCAgCC"}
@@ -0,0 +1,8 @@
1
+ import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class ExampleCredentialsApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ properties: INodeProperties[];
6
+ authenticate: IAuthenticateGeneric;
7
+ test: ICredentialTestRequest;
8
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExampleCredentialsApi = void 0;
4
+ class ExampleCredentialsApi {
5
+ constructor() {
6
+ this.name = 'exampleCredentialsApi';
7
+ this.displayName = 'Example Credentials API';
8
+ this.properties = [
9
+ {
10
+ displayName: 'User Name',
11
+ name: 'username',
12
+ type: 'string',
13
+ default: '',
14
+ },
15
+ {
16
+ displayName: 'Password',
17
+ name: 'password',
18
+ type: 'string',
19
+ typeOptions: {
20
+ password: true,
21
+ },
22
+ default: '',
23
+ },
24
+ ];
25
+ this.authenticate = {
26
+ type: 'generic',
27
+ properties: {
28
+ auth: {
29
+ username: '={{ $credentials.username }}',
30
+ password: '={{ $credentials.password }}',
31
+ },
32
+ qs: {
33
+ n8n: 'rocks',
34
+ },
35
+ },
36
+ };
37
+ this.test = {
38
+ request: {
39
+ baseURL: 'https://example.com/',
40
+ url: '',
41
+ },
42
+ };
43
+ }
44
+ }
45
+ exports.ExampleCredentialsApi = ExampleCredentialsApi;
46
+ //# sourceMappingURL=ExampleCredentialsApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleCredentialsApi.credentials.js","sourceRoot":"","sources":["../../credentials/ExampleCredentialsApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,qBAAqB;IAAlC;QACC,SAAI,GAAG,uBAAuB,CAAC;QAC/B,gBAAW,GAAG,yBAAyB,CAAC;QACxC,eAAU,GAAsB;YAI/B;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;aACX;SACD,CAAC;QAKF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,IAAI,EAAE;oBACL,QAAQ,EAAE,8BAA8B;oBACxC,QAAQ,EAAE,8BAA8B;iBACxC;gBACD,EAAE,EAAE;oBAEH,GAAG,EAAE,OAAO;iBACZ;aACD;SACD,CAAC;QAGF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,sBAAsB;gBAC/B,GAAG,EAAE,EAAE;aACP;SACD,CAAC;IACH,CAAC;CAAA;AAhDD,sDAgDC"}
@@ -0,0 +1,9 @@
1
+ import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class HttpBinApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ properties: INodeProperties[];
7
+ authenticate: IAuthenticateGeneric;
8
+ test: ICredentialTestRequest;
9
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HttpBinApi = void 0;
4
+ class HttpBinApi {
5
+ constructor() {
6
+ this.name = 'httpbinApi';
7
+ this.displayName = 'HttpBin API';
8
+ this.documentationUrl = 'https://example.com/docs';
9
+ this.properties = [
10
+ {
11
+ displayName: 'Token',
12
+ name: 'token',
13
+ type: 'string',
14
+ default: '',
15
+ typeOptions: {
16
+ password: true,
17
+ }
18
+ },
19
+ {
20
+ displayName: 'Domain',
21
+ name: 'domain',
22
+ type: 'string',
23
+ default: 'https://httpbin.org',
24
+ },
25
+ ];
26
+ this.authenticate = {
27
+ type: 'generic',
28
+ properties: {
29
+ headers: {
30
+ Authorization: '={{"Bearer " + $credentials.token}}',
31
+ },
32
+ },
33
+ };
34
+ this.test = {
35
+ request: {
36
+ baseURL: '={{$credentials?.domain}}',
37
+ url: '/bearer',
38
+ },
39
+ };
40
+ }
41
+ }
42
+ exports.HttpBinApi = HttpBinApi;
43
+ //# sourceMappingURL=HttpBinApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HttpBinApi.credentials.js","sourceRoot":"","sources":["../../credentials/HttpBinApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,UAAU;IAAvB;QACC,SAAI,GAAG,YAAY,CAAC;QACpB,gBAAW,GAAG,aAAa,CAAC;QAC5B,qBAAgB,GAAG,0BAA0B,CAAC;QAC9C,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;aACD;YACD;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,qBAAqB;aAC9B;SACD,CAAC;QAMF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,qCAAqC;iBACpD;aACD;SACD,CAAC;QAGF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,2BAA2B;gBACpC,GAAG,EAAE,SAAS;aACd;SACD,CAAC;IACH,CAAC;CAAA;AA1CD,gCA0CC"}
@@ -0,0 +1,35 @@
1
+ import { ICredentialsDecrypted, ICredentialTestFunctions, IExecuteFunctions, ILoadOptionsFunctions, INodeCredentialTestResult, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ declare function couchbaseBucketSearch(this: ILoadOptionsFunctions): Promise<{
3
+ results: {
4
+ name: string;
5
+ value: string;
6
+ }[];
7
+ }>;
8
+ declare function couchbaseScopeSearch(this: ILoadOptionsFunctions): Promise<{
9
+ results: {
10
+ name: string;
11
+ value: string;
12
+ }[];
13
+ }>;
14
+ declare function couchbaseCollectionSearch(this: ILoadOptionsFunctions): Promise<{
15
+ results: {
16
+ name: string;
17
+ value: string;
18
+ }[];
19
+ }>;
20
+ declare function couchbaseCredentialTest(this: ICredentialTestFunctions, credential: ICredentialsDecrypted): Promise<INodeCredentialTestResult>;
21
+ export declare class Couchbase implements INodeType {
22
+ description: INodeTypeDescription;
23
+ methods: {
24
+ credentialTest: {
25
+ couchbaseCredentialTest: typeof couchbaseCredentialTest;
26
+ };
27
+ listSearch: {
28
+ couchbaseBucketSearch: typeof couchbaseBucketSearch;
29
+ couchbaseScopeSearch: typeof couchbaseScopeSearch;
30
+ couchbaseCollectionSearch: typeof couchbaseCollectionSearch;
31
+ };
32
+ };
33
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
34
+ }
35
+ export {};