ToolJet/plugins/packages/elasticsearch/lib/operations.json
Kiran Ashok 4723bfe8e7
fix : Codehinter bugs (#9350)
* fix : Preview on parameters is not visible.

* fix : data source codehinter breaking

* fix : current value copy button.(copying different values)

* fix : select suggestions using mouse closes the preview box.

* fix : multiline preview

* fix: darkmode

* fixes:
- multi-line suggestions on different line numbers
- extended single line editor for json body

* cleanup

* handle multiple resolver references with hints

* fix : codehinter position

* fix : data source codehinters

* fix : woocommerce

* bugfix : bigquery

* fix : Selecting options from suggestion cleareing the values from  input fielsds.

* fix : parmeter list not opening

* datasource going back to defaults bug

* fix : datasource resetting issue

---------

Co-authored-by: arpitnath <arpitnath42@gmail.com>
2024-04-15 15:02:33 +05:30

139 lines
No EOL
3.6 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/ToolJet/ToolJet/develop/plugins/schemas/operations.schema.json",
"title": "Elasticsearch datasource",
"description": "A schema defining Elasticsearch datasource",
"type": "database",
"defaults": {
"query": "",
"operation": "search"
},
"properties": {
"operation": {
"label": "Operation",
"key": "operation",
"type": "dropdown-component-flip",
"description": "Single select dropdown for operation",
"list": [
{
"value": "search",
"name": "Search"
},
{
"value": "index_document",
"name": "Index a document"
},
{
"value": "get",
"name": "Get a document"
},
{
"value": "update",
"name": "Update a document"
}
]
},
"search": {
"index": {
"label": "Index",
"key": "index",
"type": "codehinter",
"lineNumbers": false,
"description": "Enter index",
"width": "320px",
"height": "36px",
"className": "codehinter-plugins",
"placeholder": "Enter index"
},
"query": {
"label": "Query",
"key": "query",
"type": "codehinter",
"placeholder": "{ \"name\": \"\" }",
"description": "Enter query",
"height": "150px",
"editorType": "extendedSingleLine"
}
},
"index_document": {
"index": {
"label": "Index",
"key": "index",
"type": "codehinter",
"lineNumbers": false,
"description": "Enter index",
"width": "320px",
"height": "36px",
"className": "codehinter-plugins",
"placeholder": "Enter index"
},
"body": {
"label": "Body",
"key": "body",
"type": "codehinter",
"mode": "javascript",
"placeholder": "{ \"name\": \"The Hitchhikers Guide to the Galaxy\" }",
"description": "Enter body",
"height": "150px",
"editorType": "extendedSingleLine"
}
},
"get": {
"index": {
"label": "Index",
"key": "index",
"type": "codehinter",
"lineNumbers": false,
"description": "Enter index",
"width": "320px",
"height": "36px",
"className": "codehinter-plugins",
"placeholder": "Enter index"
},
"id": {
"label": "Id",
"key": "id",
"type": "codehinter",
"lineNumbers": false,
"description": "Enter id",
"width": "320px",
"height": "36px",
"className": "codehinter-plugins",
"placeholder": "Enter id"
}
},
"update": {
"index": {
"label": "Index",
"key": "index",
"type": "codehinter",
"lineNumbers": false,
"description": "Enter index",
"width": "320px",
"height": "36px",
"className": "codehinter-plugins",
"placeholder": "Enter index"
},
"id": {
"label": "Id",
"key": "id",
"type": "codehinter",
"lineNumbers": false,
"description": "Enter id",
"width": "320px",
"height": "36px",
"className": "codehinter-plugins",
"placeholder": "Enter id"
},
"body": {
"label": "body",
"key": "body",
"type": "codehinter",
"mode": "javascript",
"placeholder": "{ doc: { page_count: 225 } }",
"description": "Enter body",
"height": "150px",
"editorType": "extendedSingleLine"
}
}
}
}