ToolJet/frontend/src/Editor/QueryManager/QueryEditors/Elasticsearch.schema.json
Gandharv 1ddd170539
Add schema for data query editor (#1361)
* Initial commit for data query schema changes

* db: add mssql schema

* api: add graphql schema

* api: add redis data query editor

* db: add my sql db

* api: dataquery - add airtable api schema

* api: dataquery - add dynamodb api schema

* database: dataquery - add database api schema

* database: dataquery - add elastic search api schema

* database: dataquery - add mongo db schema

* database: dataquery - add postgre sql schema

* api: dataquery - add slack schema

* api: dataquery - add google sheets schema

* database: dataquery - add gcs schema

* fix: dynamodb styles

* fix: elastic search styles

* fix: firestore styles

* fix: remove line numbers + add className prop + add initialValue prop

* remove line numbers

* cleanup: remove jsx files of data queries

* cleanup: fix merge conflicts

* fix: on edit dropdowns not retaining value

* fix: remove unnecessary log statement
2021-11-17 23:29:00 +05:30

98 lines
2.5 KiB
JSON

{
"$schema": "https://json-schema.org/",
"$id": "https://tooljet.io/dataqueries/Elasticsearch.schema.json",
"title": "Elasticsearch datasource",
"description": "A schema defining Elasticsearch datasource",
"type": "object",
"properties": {
"operation": {
"$label": "Operation",
"$key": "operation",
"type": "dropdown-component-flip",
"description": "Single select dropdown for operation",
"$options": [
{ "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"
},
"query": {
"$label": "Query",
"$key": "query",
"type": "codehinter",
"placeholder": "{ \"name\": \"\" }",
"description": "Enter query"
}
},
"index_document": {
"index": {
"$label": "Index",
"$key": "index",
"type": "codehinter",
"lineNumbers": false,
"description": "Enter index"
},
"body": {
"$label": "Body",
"$key": "body",
"type": "codehinter",
"mode": "javascript",
"placeholder": "{ \"name\": \"The Hitchhikers Guide to the Galaxy\" }",
"description": "Enter body"
}
},
"get": {
"index": {
"$label": "Index",
"$key": "index",
"className": "col-6",
"type": "codehinter",
"lineNumbers": false,
"description": "Enter index"
},
"id": {
"$label": "Id",
"$key": "id",
"className": "col-6",
"type": "codehinter",
"lineNumbers": false,
"description": "Enter id"
}
},
"update": {
"index": {
"$label": "Index",
"$key": "index",
"className": "col-6",
"type": "codehinter",
"lineNumbers": false,
"description": "Enter index"
},
"id": {
"$label": "Id",
"$key": "id",
"className": "col-6",
"type": "codehinter",
"lineNumbers": false,
"description": "Enter id"
},
"body": {
"$label": "body",
"$key": "body",
"type": "codehinter",
"mode": "javascript",
"placeholder": "{ doc: { page_count: 225 } }",
"description": "Enter body"
}
}
}
}