mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
* Feature/add couchbase support (#14518) * Add support for couchbase * Update readme * Update query operation --------- Co-authored-by: Midhun G S <gsmithun4@gmail.com> * Fix: Couchbase UI fixes (#15194) * Fix: couchbase ui fixes * Feature/add couchbase support (#14518) * Add support for couchbase * Update readme * Update query operation --------- Co-authored-by: Midhun G S <gsmithun4@gmail.com> * Fix: couchbase ui fixes * ui-fix: removed AI tag from couchbase --------- Co-authored-by: Rudhra Deep Biswas <rudra21ultra@gmail.com> Co-authored-by: Prajwal Pai <108796209+prajwal-pai77@users.noreply.github.com> Co-authored-by: Midhun G S <gsmithun4@gmail.com> * Feat: Add S3 upload script and command to package.json * auto redirect has been enabled --------- Co-authored-by: Prajwal Pai <108796209+prajwal-pai77@users.noreply.github.com> Co-authored-by: Sahil Dewangan <123866478+sahil7303@users.noreply.github.com> Co-authored-by: Rudhra Deep Biswas <rudra21ultra@gmail.com> Co-authored-by: Ganesh Kumar <ganesh8056234@gmail.com>
305 lines
No EOL
9.1 KiB
JSON
305 lines
No EOL
9.1 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/operations.schema.json",
|
|
"title": "Couchbase datasource",
|
|
"description": "A schema defining Couchbase datasource",
|
|
"type": "database",
|
|
"defaults": {
|
|
"document": "{ }"
|
|
},
|
|
"properties": {
|
|
"operation": {
|
|
"label": "Operation",
|
|
"key": "operation",
|
|
"type": "dropdown-component-flip",
|
|
"description": "Single select dropdown for operation",
|
|
"list": [
|
|
{
|
|
"name": "Get Document",
|
|
"value": "get_document"
|
|
},
|
|
{
|
|
"name": "Create Document",
|
|
"value": "create_document"
|
|
},
|
|
{
|
|
"name": "Update Document",
|
|
"value": "update_document"
|
|
},
|
|
{
|
|
"name": "Delete Document",
|
|
"value": "delete_document"
|
|
},
|
|
{
|
|
"name": "Query",
|
|
"value": "query"
|
|
},
|
|
{
|
|
"name": "FTS Search",
|
|
"value": "fts_search"
|
|
}
|
|
]
|
|
},
|
|
"get_document": {
|
|
"bucket": {
|
|
"label": "Bucket",
|
|
"key": "bucket",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter bucket name",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter bucket name"
|
|
},
|
|
"scope": {
|
|
"label": "Scope",
|
|
"key": "scope",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter scope name (optional, defaults to _default)",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "_default"
|
|
},
|
|
"collection": {
|
|
"label": "Collection",
|
|
"key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection name (optional, defaults to _default)",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "_default"
|
|
},
|
|
"document_id": {
|
|
"label": "Document ID",
|
|
"key": "document_id",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter document ID",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter document ID"
|
|
}
|
|
},
|
|
"create_document": {
|
|
"bucket": {
|
|
"label": "Bucket",
|
|
"key": "bucket",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter bucket name",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter bucket name"
|
|
},
|
|
"scope": {
|
|
"label": "Scope",
|
|
"key": "scope",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter scope name (optional, defaults to _default)",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "_default"
|
|
},
|
|
"collection": {
|
|
"label": "Collection",
|
|
"key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection name (optional, defaults to _default)",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "_default"
|
|
},
|
|
"document_id": {
|
|
"label": "Document ID",
|
|
"key": "document_id",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter document ID",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter document ID"
|
|
},
|
|
"document": {
|
|
"label": "Document",
|
|
"key": "document",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ \"name\": \"John Doe\", \"email\": \"john@example.com\", \"age\": 30 }",
|
|
"description": "Enter document data",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
}
|
|
},
|
|
"update_document": {
|
|
"bucket": {
|
|
"label": "Bucket",
|
|
"key": "bucket",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter bucket name",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter bucket name"
|
|
},
|
|
"scope": {
|
|
"label": "Scope",
|
|
"key": "scope",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter scope name (optional, defaults to _default)",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "_default"
|
|
},
|
|
"collection": {
|
|
"label": "Collection",
|
|
"key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection name (optional, defaults to _default)",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "_default"
|
|
},
|
|
"document_id": {
|
|
"label": "Document ID",
|
|
"key": "document_id",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter document ID",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter document ID"
|
|
},
|
|
"document": {
|
|
"label": "Document",
|
|
"key": "document",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ \"name\": \"John Doe\", \"email\": \"john.doe@example.com\", \"age\": 31 }",
|
|
"description": "Enter updated document data",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
}
|
|
},
|
|
"delete_document": {
|
|
"bucket": {
|
|
"label": "Bucket",
|
|
"key": "bucket",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter bucket name",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter bucket name"
|
|
},
|
|
"scope": {
|
|
"label": "Scope",
|
|
"key": "scope",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter scope name (optional, defaults to _default)",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "_default"
|
|
},
|
|
"collection": {
|
|
"label": "Collection",
|
|
"key": "collection",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter collection name (optional, defaults to _default)",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "_default"
|
|
},
|
|
"document_id": {
|
|
"label": "Document ID",
|
|
"key": "document_id",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter document ID",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter document ID"
|
|
}
|
|
},
|
|
"query": {
|
|
"query": {
|
|
"label": "SQL++ Query",
|
|
"key": "query",
|
|
"type": "codehinter",
|
|
"mode": "sql",
|
|
"placeholder": "SELECT * FROM `travel-sample`.`inventory`.`airline` WHERE country = $country LIMIT 10",
|
|
"description": "Enter SQL++ statement with $parameter placeholders",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
},
|
|
"args": {
|
|
"label": "Arguments (Key-Value)",
|
|
"key": "args",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ \"$country\": \"France\" }",
|
|
"description": "Enter key-value object for named parameters (optional)",
|
|
"height": "100px",
|
|
"editorType": "extendedSingleLine"
|
|
},
|
|
"query_options": {
|
|
"label": "Query options",
|
|
"key": "query_options",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ \"readonly\": true, \"timeout\": \"30s\" }",
|
|
"description": "Enter query options as JSON (optional)",
|
|
"height": "100px",
|
|
"editorType": "extendedSingleLine"
|
|
}
|
|
},
|
|
"fts_search": {
|
|
"bucket": {
|
|
"label": "Bucket",
|
|
"key": "bucket",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter bucket name",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter bucket name"
|
|
},
|
|
"scope": {
|
|
"label": "Scope",
|
|
"key": "scope",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter scope name (optional, defaults to _default)",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "_default"
|
|
},
|
|
"index_name": {
|
|
"label": "Index name",
|
|
"key": "index_name",
|
|
"type": "codehinter",
|
|
"lineNumbers": false,
|
|
"description": "Enter FTS index name",
|
|
"height": "36px",
|
|
"className": "codehinter-plugins",
|
|
"placeholder": "Enter FTS index name"
|
|
},
|
|
"query": {
|
|
"label": "Search query",
|
|
"key": "search_query",
|
|
"type": "codehinter",
|
|
"mode": "javascript",
|
|
"placeholder": "{ \"query\": { \"match\": \"hotel\", \"field\": \"name\" } }",
|
|
"description": "Enter FTS search query",
|
|
"height": "150px",
|
|
"editorType": "extendedSingleLine"
|
|
}
|
|
}
|
|
}
|
|
} |